class Google::Apis::CloudbillingV1::TierRate

The price rate indicating starting usage and its corresponding price.

Attributes

start_usage_amount[RW]

Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units. Corresponds to the JSON property `startUsageAmount` @return [Float]

unit_price[RW]

Represents an amount of money with its currency type. Corresponds to the JSON property `unitPrice` @return [Google::Apis::CloudbillingV1::Money]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbilling_v1/classes.rb, line 990
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbilling_v1/classes.rb, line 995
def update!(**args)
  @start_usage_amount = args[:start_usage_amount] if args.key?(:start_usage_amount)
  @unit_price = args[:unit_price] if args.key?(:unit_price)
end