Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb
Overview
Configs the prices in an available region.
Instance Attribute Summary collapse
-
#amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount
Describes the amount unit including the currency code.
-
#region_code ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig.
769 770 771 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 769 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amount ⇒ Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount
Describes the amount unit including the currency code.
Corresponds to the JSON property amount
761 762 763 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 761 def amount @amount end |
#region_code ⇒ String
Output only. 2-letter ISO region code where the product is available in. Ex. "
US".
Corresponds to the JSON property regionCode
767 768 769 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 767 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
774 775 776 777 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 774 def update!(**args) @amount = args[:amount] if args.key?(:amount) @region_code = args[:region_code] if args.key?(:region_code) end |