Reference documentation and code samples for the Google Cloud Org Policy V2 Client class 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.
Protobuf type google.cloud.orgpolicy.v2.CustomConstraint.MethodType
Namespace
Google \ Cloud \ OrgPolicy \ V2 \ CustomConstraintMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
METHOD_TYPE_UNSPECIFIED
Value: 0Unspecified. Results in an error.
Generated from protobuf enum METHOD_TYPE_UNSPECIFIED = 0;
CREATE
Value: 1Constraint applied when creating the resource.
Generated from protobuf enum CREATE = 1;
UPDATE
Value: 2Constraint applied when updating the resource.
Generated from protobuf enum UPDATE = 2;
DELETE
Value: 3Constraint applied when deleting the resource.
Not supported yet.
Generated from protobuf enum DELETE = 3;
REMOVE_GRANT
Value: 4Constraint applied when removing an IAM grant.
Generated from protobuf enum REMOVE_GRANT = 4;
GOVERN_TAGS
Value: 5Constraint applied when enforcing forced tagging.
Generated from protobuf enum GOVERN_TAGS = 5;