Class: Google::Apis::CloudbillingV1::PricingInfo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudbillingV1::PricingInfo
 
- Defined in:
- generated/google/apis/cloudbilling_v1/classes.rb,
 generated/google/apis/cloudbilling_v1/representations.rb,
 generated/google/apis/cloudbilling_v1/representations.rb
Overview
Represents the pricing information for a SKU at a single point of time.
Instance Attribute Summary collapse
- 
  
    
      #aggregation_info  ⇒ Google::Apis::CloudbillingV1::AggregationInfo 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Represents the aggregation level and interval for pricing of a single SKU. 
- 
  
    
      #currency_conversion_rate  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Conversion rate used for currency conversion, from USD to the currency specified in the request. 
- 
  
    
      #effective_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The timestamp from which this pricing was effective within the requested time range. 
- 
  
    
      #pricing_expression  ⇒ Google::Apis::CloudbillingV1::PricingExpression 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Expresses a mathematical pricing formula. 
- 
  
    
      #summary  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An optional human readable summary of the pricing information, has a maximum length of 256 characters. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PricingInfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PricingInfo. 
- 
  
    
      #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) ⇒ PricingInfo
Returns a new instance of PricingInfo
| 648 649 650 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 648 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#aggregation_info ⇒ Google::Apis::CloudbillingV1::AggregationInfo
Represents the aggregation level and interval for pricing of a single SKU.
Corresponds to the JSON property aggregationInfo
| 609 610 611 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 609 def aggregation_info @aggregation_info end | 
#currency_conversion_rate ⇒ Float
Conversion rate used for currency conversion, from USD to the currency
specified in the request. This includes any surcharge collected for billing
in non USD currency. If a currency is not specified in the request this
defaults to 1.0.
Example: USD * currency_conversion_rate = JPY
Corresponds to the JSON property currencyConversionRate
| 618 619 620 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 618 def currency_conversion_rate @currency_conversion_rate end | 
#effective_time ⇒ String
The timestamp from which this pricing was effective within the requested
time range. This is guaranteed to be greater than or equal to the
start_time field in the request and less than the end_time field in the
request. If a time range was not specified in the request this field will
be equivalent to a time within the last 12 hours, indicating the latest
pricing info.
Corresponds to the JSON property effectiveTime
| 628 629 630 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 628 def effective_time @effective_time end | 
#pricing_expression ⇒ Google::Apis::CloudbillingV1::PricingExpression
Expresses a mathematical pricing formula. For Example:-
usage_unit: GBy
tiered_rates:
[start_usage_amount: 20, unit_price: $10]
[start_usage_amount: 100, unit_price: $5]
The above expresses a pricing formula where the first 20GB is free, the
next 80GB is priced at $10 per GB followed by $5 per GB for additional
usage.
Corresponds to the JSON property pricingExpression
| 640 641 642 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 640 def pricing_expression @pricing_expression end | 
#summary ⇒ String
An optional human readable summary of the pricing information, has a
maximum length of 256 characters.
Corresponds to the JSON property summary
| 646 647 648 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 646 def summary @summary end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 653 654 655 656 657 658 659 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 653 def update!(**args) @aggregation_info = args[:aggregation_info] if args.key?(:aggregation_info) @currency_conversion_rate = args[:currency_conversion_rate] if args.key?(:currency_conversion_rate) @effective_time = args[:effective_time] if args.key?(:effective_time) @pricing_expression = args[:pricing_expression] if args.key?(:pricing_expression) @summary = args[:summary] if args.key?(:summary) end |