ComputedUsage

class oci.osub_usage.models.ComputedUsage(**kwargs)

Bases: object

Computed Usage Summary object

Attributes

TYPE_COMMIT A constant which can be used with the type property of a ComputedUsage.
TYPE_COMMITMENT_EXPIRATION A constant which can be used with the type property of a ComputedUsage.
TYPE_DELAYED_USAGE_COMMITMENT_EXP A constant which can be used with the type property of a ComputedUsage.
TYPE_DELAYED_USAGE_INVOICE_TIMING A constant which can be used with the type property of a ComputedUsage.
TYPE_DELAYED_USAGE_POST_TERMINATION A constant which can be used with the type property of a ComputedUsage.
TYPE_DONOT_BILL_USAGE_POST_TERMINATION A constant which can be used with the type property of a ComputedUsage.
TYPE_DO_NOT_BILL A constant which can be used with the type property of a ComputedUsage.
TYPE_FUNDED_ALLOCATION A constant which can be used with the type property of a ComputedUsage.
TYPE_MONTHLY_MINIMUM A constant which can be used with the type property of a ComputedUsage.
TYPE_ON_ACCOUNT_CREDIT A constant which can be used with the type property of a ComputedUsage.
TYPE_OVERAGE A constant which can be used with the type property of a ComputedUsage.
TYPE_PAY_AS_YOU_GO A constant which can be used with the type property of a ComputedUsage.
TYPE_PROMOTION A constant which can be used with the type property of a ComputedUsage.
TYPE_SERVICE_CREDIT A constant which can be used with the type property of a ComputedUsage.
TYPE_USAGE A constant which can be used with the type property of a ComputedUsage.
commitment_service_id Gets the commitment_service_id of this ComputedUsage.
compute_source Gets the compute_source of this ComputedUsage.
cost Gets the cost of this ComputedUsage.
cost_rounded Gets the cost_rounded of this ComputedUsage.
currency_code Gets the currency_code of this ComputedUsage.
data_center Gets the data_center of this ComputedUsage.
id [Required] Gets the id of this ComputedUsage.
is_invoiced Gets the is_invoiced of this ComputedUsage.
mqs_message_id Gets the mqs_message_id of this ComputedUsage.
net_unit_price Gets the net_unit_price of this ComputedUsage.
original_usage_number Gets the original_usage_number of this ComputedUsage.
parent_product Gets the parent_product of this ComputedUsage.
parent_subscribed_service_id Gets the parent_subscribed_service_id of this ComputedUsage.
plan_number Gets the plan_number of this ComputedUsage.
product Gets the product of this ComputedUsage.
quantity Gets the quantity of this ComputedUsage.
rate_card_id Gets the rate_card_id of this ComputedUsage.
rate_card_tierd_id Gets the rate_card_tierd_id of this ComputedUsage.
time_created Gets the time_created of this ComputedUsage.
time_metered_on Gets the time_metered_on of this ComputedUsage.
time_of_arrival Gets the time_of_arrival of this ComputedUsage.
time_updated Gets the time_updated of this ComputedUsage.
type Gets the type of this ComputedUsage.
unit_of_measure Gets the unit_of_measure of this ComputedUsage.
usage_number Gets the usage_number of this ComputedUsage.

Methods

__init__(**kwargs) Initializes a new ComputedUsage object with values from keyword arguments.
TYPE_COMMIT = 'COMMIT'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “COMMIT”

TYPE_COMMITMENT_EXPIRATION = 'COMMITMENT_EXPIRATION'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “COMMITMENT_EXPIRATION”

TYPE_DELAYED_USAGE_COMMITMENT_EXP = 'DELAYED_USAGE_COMMITMENT_EXP'

A constant which can be used with the type property of a ComputedUsage. 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 ComputedUsage. This constant has a value of “DELAYED_USAGE_INVOICE_TIMING”

TYPE_DELAYED_USAGE_POST_TERMINATION = 'DELAYED_USAGE_POST_TERMINATION'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “DELAYED_USAGE_POST_TERMINATION”

TYPE_DONOT_BILL_USAGE_POST_TERMINATION = 'DONOT_BILL_USAGE_POST_TERMINATION'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “DONOT_BILL_USAGE_POST_TERMINATION”

TYPE_DO_NOT_BILL = 'DO_NOT_BILL'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “DO_NOT_BILL”

TYPE_FUNDED_ALLOCATION = 'FUNDED_ALLOCATION'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “FUNDED_ALLOCATION”

TYPE_MONTHLY_MINIMUM = 'MONTHLY_MINIMUM'

A constant which can be used with the type property of a ComputedUsage. 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 ComputedUsage. This constant has a value of “ON_ACCOUNT_CREDIT”

TYPE_OVERAGE = 'OVERAGE'

A constant which can be used with the type property of a ComputedUsage. 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 ComputedUsage. 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 ComputedUsage. This constant has a value of “PROMOTION”

TYPE_SERVICE_CREDIT = 'SERVICE_CREDIT'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “SERVICE_CREDIT”

TYPE_USAGE = 'USAGE'

A constant which can be used with the type property of a ComputedUsage. This constant has a value of “USAGE”

__init__(**kwargs)

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

Parameters:
  • time_created (datetime) – The value to assign to the time_created property of this ComputedUsage.
  • time_updated (datetime) – The value to assign to the time_updated property of this ComputedUsage.
  • parent_subscribed_service_id (str) – The value to assign to the parent_subscribed_service_id property of this ComputedUsage.
  • parent_product (oci.osub_usage.models.Product) – The value to assign to the parent_product property of this ComputedUsage.
  • plan_number (str) – The value to assign to the plan_number property of this ComputedUsage.
  • currency_code (str) – The value to assign to the currency_code property of this ComputedUsage.
  • rate_card_tierd_id (str) – The value to assign to the rate_card_tierd_id property of this ComputedUsage.
  • rate_card_id (str) – The value to assign to the rate_card_id property of this ComputedUsage.
  • compute_source (str) – The value to assign to the compute_source property of this ComputedUsage.
  • data_center (str) – The value to assign to the data_center property of this ComputedUsage.
  • mqs_message_id (str) – The value to assign to the mqs_message_id property of this ComputedUsage.
  • id (str) – The value to assign to the id property of this ComputedUsage.
  • quantity (str) – The value to assign to the quantity property of this ComputedUsage.
  • usage_number (str) – The value to assign to the usage_number property of this ComputedUsage.
  • original_usage_number (str) – The value to assign to the original_usage_number property of this ComputedUsage.
  • commitment_service_id (str) – The value to assign to the commitment_service_id property of this ComputedUsage.
  • is_invoiced (bool) – The value to assign to the is_invoiced property of this ComputedUsage.
  • type (str) – The value to assign to the type property of this ComputedUsage. 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”, “COMMITMENT_EXPIRATION”, “FUNDED_ALLOCATION”, “DONOT_BILL_USAGE_POST_TERMINATION”, “DELAYED_USAGE_POST_TERMINATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_of_arrival (datetime) – The value to assign to the time_of_arrival property of this ComputedUsage.
  • time_metered_on (datetime) – The value to assign to the time_metered_on property of this ComputedUsage.
  • net_unit_price (str) – The value to assign to the net_unit_price property of this ComputedUsage.
  • cost_rounded (str) – The value to assign to the cost_rounded property of this ComputedUsage.
  • cost (str) – The value to assign to the cost property of this ComputedUsage.
  • product (oci.osub_usage.models.Product) – The value to assign to the product property of this ComputedUsage.
  • unit_of_measure (str) – The value to assign to the unit_of_measure property of this ComputedUsage.
commitment_service_id

Gets the commitment_service_id of this ComputedUsage. Subscribed service commitmentId.

Returns:The commitment_service_id of this ComputedUsage.
Return type:str
compute_source

Gets the compute_source of this ComputedUsage. SPM Internal compute records source .

Returns:The compute_source of this ComputedUsage.
Return type:str
cost

Gets the cost of this ComputedUsage. Computed Line Amount not rounded

Returns:The cost of this ComputedUsage.
Return type:str
cost_rounded

Gets the cost_rounded of this ComputedUsage. Computed Line Amount rounded.

Returns:The cost_rounded of this ComputedUsage.
Return type:str
currency_code

Gets the currency_code of this ComputedUsage. Currency code

Returns:The currency_code of this ComputedUsage.
Return type:str
data_center

Gets the data_center of this ComputedUsage. Data Center Attribute as sent by MQS to SPM.

Returns:The data_center of this ComputedUsage.
Return type:str
id

[Required] Gets the id of this ComputedUsage. SPM Internal computed usage Id , 32 character string

Returns:The id of this ComputedUsage.
Return type:str
is_invoiced

Gets the is_invoiced of this ComputedUsage. Invoicing status for the aggregated compute usage

Returns:The is_invoiced of this ComputedUsage.
Return type:bool
mqs_message_id

Gets the mqs_message_id of this ComputedUsage. MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.

Returns:The mqs_message_id of this ComputedUsage.
Return type:str
net_unit_price

Gets the net_unit_price of this ComputedUsage. Net Unit Price for the product in consideration, price actual.

Returns:The net_unit_price of this ComputedUsage.
Return type:str
original_usage_number

Gets the original_usage_number of this ComputedUsage. SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.

Returns:The original_usage_number of this ComputedUsage.
Return type:str
parent_product

Gets the parent_product of this ComputedUsage.

Returns:The parent_product of this ComputedUsage.
Return type:oci.osub_usage.models.Product
parent_subscribed_service_id

Gets the parent_subscribed_service_id of this ComputedUsage. Subscribed service line parent id

Returns:The parent_subscribed_service_id of this ComputedUsage.
Return type:str
plan_number

Gets the plan_number of this ComputedUsage. Subscription plan number

Returns:The plan_number of this ComputedUsage.
Return type:str
product

Gets the product of this ComputedUsage.

Returns:The product of this ComputedUsage.
Return type:oci.osub_usage.models.Product
quantity

Gets the quantity of this ComputedUsage. Total Quantity that was used for computation

Returns:The quantity of this ComputedUsage.
Return type:str
rate_card_id

Gets the rate_card_id of this ComputedUsage. Ratecard Id at subscribed service level

Returns:The rate_card_id of this ComputedUsage.
Return type:str
rate_card_tierd_id

Gets the rate_card_tierd_id of this ComputedUsage. References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER.

Returns:The rate_card_tierd_id of this ComputedUsage.
Return type:str
time_created

Gets the time_created of this ComputedUsage. Computed Usage created time, expressed in RFC 3339 timestamp format.

Returns:The time_created of this ComputedUsage.
Return type:datetime
time_metered_on

Gets the time_metered_on of this ComputedUsage. Metered Service date, expressed in RFC 3339 timestamp format.

Returns:The time_metered_on of this ComputedUsage.
Return type:datetime
time_of_arrival

Gets the time_of_arrival of this ComputedUsage. Usae computation date, expressed in RFC 3339 timestamp format.

Returns:The time_of_arrival of this ComputedUsage.
Return type:datetime
time_updated

Gets the time_updated of this ComputedUsage. Computed Usage updated time, expressed in RFC 3339 timestamp format.

Returns:The time_updated of this ComputedUsage.
Return type:datetime
type

Gets the type of this ComputedUsage. 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”, “COMMITMENT_EXPIRATION”, “FUNDED_ALLOCATION”, “DONOT_BILL_USAGE_POST_TERMINATION”, “DELAYED_USAGE_POST_TERMINATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this ComputedUsage.
Return type:str
unit_of_measure

Gets the unit_of_measure of this ComputedUsage. Unit of Messure

Returns:The unit_of_measure of this ComputedUsage.
Return type:str
usage_number

Gets the usage_number of this ComputedUsage. SPM Internal usage Line number identifier in SPM coming from Metered Services entity.

Returns:The usage_number of this ComputedUsage.
Return type:str