Class: Google::Apis::CloudbillingV1::AggregationInfo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudbillingV1::AggregationInfo
 
- 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 aggregation level and interval for pricing of a single SKU.
Instance Attribute Summary collapse
- 
  
    
      #aggregation_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The number of intervals to aggregate over. 
- 
  
    
      #aggregation_interval  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property aggregationInterval.
- 
  
    
      #aggregation_level  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property aggregationLevel.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AggregationInfo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AggregationInfo. 
- 
  
    
      #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) ⇒ AggregationInfo
Returns a new instance of AggregationInfo
| 46 47 48 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 46 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#aggregation_count ⇒ Fixnum
The number of intervals to aggregate over.
Example: If aggregation_level is "DAILY" and aggregation_count is 14,
aggregation will be over 14 days.
Corresponds to the JSON property aggregationCount
| 34 35 36 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 34 def aggregation_count @aggregation_count end | 
#aggregation_interval ⇒ String
Corresponds to the JSON property aggregationInterval
| 39 40 41 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 39 def aggregation_interval @aggregation_interval end | 
#aggregation_level ⇒ String
Corresponds to the JSON property aggregationLevel
| 44 45 46 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 44 def aggregation_level @aggregation_level end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 51 52 53 54 55 | # File 'generated/google/apis/cloudbilling_v1/classes.rb', line 51 def update!(**args) @aggregation_count = args[:aggregation_count] if args.key?(:aggregation_count) @aggregation_interval = args[:aggregation_interval] if args.key?(:aggregation_interval) @aggregation_level = args[:aggregation_level] if args.key?(:aggregation_level) end |