Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaRateTier

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 tier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaRateTier

Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaRateTier.



1126
1127
1128
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1126

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

Instance Attribute Details

#contract_priceGoogle::Apis::CloudbillingV1beta::Money

Represents an amount of money with its currency type. Corresponds to the JSON property contractPrice



1101
1102
1103
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1101

def contract_price
  @contract_price
end

#effective_discount_percentGoogle::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 effectiveDiscountPercent



1110
1111
1112
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1110

def effective_discount_percent
  @effective_discount_percent
end

#list_priceGoogle::Apis::CloudbillingV1beta::Money

Represents an amount of money with its currency type. Corresponds to the JSON property listPrice



1115
1116
1117
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1115

def list_price
  @list_price
end

#start_amountGoogle::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



1124
1125
1126
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1124

def start_amount
  @start_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1131
1132
1133
1134
1135
1136
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1131

def update!(**args)
  @contract_price = args[:contract_price] if args.key?(:contract_price)
  @effective_discount_percent = args[:effective_discount_percent] if args.key?(:effective_discount_percent)
  @list_price = args[:list_price] if args.key?(:list_price)
  @start_amount = args[:start_amount] if args.key?(:start_amount)
end