Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaAggregationInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbilling_v1beta/classes.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb,
lib/google/apis/cloudbilling_v1beta/representations.rb

Overview

Encapsulates the aggregation information such as aggregation level and interval for a price.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaAggregationInfo

Returns a new instance of GoogleCloudBillingPricesV1betaAggregationInfo.



1787
1788
1789
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1787

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#intervalString

Interval at which usage is aggregated to compute cost. Example: "MONTHLY" interval indicates that usage is aggregated every month. Corresponds to the JSON property interval

Returns:

  • (String)


1779
1780
1781
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1779

def interval
  @interval
end

#levelString

Level at which usage is aggregated to compute cost. Example: "ACCOUNT" level indicates that usage is aggregated across all projects in a single account. Corresponds to the JSON property level

Returns:

  • (String)


1785
1786
1787
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1785

def level
  @level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1792
1793
1794
1795
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1792

def update!(**args)
  @interval = args[:interval] if args.key?(:interval)
  @level = args[:level] if args.key?(:level)
end