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.
2522 2523 2524 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2522 def initialize(**args) update!(**args) end |
Instance Attribute Details
#tiers ⇒ Array<Google::Apis::CloudbillingV1beta::RateTier>
The service tiers.
Corresponds to the JSON property tiers
2507 2508 2509 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2507 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
2514 2515 2516 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2514 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
2520 2521 2522 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2520 def unit_count @unit_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2527 2528 2529 2530 2531 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2527 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 |