Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaAggregationInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaAggregationInfo
- 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
-
#interval ⇒ String
Interval at which usage is aggregated to compute cost.
-
#level ⇒ String
Level at which usage is aggregated to compute cost.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaAggregationInfo
constructor
A new instance of GoogleCloudBillingPricesV1betaAggregationInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaAggregationInfo
Returns a new instance of GoogleCloudBillingPricesV1betaAggregationInfo.
1778 1779 1780 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval ⇒ String
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
1770 1771 1772 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1770 def interval @interval end |
#level ⇒ String
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
1776 1777 1778 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1776 def level @level end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1783 1784 1785 1786 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1783 def update!(**args) @interval = args[:interval] if args.key?(:interval) @level = args[:level] if args.key?(:level) end |