# Organization Policy v2 API - Enum Constraint.Types.CustomConstraintDefinition.Types.MethodType (2.9.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.9.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.8.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.7.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.6.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.5.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.4.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.3.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.2.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.1.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/2.0.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/1.2.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/1.1.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/1.0.0/Google.Cloud.OrgPolicy.V2.Constraint.Types.CustomConstraintDefinition.Types.MethodType)

    public enum Constraint.Types.CustomConstraintDefinition.Types.MethodType

Reference documentation and code samples for the Organization Policy v2 API enum Constraint.Types.CustomConstraintDefinition.Types.MethodType.

The operation for which this constraint will be applied. To apply this
constraint only when creating new resources, the `method_types` should be
`CREATE` only. To apply this constraint when creating or deleting
resources, the `method_types` should be `CREATE` and `DELETE`.

`UPDATE`-only custom constraints are not supported. Use `CREATE` or
`CREATE, UPDATE`.

## Namespace

[Google.Cloud.OrgPolicy.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2)

## Assembly

Google.Cloud.OrgPolicy.V2.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `Create` | Constraint applied when creating the resource. |
| `Delete` | Constraint applied when deleting the resource. Not currently supported. |
| `GovernTags` | Constraint applied when enforcing forced tagging. |
| `RemoveGrant` | Constraint applied when removing an IAM grant. |
| `Unspecified` | This is only used for distinguishing unset values and should never be used. Results in an error. |
| `Update` | Constraint applied when updating the resource. |