Class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Custom constraint definition. Defines this as a managed constraint.
Implements
Inherited Members
Namespace: Google.Apis.OrgPolicyAPI.v2.Data
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition : IDirectResponseSchemaProperties
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 the structure of Parameters used by the constraint condition. The key of map represents the 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> |