PricingModel¶
-
class
oci.marketplace.models.
PricingModel
(**kwargs)¶ Bases:
object
The model for pricing.
Attributes
CURRENCY_USD
A constant which can be used with the currency property of a PricingModel. PAY_GO_STRATEGY_PER_INSTANCE
A constant which can be used with the pay_go_strategy property of a PricingModel. PAY_GO_STRATEGY_PER_INSTANCE_MONTHLY_INCLUSIVE
A constant which can be used with the pay_go_strategy property of a PricingModel. PAY_GO_STRATEGY_PER_OCPU_LINEAR
A constant which can be used with the pay_go_strategy property of a PricingModel. PAY_GO_STRATEGY_PER_OCPU_MIN_BILLING
A constant which can be used with the pay_go_strategy property of a PricingModel. TYPE_BYOL
A constant which can be used with the type property of a PricingModel. TYPE_FREE
A constant which can be used with the type property of a PricingModel. TYPE_PAYGO
A constant which can be used with the type property of a PricingModel. currency
Gets the currency of this PricingModel. pay_go_strategy
Gets the pay_go_strategy of this PricingModel. rate
Gets the rate of this PricingModel. type
[Required] Gets the type of this PricingModel. Methods
__init__
(**kwargs)Initializes a new PricingModel object with values from keyword arguments. -
CURRENCY_USD
= 'USD'¶ A constant which can be used with the currency property of a PricingModel. This constant has a value of “USD”
-
PAY_GO_STRATEGY_PER_INSTANCE
= 'PER_INSTANCE'¶ A constant which can be used with the pay_go_strategy property of a PricingModel. This constant has a value of “PER_INSTANCE”
-
PAY_GO_STRATEGY_PER_INSTANCE_MONTHLY_INCLUSIVE
= 'PER_INSTANCE_MONTHLY_INCLUSIVE'¶ A constant which can be used with the pay_go_strategy property of a PricingModel. This constant has a value of “PER_INSTANCE_MONTHLY_INCLUSIVE”
-
PAY_GO_STRATEGY_PER_OCPU_LINEAR
= 'PER_OCPU_LINEAR'¶ A constant which can be used with the pay_go_strategy property of a PricingModel. This constant has a value of “PER_OCPU_LINEAR”
-
PAY_GO_STRATEGY_PER_OCPU_MIN_BILLING
= 'PER_OCPU_MIN_BILLING'¶ A constant which can be used with the pay_go_strategy property of a PricingModel. This constant has a value of “PER_OCPU_MIN_BILLING”
-
TYPE_BYOL
= 'BYOL'¶ A constant which can be used with the type property of a PricingModel. This constant has a value of “BYOL”
-
TYPE_FREE
= 'FREE'¶ A constant which can be used with the type property of a PricingModel. This constant has a value of “FREE”
-
TYPE_PAYGO
= 'PAYGO'¶ A constant which can be used with the type property of a PricingModel. This constant has a value of “PAYGO”
-
__init__
(**kwargs)¶ Initializes a new PricingModel object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - type (str) – The value to assign to the type property of this PricingModel. Allowed values for this property are: “FREE”, “BYOL”, “PAYGO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- pay_go_strategy (str) – The value to assign to the pay_go_strategy property of this PricingModel. Allowed values for this property are: “PER_OCPU_LINEAR”, “PER_OCPU_MIN_BILLING”, “PER_INSTANCE”, “PER_INSTANCE_MONTHLY_INCLUSIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- currency (str) – The value to assign to the currency property of this PricingModel. Allowed values for this property are: “USD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- rate (float) – The value to assign to the rate property of this PricingModel.
-
currency
¶ Gets the currency of this PricingModel. The currency of the pricing model.
Allowed values for this property are: “USD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The currency of this PricingModel. Return type: str
-
pay_go_strategy
¶ Gets the pay_go_strategy of this PricingModel. The type of pricing for a PAYGO model, eg PER_OCPU_LINEAR, PER_OCPU_MIN_BILLING, PER_INSTANCE. Null if type is not PAYGO.
Allowed values for this property are: “PER_OCPU_LINEAR”, “PER_OCPU_MIN_BILLING”, “PER_INSTANCE”, “PER_INSTANCE_MONTHLY_INCLUSIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The pay_go_strategy of this PricingModel. Return type: str
-
rate
¶ Gets the rate of this PricingModel. The pricing rate.
Returns: The rate of this PricingModel. Return type: float
-
type
¶ [Required] Gets the type of this PricingModel. The type of the pricing model.
Allowed values for this property are: “FREE”, “BYOL”, “PAYGO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The type of this PricingModel. Return type: str
-