MeteredPricingPlan

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

Bases: oci.marketplace_publisher.models.pricing_plan.PricingPlan

Metered pricing plan.

Attributes

NAME_PER_INSTANCE A constant which can be used with the name property of a MeteredPricingPlan.
NAME_PER_INSTANCE_MONTHLY_INCLUSIVE A constant which can be used with the name property of a MeteredPricingPlan.
NAME_PER_OCPU_LINEAR A constant which can be used with the name property of a MeteredPricingPlan.
NAME_PER_OCPU_MIN_BILLING_HRS A constant which can be used with the name property of a MeteredPricingPlan.
PLAN_TYPE_FIXED str(object=’’) -> str
PLAN_TYPE_METERED str(object=’’) -> str
extended_metadata Gets the extended_metadata of this MeteredPricingPlan.
name [Required] Gets the name of this MeteredPricingPlan.
plan_type [Required] Gets the plan_type of this PricingPlan.
rates [Required] Gets the rates of this PricingPlan.

Methods

__init__(**kwargs) Initializes a new MeteredPricingPlan 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.
NAME_PER_INSTANCE = 'PER_INSTANCE'

A constant which can be used with the name property of a MeteredPricingPlan. This constant has a value of “PER_INSTANCE”

NAME_PER_INSTANCE_MONTHLY_INCLUSIVE = 'PER_INSTANCE_MONTHLY_INCLUSIVE'

A constant which can be used with the name property of a MeteredPricingPlan. This constant has a value of “PER_INSTANCE_MONTHLY_INCLUSIVE”

NAME_PER_OCPU_LINEAR = 'PER_OCPU_LINEAR'

A constant which can be used with the name property of a MeteredPricingPlan. This constant has a value of “PER_OCPU_LINEAR”

NAME_PER_OCPU_MIN_BILLING_HRS = 'PER_OCPU_MIN_BILLING_HRS'

A constant which can be used with the name property of a MeteredPricingPlan. This constant has a value of “PER_OCPU_MIN_BILLING_HRS”

PLAN_TYPE_FIXED = 'FIXED'
PLAN_TYPE_METERED = 'METERED'
__init__(**kwargs)

Initializes a new MeteredPricingPlan object with values from keyword arguments. The default value of the plan_type attribute of this class is METERED and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • plan_type (str) – The value to assign to the plan_type property of this MeteredPricingPlan. Allowed values for this property are: “METERED”, “FIXED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • rates (list[oci.marketplace_publisher.models.PricingRate]) – The value to assign to the rates property of this MeteredPricingPlan.
  • name (str) – The value to assign to the name property of this MeteredPricingPlan. Allowed values for this property are: “PER_INSTANCE”, “PER_OCPU_MIN_BILLING_HRS”, “PER_OCPU_LINEAR”, “PER_INSTANCE_MONTHLY_INCLUSIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • extended_metadata (dict(str, str)) – The value to assign to the extended_metadata property of this MeteredPricingPlan.
extended_metadata

Gets the extended_metadata of this MeteredPricingPlan. Additional metadata key/value pairs for the metering pricing.

Returns:The extended_metadata of this MeteredPricingPlan.
Return type:dict(str, 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.

name

[Required] Gets the name of this MeteredPricingPlan. The listing’s pricing plan name.

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

Returns:The name of this MeteredPricingPlan.
Return type:str
plan_type

[Required] Gets the plan_type of this PricingPlan. The listing’s pricing plan type.

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

Returns:The plan_type of this PricingPlan.
Return type:str
rates

[Required] Gets the rates of this PricingPlan. List of pricing rates provider by publisher.

Returns:The rates of this PricingPlan.
Return type:list[oci.marketplace_publisher.models.PricingRate]