o
    ëÉ¶d 0  ã                   @   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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d'd(„ Zd)d*„ Zd+d,„ Zd-S ).ÚTicketz+
    Details about the ticket created.
    ÚHIGHESTÚHIGHÚMEDIUMÚACTIVEÚCLOSEDÚPENDING_WITH_ORACLEÚPENDING_WITH_CUSTOMERÚCLOSE_REQUESTEDc              
   K   sn   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 )a6  
        Initializes a new Ticket object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param ticket_number:
            The value to assign to the ticket_number property of this Ticket.
        :type ticket_number: str

        :param severity:
            The value to assign to the severity property of this Ticket.
            Allowed values for this property are: "HIGHEST", "HIGH", "MEDIUM", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type severity: str

        :param resource_list:
            The value to assign to the resource_list property of this Ticket.
        :type resource_list: list[oci.cims.models.Resource]

        :param title:
            The value to assign to the title property of this Ticket.
        :type title: str

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

        :param time_created:
            The value to assign to the time_created property of this Ticket.
        :type time_created: int

        :param time_updated:
            The value to assign to the time_updated property of this Ticket.
        :type time_updated: int

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

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Ticket.
            Allowed values for this property are: "PENDING_WITH_ORACLE", "PENDING_WITH_CUSTOMER", "CLOSE_REQUESTED", "CLOSED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_details: str

        Ústrzlist[Resource]Úint)	Úticket_numberÚseverityÚresource_listÚtitleÚdescriptionÚtime_createdÚtime_updatedÚlifecycle_stateÚlifecycle_detailsZticketNumberr   ZresourceListr   r   ZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsN)Zswagger_typesZattribute_mapÚ_ticket_numberÚ	_severityÚ_resource_listÚ_titleÚ_descriptionÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_lifecycle_details)ÚselfÚkwargs© r%   ú:usr/lib/python3.10/site-packages/oci/cims/models/ticket.pyÚ__init__6   s:   1÷÷
zTicket.__init__c                 C   ó   | j S )z«
        Gets the ticket_number of this Ticket.
        Unique identifier for the ticket.


        :return: The ticket_number of this Ticket.
        :rtype: str
        ©r   ©r#   r%   r%   r&   r   ˆ   ó   
zTicket.ticket_numberc                 C   ó
   || _ dS )z·
        Sets the ticket_number of this Ticket.
        Unique identifier for the ticket.


        :param ticket_number: The ticket_number of this Ticket.
        :type: str
        Nr)   )r#   r   r%   r%   r&   r   ”   ó   

c                 C   r(   )as  
        **[Required]** Gets the severity of this Ticket.
        The severity assigned to the ticket.

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


        :return: The severity of this Ticket.
        :rtype: str
        )r   r*   r%   r%   r&   r       ó   zTicket.severityc                 C   ó    g d¢}t ||ƒsd}|| _dS )z«
        Sets the severity of this Ticket.
        The severity assigned to the ticket.


        :param severity: The severity of this Ticket.
        :type: str
        )r   r   r	   ÚUNKNOWN_ENUM_VALUEN)r   r   )r#   r   Úallowed_valuesr%   r%   r&   r   ¯   ó   


c                 C   r(   )zÖ
        Gets the resource_list of this Ticket.
        The list of resources associated with the ticket.


        :return: The resource_list of this Ticket.
        :rtype: list[oci.cims.models.Resource]
        ©r   r*   r%   r%   r&   r   ¾   r+   zTicket.resource_listc                 C   r,   )zâ
        Sets the resource_list of this Ticket.
        The list of resources associated with the ticket.


        :param resource_list: The resource_list of this Ticket.
        :type: list[oci.cims.models.Resource]
        Nr3   )r#   r   r%   r%   r&   r   Ê   r-   c                 C   r(   )z¡
        **[Required]** Gets the title of this Ticket.
        The title of the ticket.


        :return: The title of this Ticket.
        :rtype: str
        ©r   r*   r%   r%   r&   r   Ö   r+   zTicket.titlec                 C   r,   )z–
        Sets the title of this Ticket.
        The title of the ticket.


        :param title: The title of this Ticket.
        :type: str
        Nr4   )r#   r   r%   r%   r&   r   â   r-   c                 C   r(   )zÊ
        **[Required]** Gets the description of this Ticket.
        The description of the issue addressed in the ticket.


        :return: The description of this Ticket.
        :rtype: str
        ©r   r*   r%   r%   r&   r   î   r+   zTicket.descriptionc                 C   r,   )zÅ
        Sets the description of this Ticket.
        The description of the issue addressed in the ticket.


        :param description: The description of this Ticket.
        :type: str
        Nr5   )r#   r   r%   r%   r&   r   ú   r-   c                 C   r(   )zÏ
        Gets the time_created of this Ticket.
        The time when the ticket was created, in milliseconds since epoch time.


        :return: The time_created of this Ticket.
        :rtype: int
        ©r   r*   r%   r%   r&   r     r+   zTicket.time_createdc                 C   r,   )zÚ
        Sets the time_created of this Ticket.
        The time when the ticket was created, in milliseconds since epoch time.


        :param time_created: The time_created of this Ticket.
        :type: int
        Nr6   )r#   r   r%   r%   r&   r     r-   c                 C   r(   )zÏ
        Gets the time_updated of this Ticket.
        The time when the ticket was updated, in milliseconds since epoch time.


        :return: The time_updated of this Ticket.
        :rtype: int
        ©r    r*   r%   r%   r&   r     r+   zTicket.time_updatedc                 C   r,   )zÚ
        Sets the time_updated of this Ticket.
        The time when the ticket was updated, in milliseconds since epoch time.


        :param time_updated: The time_updated of this Ticket.
        :type: int
        Nr7   )r#   r   r%   r%   r&   r   *  r-   c                 C   r(   )ae  
        Gets the lifecycle_state of this Ticket.
        The current state of the ticket.

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


        :return: The lifecycle_state of this Ticket.
        :rtype: str
        )r!   r*   r%   r%   r&   r   6  r.   zTicket.lifecycle_statec                 C   s    ddg}t ||ƒsd}|| _dS )z¼
        Sets the lifecycle_state of this Ticket.
        The current state of the ticket.


        :param lifecycle_state: The lifecycle_state of this Ticket.
        :type: str
        r
   r   r0   N)r   r!   )r#   r   r1   r%   r%   r&   r   E  r2   c                 C   r(   )a¼  
        Gets the lifecycle_details of this Ticket.
        Additional information about the current `lifecycleState`.

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


        :return: The lifecycle_details of this Ticket.
        :rtype: str
        )r"   r*   r%   r%   r&   r   T  r.   zTicket.lifecycle_detailsc                 C   r/   )zÜ
        Sets the lifecycle_details of this Ticket.
        Additional information about the current `lifecycleState`.


        :param lifecycle_details: The lifecycle_details of this Ticket.
        :type: str
        )r   r   r   r   r0   N)r   r"   )r#   r   r1   r%   r%   r&   r   c  r2   c                 C   s   t | ƒS ©N)r   r*   r%   r%   r&   Ú__repr__r  s   zTicket.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r#   Úotherr%   r%   r&   Ú__eq__u  s   zTicket.__eq__c                 C   s
   | |k S r8   r%   r;   r%   r%   r&   Ú__ne__{  s   
zTicket.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZSEVERITY_HIGHESTZSEVERITY_HIGHZSEVERITY_MEDIUMZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_CLOSEDZ%LIFECYCLE_DETAILS_PENDING_WITH_ORACLEZ'LIFECYCLE_DETAILS_PENDING_WITH_CUSTOMERZ!LIFECYCLE_DETAILS_CLOSE_REQUESTEDZLIFECYCLE_DETAILS_CLOSEDr'   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r9   r=   r>   r%   r%   r%   r&   r      sf    R

















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r%   r%   r%   r&   Ú<module>   s   