Google Cloud Asset V1 Client - Class MethodType (1.14.1)

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 \ CustomConstraint

Methods

static::name

Parameter
NameDescription
value mixed

static::value

Parameter
NameDescription
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;