Class: Google::Apis::CloudbillingV1beta::RateTier
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::RateTier
- 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
Pricing details for a service tier.
Instance Attribute Summary collapse
-
#price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
-
#start_amount ⇒ Float
The magnitude of usage in which the tier interval begins.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RateTier
constructor
A new instance of RateTier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RateTier
Returns a new instance of RateTier.
2566 2567 2568 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2566 def initialize(**args) update!(**args) end |
Instance Attribute Details
#price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property price
2558 2559 2560 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2558 def price @price end |
#start_amount ⇒ Float
The magnitude of usage in which the tier interval begins. Example: "From 100
GiBi the price is $1 per byte" implies start_amount
= 100
Corresponds to the JSON property startAmount
2564 2565 2566 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2564 def start_amount @start_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2571 2572 2573 2574 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 2571 def update!(**args) @price = args[:price] if args.key?(:price) @start_amount = args[:start_amount] if args.key?(:start_amount) end |