UsageLedgerSummary

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

Bases: object

Revenue invoice consumption detail for a subscription.

Methods

__init__(**kwargs) Initializes a new UsageLedgerSummary object with values from keyword arguments.

Attributes

commitment_period Gets the commitment_period of this UsageLedgerSummary.
consumption_amount Gets the consumption_amount of this UsageLedgerSummary.
service_name Gets the service_name of this UsageLedgerSummary.
sub_id Gets the sub_id of this UsageLedgerSummary.
time_consumption Gets the time_consumption of this UsageLedgerSummary.
type Gets the type of this UsageLedgerSummary.
__init__(**kwargs)

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

Parameters:
  • commitment_period (str) – The value to assign to the commitment_period property of this UsageLedgerSummary.
  • time_consumption (datetime) – The value to assign to the time_consumption property of this UsageLedgerSummary.
  • sub_id (str) – The value to assign to the sub_id property of this UsageLedgerSummary.
  • service_name (str) – The value to assign to the service_name property of this UsageLedgerSummary.
  • consumption_amount (float) – The value to assign to the consumption_amount property of this UsageLedgerSummary.
  • type (str) – The value to assign to the type property of this UsageLedgerSummary.
commitment_period

Gets the commitment_period of this UsageLedgerSummary. Commitment period from the subscription details summary.

Returns:The commitment_period of this UsageLedgerSummary.
Return type:str
consumption_amount

Gets the consumption_amount of this UsageLedgerSummary. Amount consumed on the consumption date.

Returns:The consumption_amount of this UsageLedgerSummary.
Return type:float
service_name

Gets the service_name of this UsageLedgerSummary. Name of the consumed product or service.

Returns:The service_name of this UsageLedgerSummary.
Return type:str
sub_id

Gets the sub_id of this UsageLedgerSummary. Authorization-order subscription identifier.

Returns:The sub_id of this UsageLedgerSummary.
Return type:str
time_consumption

Gets the time_consumption of this UsageLedgerSummary. Revenue invoice consumption date.

Returns:The time_consumption of this UsageLedgerSummary.
Return type:datetime
type

Gets the type of this UsageLedgerSummary. Consumption category. Known values include Consumption, Commitment Expiration, and Overage.

Returns:The type of this UsageLedgerSummary.
Return type:str