Reference documentation and code samples for the Cloud Asset V1 API module Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::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".
Constants
METHOD_TYPE_UNSPECIFIED
value: 0 Unspecified. Will results in user 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.
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 2025-09-09 UTC."],[],[],null,["# Cloud Asset V1 API - Module Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-AnalyzerOrgPolicyConstraint-CustomConstraint-MethodType) \nReference documentation and code samples for the Cloud Asset V1 API module Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType.\n\nThe operation in which this constraint will be applied. For example:\nIf the constraint applies only when create VMs, the method_types will be\n\"CREATE\" only. If the constraint applied when create or delete VMs, the\nmethod_types will be \"CREATE\" and \"DELETE\".\n\nConstants\n---------\n\n### METHOD_TYPE_UNSPECIFIED\n\n**value:** 0 \nUnspecified. Will results in user error.\n\n### CREATE\n\n**value:** 1 \nConstraint applied when creating the resource.\n\n### UPDATE\n\n**value:** 2 \nConstraint applied when updating the resource.\n\n### DELETE\n\n**value:** 3 \nConstraint applied when deleting the resource.\n\n### REMOVE_GRANT\n\n**value:** 4 \nConstraint applied when removing an IAM grant.\n\n### GOVERN_TAGS\n\n**value:** 5 \nConstraint applied when enforcing forced tagging."]]