orgpolicy library

Classes

CustomConstraint
Creates a custom constraint. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the organization does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the constraint already exists on the given organization.
CustomConstraintArgs
The set of arguments for CustomConstraint. The set of arguments for CustomConstraint.
FolderPolicy
Creates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource. Auto-naming is currently not supported for this resource.
FolderPolicyArgs
The set of arguments for FolderPolicy. The set of arguments for FolderPolicy.
GetCustomConstraintArgs
Arguments for getCustomConstraint. Arguments for getCustomConstraint.
GetCustomConstraintResult
Result data returned by getCustomConstraint.
GetFolderPolicyArgs
Arguments for getFolderPolicy. Arguments for getFolderPolicy.
GetFolderPolicyResult
Result data returned by getFolderPolicy.
GetOrganizationPolicyArgs
Arguments for getOrganizationPolicy. Arguments for getOrganizationPolicy.
GetOrganizationPolicyResult
Result data returned by getOrganizationPolicy.
GetPolicyArgs
Arguments for getPolicy. Arguments for getPolicy.
GetPolicyResult
Result data returned by getPolicy.
GoogleCloudOrgpolicyV2AlternatePolicySpec
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.
GoogleCloudOrgpolicyV2AlternatePolicySpecResponse
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.
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.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleResponse
A rule used to express this policy.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
A message that holds specific allowed and denied values. This message can define specific values and subtrees of the Resource Manager resource hierarchy (Organizations, Folders, Projects) that are allowed or denied. This is achieved by using the under: and optional is: prefixes. The under: prefix is used to denote resource subtree values. The is: prefix is used to denote specific values, and is required only if the value contains a ":". Values prefixed with "is:" are treated the same as values with no prefix. Ancestry subtrees must be in one of the following formats: - projects/ (for example, projects/tokyo-rain-123) - folders/ (for example, folders/1234) - organizations/ (for example, organizations/1234) The supports_under field of the associated Constraint defines whether ancestry prefixes can be used.
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesResponse
A message that holds specific allowed and denied values. This message can define specific values and subtrees of the Resource Manager resource hierarchy (Organizations, Folders, Projects) that are allowed or denied. This is achieved by using the under: and optional is: prefixes. The under: prefix is used to denote resource subtree values. The is: prefix is used to denote specific values, and is required only if the value contains a ":". Values prefixed with "is:" are treated the same as values with no prefix. Ancestry subtrees must be in one of the following formats: - projects/ (for example, projects/tokyo-rain-123) - folders/ (for example, folders/1234) - organizations/ (for example, organizations/1234) The supports_under field of the associated Constraint defines whether ancestry prefixes can be used.
GoogleCloudOrgpolicyV2PolicySpecResponse
Defines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.
GoogleTypeExpr
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
GoogleTypeExprResponse
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
OrganizationPolicy
Creates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource. Auto-naming is currently not supported for this resource.
OrganizationPolicyArgs
The set of arguments for OrganizationPolicy. The set of arguments for OrganizationPolicy.
Policy
Creates a policy. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the constraint does not exist. Returns a google.rpc.Status with google.rpc.Code.ALREADY_EXISTS if the policy already exists on the given Google Cloud resource.
PolicyArgs
The set of arguments for Policy. The set of arguments for Policy.

Functions

getCustomConstraint(GetCustomConstraintArgs args, {InvokeOptions? options}) → Future<GetCustomConstraintResult>
Gets a custom constraint. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the custom constraint does not exist. args Arguments passed to this invoke. Arguments for getCustomConstraint. options Invoke options controlling this call.
getFolderPolicy(GetFolderPolicyArgs args, {InvokeOptions? options}) → Future<GetFolderPolicyResult>
Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write. args Arguments passed to this invoke. Arguments for getFolderPolicy. options Invoke options controlling this call.
getOrganizationPolicy(GetOrganizationPolicyArgs args, {InvokeOptions? options}) → Future<GetOrganizationPolicyResult>
Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write. args Arguments passed to this invoke. Arguments for getOrganizationPolicy. options Invoke options controlling this call.
getPolicy(GetPolicyArgs args, {InvokeOptions? options}) → Future<GetPolicyResult>
Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write. args Arguments passed to this invoke. Arguments for getPolicy. options Invoke options controlling this call.