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 resources, the method_types
should be
CREATE
only. To apply this constraint when creating or deleting
resources, 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.Constraint.CustomConstraintDefinition.MethodType
Namespace
Google \ Cloud \ OrgPolicy \ V2 \ Constraint \ CustomConstraintDefinitionMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
METHOD_TYPE_UNSPECIFIED
Value: 0
This is only used for distinguishing unset values and should never be used. Results in an error.
Generated from protobuf enum METHOD_TYPE_UNSPECIFIED = 0;
CREATE
Value: 1
Constraint applied when creating the resource.
Generated from protobuf enum CREATE = 1;
UPDATE
Value: 2
Constraint applied when updating the resource.
Generated from protobuf enum UPDATE = 2;
DELETE
Value: 3
Constraint applied when deleting the resource.
Not currently supported.
Generated from protobuf enum DELETE = 3;
REMOVE_GRANT
Value: 4
Constraint applied when removing an IAM grant.
Generated from protobuf enum REMOVE_GRANT = 4;
GOVERN_TAGS
Value: 5
Constraint applied when enforcing forced tagging.
Generated from protobuf enum GOVERN_TAGS = 5;