public enum CustomConstraint.Types.MethodTypeReference 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.V2Assembly
Google.Cloud.OrgPolicy.V2.dll
Fields |
|
|---|---|
| Name | Description |
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. |