Reference documentation and code samples for the Google Cloud Asset V1 Client class MethodType.
The operation in which this constraint will be applied. For example: If the constraint applies only when create VMs, the method_types will be "CREATE" only. If the constraint applied when create or delete VMs, the method_types will be "CREATE" and "DELETE".
Protobuf type google.cloud.asset.v1.AnalyzerOrgPolicyConstraint.CustomConstraint.MethodType
Namespace
Google \ Cloud \ Asset \ V1 \ AnalyzerOrgPolicyConstraint \ CustomConstraintMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
METHOD_TYPE_UNSPECIFIED
Value: 0
Unspecified. Will results in user 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.
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;