Ë
    £…j>  ã                   ó¶   — d dl mZ d dlmZmZmZmZ d dlmZ 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mZ d
dlmZ d
dlmZ erd dlmZ  G d„ de«      Zy)é    )Údeepcopy)ÚAnyÚ	AwaitableÚTYPE_CHECKINGÚUnion)ÚSelf)ÚAsyncPipelineClient)ÚAzureKeyCredential)Úpolicies)ÚAsyncHttpResponseÚHttpRequesté   )ÚDeserializerÚ
Serializeré   )Ú'ContentUnderstandingClientConfiguration)Ú*_ContentUnderstandingClientOperationsMixin)ÚAsyncTokenCredentialc            
       óz   — e Zd ZdZdedeedf   deddfd„Zd	d
œde	de
dedee   fd„Zdd„Zdefd„Zdeddfd„Zy)ÚContentUnderstandingClienta   ContentUnderstandingClient.

    :param endpoint: Content Understanding service endpoint. Required.
    :type endpoint: str
    :param credential: Credential used to authenticate requests to the service. Is either a key
     credential type or a token credential type. Required.
    :type credential: ~azure.core.credentials.AzureKeyCredential or
     ~azure.core.credentials_async.AsyncTokenCredential
    :keyword api_version: The API version to use for this operation. Known values are "2025-11-01"
     and None. Default value is "2025-11-01". Note that overriding this default value may result in
     unsupported behavior.
    :paramtype api_version: str
    :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
     Retry-After header is present.
    ÚendpointÚ
credentialr   ÚkwargsÚreturnNc                 ó*  — d}t        d||dœ|¤Ž| _        |j                  dd «      }|�€'t        j                  di |¤Ž| j                  j
                  | j                  j                  | j                  j                  t        j                  di |¤Ž| j                  j                  | j                  j                  | j                  j                  | j                  j                  | j                  j                  t        j                  di |¤Ž| j                  j                  rt        j                  di |¤Žnd | j                  j                   g}t#        d||dœ|¤Ž| _        t'        «       | _        t+        «       | _        d| j(                  _        y )Nz{endpoint}/contentunderstanding)r   r   r   )Úbase_urlr   F© )r   Ú_configÚpopr   ÚRequestIdPolicyÚheaders_policyÚuser_agent_policyÚproxy_policyÚContentDecodePolicyÚredirect_policyÚretry_policyÚauthentication_policyÚcustom_hook_policyÚlogging_policyÚDistributedTracingPolicyÚSensitiveHeaderCleanupPolicyÚhttp_logging_policyr	   Ú_clientr   Ú
_serializer   Ú_deserializeÚclient_side_validation)Úselfr   r   r   Ú	_endpointÚ	_policiess         új/root/aria/tools/markitdown-venv/lib/python3.12/site-packages/azure/ai/contentunderstanding/aio/_client.pyÚ__init__z#ContentUnderstandingClient.__init__+   sU  € ð 6ˆ	Ü>ð 
Ø¨*ñ
Ø8>ñ
ˆŒð —J‘J˜z¨4Ó0ˆ	ØÑä×(Ñ(Ñ2¨6Ñ2Ø—‘×+Ñ+Ø—‘×.Ñ.Ø—‘×)Ñ)Ü×,Ñ,Ñ6¨vÑ6Ø—‘×,Ñ,Ø—‘×)Ñ)Ø—‘×2Ñ2Ø—‘×/Ñ/Ø—‘×+Ñ+Ü×1Ñ1Ñ;°FÑ;ð —|‘|×3Ò3ô ×9Ñ9ÑC¸FÒCàà—‘×0Ñ0ð#ˆIô& -@ð -
Ø¨ñ-
Ø6<ñ-
ˆŒô %›,ˆŒÜ(›NˆÔØ16ˆ�‰Õ.ó    F)ÚstreamÚrequestr7   c                ó  — t        |«      }d| j                  j                  d| j                  j                  dd¬«      i} | j
                  j                  |j                  fi |¤Ž|_         | j
                  j                  |fd|i|¤ŽS )a6  Runs the network request through the client's chained policies.

        >>> from azure.core.rest import HttpRequest
        >>> request = HttpRequest("GET", "https://www.example.org/")
        <HttpRequest [GET], url: 'https://www.example.org/'>
        >>> response = await client.send_request(request)
        <AsyncHttpResponse: 200 OK>

        For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request

        :param request: The network request you want to make. Required.
        :type request: ~azure.core.rest.HttpRequest
        :keyword bool stream: Whether the response payload will be streamed. Defaults to False.
        :return: The response of your network call. Does not do error handling on your response.
        :rtype: ~azure.core.rest.AsyncHttpResponse
        r   zself._config.endpointÚstrT)Ú
skip_quoter7   )r   r.   Úurlr   r   r-   Ú
format_urlÚsend_request)r1   r8   r7   r   Úrequest_copyÚpath_format_argumentss         r4   r>   z'ContentUnderstandingClient.send_requestS   s’   € ô(   Ó(ˆà˜Ÿ™×+Ñ+Ø'¨¯©×)>Ñ)>ÀÐRVð ,ó ð!
Ðð 3˜4Ÿ<™<×2Ñ2Ø×Ññ
Ø 5ñ
ˆÔð )ˆt�|‰|×(Ñ(¨ÑO¸fÐOÈÑOÐOr6   c              ƒ   óT   K  — | j                   j                  «       ƒ d {  –—†  y 7 Œ­w©N)r-   Úclose©r1   s    r4   rC   z ContentUnderstandingClient.closes   s   è ø€ Ø�l‰l× Ñ Ó"×"Ò"ús   ‚( &¡(c              ƒ   óV   K  — | j                   j                  «       ƒ d {  –—†  | S 7 Œ­wrB   )r-   Ú
__aenter__rD   s    r4   rF   z%ContentUnderstandingClient.__aenter__v   s&   è ø€ Ø�l‰l×%Ñ%Ó'×'Ð'Øˆð 	(ús   ‚) '¡)Úexc_detailsc              ‡   óR   K  —  | j                   j                  |Ž ƒ d {  –—†  y 7 Œ­wrB   )r-   Ú	__aexit__)r1   rG   s     r4   rI   z$ContentUnderstandingClient.__aexit__z   s    è ø€ Ø$ˆd�l‰l×$Ñ$ kÐ2×2Ò2ús   ‚'Ÿ% ')r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r:   r   r
   r   r5   r   Úboolr   r   r>   rC   r   rF   rI   r   r6   r4   r   r      s™   „ ñð &7àð&7ð Ð,Ð.DÐDÑEð&7ð ð	&7ð
 
ó&7ðR 7<òPØ"ðPØ/3ðPØGJðPà	Ð$Ñ	%óPó@#ð $ó ð3¨Cð 3°Dô 3r6   r   N)Úcopyr   Útypingr   r   r   r   Útyping_extensionsr   Ú
azure.corer	   Úazure.core.credentialsr
   Úazure.core.pipeliner   Úazure.core.restr   r   Ú_utils.serializationr   r   Ú_configurationr   Ú_operationsr   Úazure.core.credentials_asyncr   r   r   r6   r4   ú<module>rZ      s=   ðõ ß 7Ó 7Ý "å *Ý 5Ý (ß :ç ;Ý CÝ CáÝAôa3Ð!Kõ a3r6   