(::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of
Parameters
used by the constraint condition. The key of map represents the name of
the parameter.
value (::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of
Parameters
used by the constraint condition. The key of map represents the name of
the parameter.
Returns
(::Google::Protobuf::Map{::String => ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) — Stores the structure of
Parameters
used by the constraint condition. The key of map represents the name of
the parameter.
#resource_types
defresource_types()->::Array<::String>
Returns
(::Array<::String>) —
The resource instance type on which this policy applies. Format will be
of the form : <service name>/<type> Example:
compute.googleapis.com/Instance.
#resource_types=
defresource_types=(value)->::Array<::String>
Parameter
value (::Array<::String>) —
The resource instance type on which this policy applies. Format will be
of the form : <service name>/<type> Example:
compute.googleapis.com/Instance.
Returns
(::Array<::String>) —
The resource instance type on which this policy applies. Format will be
of the form : <service name>/<type> Example:
[[["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-03 UTC."],[],[],null,["# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition.\n\nCustom constraint definition. Defines this as a managed constraint. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #action_type\n\n def action_type() -\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType\n\n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType](./Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-ActionType)) --- Allow or deny type.\n\n### #action_type=\n\n def action_type=(value) -\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType](./Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-ActionType)) --- Allow or deny type. \n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::ActionType](./Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-ActionType)) --- Allow or deny type.\n\n### #condition\n\n def condition() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Org policy condition/expression. For example: `resource.instanceName.matches(\"[production|test]_.*_(\\d)+\")` or, `resource.management.auto_upgrade == true`\n\n\n The max length of the condition is 1000 characters.\n\n### #condition=\n\n def condition=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Org policy condition/expression. For example: `resource.instanceName.matches(\"[production|test]_.*_(\\d)+\")` or, `resource.management.auto_upgrade == true`\n\n\nThe max length of the condition is 1000 characters. \n**Returns**\n\n- (::String) --- Org policy condition/expression. For example: `resource.instanceName.matches(\"[production|test]_.*_(\\d)+\")` or, `resource.management.auto_upgrade == true`\n\n\n The max length of the condition is 1000 characters.\n\n### #method_types\n\n def method_types() -\u003e ::Array\u003c::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType](./Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-MethodType)\\\u003e) --- All the operations being applied for this constraint.\n\n### #method_types=\n\n def method_types=(value) -\u003e ::Array\u003c::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType](./Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-MethodType)\\\u003e) --- All the operations being applied for this constraint. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::MethodType](./Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-MethodType)\\\u003e) --- All the operations being applied for this constraint.\n\n### #parameters\n\n def parameters() -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) --- Stores the structure of [`Parameters`](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter \"Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter (class)\") used by the constraint condition. The key of `map` represents the name of the parameter.\n\n### #parameters=\n\n def parameters=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) --- Stores the structure of [`Parameters`](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter \"Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter (class)\") used by the constraint condition. The key of `map` represents the name of the parameter. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter}) --- Stores the structure of [`Parameters`](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-Constraint-CustomConstraintDefinition-Parameter \"Google::Cloud::OrgPolicy::V2::Constraint::CustomConstraintDefinition::Parameter (class)\") used by the constraint condition. The key of `map` represents the name of the parameter.\n\n### #resource_types\n\n def resource_types() -\u003e ::Array\u003c::String\u003e\n\n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The resource instance type on which this policy applies. Format will be\n of the form : `\u003cservice name\u003e/\u003ctype\u003e` Example:\n\n - `compute.googleapis.com/Instance`.\n\n### #resource_types=\n\n def resource_types=(value) -\u003e ::Array\u003c::String\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::String\\\u003e) ---\n\n The resource instance type on which this policy applies. Format will be\n of the form : `\u003cservice name\u003e/\u003ctype\u003e` Example:\n- `compute.googleapis.com/Instance`. \n**Returns**\n\n- (::Array\\\u003c::String\\\u003e) --- The resource instance type on which this policy applies. Format will be\n of the form : `\u003cservice name\u003e/\u003ctype\u003e` Example:\n\n - `compute.googleapis.com/Instance`."]]