o
    ɶd$F                     @   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                   @   s  e 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.d/ Zejd0d/ Zed1d2 Zejd3d2 Zed4d5 Zejd6d5 Zd7d8 Zd9d: Zd;d< Zd=S )>	AlertRulez
    The alert rule.
    ACTUALFORECAST
PERCENTAGEABSOLUTEACTIVEINACTIVEc                 K   s   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 )a.  
        Initializes a new AlertRule 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 AlertRule.
        :type id: str

        :param budget_id:
            The value to assign to the budget_id property of this AlertRule.
        :type budget_id: str

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

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

        :param threshold:
            The value to assign to the threshold property of this AlertRule.
        :type threshold: float

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this AlertRule.
            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 message:
            The value to assign to the message property of this AlertRule.
        :type message: str

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

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

        :param recipients:
            The value to assign to the recipients property of this AlertRule.
        :type recipients: str

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

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

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

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

        strfloatintdatetimezdict(str, str)zdict(str, dict(str, object)))id	budget_iddisplay_nametype	thresholdthreshold_typelifecycle_statemessagedescriptionversion
recipientstime_createdtime_updatedfreeform_tagsdefined_tagsr   ZbudgetIdZdisplayNamer   r   ZthresholdTypeZlifecycleStater   r   r   r   ZtimeCreatedZtimeUpdatedZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id
_budget_id_display_name_type
_threshold_threshold_type_lifecycle_state_message_description_version_recipients_time_created_time_updated_freeform_tags_defined_tags)selfkwargs r1   @usr/lib/python3.10/site-packages/oci/budget/models/alert_rule.py__init__*   s^   I
zAlertRule.__init__c                 C      | j S )z
        **[Required]** Gets the id of this AlertRule.
        The OCID of the alert rule.


        :return: The id of this AlertRule.
        :rtype: str
        r    r/   r1   r1   r2   r         
zAlertRule.idc                 C   
   || _ dS )z
        Sets the id of this AlertRule.
        The OCID of the alert rule.


        :param id: The id of this AlertRule.
        :type: str
        Nr5   )r/   r   r1   r1   r2   r         

c                 C   r4   )z
        **[Required]** Gets the budget_id of this AlertRule.
        The OCID of the budget.


        :return: The budget_id of this AlertRule.
        :rtype: str
        r!   r6   r1   r1   r2   r      r7   zAlertRule.budget_idc                 C   r8   )z
        Sets the budget_id of this AlertRule.
        The OCID of the budget.


        :param budget_id: The budget_id of this AlertRule.
        :type: str
        Nr:   )r/   r   r1   r1   r2   r      r9   c                 C   r4   )z
        **[Required]** Gets the display_name of this AlertRule.
        The name of the alert rule. Avoid entering confidential information.


        :return: The display_name of this AlertRule.
        :rtype: str
        r"   r6   r1   r1   r2   r      r7   zAlertRule.display_namec                 C   r8   )z
        Sets the display_name of this AlertRule.
        The name of the alert rule. Avoid entering confidential information.


        :param display_name: The display_name of this AlertRule.
        :type: str
        Nr;   )r/   r   r1   r1   r2   r      r9   c                 C   r4   )a  
        **[Required]** Gets the type of this AlertRule.
        The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or
        FORECAST (the alert triggers based on predicted usage).

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


        :return: The type of this AlertRule.
        :rtype: str
        )r#   r6   r1   r1   r2   r      s   zAlertRule.typec                 C       ddg}t ||sd}|| _dS )a  
        Sets the type of this AlertRule.
        The type of the alert. Valid values are ACTUAL (the alert triggers based on actual usage), or
        FORECAST (the alert triggers based on predicted usage).


        :param type: The type of this AlertRule.
        :type: str
        r   r   UNKNOWN_ENUM_VALUEN)r   r#   )r/   r   allowed_valuesr1   r1   r2   r      s   

c                 C   r4   )a   
        **[Required]** Gets the threshold of this AlertRule.
        The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.


        :return: The threshold of this AlertRule.
        :rtype: float
        r$   r6   r1   r1   r2   r     r7   zAlertRule.thresholdc                 C   r8   )z
        Sets the threshold of this AlertRule.
        The threshold for triggering the alert. If the thresholdType is PERCENTAGE, the maximum value is 10000.


        :param threshold: The threshold of this AlertRule.
        :type: float
        Nr?   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )at  
        **[Required]** Gets the threshold_type of this AlertRule.
        The type of threshold.

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


        :return: The threshold_type of this AlertRule.
        :rtype: str
        )r%   r6   r1   r1   r2   r   &     zAlertRule.threshold_typec                 C   r<   )z
        Sets the threshold_type of this AlertRule.
        The type of threshold.


        :param threshold_type: The threshold_type of this AlertRule.
        :type: str
        r	   r
   r=   N)r   r%   )r/   r   r>   r1   r1   r2   r   5     


c                 C   r4   )a  
        **[Required]** Gets the lifecycle_state of this AlertRule.
        The current state of the alert rule.

        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 AlertRule.
        :rtype: str
        )r&   r6   r1   r1   r2   r   D  r@   zAlertRule.lifecycle_statec                 C   r<   )z
        Sets the lifecycle_state of this AlertRule.
        The current state of the alert rule.


        :param lifecycle_state: The lifecycle_state of this AlertRule.
        :type: str
        r   r   r=   N)r   r&   )r/   r   r>   r1   r1   r2   r   S  rA   c                 C   r4   )z
        Gets the message of this AlertRule.
        Custom message sent when an alert is triggered.


        :return: The message of this AlertRule.
        :rtype: str
        r'   r6   r1   r1   r2   r   b  r7   zAlertRule.messagec                 C   r8   )z
        Sets the message of this AlertRule.
        Custom message sent when an alert is triggered.


        :param message: The message of this AlertRule.
        :type: str
        NrB   )r/   r   r1   r1   r2   r   n  r9   c                 C   r4   )z
        Gets the description of this AlertRule.
        The description of the alert rule.


        :return: The description of this AlertRule.
        :rtype: str
        r(   r6   r1   r1   r2   r   z  r7   zAlertRule.descriptionc                 C   r8   )z
        Sets the description of this AlertRule.
        The description of the alert rule.


        :param description: The description of this AlertRule.
        :type: str
        NrC   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )z
        Gets the version of this AlertRule.
        The version of the alert rule. Starts from 1 and increments by 1.


        :return: The version of this AlertRule.
        :rtype: int
        r)   r6   r1   r1   r2   r     r7   zAlertRule.versionc                 C   r8   )z
        Sets the version of this AlertRule.
        The version of the alert rule. Starts from 1 and increments by 1.


        :param version: The version of this AlertRule.
        :type: int
        NrD   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )a,  
        **[Required]** Gets the recipients of this AlertRule.
        The delimited list of email addresses to receive the alert when it triggers.
        Delimiter characters can be a comma, space, TAB, or semicolon.


        :return: The recipients of this AlertRule.
        :rtype: str
        r*   r6   r1   r1   r2   r     s   zAlertRule.recipientsc                 C   r8   )a&  
        Sets the recipients of this AlertRule.
        The delimited list of email addresses to receive the alert when it triggers.
        Delimiter characters can be a comma, space, TAB, or semicolon.


        :param recipients: The recipients of this AlertRule.
        :type: str
        NrE   )r/   r   r1   r1   r2   r     s   
c                 C   r4   )z
        **[Required]** Gets the time_created of this AlertRule.
        The time the budget was created.


        :return: The time_created of this AlertRule.
        :rtype: datetime
        r+   r6   r1   r1   r2   r     r7   zAlertRule.time_createdc                 C   r8   )z
        Sets the time_created of this AlertRule.
        The time the budget was created.


        :param time_created: The time_created of this AlertRule.
        :type: datetime
        NrF   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )z
        **[Required]** Gets the time_updated of this AlertRule.
        The time the budget was updated.


        :return: The time_updated of this AlertRule.
        :rtype: datetime
        r,   r6   r1   r1   r2   r     r7   zAlertRule.time_updatedc                 C   r8   )z
        Sets the time_updated of this AlertRule.
        The time the budget was updated.


        :param time_updated: The time_updated of this AlertRule.
        :type: datetime
        NrG   )r/   r   r1   r1   r2   r     r9   c                 C   r4   )a  
        Gets the freeform_tags of this AlertRule.
        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 AlertRule.
        :rtype: dict(str, str)
        r-   r6   r1   r1   r2   r        zAlertRule.freeform_tagsc                 C   r8   )a  
        Sets the freeform_tags of this AlertRule.
        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 AlertRule.
        :type: dict(str, str)
        NrH   )r/   r   r1   r1   r2   r        
c                 C   r4   )a  
        Gets the defined_tags of this AlertRule.
        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 AlertRule.
        :rtype: dict(str, dict(str, object))
        r.   r6   r1   r1   r2   r     rI   zAlertRule.defined_tagsc                 C   r8   )a  
        Sets the defined_tags of this AlertRule.
        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 AlertRule.
        :type: dict(str, dict(str, object))
        NrK   )r/   r   r1   r1   r2   r   '  rJ   c                 C   s   t | S N)r   r6   r1   r1   r2   __repr__8  s   zAlertRule.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r/   otherr1   r1   r2   __eq__;  s   zAlertRule.__eq__c                 C   s
   | |k S rL   r1   rO   r1   r1   r2   __ne__A  s   
zAlertRule.__ne__N)__name__
__module____qualname____doc__ZTYPE_ACTUALZTYPE_FORECASTZTHRESHOLD_TYPE_PERCENTAGEZTHRESHOLD_TYPE_ABSOLUTEZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEr3   propertyr   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   rM   rQ   rR   r1   r1   r1   r2   r      s    |





























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r1   r1   r1   r2   <module>   s   