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 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.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eCustomConstraint.Types.MethodType\u003c/code\u003e enum for the Organization Policy v2 API is 2.7.0, with previous versions ranging down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThis enum, part of the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2\u003c/code\u003e namespace, defines the types of operations to which a custom constraint can be applied, such as \u003ccode\u003eCREATE\u003c/code\u003e, \u003ccode\u003eDELETE\u003c/code\u003e, \u003ccode\u003eUPDATE\u003c/code\u003e, \u003ccode\u003eGovernTags\u003c/code\u003e, and \u003ccode\u003eRemoveGrant\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomConstraint.Types.MethodType\u003c/code\u003e enums define constraints for specific actions like creating, deleting, or updating resources, with the \u003ccode\u003eUPDATE\u003c/code\u003e method being supported only in combination with the \u003ccode\u003eCREATE\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUnspecified\u003c/code\u003e field within the enum will result in an error.\u003c/p\u003e\n"]]],[],null,[]]