Class: Google::Apis::CloudbillingV1beta::GoogleCloudBillingBillingaccountpricesV1betaMigratedPrice

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 price migrated from other SKUs.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_priceGoogle::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_skuString

Source SKU where the discount is migrated from. Corresponds to the JSON property sourceSku

Returns:

  • (String)


968
969
970
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 968

def source_sku
  @source_sku
end

#typeString

Type of the migrated price. It can have values such as 'source-discount-on- target-price'. Corresponds to the JSON property type

Returns:

  • (String)


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