Class /GOOG/CL_ORGPOLICY_V2

Class

/GOOG/CL_ORGPOLICY_V2
  • Inheriting from:/GOOG/CL_HTTP_CLIENT
  • Description:Organization Policy API v2
For general information about a class in ABAP SDK for Google Cloud, see API client stub.

Types

Type Description Visibility
TY_001 GoogleCloudOrgpolicyV2AlternatePolicySpec PUBLIC
TY_002 GoogleCloudOrgpolicyV2Constraint PUBLIC
TY_003 GoogleCloudOrgpolicyV2ConstraintBooleanConstraint PUBLIC
TY_004 GoogleCloudOrgpolicyV2ConstraintListConstraint PUBLIC
TY_005 GoogleCloudOrgpolicyV2CustomConstraint PUBLIC
TY_006 GoogleCloudOrgpolicyV2ListConstraintsResponse PUBLIC
TY_007 GoogleCloudOrgpolicyV2ListCustomConstraintsResponse PUBLIC
TY_008 GoogleCloudOrgpolicyV2ListPoliciesResponse PUBLIC
TY_009 GoogleCloudOrgpolicyV2Policy PUBLIC
TY_010 GoogleCloudOrgpolicyV2PolicySpec PUBLIC
TY_011 GoogleCloudOrgpolicyV2PolicySpecPolicyRule PUBLIC
TY_012 GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues PUBLIC
TY_014 GoogleTypeExpr PUBLIC
TY_015 GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition PUBLIC
TY_016 GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionPa PUBLIC
TY_017 GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionPa PUBLIC
TY_T_002 GoogleCloudOrgpolicyV2Constraint PUBLIC
TY_T_005 GoogleCloudOrgpolicyV2CustomConstraint PUBLIC
TY_T_009 GoogleCloudOrgpolicyV2Policy PUBLIC
TY_T_011 GoogleCloudOrgpolicyV2PolicySpecPolicyRule PUBLIC
TY_T_STRING Table of Strings PUBLIC

Constants

Name Type Description Value Visibility
C_SUPPORTED_AUTH /GOOG/SUPP_AUTH Supported Auth Types IJIJWW PUBLIC
C_SERVICE_NAME /GOOG/SERVICE_NAME Google Service Name orgpolicy:v2 PUBLIC
C_ROOT_URL STRING API Root URL https://orgpolicy.googleapis.com PUBLIC
C_REVISION_DATE DATUM Discovery Document revision Date 20250228 PUBLIC
C_PATH_PREFIX STRING API Path Prefix PUBLIC
C_ON_PREM_VERSION /GOOG/SDK_VERSION Lowest On-premises Version 1.7 PUBLIC
C_CLOUD_VERSION /GOOG/SDK_VERSION Lowest Cloud Version PUBLIC

Methods

For general information about a method in ABAP SDK for Google Cloud, see API method.

CONSTRUCTOR

  • Description: Constructor
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_KEY_NAME IMPORTING /GOOG/KEYNAME Google Cloud Key Name
IV_LOG_OBJ IMPORTING BALOBJ_D Application log: Object name (Application code)
IV_LOG_SUBOBJ IMPORTING BALSUBOBJ Application Log: Subobject

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

CREATE_CUSTOM_CONSTRAINTS

  • Description: orgpolicy.organizations.customConstraints.create
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IS_INPUT IMPORTING TY_005 GoogleCloudOrgpolicyV2CustomConstraint
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_005 GoogleCloudOrgpolicyV2CustomConstraint
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

CREATE_POLICIES

  • Description: orgpolicy.folders.policies.create
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_FOLDERS_ID IMPORTING STRING foldersId
IS_INPUT IMPORTING TY_009 GoogleCloudOrgpolicyV2Policy
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

CREATE_POLICIES1

  • Description: orgpolicy.organizations.policies.create
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IS_INPUT IMPORTING TY_009 GoogleCloudOrgpolicyV2Policy
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

CREATE_POLICIES2

  • Description: orgpolicy.projects.policies.create
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_PROJECTS_ID IMPORTING STRING projectsId
IS_INPUT IMPORTING TY_009 GoogleCloudOrgpolicyV2Policy
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

DELETE_CUSTOM_CONSTRAINTS

  • Description: orgpolicy.organizations.customConstraints.delete
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_CUSTOM_CONSTRAINTS_ID IMPORTING STRING customConstraintsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING DATA Output Data
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

DELETE_POLICIES

  • Description: orgpolicy.folders.policies.delete
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_ETAG IMPORTING STRING etag
IV_P_FOLDERS_ID IMPORTING STRING foldersId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING DATA Output Data
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

DELETE_POLICIES1

  • Description: orgpolicy.organizations.policies.delete
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_ETAG IMPORTING STRING etag
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING DATA Output Data
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

DELETE_POLICIES2

  • Description: orgpolicy.projects.policies.delete
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_ETAG IMPORTING STRING etag
IV_P_PROJECTS_ID IMPORTING STRING projectsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING DATA Output Data
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_CUSTOM_CONSTRAINTS

  • Description: orgpolicy.organizations.customConstraints.get
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_CUSTOM_CONSTRAINTS_ID IMPORTING STRING customConstraintsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_005 GoogleCloudOrgpolicyV2CustomConstraint
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_EFFECTIVE_POLICY_POLICI

  • Description: orgpolicy.folders.policies.getEffectivePolicy
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_FOLDERS_ID IMPORTING STRING foldersId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_EFFECTIVE_POLICY_POLICI1

  • Description: orgpolicy.organizations.policies.getEffectivePolicy
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_EFFECTIVE_POLICY_POLICI2

  • Description: orgpolicy.projects.policies.getEffectivePolicy
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_PROJECTS_ID IMPORTING STRING projectsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_POLICIES

  • Description: orgpolicy.folders.policies.get
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_FOLDERS_ID IMPORTING STRING foldersId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_POLICIES1

  • Description: orgpolicy.organizations.policies.get
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

GET_POLICIES2

  • Description: orgpolicy.projects.policies.get
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_PROJECTS_ID IMPORTING STRING projectsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_CONSTRAINTS

  • Description: orgpolicy.folders.constraints.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_FOLDERS_ID IMPORTING STRING foldersId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_006 GoogleCloudOrgpolicyV2ListConstraintsResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_CONSTRAINTS1

  • Description: orgpolicy.organizations.constraints.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_006 GoogleCloudOrgpolicyV2ListConstraintsResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_CONSTRAINTS2

  • Description: orgpolicy.projects.constraints.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_PROJECTS_ID IMPORTING STRING projectsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_006 GoogleCloudOrgpolicyV2ListConstraintsResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_CUSTOM_CONSTRAINTS

  • Description: orgpolicy.organizations.customConstraints.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_007 GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_POLICIES

  • Description: orgpolicy.folders.policies.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_FOLDERS_ID IMPORTING STRING foldersId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_008 GoogleCloudOrgpolicyV2ListPoliciesResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_POLICIES1

  • Description: orgpolicy.organizations.policies.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_008 GoogleCloudOrgpolicyV2ListPoliciesResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

LIST_POLICIES2

  • Description: orgpolicy.projects.policies.list
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_PAGESIZE IMPORTING STRING pageSize
IV_Q_PAGETOKEN IMPORTING STRING pageToken
IV_P_PROJECTS_ID IMPORTING STRING projectsId
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_008 GoogleCloudOrgpolicyV2ListPoliciesResponse
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

PATCH_CUSTOM_CONSTRAINTS

  • Description: orgpolicy.organizations.customConstraints.patch
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_CUSTOM_CONSTRAINTS_ID IMPORTING STRING customConstraintsId
IS_INPUT IMPORTING TY_005 GoogleCloudOrgpolicyV2CustomConstraint
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_005 GoogleCloudOrgpolicyV2CustomConstraint
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

PATCH_POLICIES

  • Description: orgpolicy.folders.policies.patch
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_UPDATEMASK IMPORTING STRING updateMask
IV_P_FOLDERS_ID IMPORTING STRING foldersId
IV_P_POLICIES_ID IMPORTING STRING policiesId
IS_INPUT IMPORTING TY_009 GoogleCloudOrgpolicyV2Policy
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

PATCH_POLICIES1

  • Description: orgpolicy.organizations.policies.patch
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_UPDATEMASK IMPORTING STRING updateMask
IV_P_ORGANIZATIONS_ID IMPORTING STRING organizationsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
IS_INPUT IMPORTING TY_009 GoogleCloudOrgpolicyV2Policy
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

PATCH_POLICIES2

  • Description: orgpolicy.projects.policies.patch
  • Visibility: PUBLIC

Parameters

Name Category Type Description
IV_Q_UPDATEMASK IMPORTING STRING updateMask
IV_P_PROJECTS_ID IMPORTING STRING projectsId
IV_P_POLICIES_ID IMPORTING STRING policiesId
IS_INPUT IMPORTING TY_009 GoogleCloudOrgpolicyV2Policy
ES_RAW EXPORTING DATA Raw Output Data
ES_OUTPUT EXPORTING TY_009 GoogleCloudOrgpolicyV2Policy
EV_RET_CODE EXPORTING I Return Code
EV_ERR_TEXT EXPORTING STRING Error Text
ES_ERR_RESP EXPORTING /GOOG/ERR_RESP Error Response

Exception

Name Description
/GOOG/CX_SDK ABAP SDK for Google Cloud: Exception Class

CLOSE

  • Description: Close Connection
  • Visibility: PUBLIC