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

first_period[RW]

Defines first period for the phase. Corresponds to the JSON property `firstPeriod` @return [Fixnum]

last_period[RW]

Defines first period for the phase. Corresponds to the JSON property `lastPeriod` @return [Fixnum]

period_type[RW]

Defines the phase period type. Corresponds to the JSON property `periodType` @return [String]

price[RW]

Represents the price of the Offer. Corresponds to the JSON property `price` @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price]

price_tiers[RW]

Price by the resource tiers. Corresponds to the JSON property `priceTiers` @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceTier>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1763
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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