orgpolicy/v2 library

Organization Policy API - v2

The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.

For more information, see cloud.google.com/orgpolicy/docs/reference/rest/index.html

Create an instance of OrgPolicyApi to access these resources:

Classes

FoldersConstraintsResource
FoldersPoliciesResource
FoldersResource
GoogleCloudOrgpolicyV2AlternatePolicySpec
Similar to PolicySpec but with an extra 'launch' field for launch reference.
GoogleCloudOrgpolicyV2Constraint
A constraint describes a way to restrict resource's configuration.
GoogleCloudOrgpolicyV2ConstraintListConstraint
A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.
GoogleCloudOrgpolicyV2CustomConstraint
A custom constraint defined by customers which can only be applied to the given resource types and organization.
GoogleCloudOrgpolicyV2ListConstraintsResponse
The response returned from the ListConstraints method.
GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
The response returned from the ListCustomConstraints method.
GoogleCloudOrgpolicyV2ListPoliciesResponse
The response returned from the ListPolicies method.
GoogleCloudOrgpolicyV2Policy
Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources.
GoogleCloudOrgpolicyV2PolicySpec
Defines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.
GoogleCloudOrgpolicyV2PolicySpecPolicyRule
A rule used to express this policy.
OrganizationsConstraintsResource
OrganizationsCustomConstraintsResource
OrganizationsPoliciesResource
OrganizationsResource
OrgPolicyApi
The Organization Policy API allows users to configure governance rules on their Google Cloud resources across the resource hierarchy.
ProjectsConstraintsResource
ProjectsPoliciesResource
ProjectsResource

Typedefs

GoogleCloudOrgpolicyV2ConstraintBooleanConstraint = $Empty
A constraint that is either enforced or not.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues = $StringValues
A message that holds specific allowed and denied values.
GoogleProtobufEmpty = $Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
GoogleTypeExpr = $Expr
Represents a textual expression in the Common Expression Language (CEL) syntax.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.