Class: Google::Apis::CloudbillingV1::AggregationInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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_countFixnum

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

Returns:

  • (Fixnum)


34
35
36
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 34

def aggregation_count
  @aggregation_count
end

#aggregation_intervalString

Corresponds to the JSON property aggregationInterval

Returns:

  • (String)


39
40
41
# File 'generated/google/apis/cloudbilling_v1/classes.rb', line 39

def aggregation_interval
  @aggregation_interval
end

#aggregation_levelString

Corresponds to the JSON property aggregationLevel

Returns:

  • (String)


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