Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Offer
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1Offer
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudchannel_v1/classes.rb,
lib/google/apis/cloudchannel_v1/representations.rb,
lib/google/apis/cloudchannel_v1/representations.rb
Overview
Represents an offer made to resellers for purchase. An offer is associated with a Sku, has a plan for payment, a price, and defines the constraints for buying.
Instance Attribute Summary collapse
-
#constraints ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Constraints
Represents the constraints for buying the Offer.
-
#deal_code ⇒ String
The deal code of the offer to get a special promotion or discount.
-
#end_time ⇒ String
Output only.
-
#marketing_info ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo
Represents the marketing information for a Product, SKU or Offer.
-
#name ⇒ String
Resource Name of the Offer.
-
#parameter_definitions ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition>
Parameters required to use current Offer to purchase.
-
#plan ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Plan
The payment plan for the Offer.
-
#price_by_resources ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource>
Price for each monetizable resource type.
-
#sku ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Sku
Represents a product's purchasable Stock Keeping Unit (SKU).
-
#start_time ⇒ String
Start of the Offer validity time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1Offer
constructor
A new instance of GoogleCloudChannelV1Offer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1Offer
Returns a new instance of GoogleCloudChannelV1Offer.
1807 1808 1809 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1807 def initialize(**args) update!(**args) end |
Instance Attribute Details
#constraints ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Constraints
Represents the constraints for buying the Offer.
Corresponds to the JSON property constraints
1757 1758 1759 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1757 def constraints @constraints end |
#deal_code ⇒ String
The deal code of the offer to get a special promotion or discount.
Corresponds to the JSON property dealCode
1762 1763 1764 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1762 def deal_code @deal_code end |
#end_time ⇒ String
Output only. End of the Offer validity time.
Corresponds to the JSON property endTime
1767 1768 1769 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1767 def end_time @end_time end |
#marketing_info ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1MarketingInfo
Represents the marketing information for a Product, SKU or Offer.
Corresponds to the JSON property marketingInfo
1772 1773 1774 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1772 def marketing_info @marketing_info end |
#name ⇒ String
Resource Name of the Offer. Format: accounts/account_id
/offers/offer_id
Corresponds to the JSON property name
1777 1778 1779 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1777 def name @name end |
#parameter_definitions ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1ParameterDefinition>
Parameters required to use current Offer to purchase.
Corresponds to the JSON property parameterDefinitions
1782 1783 1784 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1782 def parameter_definitions @parameter_definitions end |
#plan ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Plan
The payment plan for the Offer. Describes how to make a payment.
Corresponds to the JSON property plan
1787 1788 1789 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1787 def plan @plan end |
#price_by_resources ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource>
Price for each monetizable resource type.
Corresponds to the JSON property priceByResources
1792 1793 1794 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1792 def price_by_resources @price_by_resources end |
#sku ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Sku
Represents a product's purchasable Stock Keeping Unit (SKU). SKUs represent
the different variations of the product. For example, Google Workspace
Business Standard and Google Workspace Business Plus are Google Workspace
product SKUs.
Corresponds to the JSON property sku
1800 1801 1802 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1800 def sku @sku end |
#start_time ⇒ String
Start of the Offer validity time.
Corresponds to the JSON property startTime
1805 1806 1807 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1805 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1812 def update!(**args) @constraints = args[:constraints] if args.key?(:constraints) @deal_code = args[:deal_code] if args.key?(:deal_code) @end_time = args[:end_time] if args.key?(:end_time) @marketing_info = args[:marketing_info] if args.key?(:marketing_info) @name = args[:name] if args.key?(:name) @parameter_definitions = args[:parameter_definitions] if args.key?(:parameter_definitions) @plan = args[:plan] if args.key?(:plan) @price_by_resources = args[:price_by_resources] if args.key?(:price_by_resources) @sku = args[:sku] if args.key?(:sku) @start_time = args[:start_time] if args.key?(:start_time) end |