OrgPolicy class

Defines a Cloud Organization Policy which is used to specify Constraints for configurations of Cloud Platform resources.

Constructors

OrgPolicy()
OrgPolicy.fromJson(Map _json)

Properties

booleanPolicy BooleanPolicy
For boolean Constraints, whether to enforce the Constraint or not.
read / write
constraint String
The name of the Constraint the Policy is configuring, for example, constraints/serviceuser.services. A list of available constraints is available. Immutable after creation.
read / write
etag String
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 etagin a SetOrgPolicy request will result in an unconditional write of the Policy.
read / write
etagAsBytes List<int>
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
listPolicy ListPolicy
List of values either allowed or disallowed.
read / write
restoreDefault RestoreDefault
Restores the default behavior of the constraint; independent of Constraint type.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
updateTime String
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.
read / write
version int
Version of the Policy. Default version is 0;
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited