Class GoogleCloudAssetV1CustomConstraint
The definition of a custom constraint.
Implements
Inherited Members
Namespace: Google.Apis.CloudAsset.v1.Data
Assembly: Google.Apis.CloudAsset.v1.dll
Syntax
public class GoogleCloudAssetV1CustomConstraint : IDirectResponseSchema
Properties
ActionType
Allow or deny type.
Declaration
[JsonProperty("actionType")]
public virtual string ActionType { get; set; }
Property Value
Type | Description |
---|---|
string |
Condition
Organization Policy condition/expression. For example:
resource.instanceName.matches("[production|test]_.*_(\d)+")'
or, resource.management.auto_upgrade == true
Declaration
[JsonProperty("condition")]
public virtual string Condition { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Detailed information about this custom policy constraint.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
DisplayName
One line display name for the UI.
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 |
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> |
Name
Name of the constraint. This is unique within the organization. Format of the name should be *
organizations/{organization_id}/customConstraints/{custom_constraint_id}
Example :
"organizations/123/customConstraints/custom.createOnlyE2TypeVms"
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ResourceTypes
The Resource Instance type on which this policy applies to. 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> |