Reference documentation and code samples for the Organization Policy V2 API module Google::Cloud::OrgPolicy::V2::CustomConstraint::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.
Constants
METHOD_TYPE_UNSPECIFIED
value: 0 Unspecified. Results in an error.
CREATE
value: 1 Constraint applied when creating the resource.
UPDATE
value: 2 Constraint applied when updating the resource.
DELETE
value: 3 Constraint applied when deleting the resource.
Not supported yet.
REMOVE_GRANT
value: 4 Constraint applied when removing an IAM grant.
GOVERN_TAGS
value: 5 Constraint applied when enforcing forced tagging.
[[["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 2024-11-06 UTC."],[],[]]