InvoicelineComputedUsageSummary¶
- class oci.onesubscription.models.InvoicelineComputedUsageSummary(**kwargs)¶
Bases:
objectComputed usage summary object.
Attributes:
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
A constant which can be used with the type property of a InvoicelineComputedUsageSummary.
Gets the cost of this InvoicelineComputedUsageSummary.
[Required] Gets the cost_rounded of this InvoicelineComputedUsageSummary.
[Required] Gets the net_unit_price of this InvoicelineComputedUsageSummary.
[Required] Gets the parent_product of this InvoicelineComputedUsageSummary.
Gets the product of this InvoicelineComputedUsageSummary.
[Required] Gets the quantity of this InvoicelineComputedUsageSummary.
[Required] Gets the time_metered_on of this InvoicelineComputedUsageSummary.
[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
- property product¶
Gets the product of this InvoicelineComputedUsageSummary.
- Returns
The product of this InvoicelineComputedUsageSummary.
- Return type
- 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