Reference documentation and code samples for the Organization Policy v2 API enum CustomConstraint.Types.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the `CustomConstraint.Types.MethodType` enum for the Organization Policy v2 API is 2.7.0, with previous versions ranging down to 1.0.0."],["This enum, part of the `Google.Cloud.OrgPolicy.V2` namespace, defines the types of operations to which a custom constraint can be applied, such as `CREATE`, `DELETE`, `UPDATE`, `GovernTags`, and `RemoveGrant`."],["`CustomConstraint.Types.MethodType` enums define constraints for specific actions like creating, deleting, or updating resources, with the `UPDATE` method being supported only in combination with the `CREATE` method."],["The `Unspecified` field within the enum will result in an error."]]],[]]