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
Methods
name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
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;