# Google Cloud Asset V1 Client - Class MethodType (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 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** ||
|---|---|
| **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;`