Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase
- 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
Specifies the price by the duration of months. For example, a 20% discount for the first six months, then a 10% discount starting on the seventh month.
Instance Attribute Summary collapse
-
#first_period ⇒ Fixnum
Defines first period for the phase.
-
#last_period ⇒ Fixnum
Defines first period for the phase.
-
#period_type ⇒ String
Defines the phase period type.
-
#price ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price
Represents the price of the Offer.
-
#price_tiers ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceTier>
Price by the resource tiers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1PricePhase
constructor
A new instance of GoogleCloudChannelV1PricePhase.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1PricePhase
Returns a new instance of GoogleCloudChannelV1PricePhase.
1768 1769 1770 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first_period ⇒ Fixnum
Defines first period for the phase.
Corresponds to the JSON property firstPeriod
1746 1747 1748 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1746 def first_period @first_period end |
#last_period ⇒ Fixnum
Defines first period for the phase.
Corresponds to the JSON property lastPeriod
1751 1752 1753 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1751 def last_period @last_period end |
#period_type ⇒ String
Defines the phase period type.
Corresponds to the JSON property periodType
1756 1757 1758 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1756 def period_type @period_type end |
#price ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price
Represents the price of the Offer.
Corresponds to the JSON property price
1761 1762 1763 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1761 def price @price end |
#price_tiers ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceTier>
Price by the resource tiers.
Corresponds to the JSON property priceTiers
1766 1767 1768 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1766 def price_tiers @price_tiers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1773 1774 1775 1776 1777 1778 1779 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1773 def update!(**args) @first_period = args[:first_period] if args.key?(:first_period) @last_period = args[:last_period] if args.key?(:last_period) @period_type = args[:period_type] if args.key?(:period_type) @price = args[:price] if args.key?(:price) @price_tiers = args[:price_tiers] if args.key?(:price_tiers) end |