Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource

Inherits:
Object
  • Object
show all
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

Represents price by resource type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1PriceByResource

Returns a new instance of GoogleCloudChannelV1PriceByResource.



1666
1667
1668
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1666

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#priceGoogle::Apis::CloudchannelV1::GoogleCloudChannelV1Price

Represents the price of the Offer. Corresponds to the JSON property price



1654
1655
1656
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1654

def price
  @price
end

#price_phasesArray<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase>

Specifies the price by time range. Corresponds to the JSON property pricePhases



1659
1660
1661
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1659

def price_phases
  @price_phases
end

#resource_typeString

Resource Type. Example: SEAT Corresponds to the JSON property resourceType

Returns:

  • (String)


1664
1665
1666
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1664

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1671
1672
1673
1674
1675
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 1671

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