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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbilling_v1/classes.rb,
lib/google/apis/cloudbilling_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ AggregationInfo

Returns a new instance of AggregationInfo.



45
46
47
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 45

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)


33
34
35
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 33

def aggregation_count
  @aggregation_count
end

#aggregation_intervalString

Corresponds to the JSON property aggregationInterval

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/cloudbilling_v1/classes.rb', line 38

def aggregation_interval
  @aggregation_interval
end

#aggregation_levelString

Corresponds to the JSON property aggregationLevel

Returns:

  • (String)


43
44
45
# File 'lib/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 'lib/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