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.



962
963
964
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 962

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



954
955
956
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 954

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)


960
961
962
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 960

def start_amount
  @start_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



967
968
969
970
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 967

def update!(**args)
  @price = args[:price] if args.key?(:price)
  @start_amount = args[:start_amount] if args.key?(:start_amount)
end