Class: Google::Apis::CloudbillingV1::TierRate
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudbillingV1::TierRate
 
- Defined in:
- generated/google/apis/cloudbilling_v1/classes.rb,
 generated/google/apis/cloudbilling_v1/representations.rb,
 generated/google/apis/cloudbilling_v1/representations.rb
Overview
The price rate indicating starting usage and its corresponding price.
Instance Attribute Summary collapse
- 
  
    
      #start_usage_amount  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Usage is priced at this rate only after this amount. 
- 
  
    
      #unit_price  ⇒ Google::Apis::CloudbillingV1::Money 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents an amount of money with its currency type. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TierRate 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TierRate. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ TierRate
Returns a new instance of TierRate
| 917 918 919 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 917 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#start_usage_amount ⇒ 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.
Corresponds to the JSON property startUsageAmount
| 910 911 912 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 910 def start_usage_amount @start_usage_amount end | 
#unit_price ⇒ Google::Apis::CloudbillingV1::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property unitPrice
| 915 916 917 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 915 def unit_price @unit_price end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 922 923 924 925 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 922 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 |