Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
- 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 price migrated from other SKUs.
Instance Attribute Summary collapse
-
#source_discount_on_target_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice
Encapsulates a type of MigratedPrice where the source SKU floating discount is applied on the target SKU's default price.
-
#source_sku ⇒ String
Source SKU where the discount is migrated from.
-
#type ⇒ String
Type of the migrated price.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
constructor
A new instance of GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice
Returns a new instance of GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice.
976 977 978 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 976 def initialize(**args) update!(**args) end |
Instance Attribute Details
#source_discount_on_target_price ⇒ Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaSourceDiscountOnTargetPrice
Encapsulates a type of MigratedPrice where the source SKU floating discount is
applied on the target SKU's default price.
Corresponds to the JSON property sourceDiscountOnTargetPrice
963 964 965 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 963 def source_discount_on_target_price @source_discount_on_target_price end |
#source_sku ⇒ String
Source SKU where the discount is migrated from.
Corresponds to the JSON property sourceSku
968 969 970 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 968 def source_sku @source_sku end |
#type ⇒ String
Type of the migrated price. It can have values such as 'source-discount-on-
target-price'.
Corresponds to the JSON property type
974 975 976 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 974 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
981 982 983 984 985 |
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 981 def update!(**args) @source_discount_on_target_price = args[:source_discount_on_target_price] if args.key?(:source_discount_on_target_price) @source_sku = args[:source_sku] if args.key?(:source_sku) @type = args[:type] if args.key?(:type) end |