Classes
AlternatePolicySpec
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.
Constraint
A constraint describes a way to restrict resource's configuration. For
example, you could enforce a constraint that controls which Google Cloud
services can be activated across an organization, or whether a Compute Engine
instance can have serial port connections established. Constraints can be
configured by the organization policy administrator to fit the needs of the
organization by setting a policy that includes constraints at different
locations in the organization's resource hierarchy. Policies are inherited
down the resource hierarchy from higher levels, but can also be overridden.
For details about the inheritance rules please read about
[policies
][google.cloud.OrgPolicy.v2.Policy].
Constraints have a default behavior determined by the constraint_default
field, which is the enforcement behavior that is used in the absence of a
policy being defined or inherited for the resource in question.
Constraint.Types
Container for nested types declared in the Constraint message type.
Constraint.Types.BooleanConstraint
A constraint that is either enforced or not.
For example, a constraint constraints/compute.disableSerialPortAccess
.
If it is enforced on a VM instance, serial port connections will not be
opened to that instance.
Constraint.Types.ListConstraint
A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.
ConstraintName
Resource name for the Constraint
resource.
CreateCustomConstraintRequest
The request sent to the [CreateCustomConstraintRequest] [google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint] method.
CreatePolicyRequest
The request sent to the [CreatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.
CustomConstraint
A custom constraint defined by customers which can only be applied to the given resource types and organization.
By creating a custom constraint, customers can apply policies of this custom constraint. Creating a custom constraint itself does NOT apply any policy enforcement.
CustomConstraint.Types
Container for nested types declared in the CustomConstraint message type.
CustomConstraintName
Resource name for the CustomConstraint
resource.
DeleteCustomConstraintRequest
The request sent to the [DeleteCustomConstraint] [google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint] method.
DeletePolicyRequest
The request sent to the [DeletePolicy] [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method.
GetCustomConstraintRequest
The request sent to the [GetCustomConstraint] [google.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint] method.
GetEffectivePolicyRequest
The request sent to the [GetEffectivePolicy] [google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy] method.
GetPolicyRequest
The request sent to the [GetPolicy] [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method.
ListConstraintsRequest
The request sent to the [ListConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
ListConstraintsResponse
The response returned from the [ListConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method.
ListCustomConstraintsRequest
The request sent to the [ListCustomConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method.
ListCustomConstraintsResponse
The response returned from the [ListCustomConstraints] [google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints] method. It will be empty if no custom constraints are set on the organization resource.
ListPoliciesRequest
The request sent to the [ListPolicies] [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method.
ListPoliciesResponse
The response returned from the [ListPolicies] [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty if no policies are set on the resource.
OrgPolicy
An interface for managing organization policies.
The Organization Policy Service provides a simple mechanism for organizations to restrict the allowed configurations across their entire resource hierarchy.
You can use a policy to configure restrictions on resources. For example, you can enforce a policy that restricts which Google Cloud APIs can be activated in a certain part of your resource hierarchy, or prevents serial port access to VM instances in a particular folder.
Policies are inherited down through the resource hierarchy. A policy applied to a parent resource automatically applies to all its child resources unless overridden with a policy lower in the hierarchy.
A constraint defines an aspect of a resource's configuration that can be controlled by an organization's policy administrator. Policies are a collection of constraints that defines their allowable configuration on a particular resource and its child resources.
OrgPolicy.OrgPolicyBase
Base class for server-side implementations of OrgPolicy
OrgPolicy.OrgPolicyClient
Client for OrgPolicy
OrgPolicyClient
OrgPolicy client wrapper, for convenient use.
OrgPolicyClientBuilder
Builder class for OrgPolicyClient to provide simple configuration of credentials, endpoint etc.
OrgPolicyClientImpl
OrgPolicy client wrapper implementation, for convenient use.
OrgPolicySettings
Settings for OrgPolicyClient instances.
Policy
Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources.
PolicyName
Resource name for the Policy
resource.
PolicySpec
Defines a Google Cloud policy specification which is used to specify constraints for configurations of Google Cloud resources.
PolicySpec.Types
Container for nested types declared in the PolicySpec message type.
PolicySpec.Types.PolicyRule
A rule used to express this policy.
PolicySpec.Types.PolicyRule.Types
Container for nested types declared in the PolicyRule message type.
PolicySpec.Types.PolicyRule.Types.StringValues
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/<project-id>
(for example,projects/tokyo-rain-123
)folders/<folder-id>
(for example,folders/1234
)organizations/<organization-id>
(for example,organizations/1234
)
The supports_under
field of the associated Constraint
defines
whether ancestry prefixes can be used.
UpdateCustomConstraintRequest
The request sent to the [UpdateCustomConstraintRequest] [google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint] method.
UpdatePolicyRequest
The request sent to the [UpdatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.
Enums
Constraint.ConstraintTypeOneofCase
Enum of possible cases for the "constraint_type" oneof.
Constraint.Types.ConstraintDefault
Specifies the default behavior in the absence of any policy for the
constraint. This must not be CONSTRAINT_DEFAULT_UNSPECIFIED
.
Immutable after creation.
ConstraintName.ResourceNameType
The possible contents of ConstraintName.
CustomConstraint.Types.ActionType
Allow or deny type.
CustomConstraint.Types.MethodType
The operation for which this constraint will be applied. To apply this
constraint only when creating new VMs, the method_types
should be
CREATE
only. To apply this constraint when creating or deleting
VMs, the method_types
should be CREATE
and DELETE
.
UPDATE
only custom constraints are not supported. Use CREATE
or
CREATE, UPDATE
.
CustomConstraintName.ResourceNameType
The possible contents of CustomConstraintName.
PolicyName.ResourceNameType
The possible contents of PolicyName.
PolicySpec.Types.PolicyRule.KindOneofCase
Enum of possible cases for the "kind" oneof.