InvoicelineComputedUsageSummary

class oci.onesubscription.models.InvoicelineComputedUsageSummary(**kwargs)

Bases: object

Computed usage summary object.

Attributes:

TYPE_COMMIT

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_DELAYED_USAGE_COMMITMENT_EXP

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_DELAYED_USAGE_INVOICE_TIMING

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_DO_NOT_BILL

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_MONTHLY_MINIMUM

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_ON_ACCOUNT_CREDIT

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_OVERAGE

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_PAY_AS_YOU_GO

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_PROMOTION

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_SERVICE_CREDIT

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

TYPE_USAGE

A constant which can be used with the type property of a InvoicelineComputedUsageSummary.

cost

Gets the cost of this InvoicelineComputedUsageSummary.

cost_rounded

[Required] Gets the cost_rounded of this InvoicelineComputedUsageSummary.

net_unit_price

[Required] Gets the net_unit_price of this InvoicelineComputedUsageSummary.

parent_product

[Required] Gets the parent_product of this InvoicelineComputedUsageSummary.

product

Gets the product of this InvoicelineComputedUsageSummary.

quantity

[Required] Gets the quantity of this InvoicelineComputedUsageSummary.

time_metered_on

[Required] Gets the time_metered_on of this InvoicelineComputedUsageSummary.

type

[Required] Gets the type of this InvoicelineComputedUsageSummary.

Methods:

__init__(**kwargs)

Initializes a new InvoicelineComputedUsageSummary object with values from keyword arguments.

TYPE_COMMIT = 'COMMIT'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “COMMIT”

TYPE_DELAYED_USAGE_COMMITMENT_EXP = 'DELAYED_USAGE_COMMITMENT_EXP'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “DELAYED_USAGE_COMMITMENT_EXP”

TYPE_DELAYED_USAGE_INVOICE_TIMING = 'DELAYED_USAGE_INVOICE_TIMING'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “DELAYED_USAGE_INVOICE_TIMING”

TYPE_DO_NOT_BILL = 'DO_NOT_BILL'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “DO_NOT_BILL”

TYPE_MONTHLY_MINIMUM = 'MONTHLY_MINIMUM'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “MONTHLY_MINIMUM”

TYPE_ON_ACCOUNT_CREDIT = 'ON_ACCOUNT_CREDIT'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “ON_ACCOUNT_CREDIT”

TYPE_OVERAGE = 'OVERAGE'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “OVERAGE”

TYPE_PAY_AS_YOU_GO = 'PAY_AS_YOU_GO'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “PAY_AS_YOU_GO”

TYPE_PROMOTION = 'PROMOTION'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “PROMOTION”

TYPE_SERVICE_CREDIT = 'SERVICE_CREDIT'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “SERVICE_CREDIT”

TYPE_USAGE = 'USAGE'

A constant which can be used with the type property of a InvoicelineComputedUsageSummary. This constant has a value of “USAGE”

__init__(**kwargs)

Initializes a new InvoicelineComputedUsageSummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • parent_product (oci.onesubscription.models.InvoicingProduct) – The value to assign to the parent_product property of this InvoicelineComputedUsageSummary.

  • product (oci.onesubscription.models.InvoicingProduct) – The value to assign to the product property of this InvoicelineComputedUsageSummary.

  • quantity (float) – The value to assign to the quantity property of this InvoicelineComputedUsageSummary.

  • net_unit_price (float) – The value to assign to the net_unit_price property of this InvoicelineComputedUsageSummary.

  • time_metered_on (datetime) – The value to assign to the time_metered_on property of this InvoicelineComputedUsageSummary.

  • type (str) – The value to assign to the type property of this InvoicelineComputedUsageSummary. Allowed values for this property are: “PROMOTION”, “DO_NOT_BILL”, “USAGE”, “COMMIT”, “OVERAGE”, “PAY_AS_YOU_GO”, “MONTHLY_MINIMUM”, “DELAYED_USAGE_INVOICE_TIMING”, “DELAYED_USAGE_COMMITMENT_EXP”, “ON_ACCOUNT_CREDIT”, “SERVICE_CREDIT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • cost (float) – The value to assign to the cost property of this InvoicelineComputedUsageSummary.

  • cost_rounded (float) – The value to assign to the cost_rounded property of this InvoicelineComputedUsageSummary.

property cost

Gets the cost of this InvoicelineComputedUsageSummary. Sum of usage/service billing line net amount.

Returns

The cost of this InvoicelineComputedUsageSummary.

Return type

float

property cost_rounded

[Required] Gets the cost_rounded of this InvoicelineComputedUsageSummary. Computed rounded line amount.

Returns

The cost_rounded of this InvoicelineComputedUsageSummary.

Return type

float

property net_unit_price

[Required] Gets the net_unit_price of this InvoicelineComputedUsageSummary. Net unit price for the product in consideration, price actual.

Returns

The net_unit_price of this InvoicelineComputedUsageSummary.

Return type

float

property parent_product

[Required] Gets the parent_product of this InvoicelineComputedUsageSummary.

Returns

The parent_product of this InvoicelineComputedUsageSummary.

Return type

oci.onesubscription.models.InvoicingProduct

property product

Gets the product of this InvoicelineComputedUsageSummary.

Returns

The product of this InvoicelineComputedUsageSummary.

Return type

oci.onesubscription.models.InvoicingProduct

property quantity

[Required] Gets the quantity of this InvoicelineComputedUsageSummary. Total quantity that was used for computation.

Returns

The quantity of this InvoicelineComputedUsageSummary.

Return type

float

property time_metered_on

[Required] Gets the time_metered_on of this InvoicelineComputedUsageSummary. Metered service date.

Returns

The time_metered_on of this InvoicelineComputedUsageSummary.

Return type

datetime

property type

[Required] Gets the type of this InvoicelineComputedUsageSummary. Usage compute type in SPM (Subscription Plan Management).

Allowed values for this property are: “PROMOTION”, “DO_NOT_BILL”, “USAGE”, “COMMIT”, “OVERAGE”, “PAY_AS_YOU_GO”, “MONTHLY_MINIMUM”, “DELAYED_USAGE_INVOICE_TIMING”, “DELAYED_USAGE_COMMITMENT_EXP”, “ON_ACCOUNT_CREDIT”, “SERVICE_CREDIT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The type of this InvoicelineComputedUsageSummary.

Return type

str