FixedRatioBundleSku¶
-
class
oci.ccd_offers.models.FixedRatioBundleSku(**kwargs)¶ Bases:
oci.ccd_offers.models.bundle_sku.BundleSkuA bundle SKU whose quantity is derived from the primary SKU quantity using a fixed ratio.
Attributes
QUANTITY_RULE_CUSTOMER_SELECTEDstr(object=’’) -> str QUANTITY_RULE_FIXED_RATIOstr(object=’’) -> str currency_codeGets the currency_code of this BundleSku. list_priceGets the list_price of this BundleSku. quantity_rule[Required] Gets the quantity_rule of this BundleSku. ratio[Required] Gets the ratio of this FixedRatioBundleSku. sku[Required] Gets the sku of this BundleSku. sku_display_nameGets the sku_display_name of this BundleSku. sku_metricGets the sku_metric of this BundleSku. Methods
__init__(**kwargs)Initializes a new FixedRatioBundleSku 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'¶
-
QUANTITY_RULE_FIXED_RATIO= 'FIXED_RATIO'¶
-
__init__(**kwargs)¶ Initializes a new FixedRatioBundleSku object with values from keyword arguments. The default value of the
quantity_ruleattribute of this class isFIXED_RATIOand it should not be changed. 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 FixedRatioBundleSku.
- sku_display_name (str) – The value to assign to the sku_display_name property of this FixedRatioBundleSku.
- sku_metric (str) – The value to assign to the sku_metric property of this FixedRatioBundleSku.
- quantity_rule (str) – The value to assign to the quantity_rule property of this FixedRatioBundleSku. Allowed values for this property are: “FIXED_RATIO”, “CUSTOMER_SELECTED”
- list_price (str) – The value to assign to the list_price property of this FixedRatioBundleSku.
- currency_code (str) – The value to assign to the currency_code property of this FixedRatioBundleSku.
- ratio (str) – The value to assign to the ratio property of this FixedRatioBundleSku.
-
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.
-
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
-
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
-
ratio¶ [Required] Gets the ratio of this FixedRatioBundleSku. The primary-to-bundled SKU quantity ratio.
Returns: The ratio of this FixedRatioBundleSku. Return type: str
-
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
-
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
-
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
-