BillingDetails

class oci.self.models.BillingDetails(**kwargs)

Bases: object

Billing detail entry associated with a subscription.

Attributes

BILLING_MODEL_FLAT_RATE A constant which can be used with the billing_model property of a BillingDetails.
BILLING_MODEL_USAGE_BASED A constant which can be used with the billing_model property of a BillingDetails.
METRIC_TYPE_CORE_HOURS A constant which can be used with the metric_type property of a BillingDetails.
METRIC_TYPE_EACH A constant which can be used with the metric_type property of a BillingDetails.
METRIC_TYPE_INSTANCE_HOURS A constant which can be used with the metric_type property of a BillingDetails.
METRIC_TYPE_OCPU_HOURS A constant which can be used with the metric_type property of a BillingDetails.
billing_model [Required] Gets the billing_model of this BillingDetails.
has_gov_sku Gets 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.
pricing_plan_key [Required] Gets the pricing_plan_key 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.
BILLING_MODEL_FLAT_RATE = 'FLAT_RATE'

A constant which can be used with the billing_model property of a BillingDetails. This constant has a value of “FLAT_RATE”

BILLING_MODEL_USAGE_BASED = 'USAGE_BASED'

A constant which can be used with the billing_model property of a BillingDetails. This constant has a value of “USAGE_BASED”

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_EACH = 'EACH'

A constant which can be used with the metric_type property of a BillingDetails. This constant has a value of “EACH”

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:
  • pricing_plan_key (str) – The value to assign to the pricing_plan_key property of this BillingDetails.
  • billing_model (str) – The value to assign to the billing_model property of this BillingDetails. Allowed values for this property are: “FLAT_RATE”, “USAGE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • 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”, “EACH”, ‘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.
billing_model

[Required] Gets the billing_model of this BillingDetails. The billing model this billing detail applies to.

Allowed values for this property are: “FLAT_RATE”, “USAGE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The billing_model of this BillingDetails.
Return type:str
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”, “EACH”, ‘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
pricing_plan_key

[Required] Gets the pricing_plan_key of this BillingDetails. Unique key used to map this SKU to the pricing plan.

Returns:The pricing_plan_key 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