o
    ëÉ¶dM  ã                   @   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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 )!ÚCreateIncidentz­
    Details gathered during the creation of the support ticket.

    **Caution:** Avoid using any confidential information when you supply string values using the API.
    ÚLIMITÚLEGACY_LIMITÚTECHÚACCOUNTc                 K   sP   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 CreateIncident object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

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

        :param ticket:
            The value to assign to the ticket property of this CreateIncident.
        :type ticket: oci.cims.models.CreateTicketDetails

        :param csi:
            The value to assign to the csi property of this CreateIncident.
        :type csi: str

        :param problem_type:
            The value to assign to the problem_type property of this CreateIncident.
            Allowed values for this property are: "LIMIT", "LEGACY_LIMIT", "TECH", "ACCOUNT"
        :type problem_type: str

        :param contacts:
            The value to assign to the contacts property of this CreateIncident.
        :type contacts: list[oci.cims.models.Contact]

        :param referrer:
            The value to assign to the referrer property of this CreateIncident.
        :type referrer: str

        ÚstrZCreateTicketDetailszlist[Contact])Úcompartment_idÚticketÚcsiÚproblem_typeÚcontactsÚreferrerZcompartmentIdr   r   ZproblemTyper   r   N)Zswagger_typesZattribute_mapÚ_compartment_idÚ_ticketÚ_csiÚ_problem_typeÚ	_contactsÚ	_referrer)ÚselfÚkwargs© r   úCusr/lib/python3.10/site-packages/oci/cims/models/create_incident.pyÚ__init__$   s(    ú
ú	
zCreateIncident.__init__c                 C   ó   | j S )zÃ
        **[Required]** Gets the compartment_id of this CreateIncident.
        The OCID of the tenancy.


        :return: The compartment_id of this CreateIncident.
        :rtype: str
        ©r   ©r   r   r   r   r   \   ó   
zCreateIncident.compartment_idc                 C   ó
   || _ dS )zÁ
        Sets the compartment_id of this CreateIncident.
        The OCID of the tenancy.


        :param compartment_id: The compartment_id of this CreateIncident.
        :type: str
        Nr   )r   r   r   r   r   r   h   ó   

c                 C   r   )z±
        **[Required]** Gets the ticket of this CreateIncident.

        :return: The ticket of this CreateIncident.
        :rtype: oci.cims.models.CreateTicketDetails
        ©r   r   r   r   r   r   t   s   zCreateIncident.ticketc                 C   r!   )z§
        Sets the ticket of this CreateIncident.

        :param ticket: The ticket of this CreateIncident.
        :type: oci.cims.models.CreateTicketDetails
        Nr#   )r   r   r   r   r   r   ~   s   
c                 C   r   )zÅ
        Gets the csi of this CreateIncident.
        The Customer Support Identifier number for the support account.


        :return: The csi of this CreateIncident.
        :rtype: str
        ©r   r   r   r   r   r   ˆ   r    zCreateIncident.csic                 C   r!   )zÇ
        Sets the csi of this CreateIncident.
        The Customer Support Identifier number for the support account.


        :param csi: The csi of this CreateIncident.
        :type: str
        Nr$   )r   r   r   r   r   r   ”   r"   c                 C   r   )a?  
        **[Required]** Gets the problem_type of this CreateIncident.
        The kind of support ticket, such as a technical issue request.

        Allowed values for this property are: "LIMIT", "LEGACY_LIMIT", "TECH", "ACCOUNT"


        :return: The problem_type of this CreateIncident.
        :rtype: str
        )r   r   r   r   r   r       s   zCreateIncident.problem_typec                 C   s*   g d¢}t ||ƒstd |¡ƒ‚|| _dS )zá
        Sets the problem_type of this CreateIncident.
        The kind of support ticket, such as a technical issue request.


        :param problem_type: The problem_type of this CreateIncident.
        :type: str
        )r   r   r	   r
   z<Invalid value for `problem_type`, must be None or one of {0}N)r   Ú
ValueErrorÚformatr   )r   r   Zallowed_valuesr   r   r   r   ®   s   

þ
c                 C   r   )z¿
        Gets the contacts of this CreateIncident.
        The list of contacts.


        :return: The contacts of this CreateIncident.
        :rtype: list[oci.cims.models.Contact]
        ©r   r   r   r   r   r   À   r    zCreateIncident.contactsc                 C   r!   )zÆ
        Sets the contacts of this CreateIncident.
        The list of contacts.


        :param contacts: The contacts of this CreateIncident.
        :type: list[oci.cims.models.Contact]
        Nr'   )r   r   r   r   r   r   Ì   r"   c                 C   r   )zû
        Gets the referrer of this CreateIncident.
        The incident referrer. This value is often the URL that the customer used when creating the support ticket.


        :return: The referrer of this CreateIncident.
        :rtype: str
        ©r   r   r   r   r   r   Ø   r    zCreateIncident.referrerc                 C   r!   )a  
        Sets the referrer of this CreateIncident.
        The incident referrer. This value is often the URL that the customer used when creating the support ticket.


        :param referrer: The referrer of this CreateIncident.
        :type: str
        Nr(   )r   r   r   r   r   r   ä   r"   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__ð   s   zCreateIncident.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__ó   s   zCreateIncident.__eq__c                 C   s
   | |k S r)   r   r,   r   r   r   Ú__ne__ù   s   
zCreateIncident.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZPROBLEM_TYPE_LIMITZPROBLEM_TYPE_LEGACY_LIMITZPROBLEM_TYPE_TECHZPROBLEM_TYPE_ACCOUNTr   Úpropertyr   Úsetterr   r   r   r   r   r*   r.   r/   r   r   r   r   r      sD    8


	
	







r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   