Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource
- Inherits:
-
Object
- Object
- Google::Apis::CloudchannelV1::GoogleCloudChannelV1PriceByResource
- 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
-
#price ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price
Represents the price of the Offer.
-
#price_phases ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase>
Specifies the price by time range.
-
#resource_type ⇒ String
Resource Type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudChannelV1PriceByResource
constructor
A new instance of GoogleCloudChannelV1PriceByResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudChannelV1PriceByResource
Returns a new instance of GoogleCloudChannelV1PriceByResource.
2117 2118 2119 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#price ⇒ Google::Apis::CloudchannelV1::GoogleCloudChannelV1Price
Represents the price of the Offer.
Corresponds to the JSON property price
2105 2106 2107 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2105 def price @price end |
#price_phases ⇒ Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1PricePhase>
Specifies the price by time range.
Corresponds to the JSON property pricePhases
2110 2111 2112 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2110 def price_phases @price_phases end |
#resource_type ⇒ String
Resource Type. Example: SEAT
Corresponds to the JSON property resourceType
2115 2116 2117 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2115 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2122 2123 2124 2125 2126 |
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2122 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 |