Class GoogleCloudOrgpolicyV2Policy
Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources.
Implements
Inherited Members
Namespace: Google.Apis.OrgPolicyAPI.v2.Data
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class GoogleCloudOrgpolicyV2Policy : IDirectResponseSchema
Properties
Alternate
Deprecated.
Declaration
[JsonProperty("alternate")]
public virtual GoogleCloudOrgpolicyV2AlternatePolicySpec Alternate { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudOrgpolicyV2AlternatePolicySpec |
DryRunSpec
Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
Declaration
[JsonProperty("dryRunSpec")]
public virtual GoogleCloudOrgpolicyV2PolicySpec DryRunSpec { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudOrgpolicyV2PolicySpec |
ETag
Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This 'etag' is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
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.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Spec
Basic information about the Organization Policy.
Declaration
[JsonProperty("spec")]
public virtual GoogleCloudOrgpolicyV2PolicySpec Spec { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudOrgpolicyV2PolicySpec |