o
    ɶd9                     @   s   d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZ d dlmZ d dlmZmZmZ d	d
lmZ edZG dd deZdS )    )absolute_import)requests)six)retrycircuit_breaker)
BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME   )queue_type_mappingZMissingc                   @   sP   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd ZdS )QueueClientz(
    A description of the Queue API
    c              
   K   s  t ||dd d|v r|d }n"t|v rt|}nt|d |d |d |dt|d|dd	}d
|dddi |dd|dtj|dd}d|v rY|d|d< |ddu retj|d< d|v rp|d|d< t	d||t
fi || _|d| _|d| _dS )a  
        Creates a new service client

        :param dict config:
            Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
            The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
            the dict using :py:meth:`~oci.config.validate_config`

        :param str service_endpoint: (optional)
            The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
            not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
            need to specify a service endpoint.

        :param timeout: (optional)
            The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
            as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
            a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
        :type timeout: float or tuple(float, float)

        :param signer: (optional)
            The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
            provided in the config parameter.

            One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
            by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
        :type signer: :py:class:`~oci.signer.AbstractBaseSigner`

        :param obj retry_strategy: (optional)
            A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
            Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
            Any value provided at the operation level will override whatever is specified at the client level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
            is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

        :param obj circuit_breaker_strategy: (optional)
            A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
            This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
            The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.

        :param function circuit_breaker_callback: (optional)
            Callback function to receive any exceptions triggerred by the circuit breaker.

        :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
            A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.

        :param allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
            allow control characters to be in the response object.
        signer)r   tenancyuserfingerprintZkey_filepass_phraseZkey_content)r   r   r   Zprivate_key_file_locationr   Zprivate_key_contentTservice_endpointz	/20210201z2https://messaging.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr   	base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmr   r   r   timeoutNallow_control_charsqueueretry_strategycircuit_breaker_callback)r	   getr   r   r
   r   r   ZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYr   r   base_clientr   r   )selfconfigkwargsr   Zbase_client_init_kwargs r%   :usr/lib/python3.10/site-packages/oci/queue/queue_client.py__init__   s>   3





zQueueClient.__init__c                    sl  ddg}d}d}d}d}g d  fdd	t |D }	|	r%td
|	||d}
dd t |
D }
t |
D ]\}}|du sOt|t jrVt| dkrVtd|q9dd|	dt
d}dd t |D }| jj|	d| jd}|du r~tj}|rt|tjs| j| || j |j| jj|||
||	d|||d	S | jj|||
||	d|||dS )a  
        Deletes from the queue the message represented by the receipt.


        :param str queue_id: (required)
            unique Queue identifier

        :param str message_receipt: (required)
            The receipt of the message retrieved from a GetMessages call.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/delete_message.py.html>`__ to see an example of how to use delete_message API.
        queueIdmessageReceipt+/queues/{queueId}/messages/{messageReceipt}ZDELETEdelete_messagezMhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/GetMessage/DeleteMessager   r   opc_request_idc                       g | ]}| vr|qS r%   r%   .0_keyZexpected_kwargsr%   r&   
<listcomp>       z.QueueClient.delete_message.<locals>.<listcomp>z'delete_message got unknown kwargs: {!r}r(   r)   c                 S      i | ]\}}|t ur||qS r%   missingr0   kvr%   r%   r&   
<dictcomp>       z.QueueClient.delete_message.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr-   acceptzcontent-typezopc-request-idc                 S   &   i | ]\}}|t ur|d ur||qS Nr7   r9   r%   r%   r&   r<         & r   Zoperation_retry_strategyZclient_retry_strategyr   )resource_pathmethodpath_paramsheader_paramsr   operation_nameapi_reference_linkrequired_argumentsr   iterkeys
ValueErrorformat	iteritems
isinstancestring_typeslenstripr    r8   r!   get_preferred_retry_strategyr   r   ZDEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_client_retries_headeradd_circuit_breaker_callbackr   make_retrying_callcall_api)r"   queue_idmessage_receiptr$   rL   rF   rG   rJ   rK   extra_kwargsrH   r:   r;   rI   r   r%   r2   r&   r+   r   sn   !$
zQueueClient.delete_messagec                    p  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S )a  
        Deletes multiple messages from the queue.


        :param str queue_id: (required)
            unique Queue identifier

        :param oci.queue.models.DeleteMessagesDetails delete_messages_details: (required)
            Details for the messages to delete.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.DeleteMessagesResult`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/delete_messages.py.html>`__ to see an example of how to use delete_messages API.
        r(   z1/queues/{queueId}/messages/actions/deleteMessagesPOSTdelete_messageszNhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/GetMessage/DeleteMessagesr,   c                    r.   r%   r%   r/   r2   r%   r&   r3     r4   z/QueueClient.delete_messages.<locals>.<listcomp>z(delete_messages got unknown kwargs: {!r}c                 S   r6   r%   r7   r9   r%   r%   r&   r<     r=   z/QueueClient.delete_messages.<locals>.<dictcomp>Nr   r>   r?   r-   r@   c                 S   rB   rC   r7   r9   r%   r%   r&   r<     rD   r   rE   ZDeleteMessagesResultr   
rF   rG   rH   rI   bodyresponse_typer   rJ   rK   rL   rM   )r"   r\   Zdelete_messages_detailsr$   rL   rF   rG   rJ   rK   r^   rH   r:   r;   rI   r   r%   r2   r&   ra      t   !$
zQueueClient.delete_messagesc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7|	dt
|	dt
|	dt
d}dd t |D }dd|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||	||d|	d|||dS | jj|||	||d|	d|||d
S )a  
        Consumes message from the queue.


        :param str queue_id: (required)
            unique Queue identifier

        :param int visibility_in_seconds: (optional)
            If the visibilityInSeconds parameter is set, messages will be hidden for visibilityInSeconds seconds and won't be consumable by other consumers during that time.
            If it isn't set it defaults to the value set at the queue level. The minimum is 0 and the maximum is 43,200 (12 hours).
            Using a visibilityInSeconds of 0, effectively acts as a peek functionality.
            Messages retrieved that way, aren't meant to be deleted because they will most likely be delivered to another consumer as their visibility won't change, but will still increase the delivery count by one.

        :param int timeout_in_seconds: (optional)
            If the timeoutInSeconds parameter isn't set or set to a value greater than zero, the request is using the long-polling mode and will only return when a message is available for consumption (it does not wait for limit messages but still only returns at-most limit messages) or after timeoutInSeconds seconds (in which case it will return an empty response) whichever comes first.
            If the parameter is set to zero, the request is using the short-polling mode and immediately returns whether messages have been retrieved or not.
            In same rare-cases a long-polling request could be interrupted (returned with empty response) before the end of the timeout.
            The minimum is 0 (long polling disabled), the maximum is 30 seconds and default is 30 seconds.

        :param int limit: (optional)
            The limit parameter controls how many messages is returned at-most.
            The default is 1, the minimum is 1 and the maximum is 32.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.GetMessages`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/get_messages.py.html>`__ to see an example of how to use get_messages API.
        r(   /queues/{queueId}/messagesGETget_messageszKhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/GetMessage/GetMessages)r   r   visibility_in_secondstimeout_in_secondslimitr-   c                    r.   r%   r%   r/   r2   r%   r&   r3   z  r4   z,QueueClient.get_messages.<locals>.<listcomp>z%get_messages got unknown kwargs: {!r}c                 S   r6   r%   r7   r9   r%   r%   r&   r<     r=   z,QueueClient.get_messages.<locals>.<dictcomp>Nr   r>   ri   rj   rk   )ZvisibilityInSecondsZtimeoutInSecondsrk   c                 S   rB   rC   r7   r9   r%   r%   r&   r<     rD   r?   r-   r@   c                 S   rB   rC   r7   r9   r%   r%   r&   r<     rD   r   rE   ZGetMessagesr   )
rF   rG   rH   query_paramsrI   rd   r   rJ   rK   rL   r   rN   rO   rP   rQ   rR   rS   rT   rU   r    r8   r!   rV   r   r   rW   rX   rY   r   rZ   r[   )r"   r\   r$   rL   rF   rG   rJ   rK   r^   rH   r:   r;   rl   rI   r   r%   r2   r&   rh   =  sz   .$



zQueueClient.get_messagesc                    sl  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	S )a  
        Gets the statistics for the queue and its dead letter queue.


        :param str queue_id: (required)
            unique Queue identifier

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.QueueStats`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/get_stats.py.html>`__ to see an example of how to use get_stats API.
        r(   z/queues/{queueId}/statsrg   	get_statszHhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/QueueStats/GetStatsr,   c                    r.   r%   r%   r/   r2   r%   r&   r3     r4   z)QueueClient.get_stats.<locals>.<listcomp>z"get_stats got unknown kwargs: {!r}c                 S   r6   r%   r7   r9   r%   r%   r&   r<     r=   z)QueueClient.get_stats.<locals>.<dictcomp>Nr   r>   r?   r-   r@   c                 S   rB   rC   r7   r9   r%   r%   r&   r<     rD   r   rE   Z
QueueStatsr   )	rF   rG   rH   rI   rd   r   rJ   rK   rL   rM   )r"   r\   r$   rL   rF   rG   rJ   rK   r^   rH   r:   r;   rI   r   r%   r2   r&   rn     sp   $
zQueueClient.get_statsc                    sb  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
d}dd t |D }| jj|	d| jd}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
S )a  
        Puts messages in the queue


        :param str queue_id: (required)
            unique Queue identifier

        :param oci.queue.models.PutMessagesDetails put_messages_details: (required)
            Details for the messages to publish.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.PutMessages`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/put_messages.py.html>`__ to see an example of how to use put_messages API.
        r(   rf   r`   put_messageszKhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/PutMessage/PutMessagesr,   c                    r.   r%   r%   r/   r2   r%   r&   r3   H  r4   z,QueueClient.put_messages.<locals>.<listcomp>z%put_messages got unknown kwargs: {!r}c                 S   r6   r%   r7   r9   r%   r%   r&   r<   Q  r=   z,QueueClient.put_messages.<locals>.<dictcomp>Nr   r>   r?   r-   r@   c                 S   rB   rC   r7   r9   r%   r%   r&   r<   \  rD   r   rE   ZPutMessagesr   rb   rm   )r"   r\   Zput_messages_detailsr$   rL   rF   rG   rJ   rK   r^   rH   r:   r;   rI   r   r%   r2   r&   ro     sp   !$
zQueueClient.put_messagesc                    st  ddg}d}d}d}d}	g d  fdd	t |D }
|
r%td
|
||d}dd t |D }t |D ]\}}|du sOt|t jrVt| dkrVtd|q9dd|	dt
d}dd t |D }| jj|	d| jd}|du r~tj}|rt|tjs| j| || j |j| jj|||||d|	d||	|dS | jj|||||d|	d||	|d
S )a0  
        Updates the visibility of the message represented by the receipt.


        :param str queue_id: (required)
            unique Queue identifier

        :param str message_receipt: (required)
            The receipt of the message retrieved from a GetMessages call.

        :param oci.queue.models.UpdateMessageDetails update_message_details: (required)
            Details for the message to update.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.UpdatedMessage`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/update_message.py.html>`__ to see an example of how to use update_message API.
        r(   r)   r*   ZPUTupdate_messagezQhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/UpdatedMessage/UpdateMessager,   c                    r.   r%   r%   r/   r2   r%   r&   r3     r4   z.QueueClient.update_message.<locals>.<listcomp>z'update_message got unknown kwargs: {!r}r5   c                 S   r6   r%   r7   r9   r%   r%   r&   r<     r=   z.QueueClient.update_message.<locals>.<dictcomp>Nr   r>   r?   r-   r@   c                 S   rB   rC   r7   r9   r%   r%   r&   r<     rD   r   rE   ZUpdatedMessager   rb   rM   )r"   r\   r]   Zupdate_message_detailsr$   rL   rF   rG   rJ   rK   r^   rH   r:   r;   rI   r   r%   r2   r&   rp     sv   $$
zQueueClient.update_messagec                    r_   )a  
        Updates multiple messages in the queue.


        :param str queue_id: (required)
            unique Queue identifier

        :param oci.queue.models.UpdateMessagesDetails update_messages_details: (required)
            Details for the messages to update.

        :param str opc_request_id: (optional)
            The client request ID for tracing.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.UpdateMessagesResult`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/queue/update_messages.py.html>`__ to see an example of how to use update_messages API.
        r(   z1/queues/{queueId}/messages/actions/updateMessagesr`   update_messageszNhttps://docs.oracle.com/iaas/api/#/en/queue/20210201/GetMessage/UpdateMessagesr,   c                    r.   r%   r%   r/   r2   r%   r&   r3     r4   z/QueueClient.update_messages.<locals>.<listcomp>z(update_messages got unknown kwargs: {!r}c                 S   r6   r%   r7   r9   r%   r%   r&   r<   !  r=   z/QueueClient.update_messages.<locals>.<dictcomp>Nr   r>   r?   r-   r@   c                 S   rB   rC   r7   r9   r%   r%   r&   r<   ,  rD   r   rE   ZUpdateMessagesResultr   rb   rM   )r"   r\   Zupdate_messages_detailsr$   rL   rF   rG   rJ   rK   r^   rH   r:   r;   rI   r   r%   r2   r&   rq     re   zQueueClient.update_messagesN)__name__
__module____qualname____doc__r'   r+   ra   rh   rn   ro   rp   rq   r%   r%   r%   r&   r      s    Xdg|bekr   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   Zmodelsr   r8   objectr   r%   r%   r%   r&   <module>   s   