Class GoogleCloudOrgpolicyV1Policy
Defines a Cloud Organization Policy
which is used to specify Constraints
for configurations of Cloud
Platform resources.
Implements
Inherited Members
Namespace: Google.Apis.CloudAsset.v1beta1.Data
Assembly: Google.Apis.CloudAsset.v1beta1.dll
Syntax
public class GoogleCloudOrgpolicyV1Policy : IDirectResponseSchema
Properties
BooleanPolicy
For boolean Constraints
, whether to enforce the Constraint
or not.
Declaration
[JsonProperty("booleanPolicy")]
public virtual GoogleCloudOrgpolicyV1BooleanPolicy BooleanPolicy { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudOrgpolicyV1BooleanPolicy |
Constraint
The name of the Constraint
the Policy
is configuring, for example, constraints/serviceuser.services
. A
list of available constraints is
available. Immutable after creation.
Declaration
[JsonProperty("constraint")]
public virtual string Constraint { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
An opaque tag indicating the current version of the Policy
, used for concurrency control. When the
Policy
is returned from either a GetPolicy
or a ListOrgPolicy
request, this etag
indicates the
version of the current Policy
to use when executing a read-modify-write loop. When the Policy
is
returned from a GetEffectivePolicy
request, the etag
will be unset. When the Policy
is used in a
SetOrgPolicy
method, use the etag
value that was returned from a GetOrgPolicy
request as part of a
read-modify-write loop for concurrency control. Not setting the etag
in a SetOrgPolicy
request will
result in an unconditional write of the Policy
.
Declaration
[JsonProperty("etag")]
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ListPolicy
List of values either allowed or disallowed.
Declaration
[JsonProperty("listPolicy")]
public virtual GoogleCloudOrgpolicyV1ListPolicy ListPolicy { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudOrgpolicyV1ListPolicy |
RestoreDefault
Restores the default behavior of the constraint; independent of Constraint
type.
Declaration
[JsonProperty("restoreDefault")]
public virtual GoogleCloudOrgpolicyV1RestoreDefault RestoreDefault { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudOrgpolicyV1RestoreDefault |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
The time stamp the Policy
was previously updated. This is set by the server, not specified by the caller,
and represents the last time a call to SetOrgPolicy
was made for that Policy
. Any value set by the
client will be ignored.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Version
Version of the Policy
. Default version is 0;
Declaration
[JsonProperty("version")]
public virtual int? Version { get; set; }
Property Value
Type | Description |
---|---|
int? |