Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRateTier
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingPricesV1betaRateTier
- 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 tier.
Instance Attribute Summary collapse
-
#list_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
-
#start_amount ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaRateTier
constructor
A new instance of GoogleCloudBillingPricesV1betaRateTier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingPricesV1betaRateTier
Returns a new instance of GoogleCloudBillingPricesV1betaRateTier.
1887 1888 1889 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1887 def initialize(**args) update!(**args) end |
Instance Attribute Details
#list_price ⇒ Google::Apis::CloudbillingV1beta::Money
Represents an amount of money with its currency type.
Corresponds to the JSON property listPrice
1876 1877 1878 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1876 def list_price @list_price end |
#start_amount ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5. Clients may convert values
into language-native decimal formats, such as Java's BigDecimal or Python's
decimal.Decimal. [BigDecimal]: https://docs.oracle.com/en/java/javase/11/docs/
api/java.base/java/math/BigDecimal.html [decimal.Decimal]: https://docs.python.
org/3/library/decimal.html
Corresponds to the JSON property startAmount
1885 1886 1887 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1885 def start_amount @start_amount end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1892 1893 1894 1895 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1892 def update!(**args) @list_price = args[:list_price] if args.key?(:list_price) @start_amount = args[:start_amount] if args.key?(:start_amount) end |