Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaPrice
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaPrice
- 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 SKU.
Instance Attribute Summary collapse
-
#currency_code ⇒ String
ISO-4217 currency code for the price.
-
#name ⇒ String
Resource name for the latest price.
-
#rate ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRate
Encapsulates a
Rateprice. -
#value_type ⇒ String
Type of the price.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaPrice
constructor
A new instance of GoogleCloudBillingPricesV1betaPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaPrice
Returns a new instance of GoogleCloudBillingPricesV1betaPrice.
1517 1518 1519 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1517 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
1499 1500 1501 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1499 def currency_code @currency_code end |
#name ⇒ String
Resource name for the latest price.
Corresponds to the JSON property name
1504 1505 1506 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1504 def name @name end |
#rate ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRate
Encapsulates a Rate price. SKUs with Rate price are offered by pricing
tiers. The price have 1 or more rate pricing tiers.
Corresponds to the JSON property rate
1510 1511 1512 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1510 def rate @rate end |
#value_type ⇒ String
Type of the price. It can have values: ["unspecified", "rate"].
Corresponds to the JSON property valueType
1515 1516 1517 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1515 def value_type @value_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1522 1523 1524 1525 1526 1527 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1522 def update!(**args) @currency_code = args[:currency_code] if args.key?(:currency_code) @name = args[:name] if args.key?(:name) @rate = args[:rate] if args.key?(:rate) @value_type = args[:value_type] if args.key?(:value_type) end |