HEX
Server: Apache
System: Linux br1026.hostgator.com.br 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User: corre651 (6538)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/oci/onesubscription/models/__pycache__/computed_usage.cpython-39.pyc
a

���f�n�@s8ddlmZmZmZddlmZeGdd�de��ZdS)�)�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc@s�eZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdd�Zedd��Zejdd��Zedd��Zejdd��Zedd��Zejdd��Zedd��Zejdd��Zedd ��Zejd!d ��Zed"d#��Zejd$d#��Zed%d&��Zejd'd&��Zed(d)��Zejd*d)��Zed+d,��Zejd-d,��Zed.d/��Zejd0d/��Zed1d2��Z e jd3d2��Z ed4d5��Z!e!jd6d5��Z!ed7d8��Z"e"jd9d8��Z"ed:d;��Z#e#jd<d;��Z#ed=d>��Z$e$jd?d>��Z$ed@dA��Z%e%jdBdA��Z%edCdD��Z&e&jdEdD��Z&edFdG��Z'e'jdHdG��Z'edIdJ��Z(e(jdKdJ��Z(edLdM��Z)e)jdNdM��Z)edOdP��Z*e*jdQdP��Z*edRdS��Z+e+jdTdS��Z+edUdV��Z,e,jdWdV��Z,edXdY��Z-e-jdZdY��Z-ed[d\��Z.e.jd]d\��Z.d^d_�Z/d`da�Z0dbdc�Z1ddS)e�
ComputedUsagez'
    Computed Usage Summary object
    �	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_TERMINATIONcKsdddddddddddddddddddddddddd�|_dddd	d
ddd
dddddddddddddddddd�|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_dS) a�
        Initializes a new ComputedUsage object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param time_created:
            The value to assign to the time_created property of this ComputedUsage.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this ComputedUsage.
        :type time_updated: datetime

        :param parent_subscribed_service_id:
            The value to assign to the parent_subscribed_service_id property of this ComputedUsage.
        :type parent_subscribed_service_id: str

        :param parent_product:
            The value to assign to the parent_product property of this ComputedUsage.
        :type parent_product: oci.onesubscription.models.ComputedUsageProduct

        :param plan_number:
            The value to assign to the plan_number property of this ComputedUsage.
        :type plan_number: str

        :param currency_code:
            The value to assign to the currency_code property of this ComputedUsage.
        :type currency_code: str

        :param rate_card_tierd_id:
            The value to assign to the rate_card_tierd_id property of this ComputedUsage.
        :type rate_card_tierd_id: str

        :param rate_card_id:
            The value to assign to the rate_card_id property of this ComputedUsage.
        :type rate_card_id: str

        :param compute_source:
            The value to assign to the compute_source property of this ComputedUsage.
        :type compute_source: str

        :param data_center:
            The value to assign to the data_center property of this ComputedUsage.
        :type data_center: str

        :param mqs_message_id:
            The value to assign to the mqs_message_id property of this ComputedUsage.
        :type mqs_message_id: str

        :param id:
            The value to assign to the id property of this ComputedUsage.
        :type id: str

        :param quantity:
            The value to assign to the quantity property of this ComputedUsage.
        :type quantity: str

        :param usage_number:
            The value to assign to the usage_number property of this ComputedUsage.
        :type usage_number: str

        :param original_usage_number:
            The value to assign to the original_usage_number property of this ComputedUsage.
        :type original_usage_number: str

        :param commitment_service_id:
            The value to assign to the commitment_service_id property of this ComputedUsage.
        :type commitment_service_id: str

        :param is_invoiced:
            The value to assign to the is_invoiced property of this ComputedUsage.
        :type is_invoiced: bool

        :param type:
            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'.
        :type type: str

        :param time_of_arrival:
            The value to assign to the time_of_arrival property of this ComputedUsage.
        :type time_of_arrival: datetime

        :param time_metered_on:
            The value to assign to the time_metered_on property of this ComputedUsage.
        :type time_metered_on: datetime

        :param net_unit_price:
            The value to assign to the net_unit_price property of this ComputedUsage.
        :type net_unit_price: str

        :param cost_rounded:
            The value to assign to the cost_rounded property of this ComputedUsage.
        :type cost_rounded: str

        :param cost:
            The value to assign to the cost property of this ComputedUsage.
        :type cost: str

        :param product:
            The value to assign to the product property of this ComputedUsage.
        :type product: oci.onesubscription.models.ComputedUsageProduct

        :param unit_of_measure:
            The value to assign to the unit_of_measure property of this ComputedUsage.
        :type unit_of_measure: str

        Zdatetime�strZComputedUsageProduct�bool)�time_created�time_updated�parent_subscribed_service_id�parent_product�plan_number�
currency_code�rate_card_tierd_id�rate_card_id�compute_source�data_center�mqs_message_id�id�quantity�usage_number�original_usage_number�commitment_service_id�is_invoiced�type�time_of_arrival�time_metered_on�net_unit_price�cost_rounded�cost�product�unit_of_measureZtimeCreatedZtimeUpdatedZparentSubscribedServiceIdZ
parentProductZ
planNumberZcurrencyCodeZrateCardTierdIdZ
rateCardIdZ
computeSourceZ
dataCenterZmqsMessageIdr#r$ZusageNumberZoriginalUsageNumberZcommitmentServiceIdZ
isInvoicedr)Z
timeOfArrivalZ
timeMeteredOnZnetUnitPriceZcostRoundedr.r/Z
unitOfMeasureN)Z
swagger_typesZ
attribute_map�
_time_created�
_time_updated�_parent_subscribed_service_id�_parent_product�_plan_number�_currency_code�_rate_card_tierd_id�
_rate_card_id�_compute_source�_data_center�_mqs_message_id�_id�	_quantity�
_usage_number�_original_usage_number�_commitment_service_id�_is_invoiced�_type�_time_of_arrival�_time_metered_on�_net_unit_price�
_cost_rounded�_cost�_product�_unit_of_measure)�self�kwargs�rL�M/usr/lib/python3.9/site-packages/oci/onesubscription/models/computed_usage.py�__init__Ns�m��zComputedUsage.__init__cCs|jS)z�
        Gets the time_created of this ComputedUsage.
        Computed Usage created time, expressed in RFC 3339 timestamp format.


        :return: The time_created of this ComputedUsage.
        :rtype: datetime
        �r1�rJrLrLrMrs
zComputedUsage.time_createdcCs
||_dS)z�
        Sets the time_created of this ComputedUsage.
        Computed Usage created time, expressed in RFC 3339 timestamp format.


        :param time_created: The time_created of this ComputedUsage.
        :type: datetime
        NrO)rJrrLrLrMrs
cCs|jS)z�
        Gets the time_updated of this ComputedUsage.
        Computed Usage updated time, expressed in RFC 3339 timestamp format.


        :return: The time_updated of this ComputedUsage.
        :rtype: datetime
        �r2rPrLrLrMr$s
zComputedUsage.time_updatedcCs
||_dS)z�
        Sets the time_updated of this ComputedUsage.
        Computed Usage updated time, expressed in RFC 3339 timestamp format.


        :param time_updated: The time_updated of this ComputedUsage.
        :type: datetime
        NrQ)rJrrLrLrMr0s
cCs|jS)z�
        Gets the parent_subscribed_service_id of this ComputedUsage.
        Subscribed service line parent id


        :return: The parent_subscribed_service_id of this ComputedUsage.
        :rtype: str
        �r3rPrLrLrMr<s
z*ComputedUsage.parent_subscribed_service_idcCs
||_dS)z�
        Sets the parent_subscribed_service_id of this ComputedUsage.
        Subscribed service line parent id


        :param parent_subscribed_service_id: The parent_subscribed_service_id of this ComputedUsage.
        :type: str
        NrR)rJrrLrLrMrHs
cCs|jS)z�
        Gets the parent_product of this ComputedUsage.

        :return: The parent_product of this ComputedUsage.
        :rtype: oci.onesubscription.models.ComputedUsageProduct
        �r4rPrLrLrMrTszComputedUsage.parent_productcCs
||_dS)z�
        Sets the parent_product of this ComputedUsage.

        :param parent_product: The parent_product of this ComputedUsage.
        :type: oci.onesubscription.models.ComputedUsageProduct
        NrS)rJrrLrLrMr^scCs|jS)z�
        Gets the plan_number of this ComputedUsage.
        Subscription plan number


        :return: The plan_number of this ComputedUsage.
        :rtype: str
        �r5rPrLrLrMrhs
zComputedUsage.plan_numbercCs
||_dS)z�
        Sets the plan_number of this ComputedUsage.
        Subscription plan number


        :param plan_number: The plan_number of this ComputedUsage.
        :type: str
        NrT)rJrrLrLrMrts
cCs|jS)z�
        Gets the currency_code of this ComputedUsage.
        Currency code


        :return: The currency_code of this ComputedUsage.
        :rtype: str
        �r6rPrLrLrMr�s
zComputedUsage.currency_codecCs
||_dS)z�
        Sets the currency_code of this ComputedUsage.
        Currency code


        :param currency_code: The currency_code of this ComputedUsage.
        :type: str
        NrU)rJrrLrLrMr�s
cCs|jS)ab
        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.


        :return: The rate_card_tierd_id of this ComputedUsage.
        :rtype: str
        �r7rPrLrLrMr�s
z ComputedUsage.rate_card_tierd_idcCs
||_dS)as
        Sets 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.


        :param rate_card_tierd_id: The rate_card_tierd_id of this ComputedUsage.
        :type: str
        NrV)rJrrLrLrMr�s
cCs|jS)z�
        Gets the rate_card_id of this ComputedUsage.
        Ratecard Id at subscribed service level


        :return: The rate_card_id of this ComputedUsage.
        :rtype: str
        �r8rPrLrLrMr�s
zComputedUsage.rate_card_idcCs
||_dS)z�
        Sets the rate_card_id of this ComputedUsage.
        Ratecard Id at subscribed service level


        :param rate_card_id: The rate_card_id of this ComputedUsage.
        :type: str
        NrW)rJrrLrLrMr�s
cCs|jS)z�
        Gets the compute_source of this ComputedUsage.
        SPM Internal compute records source .


        :return: The compute_source of this ComputedUsage.
        :rtype: str
        �r9rPrLrLrMr �s
zComputedUsage.compute_sourcecCs
||_dS)z�
        Sets the compute_source of this ComputedUsage.
        SPM Internal compute records source .


        :param compute_source: The compute_source of this ComputedUsage.
        :type: str
        NrX)rJr rLrLrMr �s
cCs|jS)z�
        Gets the data_center of this ComputedUsage.
        Data Center Attribute as sent by MQS to SPM.


        :return: The data_center of this ComputedUsage.
        :rtype: str
        �r:rPrLrLrMr!�s
zComputedUsage.data_centercCs
||_dS)z�
        Sets the data_center of this ComputedUsage.
        Data Center Attribute as sent by MQS to SPM.


        :param data_center: The data_center of this ComputedUsage.
        :type: str
        NrY)rJr!rLrLrMr!�s
cCs|jS)z�
        Gets the mqs_message_id of this ComputedUsage.
        MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.


        :return: The mqs_message_id of this ComputedUsage.
        :rtype: str
        �r;rPrLrLrMr"�s
zComputedUsage.mqs_message_idcCs
||_dS)z�
        Sets the mqs_message_id of this ComputedUsage.
        MQS Identfier send to SPM , SPM does not transform this attribute and is received as is.


        :param mqs_message_id: The mqs_message_id of this ComputedUsage.
        :type: str
        NrZ)rJr"rLrLrMr"s
cCs|jS)z�
        **[Required]** Gets the id of this ComputedUsage.
        SPM Internal computed usage Id , 32 character string


        :return: The id of this ComputedUsage.
        :rtype: str
        �r<rPrLrLrMr#s
zComputedUsage.idcCs
||_dS)z�
        Sets the id of this ComputedUsage.
        SPM Internal computed usage Id , 32 character string


        :param id: The id of this ComputedUsage.
        :type: str
        Nr[)rJr#rLrLrMr#s
cCs|jS)z�
        Gets the quantity of this ComputedUsage.
        Total Quantity that was used for computation


        :return: The quantity of this ComputedUsage.
        :rtype: str
        �r=rPrLrLrMr$(s
zComputedUsage.quantitycCs
||_dS)z�
        Sets the quantity of this ComputedUsage.
        Total Quantity that was used for computation


        :param quantity: The quantity of this ComputedUsage.
        :type: str
        Nr\)rJr$rLrLrMr$4s
cCs|jS)z�
        Gets the usage_number of this ComputedUsage.
        SPM Internal usage Line number identifier in SPM coming from Metered Services entity.


        :return: The usage_number of this ComputedUsage.
        :rtype: str
        �r>rPrLrLrMr%@s
zComputedUsage.usage_numbercCs
||_dS)z�
        Sets the usage_number of this ComputedUsage.
        SPM Internal usage Line number identifier in SPM coming from Metered Services entity.


        :param usage_number: The usage_number of this ComputedUsage.
        :type: str
        Nr])rJr%rLrLrMr%Ls
cCs|jS)a
        Gets the original_usage_number of this ComputedUsage.
        SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.


        :return: The original_usage_number of this ComputedUsage.
        :rtype: str
        �r?rPrLrLrMr&Xs
z#ComputedUsage.original_usage_numbercCs
||_dS)a
        Sets the original_usage_number of this ComputedUsage.
        SPM Internal Original usage Line number identifier in SPM coming from Metered Services entity.


        :param original_usage_number: The original_usage_number of this ComputedUsage.
        :type: str
        Nr^)rJr&rLrLrMr&ds
cCs|jS)z�
        Gets the commitment_service_id of this ComputedUsage.
        Subscribed service commitmentId.


        :return: The commitment_service_id of this ComputedUsage.
        :rtype: str
        �r@rPrLrLrMr'ps
z#ComputedUsage.commitment_service_idcCs
||_dS)z�
        Sets the commitment_service_id of this ComputedUsage.
        Subscribed service commitmentId.


        :param commitment_service_id: The commitment_service_id of this ComputedUsage.
        :type: str
        Nr_)rJr'rLrLrMr'|s
cCs|jS)z�
        Gets the is_invoiced of this ComputedUsage.
        Invoicing status for the aggregated compute usage


        :return: The is_invoiced of this ComputedUsage.
        :rtype: bool
        �rArPrLrLrMr(�s
zComputedUsage.is_invoicedcCs
||_dS)z�
        Sets the is_invoiced of this ComputedUsage.
        Invoicing status for the aggregated compute usage


        :param is_invoiced: The is_invoiced of this ComputedUsage.
        :type: bool
        Nr`)rJr(rLrLrMr(�s
cCs|jS)a}
        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'.


        :return: The type of this ComputedUsage.
        :rtype: str
        )rBrPrLrLrMr)�s
zComputedUsage.typecCs gd�}t||�sd}||_dS)z�
        Sets the type of this ComputedUsage.
        Usage compute type in SPM.


        :param type: The type of this ComputedUsage.
        :type: str
        )rrr	r
rrr
rrrrrrrrZUNKNOWN_ENUM_VALUEN)rrB)rJr)Zallowed_valuesrLrLrMr)�s

cCs|jS)z�
        Gets the time_of_arrival of this ComputedUsage.
        Usae computation date, expressed in RFC 3339 timestamp format.


        :return: The time_of_arrival of this ComputedUsage.
        :rtype: datetime
        �rCrPrLrLrMr*�s
zComputedUsage.time_of_arrivalcCs
||_dS)z�
        Sets the time_of_arrival of this ComputedUsage.
        Usae computation date, expressed in RFC 3339 timestamp format.


        :param time_of_arrival: The time_of_arrival of this ComputedUsage.
        :type: datetime
        Nra)rJr*rLrLrMr*�s
cCs|jS)z�
        Gets the time_metered_on of this ComputedUsage.
        Metered Service date, expressed in RFC 3339 timestamp format.


        :return: The time_metered_on of this ComputedUsage.
        :rtype: datetime
        �rDrPrLrLrMr+�s
zComputedUsage.time_metered_oncCs
||_dS)z�
        Sets the time_metered_on of this ComputedUsage.
        Metered Service date, expressed in RFC 3339 timestamp format.


        :param time_metered_on: The time_metered_on of this ComputedUsage.
        :type: datetime
        Nrb)rJr+rLrLrMr+�s
cCs|jS)z�
        Gets the net_unit_price of this ComputedUsage.
        Net Unit Price for the product in consideration, price actual.


        :return: The net_unit_price of this ComputedUsage.
        :rtype: str
        �rErPrLrLrMr,�s
zComputedUsage.net_unit_pricecCs
||_dS)z�
        Sets the net_unit_price of this ComputedUsage.
        Net Unit Price for the product in consideration, price actual.


        :param net_unit_price: The net_unit_price of this ComputedUsage.
        :type: str
        Nrc)rJr,rLrLrMr,�s
cCs|jS)z�
        Gets the cost_rounded of this ComputedUsage.
        Computed Line Amount rounded.


        :return: The cost_rounded of this ComputedUsage.
        :rtype: str
        �rFrPrLrLrMr-s
zComputedUsage.cost_roundedcCs
||_dS)z�
        Sets the cost_rounded of this ComputedUsage.
        Computed Line Amount rounded.


        :param cost_rounded: The cost_rounded of this ComputedUsage.
        :type: str
        Nrd)rJr-rLrLrMr-s
cCs|jS)z�
        Gets the cost of this ComputedUsage.
        Computed Line Amount not rounded


        :return: The cost of this ComputedUsage.
        :rtype: str
        �rGrPrLrLrMr.s
zComputedUsage.costcCs
||_dS)z�
        Sets the cost of this ComputedUsage.
        Computed Line Amount not rounded


        :param cost: The cost of this ComputedUsage.
        :type: str
        Nre)rJr.rLrLrMr.*s
cCs|jS)z�
        Gets the product of this ComputedUsage.

        :return: The product of this ComputedUsage.
        :rtype: oci.onesubscription.models.ComputedUsageProduct
        �rHrPrLrLrMr/6szComputedUsage.productcCs
||_dS)z�
        Sets the product of this ComputedUsage.

        :param product: The product of this ComputedUsage.
        :type: oci.onesubscription.models.ComputedUsageProduct
        Nrf)rJr/rLrLrMr/@scCs|jS)z�
        Gets the unit_of_measure of this ComputedUsage.
        Unit of Messure


        :return: The unit_of_measure of this ComputedUsage.
        :rtype: str
        �rIrPrLrLrMr0Js
zComputedUsage.unit_of_measurecCs
||_dS)z�
        Sets the unit_of_measure of this ComputedUsage.
        Unit of Messure


        :param unit_of_measure: The unit_of_measure of this ComputedUsage.
        :type: str
        Nrg)rJr0rLrLrMr0Vs
cCst|�S�N)rrPrLrLrM�__repr__bszComputedUsage.__repr__cCs|durdS|j|jkS)NF)�__dict__�rJ�otherrLrLrM�__eq__eszComputedUsage.__eq__cCs
||kSrhrLrkrLrLrM�__ne__kszComputedUsage.__ne__N)2�__name__�
__module__�__qualname__�__doc__ZTYPE_PROMOTIONZTYPE_DO_NOT_BILLZ
TYPE_USAGEZTYPE_COMMITZTYPE_OVERAGEZTYPE_PAY_AS_YOU_GOZTYPE_MONTHLY_MINIMUMZ!TYPE_DELAYED_USAGE_INVOICE_TIMINGZ!TYPE_DELAYED_USAGE_COMMITMENT_EXPZTYPE_ON_ACCOUNT_CREDITZTYPE_SERVICE_CREDITZTYPE_COMMITMENT_EXPIRATIONZTYPE_FUNDED_ALLOCATIONZ&TYPE_DONOT_BILL_USAGE_POST_TERMINATIONZ#TYPE_DELAYED_USAGE_POST_TERMINATIONrN�propertyr�setterrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0rirmrnrLrLrLrMrs�?






	
	






































	
	

rN)Zoci.utilrrrZoci.decoratorsr�objectrrLrLrLrM�<module>s