Class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Currently used for Managed Constraints. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint
Implements
Inherited Members
Namespace: Google.Apis.OrgPolicyAPI.v2.Data
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition : IDirectResponseSchema
Properties
ActionType
Allow or deny type.
Declaration
[JsonProperty("actionType")]
public virtual string ActionType { get; set; }
Property Value
Type | Description |
---|---|
string |
Condition
Org policy condition/expression. For example: resource.instanceName.matches("[production|test]_.*_(\d)+")
or, resource.management.auto_upgrade == true
The max length of the condition is 1000 characters.
Declaration
[JsonProperty("condition")]
public virtual string Condition { 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 |
MethodTypes
All the operations being applied for this constraint.
Declaration
[JsonProperty("methodTypes")]
public virtual IList<string> MethodTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Parameters
Stores Structure of parameters used by Constraint condition. Key of map represents name of the parameter.
Declaration
[JsonProperty("parameters")]
public virtual IDictionary<string, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> Parameters { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter> |
ResourceTypes
The resource instance type on which this policy applies. Format will be of the form : /
Example: *
compute.googleapis.com/Instance
.
Declaration
[JsonProperty("resourceTypes")]
public virtual IList<string> ResourceTypes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |