Reference documentation and code samples for the Policy Simulator V1 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-03 UTC."],[],[],null,["# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::AlternatePolicySpec (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-AlternatePolicySpec)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-OrgPolicy-V2-AlternatePolicySpec) \nReference documentation and code samples for the Policy Simulator V1 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."]]