Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRate

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 a Rate price. SKUs with Rate price are offered by pricing tiers. The price have 1 or more rate pricing tiers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaRate

Returns a new instance of GoogleCloudBillingPricesV1betaRate.



1874
1875
1876
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1874

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

Instance Attribute Details

#aggregation_infoGoogle::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaAggregationInfo

Encapsulates the aggregation information such as aggregation level and interval for a price. Corresponds to the JSON property aggregationInfo



1862
1863
1864
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1862

def aggregation_info
  @aggregation_info
end

#tiersArray<Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRateTier>

All tiers associated with the Rate price. Corresponds to the JSON property tiers



1867
1868
1869
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1867

def tiers
  @tiers
end

#unit_infoGoogle::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaUnitInfo

Encapsulates the unit information for a Rate Corresponds to the JSON property unitInfo



1872
1873
1874
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1872

def unit_info
  @unit_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1879
1880
1881
1882
1883
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1879

def update!(**args)
  @aggregation_info = args[:aggregation_info] if args.key?(:aggregation_info)
  @tiers = args[:tiers] if args.key?(:tiers)
  @unit_info = args[:unit_info] if args.key?(:unit_info)
end