Organization Policy v2 API - Enum CustomConstraint.Types.MethodType (2.4.0)

public enum CustomConstraint.Types.MethodType

Reference documentation and code samples for the Organization Policy v2 API enum CustomConstraint.Types.MethodType.

The operation for which this constraint will be applied. To apply this constraint only when creating new VMs, the method_types should be CREATE only. To apply this constraint when creating or deleting VMs, the method_types should be CREATE and DELETE.

UPDATE only custom constraints are not supported. Use CREATE or CREATE, UPDATE.

Namespace

Google.Cloud.OrgPolicy.V2

Assembly

Google.Cloud.OrgPolicy.V2.dll

Fields

NameDescription
Create

Constraint applied when creating the resource.

Delete

Constraint applied when deleting the resource. Not supported yet.

Unspecified

Unspecified. Results in an error.

Update

Constraint applied when updating the resource.