MeteredPricingPlan¶
- class oci.marketplace_publisher.models.MeteredPricingPlan(**kwargs)¶
Bases:
PricingPlanMetered pricing plan.
Attributes:
A constant which can be used with the name property of a MeteredPricingPlan.
A constant which can be used with the name property of a MeteredPricingPlan.
A constant which can be used with the name property of a MeteredPricingPlan.
A constant which can be used with the name property of a MeteredPricingPlan.
A constant which can be used with the plan_type property of a PricingPlan.
A constant which can be used with the plan_type property of a PricingPlan.
A constant which can be used with the plan_type property of a PricingPlan.
A constant which can be used with the plan_type property of a PricingPlan.
Gets the extended_metadata of this MeteredPricingPlan.
[Required] Gets the name of this MeteredPricingPlan.
[Required] Gets the plan_type of this PricingPlan.
[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'¶
A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “FIXED”
- PLAN_TYPE_HYBRID = 'HYBRID'¶
A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “HYBRID”
- PLAN_TYPE_METERED = 'METERED'¶
A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “METERED”
- PLAN_TYPE_USAGE_BASED = 'USAGE_BASED'¶
A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “USAGE_BASED”
- __init__(**kwargs)¶
Initializes a new MeteredPricingPlan object with values from keyword arguments. The default value of the
plan_typeattribute of this class isMETEREDand 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”, “USAGE_BASED”, “HYBRID”, ‘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.
- property 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.
- property 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
- property plan_type¶
[Required] Gets the plan_type of this PricingPlan. The listing’s pricing plan type.
Allowed values for this property are: “METERED”, “FIXED”, “USAGE_BASED”, “HYBRID”, ‘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
- property rates¶
[Required] Gets the rates of this PricingPlan. List of pricing rates provider by publisher.
- Returns
The rates of this PricingPlan.
- Return type