Policy(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Defines a Cloud Organization Policy
which is used to specify
Constraints
for configurations of Cloud Platform resources.
Attributes | |
---|---|
Name | Description |
name |
str
Immutable. The resource name of the Policy. Must be one of the following forms, where constraint_name is the name of the constraint which this Policy configures: - projects/{project_number}/policies/{constraint_name}
- folders/{folder_id}/policies/{constraint_name}
- organizations/{organization_id}/policies/{constraint_name}
For example,
"projects/123/policies/compute.disableSerialPortAccess".
Note: projects/{project_id}/policies/{constraint_name}
is also an acceptable name for API requests, but responses
will return the name using the equivalent project number.
|
spec |
google.cloud.orgpolicy_v2.types.PolicySpec
Basic information about the Organization Policy. |
alternate |
google.cloud.orgpolicy_v2.types.AlternatePolicySpec
An alternate policy configuration that will be used instead of the baseline policy configurations as determined by the launch. Currently the only way the launch can trigger the alternate configuration is via dry- run/darklaunch. |