class Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource

Represents price by resource type.

Attributes

price[RW]

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

price_phases[RW]

Specifies the price by time range. Corresponds to the JSON property `pricePhases` @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase>]

resource_type[RW]

Resource Type. Example: SEAT Corresponds to the JSON property `resourceType` @return [String]

Public Class Methods

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