class Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase
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.
Attributes
Defines first period for the phase. Corresponds to the JSON property `firstPeriod` @return [Fixnum]
Defines first period for the phase. Corresponds to the JSON property `lastPeriod` @return [Fixnum]
Defines the phase period type. Corresponds to the JSON property `periodType` @return [String]
Represents the price of the Offer. Corresponds to the JSON property `price` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price]
Price by the resource tiers. Corresponds to the JSON property `priceTiers` @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceTier>]
Public Class Methods
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1763 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1768 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