Class: Google::Apis::CloudbillingV1beta::RateTier

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

Instance Method Summary collapse

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

#priceGoogle::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_amountFloat

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

Returns:

  • (Float)


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