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.
-
cost
¶ Gets the cost of this InvoicelineComputedUsageSummary. Sum of Usage/Service Billing Line net Amount
Returns: The cost of this InvoicelineComputedUsageSummary. Return type: float
-
cost_rounded
¶ [Required] Gets the cost_rounded of this InvoicelineComputedUsageSummary. Computed Line Amount rounded.
Returns: The cost_rounded of this InvoicelineComputedUsageSummary. Return type: float
-
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
-
parent_product
¶ [Required] Gets the parent_product of this InvoicelineComputedUsageSummary.
Returns: The parent_product of this InvoicelineComputedUsageSummary. Return type: oci.onesubscription.models.InvoicingProduct
-
product
¶ Gets the product of this InvoicelineComputedUsageSummary.
Returns: The product of this InvoicelineComputedUsageSummary. Return type: oci.onesubscription.models.InvoicingProduct
-
quantity
¶ [Required] Gets the quantity of this InvoicelineComputedUsageSummary. Total Quantity that was used for computation
Returns: The quantity of this InvoicelineComputedUsageSummary. Return type: float
-
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
-
type
¶ [Required] Gets the type of this InvoicelineComputedUsageSummary. Usage compute type in SPM.
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
-