class Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceTier

Defines price at resource tier level. For example, an offer with following definition : * Tier 1: Provide 25% discount for all seats between 1 and 25. * Tier 2: Provide 10% discount for all seats between 26 and 100. * Tier 3: Provide flat 15% discount for all seats above 100. Each of these tiers is represented as a PriceTier.

Attributes

first_resource[RW]

First resource for which the tier price applies. Corresponds to the JSON property `firstResource` @return [Fixnum]

last_resource[RW]

Last resource for which the tier price applies. Corresponds to the JSON property `lastResource` @return [Fixnum]

price[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudchannel_v1/classes.rb, line 1800
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 1805
def update!(**args)
  @first_resource = args[:first_resource] if args.key?(:first_resource)
  @last_resource = args[:last_resource] if args.key?(:last_resource)
  @price = args[:price] if args.key?(:price)
end