Show / Hide Table of Contents

Class GoogleCloudOrgpolicyV2PolicySpecPolicyRule

A rule used to express this policy.

Inheritance
object
GoogleCloudOrgpolicyV2PolicySpecPolicyRule
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.OrgPolicyAPI.v2.Data
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class GoogleCloudOrgpolicyV2PolicySpecPolicyRule : IDirectResponseSchema

Properties

AllowAll

Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.

Declaration
[JsonProperty("allowAll")]
public virtual bool? AllowAll { get; set; }
Property Value
Type Description
bool?

Condition

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

Declaration
[JsonProperty("condition")]
public virtual GoogleTypeExpr Condition { get; set; }
Property Value
Type Description
GoogleTypeExpr

DenyAll

Setting this to true means that all values are denied. This field can be set only in policies for list constraints.

Declaration
[JsonProperty("denyAll")]
public virtual bool? DenyAll { get; set; }
Property Value
Type Description
bool?

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Enforce

If true, then the policy is enforced. If false, then any configuration is acceptable. This field can be set only in policies for boolean constraints.

Declaration
[JsonProperty("enforce")]
public virtual bool? Enforce { get; set; }
Property Value
Type Description
bool?

Parameters

Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true }

Declaration
[JsonProperty("parameters")]
public virtual IDictionary<string, object> Parameters { get; set; }
Property Value
Type Description
IDictionary<string, object>

Values

List of values to be used for this policy rule. This field can be set only in policies for list constraints.

Declaration
[JsonProperty("values")]
public virtual GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues Values { get; set; }
Property Value
Type Description
GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX