Google Cloud Org Policy V2 Client - Class MethodType (0.7.0)

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

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

METHOD_TYPE_UNSPECIFIED

Value: 0

Unspecified. 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 supported yet.

Generated from protobuf enum DELETE = 3;