# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::Offer (v2.6.0)

2.6.0 (latest) 2.5.0 2.4.1 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.24.0 0.23.2 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.5 Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::Offer.

Represents an offer made to resellers for purchase.
An offer is associated with a [Sku](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Sku "Google::Cloud::Channel::V1::Sku (class)"), has a plan
for payment, a price, and defines the constraints for buying.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #constraints

    def constraints() -> ::Google::Cloud::Channel::V1::Constraints

**Returns**

- ([::Google::Cloud::Channel::V1::Constraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Constraints)) --- Constraints on transacting the Offer.

### #constraints=

    def constraints=(value) -> ::Google::Cloud::Channel::V1::Constraints

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::Constraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Constraints)) --- Constraints on transacting the Offer.
**Returns**

- ([::Google::Cloud::Channel::V1::Constraints](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Constraints)) --- Constraints on transacting the Offer.

### #deal_code

    def deal_code() -> ::String

**Returns**

- (::String) --- The deal code of the offer to get a special promotion or discount.

### #deal_code=

    def deal_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The deal code of the offer to get a special promotion or discount.
**Returns**

- (::String) --- The deal code of the offer to get a special promotion or discount.

### #end_time

    def end_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Protobuf-Timestamp)) --- Output only. End of the Offer validity time.

### #marketing_info

    def marketing_info() -> ::Google::Cloud::Channel::V1::MarketingInfo

**Returns**

- ([::Google::Cloud::Channel::V1::MarketingInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-MarketingInfo)) --- Marketing information for the Offer.

### #marketing_info=

    def marketing_info=(value) -> ::Google::Cloud::Channel::V1::MarketingInfo

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::MarketingInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-MarketingInfo)) --- Marketing information for the Offer.
**Returns**

- ([::Google::Cloud::Channel::V1::MarketingInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-MarketingInfo)) --- Marketing information for the Offer.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}
**Returns**

- (::String) --- Resource Name of the Offer. Format: accounts/{account_id}/offers/{offer_id}

### #parameter_definitions

    def parameter_definitions() -> ::Array<::Google::Cloud::Channel::V1::ParameterDefinition>

**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::ParameterDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ParameterDefinition)\>) --- Parameters required to use current Offer to purchase.

### #parameter_definitions=

    def parameter_definitions=(value) -> ::Array<::Google::Cloud::Channel::V1::ParameterDefinition>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Channel::V1::ParameterDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ParameterDefinition)\>) --- Parameters required to use current Offer to purchase.
**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::ParameterDefinition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-ParameterDefinition)\>) --- Parameters required to use current Offer to purchase.

### #plan

    def plan() -> ::Google::Cloud::Channel::V1::Plan

**Returns**

- ([::Google::Cloud::Channel::V1::Plan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Plan)) --- Describes the payment plan for the Offer.

### #plan=

    def plan=(value) -> ::Google::Cloud::Channel::V1::Plan

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::Plan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Plan)) --- Describes the payment plan for the Offer.
**Returns**

- ([::Google::Cloud::Channel::V1::Plan](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Plan)) --- Describes the payment plan for the Offer.

### #price_by_resources

    def price_by_resources() -> ::Array<::Google::Cloud::Channel::V1::PriceByResource>

**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::PriceByResource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-PriceByResource)\>) --- Price for each monetizable resource type.

### #price_by_resources=

    def price_by_resources=(value) -> ::Array<::Google::Cloud::Channel::V1::PriceByResource>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Channel::V1::PriceByResource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-PriceByResource)\>) --- Price for each monetizable resource type.
**Returns**

- (::Array\<[::Google::Cloud::Channel::V1::PriceByResource](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-PriceByResource)\>) --- Price for each monetizable resource type.

### #sku

    def sku() -> ::Google::Cloud::Channel::V1::Sku

**Returns**

- ([::Google::Cloud::Channel::V1::Sku](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Sku)) --- SKU the offer is associated with.

### #sku=

    def sku=(value) -> ::Google::Cloud::Channel::V1::Sku

**Parameter**

- **value** ([::Google::Cloud::Channel::V1::Sku](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Sku)) --- SKU the offer is associated with.
**Returns**

- ([::Google::Cloud::Channel::V1::Sku](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Sku)) --- SKU the offer is associated with.

### #start_time

    def start_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Protobuf-Timestamp)) --- Start of the Offer validity time.

### #start_time=

    def start_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Protobuf-Timestamp)) --- Start of the Offer validity time.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Protobuf-Timestamp)) --- Start of the Offer validity time.