# Policy Simulator V1 API - Class Google::Cloud::OrgPolicy::V2::AlternatePolicySpec (v1.9.0)

1.9.0 (latest) 1.8.1 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.4.0 0.3.2 0.2.0 0.1.1 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

    def launch() -> ::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=

    def launch=(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.

### #spec

    def spec() -> ::Google::Cloud::OrgPolicy::V2::PolicySpec

**Returns**

- ([::Google::Cloud::OrgPolicy::V2::PolicySpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-PolicySpec)) --- Specify constraint for configurations of Google Cloud resources.

### #spec=

    def spec=(value) -> ::Google::Cloud::OrgPolicy::V2::PolicySpec

**Parameter**

- **value** ([::Google::Cloud::OrgPolicy::V2::PolicySpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-PolicySpec)) --- Specify constraint for configurations of Google Cloud resources.
**Returns**

- ([::Google::Cloud::OrgPolicy::V2::PolicySpec](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-OrgPolicy-V2-PolicySpec)) --- Specify constraint for configurations of Google Cloud resources.