Class: Google::Apis::CloudbillingV1::AggregationInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1::AggregationInfo
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- 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.
Constructor Details
#initialize(**args) ⇒ AggregationInfo
Returns a new instance of AggregationInfo.
45 46 47 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 45 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
33 34 35 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 33 def aggregation_count @aggregation_count end |
#aggregation_interval ⇒ String
Corresponds to the JSON property aggregationInterval
38 39 40 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 38 def aggregation_interval @aggregation_interval end |
#aggregation_level ⇒ String
Corresponds to the JSON property aggregationLevel
43 44 45 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 43 def aggregation_level @aggregation_level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
50 51 52 53 54 |
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 50 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 |