Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice
- 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 type of MigratedPrice where the source SKU floating discount is applied on the target SKU's default price.
Instance Attribute Summary collapse
-
#migrated_discount_percent ⇒ Google::Apis::CloudbillingV1beta::Decimal
A representation of a decimal value, such as 2.5.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice
constructor
A new instance of GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice
Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice.
1153 1154 1155 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#migrated_discount_percent ⇒ 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 migratedDiscountPercent
1151 1152 1153 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1151 def migrated_discount_percent @migrated_discount_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1158 def update!(**args) @migrated_discount_percent = args[:migrated_discount_percent] if args.key?(:migrated_discount_percent) end |