BundleSku

class oci.ccd_offers.models.BundleSku(**kwargs)

Bases: object

A polymorphic bundle SKU. The quantityRule discriminator identifies how the quantity for this bundled SKU is determined. Every bundled SKU in an offer must use the same quantityRule; don’t mix FIXED_RATIO and CUSTOMER_SELECTED bundled SKUs in one offer.

Attributes:

QUANTITY_RULE_CUSTOMER_SELECTED

A constant which can be used with the quantity_rule property of a BundleSku.

QUANTITY_RULE_FIXED_RATIO

A constant which can be used with the quantity_rule property of a BundleSku.

currency_code

Gets the currency_code of this BundleSku.

list_price

Gets the list_price of this BundleSku.

quantity_rule

[Required] Gets the quantity_rule of this BundleSku.

sku

[Required] Gets the sku of this BundleSku.

sku_display_name

Gets the sku_display_name of this BundleSku.

sku_metric

Gets the sku_metric of this BundleSku.

Methods:

__init__(**kwargs)

Initializes a new BundleSku object with values from keyword arguments.

get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

QUANTITY_RULE_CUSTOMER_SELECTED = 'CUSTOMER_SELECTED'

A constant which can be used with the quantity_rule property of a BundleSku. This constant has a value of “CUSTOMER_SELECTED”

QUANTITY_RULE_FIXED_RATIO = 'FIXED_RATIO'

A constant which can be used with the quantity_rule property of a BundleSku. This constant has a value of “FIXED_RATIO”

__init__(**kwargs)

Initializes a new BundleSku object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • sku (str) – The value to assign to the sku property of this BundleSku.

  • sku_display_name (str) – The value to assign to the sku_display_name property of this BundleSku.

  • sku_metric (str) – The value to assign to the sku_metric property of this BundleSku.

  • quantity_rule (str) – The value to assign to the quantity_rule property of this BundleSku. Allowed values for this property are: “FIXED_RATIO”, “CUSTOMER_SELECTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • list_price (str) – The value to assign to the list_price property of this BundleSku.

  • currency_code (str) – The value to assign to the currency_code property of this BundleSku.

property currency_code

Gets the currency_code of this BundleSku. The currency code of listPrice associated with the product or SKU. Only set this property if the product or SKU is private. Tier pricing SKUs aren’t supported.

Returns

The currency_code of this BundleSku.

Return type

str

static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

property list_price

Gets the list_price of this BundleSku. List price of a SKU. Only set this property if the product or SKU is private. Tier pricing SKUs aren’t supported.

Returns

The list_price of this BundleSku.

Return type

str

property quantity_rule

[Required] Gets the quantity_rule of this BundleSku. Determines how CCD resolves the bundled SKU quantity. FIXED_RATIO quantities are derived from the primary quantity using ratio. CUSTOMER_SELECTED quantities are provided by the customer within the configured minimum and maximum.

Allowed values for this property are: “FIXED_RATIO”, “CUSTOMER_SELECTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The quantity_rule of this BundleSku.

Return type

str

property sku

[Required] Gets the sku of this BundleSku. The bundled SKU part number (prefaced with “B”). For example, the “E4 MEMORY” SKU will be bundled with the main “E4 OCPUs” SKU.

Returns

The sku of this BundleSku.

Return type

str

property sku_display_name

Gets the sku_display_name of this BundleSku. The SKU display name is derived by CCD. If CCD cannot derive a unique value, it uses the caller-provided value.

Returns

The sku_display_name of this BundleSku.

Return type

str

property sku_metric

Gets the sku_metric of this BundleSku. The SKU billing metric is derived by CCD. If CCD cannot derive a unique value, it uses the caller-provided value.

Returns

The sku_metric of this BundleSku.

Return type

str