Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice
- 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 latest price for a billing account SKU.
Instance Attribute Summary collapse
-
#currency_code ⇒ String
ISO-4217 currency code for the price.
-
#name ⇒ String
Resource name for the latest billing account price.
-
#price_reason ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaPriceReason
Encapsulates a price reason which contains background information about the origin of the price.
-
#rate ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaRate
Encapsulates a
Rate
price. -
#value_type ⇒ String
Type of the price.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice
constructor
A new instance of GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice
Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaBillingAccountPrice.
817 818 819 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 817 def initialize(**args) update!(**args) end |
Instance Attribute Details
#currency_code ⇒ String
ISO-4217 currency code for the price.
Corresponds to the JSON property currencyCode
793 794 795 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 793 def currency_code @currency_code end |
#name ⇒ String
Resource name for the latest billing account price.
Corresponds to the JSON property name
798 799 800 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 798 def name @name end |
#price_reason ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaPriceReason
Encapsulates a price reason which contains background information about the
origin of the price.
Corresponds to the JSON property priceReason
804 805 806 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 804 def price_reason @price_reason end |
#rate ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaRate
Encapsulates a Rate
price. Billing account SKUs with Rate
price are
offered by pricing tiers. The price have 1 or more rate pricing tiers.
Corresponds to the JSON property rate
810 811 812 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 810 def rate @rate end |
#value_type ⇒ String
Type of the price. The possible values are: ["unspecified", "rate"].
Corresponds to the JSON property valueType
815 816 817 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 815 def value_type @value_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
822 823 824 825 826 827 828 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 822 def update!(**args) @currency_code = args[:currency_code] if args.key?(:currency_code) @name = args[:name] if args.key?(:name) @price_reason = args[:price_reason] if args.key?(:price_reason) @rate = args[:rate] if args.key?(:rate) @value_type = args[:value_type] if args.key?(:value_type) end |