SubscriptionLineItemSummary

class oci.tenant_manager_control_plane.models.SubscriptionLineItemSummary(**kwargs)

Bases: object

Summary of line items in a subscription.

Attributes

BILLING_MODEL_COMMITMENT A constant which can be used with the billing_model property of a SubscriptionLineItemSummary.
BILLING_MODEL_PAYGO A constant which can be used with the billing_model property of a SubscriptionLineItemSummary.
BILLING_MODEL_PROMOTION A constant which can be used with the billing_model property of a SubscriptionLineItemSummary.
billing_model [Required] Gets the billing_model of this SubscriptionLineItemSummary.
id [Required] Gets the id of this SubscriptionLineItemSummary.
product_code [Required] Gets the product_code of this SubscriptionLineItemSummary.
quantity [Required] Gets the quantity of this SubscriptionLineItemSummary.
time_ended [Required] Gets the time_ended of this SubscriptionLineItemSummary.
time_started [Required] Gets the time_started of this SubscriptionLineItemSummary.

Methods

__init__(**kwargs) Initializes a new SubscriptionLineItemSummary object with values from keyword arguments.
BILLING_MODEL_COMMITMENT = 'COMMITMENT'

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

BILLING_MODEL_PAYGO = 'PAYGO'

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

BILLING_MODEL_PROMOTION = 'PROMOTION'

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

__init__(**kwargs)

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

Parameters:
  • id (str) – The value to assign to the id property of this SubscriptionLineItemSummary.
  • product_code (str) – The value to assign to the product_code property of this SubscriptionLineItemSummary.
  • quantity (float) – The value to assign to the quantity property of this SubscriptionLineItemSummary.
  • billing_model (str) – The value to assign to the billing_model property of this SubscriptionLineItemSummary. Allowed values for this property are: “COMMITMENT”, “PAYGO”, “PROMOTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_started (datetime) – The value to assign to the time_started property of this SubscriptionLineItemSummary.
  • time_ended (datetime) – The value to assign to the time_ended property of this SubscriptionLineItemSummary.
billing_model

[Required] Gets the billing_model of this SubscriptionLineItemSummary. Billing model supported by the associated line item.

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

Returns:The billing_model of this SubscriptionLineItemSummary.
Return type:str
id

[Required] Gets the id of this SubscriptionLineItemSummary. Subscription line item identifier.

Returns:The id of this SubscriptionLineItemSummary.
Return type:str
product_code

[Required] Gets the product_code of this SubscriptionLineItemSummary. Product code.

Returns:The product_code of this SubscriptionLineItemSummary.
Return type:str
quantity

[Required] Gets the quantity of this SubscriptionLineItemSummary. Product number.

Returns:The quantity of this SubscriptionLineItemSummary.
Return type:float
time_ended

[Required] Gets the time_ended of this SubscriptionLineItemSummary. The time the subscription item and associated products should end. An RFC 3339 formatted date and time string.

Returns:The time_ended of this SubscriptionLineItemSummary.
Return type:datetime
time_started

[Required] Gets the time_started of this SubscriptionLineItemSummary. The time the subscription item and associated products should start. An RFC 3339 formatted date and time string.

Returns:The time_started of this SubscriptionLineItemSummary.
Return type:datetime