Class: Google::Apis::CloudbillingV1beta::Rate
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::Rate
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb
Overview
A SKU price consisting of tiered rates.
Instance Attribute Summary collapse
-
#tiers ⇒ Array<Google::Apis::CloudbillingV1beta::RateTier>
The service tiers.
-
#unit ⇒ String
The SKU's pricing unit.
-
#unit_count ⇒ Float
The SKU's count for the pricing unit.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rate
constructor
A new instance of Rate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Rate
Returns a new instance of Rate.
2545 2546 2547 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tiers ⇒ Array<Google::Apis::CloudbillingV1beta::RateTier>
The service tiers.
Corresponds to the JSON property tiers
2530 2531 2532 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2530 def tiers @tiers end |
#unit ⇒ String
The SKU's pricing unit. For example, if the tier price is $1 per 1000000 Bytes,
then this field will show 'By'. The start_amount
field in each tier will be
in this unit.
Corresponds to the JSON property unit
2537 2538 2539 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2537 def unit @unit end |
#unit_count ⇒ Float
The SKU's count for the pricing unit. For example, if the tier price is $1 per
1000000 Bytes, then this column will show 1000000.
Corresponds to the JSON property unitCount
2543 2544 2545 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2543 def unit_count @unit_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2550 2551 2552 2553 2554 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2550 def update!(**args) @tiers = args[:tiers] if args.key?(:tiers) @unit = args[:unit] if args.key?(:unit) @unit_count = args[:unit_count] if args.key?(:unit_count) end |