Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay.
[[["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::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay (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-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay.\n\nA change to an OrgPolicy custom 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### #custom_constraint\n\n def custom_constraint() -\u003e ::Google::Cloud::OrgPolicy::V2::CustomConstraint\n\n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::CustomConstraint](./Google-Cloud-OrgPolicy-V2-CustomConstraint)) --- Optional. The new or updated custom constraint.\n\n### #custom_constraint=\n\n def custom_constraint=(value) -\u003e ::Google::Cloud::OrgPolicy::V2::CustomConstraint\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OrgPolicy::V2::CustomConstraint](./Google-Cloud-OrgPolicy-V2-CustomConstraint)) --- Optional. The new or updated custom constraint. \n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::CustomConstraint](./Google-Cloud-OrgPolicy-V2-CustomConstraint)) --- Optional. The new or updated custom constraint.\n\n### #custom_constraint_parent\n\n def custom_constraint_parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Resource the constraint is attached to. Example: \"organization/987654\"\n\n### #custom_constraint_parent=\n\n def custom_constraint_parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Resource the constraint is attached to. Example: \"organization/987654\" \n**Returns**\n\n- (::String) --- Optional. Resource the constraint is attached to. Example: \"organization/987654\""]]