Billing V1 API - Class Google::Cloud::Billing::V1::PricingExpression::TierRate (v0.15.0)

Reference documentation and code samples for the Billing V1 API class Google::Cloud::Billing::V1::PricingExpression::TierRate.

The price rate indicating starting usage and its corresponding price.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#start_usage_amount

def start_usage_amount() -> ::Float
Returns
  • (::Float) — 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.

#start_usage_amount=

def start_usage_amount=(value) -> ::Float
Parameter
  • value (::Float) — 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.
Returns
  • (::Float) — 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.

#unit_price

def unit_price() -> ::Google::Type::Money
Returns
  • (::Google::Type::Money) — The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.

#unit_price=

def unit_price=(value) -> ::Google::Type::Money
Parameter
  • value (::Google::Type::Money) — The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
Returns
  • (::Google::Type::Money) — The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.