o
    ëÉ¶d[h  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   sn  e Zd ZdZdZdZdZdZdZdZ	dZ
d	d
„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZed d!„ ƒZejd"d!„ ƒZed#d$„ ƒZejd%d$„ ƒZed&d'„ ƒZejd(d'„ ƒZed)d*„ ƒZejd+d*„ ƒZed,d-„ ƒZejd.d-„ ƒZed/d0„ ƒZejd1d0„ ƒZed2d3„ ƒZejd4d3„ ƒZed5d6„ ƒZejd7d6„ ƒZed8d9„ ƒZejd:d9„ ƒZed;d<„ ƒZejd=d<„ ƒZed>d?„ ƒZejd@d?„ ƒZedAdB„ ƒZ e jdCdB„ ƒZ edDdE„ ƒZ!e!jdFdE„ ƒZ!edGdH„ ƒZ"e"jdIdH„ ƒZ"dJdK„ Z#dLdM„ Z$dNdO„ Z%dPS )QÚBudgetSummaryz
    A budget.
    ÚMONTHLYÚINVOICEÚMONTHÚCOMPARTMENTÚTAGÚACTIVEÚINACTIVEc                 K   sv  i 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d“dd“dd“dd“dd“dddddœ¥| _ i 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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*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*S )+ad  
        Initializes a new BudgetSummary object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param compartment_id:
            The value to assign to the compartment_id property of this BudgetSummary.
        :type compartment_id: str

        :param target_compartment_id:
            The value to assign to the target_compartment_id property of this BudgetSummary.
        :type target_compartment_id: str

        :param display_name:
            The value to assign to the display_name property of this BudgetSummary.
        :type display_name: str

        :param description:
            The value to assign to the description property of this BudgetSummary.
        :type description: str

        :param amount:
            The value to assign to the amount property of this BudgetSummary.
        :type amount: float

        :param reset_period:
            The value to assign to the reset_period property of this BudgetSummary.
            Allowed values for this property are: "MONTHLY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type reset_period: str

        :param budget_processing_period_start_offset:
            The value to assign to the budget_processing_period_start_offset property of this BudgetSummary.
        :type budget_processing_period_start_offset: int

        :param processing_period_type:
            The value to assign to the processing_period_type property of this BudgetSummary.
            Allowed values for this property are: "INVOICE", "MONTH", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type processing_period_type: str

        :param target_type:
            The value to assign to the target_type property of this BudgetSummary.
            Allowed values for this property are: "COMPARTMENT", "TAG", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type target_type: str

        :param targets:
            The value to assign to the targets property of this BudgetSummary.
        :type targets: list[str]

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this BudgetSummary.
            Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param alert_rule_count:
            The value to assign to the alert_rule_count property of this BudgetSummary.
        :type alert_rule_count: int

        :param version:
            The value to assign to the version property of this BudgetSummary.
        :type version: int

        :param actual_spend:
            The value to assign to the actual_spend property of this BudgetSummary.
        :type actual_spend: float

        :param forecasted_spend:
            The value to assign to the forecasted_spend property of this BudgetSummary.
        :type forecasted_spend: float

        :param time_spend_computed:
            The value to assign to the time_spend_computed property of this BudgetSummary.
        :type time_spend_computed: datetime

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

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

        :param freeform_tags:
            The value to assign to the freeform_tags property of this BudgetSummary.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this BudgetSummary.
        :type defined_tags: dict(str, dict(str, object))

        ÚidÚstrÚcompartment_idÚtarget_compartment_idÚdisplay_nameÚdescriptionÚamountÚfloatÚreset_periodÚ%budget_processing_period_start_offsetÚintÚprocessing_period_typeÚtarget_typeÚtargetsz	list[str]Úlifecycle_stateÚalert_rule_countÚversionÚactual_spendÚforecasted_spendÚtime_spend_computedÚdatetimezdict(str, str)zdict(str, dict(str, object)))Útime_createdÚtime_updatedÚfreeform_tagsÚdefined_tagsZcompartmentIdZtargetCompartmentIdZdisplayNameZresetPeriodZ!budgetProcessingPeriodStartOffsetZprocessingPeriodTypeZ
targetTypeZlifecycleStateZalertRuleCountZactualSpendZforecastedSpendZtimeSpendComputedZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_mapÚ_idÚ_compartment_idÚ_target_compartment_idÚ_display_nameÚ_descriptionÚ_amountÚ_reset_periodÚ&_budget_processing_period_start_offsetÚ_processing_period_typeÚ_target_typeÚ_targetsÚ_lifecycle_stateÚ_alert_rule_countÚ_versionÚ_actual_spendÚ_forecasted_spendÚ_time_spend_computedÚ_time_createdÚ_time_updatedÚ_freeform_tagsÚ_defined_tags)ÚselfÚkwargs© r>   úDusr/lib/python3.10/site-packages/oci/budget/models/budget_summary.pyÚ__init__.   sÊ   bÿþýüûúùø	÷
öõôóòñðï
ëÿþýüûúùø	÷
öõôóòñðï
ë
zBudgetSummary.__init__c                 C   ó   | j S )z¨
        **[Required]** Gets the id of this BudgetSummary.
        The OCID of the budget.


        :return: The id of this BudgetSummary.
        :rtype: str
        ©r'   ©r<   r>   r>   r?   r   Ö   ó   
zBudgetSummary.idc                 C   ó
   || _ dS )zš
        Sets the id of this BudgetSummary.
        The OCID of the budget.


        :param id: The id of this BudgetSummary.
        :type: str
        NrB   )r<   r   r>   r>   r?   r   â   ó   

c                 C   rA   )zÅ
        **[Required]** Gets the compartment_id of this BudgetSummary.
        The OCID of the compartment.


        :return: The compartment_id of this BudgetSummary.
        :rtype: str
        ©r(   rC   r>   r>   r?   r   î   rD   zBudgetSummary.compartment_idc                 C   rE   )zÃ
        Sets the compartment_id of this BudgetSummary.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this BudgetSummary.
        :type: str
        NrG   )r<   r   r>   r>   r?   r   ú   rF   c                 C   rA   )aœ  
        Gets the target_compartment_id of this BudgetSummary.
        This is DEPRECATED. For backwards compatability, the property is populated when
        the targetType is "COMPARTMENT", and the targets contain the specific target compartment OCID.
        For all other scenarios, this property is left empty.


        :return: The target_compartment_id of this BudgetSummary.
        :rtype: str
        ©r)   rC   r>   r>   r?   r     ó   z#BudgetSummary.target_compartment_idc                 C   rE   )a°  
        Sets the target_compartment_id of this BudgetSummary.
        This is DEPRECATED. For backwards compatability, the property is populated when
        the targetType is "COMPARTMENT", and the targets contain the specific target compartment OCID.
        For all other scenarios, this property is left empty.


        :param target_compartment_id: The target_compartment_id of this BudgetSummary.
        :type: str
        NrH   )r<   r   r>   r>   r?   r     ó   
c                 C   rA   )zí
        **[Required]** Gets the display_name of this BudgetSummary.
        The display name of the budget. Avoid entering confidential information.


        :return: The display_name of this BudgetSummary.
        :rtype: str
        ©r*   rC   r>   r>   r?   r   "  rD   zBudgetSummary.display_namec                 C   rE   )zé
        Sets the display_name of this BudgetSummary.
        The display name of the budget. Avoid entering confidential information.


        :param display_name: The display_name of this BudgetSummary.
        :type: str
        NrK   )r<   r   r>   r>   r?   r   .  rF   c                 C   rA   )z²
        Gets the description of this BudgetSummary.
        The description of the budget.


        :return: The description of this BudgetSummary.
        :rtype: str
        ©r+   rC   r>   r>   r?   r   :  rD   zBudgetSummary.descriptionc                 C   rE   )z¼
        Sets the description of this BudgetSummary.
        The description of the budget.


        :param description: The description of this BudgetSummary.
        :type: str
        NrL   )r<   r   r>   r>   r?   r   F  rF   c                 C   rA   )zë
        **[Required]** Gets the amount of this BudgetSummary.
        The amount of the budget, expressed in the currency of the customer's rate card.


        :return: The amount of this BudgetSummary.
        :rtype: float
        ©r,   rC   r>   r>   r?   r   R  rD   zBudgetSummary.amountc                 C   rE   )zá
        Sets the amount of this BudgetSummary.
        The amount of the budget, expressed in the currency of the customer's rate card.


        :param amount: The amount of this BudgetSummary.
        :type: float
        NrM   )r<   r   r>   r>   r?   r   ^  rF   c                 C   rA   )as  
        **[Required]** Gets the reset_period of this BudgetSummary.
        The reset period for the budget.

        Allowed values for this property are: "MONTHLY", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The reset_period of this BudgetSummary.
        :rtype: str
        )r-   rC   r>   r>   r?   r   j  ó   zBudgetSummary.reset_periodc                 C   s   dg}t ||ƒs
d}|| _dS )zÁ
        Sets the reset_period of this BudgetSummary.
        The reset period for the budget.


        :param reset_period: The reset_period of this BudgetSummary.
        :type: str
        r   ÚUNKNOWN_ENUM_VALUEN)r   r-   )r<   r   Úallowed_valuesr>   r>   r?   r   y  s   


c                 C   rA   )aì  
        Gets the budget_processing_period_start_offset of this BudgetSummary.
        The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.


        :return: The budget_processing_period_start_offset of this BudgetSummary.
        :rtype: int
        ©r.   rC   r>   r>   r?   r   ˆ  rD   z3BudgetSummary.budget_processing_period_start_offsetc                 C   rE   )a  
        Sets the budget_processing_period_start_offset of this BudgetSummary.
        The number of days offset from the first day of the month, at which the budget processing period starts. In months that have fewer days than this value, processing will begin on the last day of that month. For example, for a value of 12, processing starts every month on the 12th at midnight.


        :param budget_processing_period_start_offset: The budget_processing_period_start_offset of this BudgetSummary.
        :type: int
        NrQ   )r<   r   r>   r>   r?   r   ”  rF   c                 C   rA   )a®  
        Gets the processing_period_type of this BudgetSummary.
        The type of the budget processing period. Valid values are INVOICE and MONTH.

        Allowed values for this property are: "INVOICE", "MONTH", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The processing_period_type of this BudgetSummary.
        :rtype: str
        )r/   rC   r>   r>   r?   r      rN   z$BudgetSummary.processing_period_typec                 C   ó    ddg}t ||ƒsd}|| _dS )a  
        Sets the processing_period_type of this BudgetSummary.
        The type of the budget processing period. Valid values are INVOICE and MONTH.


        :param processing_period_type: The processing_period_type of this BudgetSummary.
        :type: str
        r   r	   rO   N)r   r/   )r<   r   rP   r>   r>   r?   r   ¯  ó   


c                 C   rA   )a  
        Gets the target_type of this BudgetSummary.
        The type of target on which the budget is applied.

        Allowed values for this property are: "COMPARTMENT", "TAG", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The target_type of this BudgetSummary.
        :rtype: str
        )r0   rC   r>   r>   r?   r   ¾  rN   zBudgetSummary.target_typec                 C   rR   )zÐ
        Sets the target_type of this BudgetSummary.
        The type of target on which the budget is applied.


        :param target_type: The target_type of this BudgetSummary.
        :type: str
        r
   r   rO   N)r   r0   )r<   r   rP   r>   r>   r?   r   Í  rS   c                 C   rA   )a¿  
        Gets the targets of this BudgetSummary.
        The list of targets on which the budget is applied.
          If the targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs.
          If the targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".


        :return: The targets of this BudgetSummary.
        :rtype: list[str]
        ©r1   rC   r>   r>   r?   r   Ü  rI   zBudgetSummary.targetsc                 C   rE   )aÅ  
        Sets the targets of this BudgetSummary.
        The list of targets on which the budget is applied.
          If the targetType is "COMPARTMENT", the targets contain the list of compartment OCIDs.
          If the targetType is "TAG", the targets contain the list of cost tracking tag identifiers in the form of "{tagNamespace}.{tagKey}.{tagValue}".


        :param targets: The targets of this BudgetSummary.
        :type: list[str]
        NrT   )r<   r   r>   r>   r?   r   ê  rJ   c                 C   rA   )a„  
        **[Required]** Gets the lifecycle_state of this BudgetSummary.
        The current state of the budget.

        Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this BudgetSummary.
        :rtype: str
        )r2   rC   r>   r>   r?   r   ø  rN   zBudgetSummary.lifecycle_statec                 C   rR   )zÊ
        Sets the lifecycle_state of this BudgetSummary.
        The current state of the budget.


        :param lifecycle_state: The lifecycle_state of this BudgetSummary.
        :type: str
        r   r   rO   N)r   r2   )r<   r   rP   r>   r>   r?   r     rS   c                 C   rA   )zÛ
        **[Required]** Gets the alert_rule_count of this BudgetSummary.
        The total number of alert rules in the budget.


        :return: The alert_rule_count of this BudgetSummary.
        :rtype: int
        ©r3   rC   r>   r>   r?   r     rD   zBudgetSummary.alert_rule_countc                 C   rE   )zÛ
        Sets the alert_rule_count of this BudgetSummary.
        The total number of alert rules in the budget.


        :param alert_rule_count: The alert_rule_count of this BudgetSummary.
        :type: int
        NrU   )r<   r   r>   r>   r?   r   "  rF   c                 C   rA   )zÉ
        Gets the version of this BudgetSummary.
        The version of the budget. Starts from 1 and increments by 1.


        :return: The version of this BudgetSummary.
        :rtype: int
        ©r4   rC   r>   r>   r?   r   .  rD   zBudgetSummary.versionc                 C   rE   )zÏ
        Sets the version of this BudgetSummary.
        The version of the budget. Starts from 1 and increments by 1.


        :param version: The version of this BudgetSummary.
        :type: int
        NrV   )r<   r   r>   r>   r?   r   :  rF   c                 C   rA   )zÒ
        Gets the actual_spend of this BudgetSummary.
        The actual spend in currency for the current budget cycle.


        :return: The actual_spend of this BudgetSummary.
        :rtype: float
        ©r5   rC   r>   r>   r?   r   F  rD   zBudgetSummary.actual_spendc                 C   rE   )zÝ
        Sets the actual_spend of this BudgetSummary.
        The actual spend in currency for the current budget cycle.


        :param actual_spend: The actual_spend of this BudgetSummary.
        :type: float
        NrW   )r<   r   r>   r>   r?   r   R  rF   c                 C   rA   )zè
        Gets the forecasted_spend of this BudgetSummary.
        The forecasted spend in currency by the end of the current budget cycle.


        :return: The forecasted_spend of this BudgetSummary.
        :rtype: float
        ©r6   rC   r>   r>   r?   r    ^  rD   zBudgetSummary.forecasted_spendc                 C   rE   )z÷
        Sets the forecasted_spend of this BudgetSummary.
        The forecasted spend in currency by the end of the current budget cycle.


        :param forecasted_spend: The forecasted_spend of this BudgetSummary.
        :type: float
        NrX   )r<   r    r>   r>   r?   r    j  rF   c                 C   rA   )zÕ
        Gets the time_spend_computed of this BudgetSummary.
        The time the budget spend was last computed.


        :return: The time_spend_computed of this BudgetSummary.
        :rtype: datetime
        ©r7   rC   r>   r>   r?   r!   v  rD   z!BudgetSummary.time_spend_computedc                 C   rE   )zç
        Sets the time_spend_computed of this BudgetSummary.
        The time the budget spend was last computed.


        :param time_spend_computed: The time_spend_computed of this BudgetSummary.
        :type: datetime
        NrY   )r<   r!   r>   r>   r?   r!   ‚  rF   c                 C   rA   )zÊ
        **[Required]** Gets the time_created of this BudgetSummary.
        The time the budget was created.


        :return: The time_created of this BudgetSummary.
        :rtype: datetime
        ©r8   rC   r>   r>   r?   r#   Ž  rD   zBudgetSummary.time_createdc                 C   rE   )zÆ
        Sets the time_created of this BudgetSummary.
        The time the budget was created.


        :param time_created: The time_created of this BudgetSummary.
        :type: datetime
        NrZ   )r<   r#   r>   r>   r?   r#   š  rF   c                 C   rA   )zÊ
        **[Required]** Gets the time_updated of this BudgetSummary.
        The time the budget was updated.


        :return: The time_updated of this BudgetSummary.
        :rtype: datetime
        ©r9   rC   r>   r>   r?   r$   ¦  rD   zBudgetSummary.time_updatedc                 C   rE   )zÆ
        Sets the time_updated of this BudgetSummary.
        The time the budget was updated.


        :param time_updated: The time_updated of this BudgetSummary.
        :type: datetime
        Nr[   )r<   r$   r>   r>   r?   r$   ²  rF   c                 C   rA   )aÌ  
        Gets the freeform_tags of this BudgetSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this BudgetSummary.
        :rtype: dict(str, str)
        ©r:   rC   r>   r>   r?   r%   ¾  ó   zBudgetSummary.freeform_tagsc                 C   rE   )aØ  
        Sets the freeform_tags of this BudgetSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this BudgetSummary.
        :type: dict(str, str)
        Nr\   )r<   r%   r>   r>   r?   r%   Ï  ó   
c                 C   rA   )aÂ  
        Gets the defined_tags of this BudgetSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this BudgetSummary.
        :rtype: dict(str, dict(str, object))
        ©r;   rC   r>   r>   r?   r&   à  r]   zBudgetSummary.defined_tagsc                 C   rE   )aÍ  
        Sets the defined_tags of this BudgetSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this BudgetSummary.
        :type: dict(str, dict(str, object))
        Nr_   )r<   r&   r>   r>   r?   r&   ñ  r^   c                 C   s   t | ƒS ©N)r   rC   r>   r>   r?   Ú__repr__  s   zBudgetSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r<   Úotherr>   r>   r?   Ú__eq__  s   zBudgetSummary.__eq__c                 C   s
   | |k S r`   r>   rc   r>   r>   r?   Ú__ne__  s   
zBudgetSummary.__ne__N)&Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZRESET_PERIOD_MONTHLYZPROCESSING_PERIOD_TYPE_INVOICEZPROCESSING_PERIOD_TYPE_MONTHZTARGET_TYPE_COMPARTMENTZTARGET_TYPE_TAGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEr@   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r#   r$   r%   r&   ra   re   rf   r>   r>   r>   r?   r      sÄ     )









































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r>   r>   r>   r?   Ú<module>   s   