PricingPlan¶
-
class
oci.marketplace_publisher.models.PricingPlan(**kwargs)¶ Bases:
objectA pricing plan provided by the Publisher.
Attributes
PLAN_TYPE_FIXEDA constant which can be used with the plan_type property of a PricingPlan. PLAN_TYPE_METEREDA constant which can be used with the plan_type property of a PricingPlan. plan_type[Required] Gets the plan_type of this PricingPlan. rates[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_METERED= 'METERED'¶ A constant which can be used with the plan_type property of a PricingPlan. This constant has a value of “METERED”
-
__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”, ‘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.
-
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]
-