BillingDetails¶
-
class
oci.self.models.BillingDetails(**kwargs)¶ Bases:
objectSku details for billing subscription.
Attributes
METRIC_TYPE_CORE_HOURSA constant which can be used with the metric_type property of a BillingDetails. METRIC_TYPE_INSTANCE_HOURSA constant which can be used with the metric_type property of a BillingDetails. METRIC_TYPE_OCPU_HOURSA constant which can be used with the metric_type property of a BillingDetails. has_gov_skuGets the has_gov_sku of this BillingDetails. meters[Required] Gets the meters of this BillingDetails. metric_type[Required] Gets the metric_type of this BillingDetails. rate_allocation[Required] Gets the rate_allocation of this BillingDetails. sku[Required] Gets the sku of this BillingDetails. Methods
__init__(**kwargs)Initializes a new BillingDetails object with values from keyword arguments. -
METRIC_TYPE_CORE_HOURS= 'CORE_HOURS'¶ A constant which can be used with the metric_type property of a BillingDetails. This constant has a value of “CORE_HOURS”
-
METRIC_TYPE_INSTANCE_HOURS= 'INSTANCE_HOURS'¶ A constant which can be used with the metric_type property of a BillingDetails. This constant has a value of “INSTANCE_HOURS”
-
METRIC_TYPE_OCPU_HOURS= 'OCPU_HOURS'¶ A constant which can be used with the metric_type property of a BillingDetails. This constant has a value of “OCPU_HOURS”
-
__init__(**kwargs)¶ Initializes a new BillingDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - sku (str) – The value to assign to the sku property of this BillingDetails.
- metric_type (str) – The value to assign to the metric_type property of this BillingDetails. Allowed values for this property are: “OCPU_HOURS”, “INSTANCE_HOURS”, “CORE_HOURS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- rate_allocation (float) – The value to assign to the rate_allocation property of this BillingDetails.
- has_gov_sku (bool) – The value to assign to the has_gov_sku property of this BillingDetails.
- meters (list[oci.self.models.Meter]) – The value to assign to the meters property of this BillingDetails.
-
has_gov_sku¶ Gets the has_gov_sku of this BillingDetails. Whether this sku is assign to gov product.
Returns: The has_gov_sku of this BillingDetails. Return type: bool
-
meters¶ [Required] Gets the meters of this BillingDetails. The meters associated with sku.
Returns: The meters of this BillingDetails. Return type: list[oci.self.models.Meter]
-
metric_type¶ [Required] Gets the metric_type of this BillingDetails. The part’s metric.
Allowed values for this property are: “OCPU_HOURS”, “INSTANCE_HOURS”, “CORE_HOURS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The metric_type of this BillingDetails. Return type: str
-
rate_allocation¶ [Required] Gets the rate_allocation of this BillingDetails. Tha rate of this sku meter.
Returns: The rate_allocation of this BillingDetails. Return type: float
-
sku¶ [Required] Gets the sku of this BillingDetails. Sku for service.
Returns: The sku of this BillingDetails. Return type: str
-