ListingPart

class oci.marketplace_publisher.models.ListingPart(**kwargs)

Bases: object

A listing SKUs and meter information attached by marketplace admin.

Attributes

METRIC_TYPE_CORE_HOURS A constant which can be used with the metric_type property of a ListingPart.
METRIC_TYPE_INSTANCE_HOURS A constant which can be used with the metric_type property of a ListingPart.
METRIC_TYPE_OCPU_HOURS A constant which can be used with the metric_type property of a ListingPart.
has_gov_sku [Required] Gets the has_gov_sku of this ListingPart.
meters [Required] Gets the meters of this ListingPart.
metric_type [Required] Gets the metric_type of this ListingPart.
rate_allocation [Required] Gets the rate_allocation of this ListingPart.
sku [Required] Gets the sku of this ListingPart.

Methods

__init__(**kwargs) Initializes a new ListingPart object with values from keyword arguments.
METRIC_TYPE_CORE_HOURS = 'CORE_HOURS'

A constant which can be used with the metric_type property of a ListingPart. This constant has a value of “CORE_HOURS”

METRIC_TYPE_INSTANCE_HOURS = 'INSTANCE_HOURS'

A constant which can be used with the metric_type property of a ListingPart. This constant has a value of “INSTANCE_HOURS”

METRIC_TYPE_OCPU_HOURS = 'OCPU_HOURS'

A constant which can be used with the metric_type property of a ListingPart. This constant has a value of “OCPU_HOURS”

__init__(**kwargs)

Initializes a new ListingPart 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 ListingPart.
  • metric_type (str) – The value to assign to the metric_type property of this ListingPart. Allowed values for this property are: “OCPU_HOURS”, “INSTANCE_HOURS”, “CORE_HOURS”
  • rate_allocation (float) – The value to assign to the rate_allocation property of this ListingPart.
  • has_gov_sku (bool) – The value to assign to the has_gov_sku property of this ListingPart.
  • meters (list[oci.marketplace_publisher.models.ListingMeter]) – The value to assign to the meters property of this ListingPart.
has_gov_sku

[Required] Gets the has_gov_sku of this ListingPart. Identifies whether part has Gov SKU.

Returns:The has_gov_sku of this ListingPart.
Return type:bool
meters

[Required] Gets the meters of this ListingPart. List of meters associated with the part.

Returns:The meters of this ListingPart.
Return type:list[oci.marketplace_publisher.models.ListingMeter]
metric_type

[Required] Gets the metric_type of this ListingPart. The part’s metric.

Allowed values for this property are: “OCPU_HOURS”, “INSTANCE_HOURS”, “CORE_HOURS”

Returns:The metric_type of this ListingPart.
Return type:str
rate_allocation

[Required] Gets the rate_allocation of this ListingPart. rate allocation, these are calculated based on rate information at listing revision.

Returns:The rate_allocation of this ListingPart.
Return type:float
sku

[Required] Gets the sku of this ListingPart. The SKU/part name.

Returns:The sku of this ListingPart.
Return type:str