Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::AlternatePolicySpec.
Similar to PolicySpec but with an extra 'launch' field for launch reference.
The PolicySpec here is specific for dry-run.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#launch
deflaunch()->::String
Returns
(::String) — Reference to the launch that will be used while audit logging and to
control the launch.
Should be set only in the alternate policy.
#launch=
deflaunch=(value)->::String
Parameter
value (::String) — Reference to the launch that will be used while audit logging and to
control the launch.
Should be set only in the alternate policy.
Returns
(::String) — Reference to the launch that will be used while audit logging and to
control the launch.
Should be set only in the alternate policy.
[[["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,["# Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::AlternatePolicySpec (v1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/ruby/docs/reference/google-cloud-org_policy-v2/latest/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.4.1](/ruby/docs/reference/google-cloud-org_policy-v2/1.4.1/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.3.0](/ruby/docs/reference/google-cloud-org_policy-v2/1.3.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.2.0](/ruby/docs/reference/google-cloud-org_policy-v2/1.2.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.1.0](/ruby/docs/reference/google-cloud-org_policy-v2/1.1.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.0.1](/ruby/docs/reference/google-cloud-org_policy-v2/1.0.1/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.10.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.10.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.9.2](/ruby/docs/reference/google-cloud-org_policy-v2/0.9.2/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.8.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.8.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.7.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.7.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.6.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.6.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.5.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.5.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.4.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.3.0](/ruby/docs/reference/google-cloud-org_policy-v2/0.3.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.2.6](/ruby/docs/reference/google-cloud-org_policy-v2/0.2.6/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec) \nReference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::AlternatePolicySpec.\n\nSimilar to PolicySpec but with an extra 'launch' field for launch reference.\nThe PolicySpec here is specific for dry-run. \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### #launch\n\n def launch() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.\n\n### #launch=\n\n def launch=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy. \n**Returns**\n\n- (::String) --- Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.\n\n### #spec\n\n def spec() -\u003e ::Google::Cloud::OrgPolicy::V2::PolicySpec\n\n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::PolicySpec](./Google-Cloud-OrgPolicy-V2-PolicySpec)) --- Specify constraint for configurations of Google Cloud resources.\n\n### #spec=\n\n def spec=(value) -\u003e ::Google::Cloud::OrgPolicy::V2::PolicySpec\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OrgPolicy::V2::PolicySpec](./Google-Cloud-OrgPolicy-V2-PolicySpec)) --- Specify constraint for configurations of Google Cloud resources. \n**Returns**\n\n- ([::Google::Cloud::OrgPolicy::V2::PolicySpec](./Google-Cloud-OrgPolicy-V2-PolicySpec)) --- Specify constraint for configurations of Google Cloud resources."]]