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.



1141
1142
1143
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1141

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



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

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



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

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



1130
1131
1132
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1130

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



1139
1140
1141
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1139

def start_amount
  @start_amount
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1146
1147
1148
1149
1150
1151
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1146

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