ProductAndService

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

Bases: object

Authorization-order product or service that draws down from the subscription.

Methods

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

Attributes

amount_authorized Gets the amount_authorized of this ProductAndService.
amount_consumed Gets the amount_consumed of this ProductAndService.
amount_provisioned Gets the amount_provisioned of this ProductAndService.
service_name Gets the service_name of this ProductAndService.
sub_id Gets the sub_id of this ProductAndService.
time_end Gets the time_end of this ProductAndService.
time_start Gets the time_start of this ProductAndService.
__init__(**kwargs)

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

Parameters:
  • sub_id (str) – The value to assign to the sub_id property of this ProductAndService.
  • service_name (str) – The value to assign to the service_name property of this ProductAndService.
  • time_start (datetime) – The value to assign to the time_start property of this ProductAndService.
  • time_end (datetime) – The value to assign to the time_end property of this ProductAndService.
  • amount_authorized (float) – The value to assign to the amount_authorized property of this ProductAndService.
  • amount_provisioned (float) – The value to assign to the amount_provisioned property of this ProductAndService.
  • amount_consumed (float) – The value to assign to the amount_consumed property of this ProductAndService.
amount_authorized

Gets the amount_authorized of this ProductAndService. Amount authorized for the product or service.

Returns:The amount_authorized of this ProductAndService.
Return type:float
amount_consumed

Gets the amount_consumed of this ProductAndService. Amount consumed by the product or service.

Returns:The amount_consumed of this ProductAndService.
Return type:float
amount_provisioned

Gets the amount_provisioned of this ProductAndService. Amount provisioned for the product or service.

Returns:The amount_provisioned of this ProductAndService.
Return type:float
service_name

Gets the service_name of this ProductAndService. Name of the product or service.

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

Gets the sub_id of this ProductAndService. Subscription identifier; may be blank for non-cloud transactions.

Returns:The sub_id of this ProductAndService.
Return type:str
time_end

Gets the time_end of this ProductAndService. End date and time for the product or service.

Returns:The time_end of this ProductAndService.
Return type:datetime
time_start

Gets the time_start of this ProductAndService. Start date and time for the product or service.

Returns:The time_start of this ProductAndService.
Return type:datetime