o
    ëÉ¶dK  ã                   @   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ed7d8„ ƒZejd9d8„ ƒZd:d;„ Zd<d=„ Zd>d?„ Zd@S )AÚQueuez
    Description of Queue.
    ÚCREATINGÚUPDATINGÚACTIVEÚDELETINGÚDELETEDÚFAILEDc                 K   s0  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“| _ 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%S )&aI  
        Initializes a new Queue 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 Queue.
        :type id: str

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

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

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

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

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Queue.
            Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", '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 Queue.
        :type lifecycle_details: str

        :param messages_endpoint:
            The value to assign to the messages_endpoint property of this Queue.
        :type messages_endpoint: str

        :param retention_in_seconds:
            The value to assign to the retention_in_seconds property of this Queue.
        :type retention_in_seconds: int

        :param visibility_in_seconds:
            The value to assign to the visibility_in_seconds property of this Queue.
        :type visibility_in_seconds: int

        :param timeout_in_seconds:
            The value to assign to the timeout_in_seconds property of this Queue.
        :type timeout_in_seconds: int

        :param dead_letter_queue_delivery_count:
            The value to assign to the dead_letter_queue_delivery_count property of this Queue.
        :type dead_letter_queue_delivery_count: int

        :param custom_encryption_key_id:
            The value to assign to the custom_encryption_key_id property of this Queue.
        :type custom_encryption_key_id: str

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

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

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

        ÚidÚstrÚdisplay_nameÚcompartment_idÚtime_createdÚdatetimeÚtime_updatedÚlifecycle_stateÚlifecycle_detailsÚmessages_endpointÚretention_in_secondsÚintÚvisibility_in_secondsÚtimeout_in_secondsÚ dead_letter_queue_delivery_countÚcustom_encryption_key_idÚfreeform_tagszdict(str, str)Údefined_tagszdict(str, dict(str, object))Úsystem_tagsZdisplayNameZcompartmentIdZtimeCreatedZtimeUpdatedZlifecycleStateZlifecycleDetailsZmessagesEndpointZretentionInSecondsZvisibilityInSecondsZtimeoutInSecondsZdeadLetterQueueDeliveryCountZcustomEncryptionKeyIdZfreeformTagsZdefinedTagsZ
systemTagsN)Zswagger_typesZattribute_mapÚ_idÚ_display_nameÚ_compartment_idÚ_time_createdÚ_time_updatedÚ_lifecycle_stateÚ_lifecycle_detailsÚ_messages_endpointÚ_retention_in_secondsÚ_visibility_in_secondsÚ_timeout_in_secondsÚ!_dead_letter_queue_delivery_countÚ_custom_encryption_key_idÚ_freeform_tagsÚ_defined_tagsÚ_system_tags)ÚselfÚkwargs© r2   ú:usr/lib/python3.10/site-packages/oci/queue/models/queue.pyÚ__init__*   s¤   Hÿþýüûúùø	÷
öõôóòñðÿþýüûúùø	÷
öõôóòñð
zQueue.__init__c                 C   ó   | j S )z°
        **[Required]** Gets the id of this Queue.
        Unique identifier that is immutable on creation


        :return: The id of this Queue.
        :rtype: str
        ©r    ©r0   r2   r2   r3   r   ©   ó   
zQueue.idc                 C   ó
   || _ dS )z¢
        Sets the id of this Queue.
        Unique identifier that is immutable on creation


        :param id: The id of this Queue.
        :type: str
        Nr6   )r0   r   r2   r2   r3   r   µ   ó   

c                 C   r5   )z¦
        Gets the display_name of this Queue.
        Queue Identifier, can be renamed


        :return: The display_name of this Queue.
        :rtype: str
        ©r!   r7   r2   r2   r3   r   Á   r8   zQueue.display_namec                 C   r9   )z±
        Sets the display_name of this Queue.
        Queue Identifier, can be renamed


        :param display_name: The display_name of this Queue.
        :type: str
        Nr;   )r0   r   r2   r2   r3   r   Í   r:   c                 C   r5   )z¯
        **[Required]** Gets the compartment_id of this Queue.
        Compartment Identifier


        :return: The compartment_id of this Queue.
        :rtype: str
        ©r"   r7   r2   r2   r3   r   Ù   r8   zQueue.compartment_idc                 C   r9   )z­
        Sets the compartment_id of this Queue.
        Compartment Identifier


        :param compartment_id: The compartment_id of this Queue.
        :type: str
        Nr<   )r0   r   r2   r2   r3   r   å   r:   c                 C   r5   )zâ
        **[Required]** Gets the time_created of this Queue.
        The time the the Queue was created. An RFC3339 formatted datetime string


        :return: The time_created of this Queue.
        :rtype: datetime
        ©r#   r7   r2   r2   r3   r   ñ   r8   zQueue.time_createdc                 C   r9   )zÞ
        Sets the time_created of this Queue.
        The time the the Queue was created. An RFC3339 formatted datetime string


        :param time_created: The time_created of this Queue.
        :type: datetime
        Nr=   )r0   r   r2   r2   r3   r   ý   r:   c                 C   r5   )zÞ
        **[Required]** Gets the time_updated of this Queue.
        The time the Queue was updated. An RFC3339 formatted datetime string


        :return: The time_updated of this Queue.
        :rtype: datetime
        ©r$   r7   r2   r2   r3   r   	  r8   zQueue.time_updatedc                 C   r9   )zÚ
        Sets the time_updated of this Queue.
        The time the Queue was updated. An RFC3339 formatted datetime string


        :param time_updated: The time_updated of this Queue.
        :type: datetime
        Nr>   )r0   r   r2   r2   r3   r     r:   c                 C   r5   )a   
        **[Required]** Gets the lifecycle_state of this Queue.
        The current state of the Queue.

        Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Queue.
        :rtype: str
        )r%   r7   r2   r2   r3   r   !  s   zQueue.lifecycle_statec                 C   s    g d¢}t ||ƒsd}|| _dS )z¹
        Sets the lifecycle_state of this Queue.
        The current state of the Queue.


        :param lifecycle_state: The lifecycle_state of this Queue.
        :type: str
        )r   r   r	   r
   r   r   ZUNKNOWN_ENUM_VALUEN)r   r%   )r0   r   Zallowed_valuesr2   r2   r3   r   0  s   


c                 C   r5   )a!  
        Gets the lifecycle_details of this Queue.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.


        :return: The lifecycle_details of this Queue.
        :rtype: str
        ©r&   r7   r2   r2   r3   r   ?  r8   zQueue.lifecycle_detailsc                 C   r9   )a1  
        Sets the lifecycle_details of this Queue.
        A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.


        :param lifecycle_details: The lifecycle_details of this Queue.
        :type: str
        Nr?   )r0   r   r2   r2   r3   r   K  r:   c                 C   r5   )zß
        **[Required]** Gets the messages_endpoint of this Queue.
        The endpoint to use to consume or publish messages in the queue.


        :return: The messages_endpoint of this Queue.
        :rtype: str
        ©r'   r7   r2   r2   r3   r   W  r8   zQueue.messages_endpointc                 C   r9   )zà
        Sets the messages_endpoint of this Queue.
        The endpoint to use to consume or publish messages in the queue.


        :param messages_endpoint: The messages_endpoint of this Queue.
        :type: str
        Nr@   )r0   r   r2   r2   r3   r   c  r:   c                 C   r5   )zã
        **[Required]** Gets the retention_in_seconds of this Queue.
        The retention period of the messages in the queue, in seconds.


        :return: The retention_in_seconds of this Queue.
        :rtype: int
        ©r(   r7   r2   r2   r3   r   o  r8   zQueue.retention_in_secondsc                 C   r9   )zç
        Sets the retention_in_seconds of this Queue.
        The retention period of the messages in the queue, in seconds.


        :param retention_in_seconds: The retention_in_seconds of this Queue.
        :type: int
        NrA   )r0   r   r2   r2   r3   r   {  r:   c                 C   r5   )zæ
        **[Required]** Gets the visibility_in_seconds of this Queue.
        The default visibility of the messages consumed from the queue.


        :return: The visibility_in_seconds of this Queue.
        :rtype: int
        ©r)   r7   r2   r2   r3   r   ‡  r8   zQueue.visibility_in_secondsc                 C   r9   )zë
        Sets the visibility_in_seconds of this Queue.
        The default visibility of the messages consumed from the queue.


        :param visibility_in_seconds: The visibility_in_seconds of this Queue.
        :type: int
        NrB   )r0   r   r2   r2   r3   r   “  r:   c                 C   r5   )zæ
        **[Required]** Gets the timeout_in_seconds of this Queue.
        The default polling timeout of the messages in the queue, in seconds.


        :return: The timeout_in_seconds of this Queue.
        :rtype: int
        ©r*   r7   r2   r2   r3   r   Ÿ  r8   zQueue.timeout_in_secondsc                 C   r9   )zè
        Sets the timeout_in_seconds of this Queue.
        The default polling timeout of the messages in the queue, in seconds.


        :param timeout_in_seconds: The timeout_in_seconds of this Queue.
        :type: int
        NrC   )r0   r   r2   r2   r3   r   «  r:   c                 C   r5   )aW  
        **[Required]** Gets the dead_letter_queue_delivery_count of this Queue.
        The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used.


        :return: The dead_letter_queue_delivery_count of this Queue.
        :rtype: int
        ©r+   r7   r2   r2   r3   r   ·  r8   z&Queue.dead_letter_queue_delivery_countc                 C   r9   )ag  
        Sets the dead_letter_queue_delivery_count of this Queue.
        The number of times a message can be delivered to a consumer before being moved to the dead letter queue. A value of 0 indicates that the DLQ is not used.


        :param dead_letter_queue_delivery_count: The dead_letter_queue_delivery_count of this Queue.
        :type: int
        NrD   )r0   r   r2   r2   r3   r   Ã  r:   c                 C   r5   )zó
        Gets the custom_encryption_key_id of this Queue.
        Id of the custom master encryption key which will be used to encrypt messages content


        :return: The custom_encryption_key_id of this Queue.
        :rtype: str
        ©r,   r7   r2   r2   r3   r   Ï  r8   zQueue.custom_encryption_key_idc                 C   r9   )a
  
        Sets the custom_encryption_key_id of this Queue.
        Id of the custom master encryption key which will be used to encrypt messages content


        :param custom_encryption_key_id: The custom_encryption_key_id of this Queue.
        :type: str
        NrE   )r0   r   r2   r2   r3   r   Û  r:   c                 C   r5   )a1  
        Gets the freeform_tags of this Queue.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Queue.
        :rtype: dict(str, str)
        ©r-   r7   r2   r2   r3   r   ç  ó   zQueue.freeform_tagsc                 C   r9   )a=  
        Sets the freeform_tags of this Queue.
        Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Queue.
        :type: dict(str, str)
        NrF   )r0   r   r2   r2   r3   r   ô  ó   
c                 C   r5   )a+  
        Gets the defined_tags of this Queue.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Queue.
        :rtype: dict(str, dict(str, object))
        ©r.   r7   r2   r2   r3   r     rG   zQueue.defined_tagsc                 C   r9   )a6  
        Sets the defined_tags of this Queue.
        Defined tags for this resource. Each key is predefined and scoped to a namespace.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Queue.
        :type: dict(str, dict(str, object))
        NrI   )r0   r   r2   r2   r3   r     rH   c                 C   r5   )a(  
        Gets the system_tags of this Queue.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :return: The system_tags of this Queue.
        :rtype: dict(str, dict(str, object))
        ©r/   r7   r2   r2   r3   r     rG   zQueue.system_tagsc                 C   r9   )a2  
        Sets the system_tags of this Queue.
        Usage of system tag keys. These predefined keys are scoped to namespaces.
        Example: `{"orcl-cloud": {"free-tier-retained": "true"}}`


        :param system_tags: The system_tags of this Queue.
        :type: dict(str, dict(str, object))
        NrJ   )r0   r   r2   r2   r3   r   (  rH   c                 C   s   t | ƒS ©N)r   r7   r2   r2   r3   Ú__repr__5  s   zQueue.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r0   Úotherr2   r2   r3   Ú__eq__8  s   zQueue.__eq__c                 C   s
   | |k S rK   r2   rN   r2   r2   r3   Ú__ne__>  s   
zQueue.__ne__N) Ú__name__Ú
__module__Ú__qualname__Ú__doc__ZLIFECYCLE_STATE_CREATINGZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_FAILEDr4   Úpropertyr   Úsetterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rL   rP   rQ   r2   r2   r2   r3   r      s˜    































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r2   r2   r2   r3   Ú<module>   s   