Class Constraint
A Constraint
describes a way in which a resource's configuration can be restricted. For example, it controls
which cloud services can be activated across an organization, or whether a Compute Engine instance can have
serial port connections established. Constraints
can be configured by the organization's policy administrator
to fit the needs of the organzation by setting Policies for Constraints
at different locations in the
organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but
can also be overridden. For details about the inheritance rules please read about
Policies. Constraints
have a default behavior determined by the
constraint_default
field, which is the enforcement behavior that is used in the absence of a Policy
being
defined or inherited for the resource in question.
Implements
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1.Data
Assembly: Google.Apis.CloudResourceManager.v1.dll
Syntax
public class Constraint : IDirectResponseSchema
Properties
BooleanConstraint
Defines this constraint as being a BooleanConstraint.
Declaration
[JsonProperty("booleanConstraint")]
public virtual BooleanConstraint BooleanConstraint { get; set; }
Property Value
Type | Description |
---|---|
BooleanConstraint |
ConstraintDefault
The evaluation behavior of this constraint in the absence of 'Policy'.
Declaration
[JsonProperty("constraintDefault")]
public virtual string ConstraintDefault { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Detailed description of what this Constraint
controls as well as how and where it is enforced. Mutable.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
DisplayName
The human readable name. Mutable.
Declaration
[JsonProperty("displayName")]
public virtual string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ListConstraint
Defines this constraint as being a ListConstraint.
Declaration
[JsonProperty("listConstraint")]
public virtual ListConstraint ListConstraint { get; set; }
Property Value
Type | Description |
---|---|
ListConstraint |
Name
Immutable value, required to globally be unique. For example, constraints/serviceuser.services
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Version
Version of the Constraint
. Default version is 0;
Declaration
[JsonProperty("version")]
public virtual int? Version { get; set; }
Property Value
Type | Description |
---|---|
int? |