Any existing CustomConstraints with the same name will be overridden
in the simulation. That is, violations will be determined as if all
custom constraints in the overlay were instantiated.
Only a single custom_constraint is supported in the overlay at a time.
For evaluating multiple constraints, multiple
GenerateOrgPolicyViolationsPreview requests are made, where each request
evaluates a single constraint.
Any existing CustomConstraints with the same name will be overridden
in the simulation. That is, violations will be determined as if all
custom constraints in the overlay were instantiated.
Only a single custom_constraint is supported in the overlay at a time.
For evaluating multiple constraints, multiple
GenerateOrgPolicyViolationsPreview requests are made, where each request
evaluates a single constraint.
Any existing CustomConstraints with the same name will be overridden
in the simulation. That is, violations will be determined as if all
custom constraints in the overlay were instantiated.
Only a single custom_constraint is supported in the overlay at a time.
For evaluating multiple constraints, multiple
GenerateOrgPolicyViolationsPreview requests are made, where each request
evaluates a single constraint.
Any existing OrgPolicies with the same name will be overridden
in the simulation. That is, violations will be determined as if all
policies in the overlay were created or updated.
Any existing OrgPolicies with the same name will be overridden
in the simulation. That is, violations will be determined as if all
policies in the overlay were created or updated.
Any existing OrgPolicies with the same name will be overridden
in the simulation. That is, violations will be determined as if all
policies in the overlay were created or updated.
[[["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 (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)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay.\n\nThe proposed changes to OrgPolicy. \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_constraints\n\n def custom_constraints() -\u003e ::Array\u003c::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay](./Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\\\u003e) --- Optional. The OrgPolicy CustomConstraint changes to preview violations for.\n\n\n Any existing CustomConstraints with the same name will be overridden\n in the simulation. That is, violations will be determined as if all\n custom constraints in the overlay were instantiated.\n\n Only a single custom_constraint is supported in the overlay at a time.\n For evaluating multiple constraints, multiple\n `GenerateOrgPolicyViolationsPreview` requests are made, where each request\n evaluates a single constraint.\n\n### #custom_constraints=\n\n def custom_constraints=(value) -\u003e ::Array\u003c::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay](./Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\\\u003e) --- Optional. The OrgPolicy CustomConstraint changes to preview violations for.\n\n\n Any existing CustomConstraints with the same name will be overridden\n in the simulation. That is, violations will be determined as if all\n custom constraints in the overlay were instantiated.\n\n Only a single custom_constraint is supported in the overlay at a time.\n For evaluating multiple constraints, multiple\n `GenerateOrgPolicyViolationsPreview` requests are made, where each request\nevaluates a single constraint. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::CustomConstraintOverlay](./Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-CustomConstraintOverlay)\\\u003e) --- Optional. The OrgPolicy CustomConstraint changes to preview violations for.\n\n\n Any existing CustomConstraints with the same name will be overridden\n in the simulation. That is, violations will be determined as if all\n custom constraints in the overlay were instantiated.\n\n Only a single custom_constraint is supported in the overlay at a time.\n For evaluating multiple constraints, multiple\n `GenerateOrgPolicyViolationsPreview` requests are made, where each request\n evaluates a single constraint.\n\n### #policies\n\n def policies() -\u003e ::Array\u003c::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::PolicyOverlay\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::PolicyOverlay](./Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-PolicyOverlay)\\\u003e) --- Optional. The OrgPolicy changes to preview violations for.\n\n\n Any existing OrgPolicies with the same name will be overridden\n in the simulation. That is, violations will be determined as if all\n policies in the overlay were created or updated.\n\n### #policies=\n\n def policies=(value) -\u003e ::Array\u003c::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::PolicyOverlay\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::PolicyOverlay](./Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-PolicyOverlay)\\\u003e) --- Optional. The OrgPolicy changes to preview violations for.\n\n\n Any existing OrgPolicies with the same name will be overridden\n in the simulation. That is, violations will be determined as if all\npolicies in the overlay were created or updated. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::PolicySimulator::V1::OrgPolicyOverlay::PolicyOverlay](./Google-Cloud-PolicySimulator-V1-OrgPolicyOverlay-PolicyOverlay)\\\u003e) --- Optional. The OrgPolicy changes to preview violations for.\n\n\n Any existing OrgPolicies with the same name will be overridden\n in the simulation. That is, violations will be determined as if all\n policies in the overlay were created or updated."]]