PricingPlan¶
- class oci.marketplace_publisher.models.PricingPlan(**kwargs)¶
Bases:
objectA pricing plan provided by the Publisher.
Attributes:
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.
[Required] Gets the plan_type of this PricingPlan.
[Required] Gets the rates of this PricingPlan.
Methods:
__init__(**kwargs)Initializes a new PricingPlan 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.
- 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 PricingPlan object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 PricingPlan. 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 PricingPlan.
- 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 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