SecondarySkus¶
- class oci.ccd_offers.models.SecondarySkus(**kwargs)¶
Bases:
objectA secondary SKU associated with a CCD commitment. Its quantity behavior is defined by the corresponding bundled SKU on the CCD offer.
Methods:
__init__(**kwargs)Initializes a new SecondarySkus object with values from keyword arguments.
Attributes:
Gets the quantity of this SecondarySkus.
[Required] Gets the sku of this SecondarySkus.
[Required] Gets the sku_display_name of this SecondarySkus.
Gets the sku_metric of this SecondarySkus.
- __init__(**kwargs)¶
Initializes a new SecondarySkus object with values from keyword arguments. 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 SecondarySkus.
sku_display_name (str) – The value to assign to the sku_display_name property of this SecondarySkus.
sku_metric (str) – The value to assign to the sku_metric property of this SecondarySkus.
quantity (int) – The value to assign to the quantity property of this SecondarySkus.
- property quantity¶
Gets the quantity of this SecondarySkus. The resolved hourly commitment quantity for this secondary SKU. In create or update requests, this property is required when the corresponding offer component uses CUSTOMER_SELECTED, and the value must be within the offer component’s minimum and maximum. For FLEX offers with CUSTOMER_SELECTED, this quantity must equal the offer component’s minQuantity and, if defined, maxQuantity. For FIXED_RATIO, this property may be omitted because CCD derives it from the primary quantity and the offer-defined ratio. If an existing client supplies a quantity for FIXED_RATIO, the offer-defined ratio is authoritative.
- Returns
The quantity of this SecondarySkus.
- Return type
int
- property sku¶
[Required] Gets the sku of this SecondarySkus. The secondary SKU part number (prefaced with “B”). For example, the “E4 MEMORY” SKU will be the secondary SKU with the main “E4 OCPUs” SKU. Must also be the same as CcdOffers’s bundleSkus sku value.
- Returns
The sku of this SecondarySkus.
- Return type
str
- property sku_display_name¶
[Required] Gets the sku_display_name of this SecondarySkus. The canonical SKU display name derived from the associated offer. This property remains accepted in create and update requests for compatibility, but CCD uses the offer-derived value. Avoid entering confidential information.
- Returns
The sku_display_name of this SecondarySkus.
- Return type
str
- property sku_metric¶
Gets the sku_metric of this SecondarySkus. The canonical billing metric derived from the associated offer. This property remains accepted in create and update requests for compatibility, but CCD uses the offer-derived value.
- Returns
The sku_metric of this SecondarySkus.
- Return type
str