public sealed class Policy : IMessage<Policy>, IEquatable<Policy>, IDeepCloneable<Policy>, IBufferMessage, IMessage
Defines a Cloud Organization Policy
which is used to specify Constraints
for configurations of Cloud Platform resources.
Namespace
Google.Cloud.OrgPolicy.V2Assembly
Google.Cloud.OrgPolicy.V2.dll
Constructors
Policy()
public Policy()
Policy(Policy)
public Policy(Policy other)
Parameter | |
---|---|
Name | Description |
other | Policy |
Properties
Alternate
[Obsolete]
public AlternatePolicySpec Alternate { get; set; }
Deprecated.
Property Value | |
---|---|
Type | Description |
AlternatePolicySpec |
Name
public string Name { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
PolicyName
public PolicyName PolicyName { get; set; }
PolicyName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
PolicyName |
Spec
public PolicySpec Spec { get; set; }
Basic information about the Organization Policy.
Property Value | |
---|---|
Type | Description |
PolicySpec |