Ë
    £…jj  ã                   ó`   — d dl mZmZmZ d dlmZ d dlmZ ddlm	Z	 erd dl
mZ  G d„ d«      Zy	)
é    )ÚAnyÚTYPE_CHECKINGÚUnion)ÚAzureKeyCredential)Úpoliciesé   )ÚVERSION)ÚAsyncTokenCredentialc                   óH   — e Zd ZdZdedeedf   deddfd„Zd	„ Z	deddfd
„Z
y)Ú'ContentUnderstandingClientConfigurationa  Configuration for ContentUnderstandingClient.

    Note that all parameters used to create this instance are saved as instance
    attributes.

    :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
    ÚendpointÚ
credentialr
   ÚkwargsÚreturnNc                 óR  — |j                  dd«      }|€t        d«      ‚|€t        d«      ‚|| _        || _        || _        |j                  ddg«      | _        |j                  ddj                  t        «      «       |j                  d	d
«      | _
         | j                  di |¤Ž y )NÚapi_versionz
2025-11-01z&Parameter 'endpoint' must not be None.z(Parameter 'credential' must not be None.Úcredential_scopesz,https://cognitiveservices.azure.com/.defaultÚsdk_monikerzai-contentunderstanding/{}Úpolling_intervalé   © )ÚpopÚ
ValueErrorr   r   r   r   Ú
setdefaultÚformatr	   Úgetr   Ú
_configure)Úselfr   r   r   r   s        úq/root/aria/tools/markitdown-venv/lib/python3.12/site-packages/azure/ai/contentunderstanding/aio/_configuration.pyÚ__init__z0ContentUnderstandingClientConfiguration.__init__&   s«   € ð "Ÿ:™: m°\ÓBˆàÐÜÐEÓFÐFØÐÜÐGÓHÐHà ˆŒØ$ˆŒØ&ˆÔØ!'§¡ØÐ"PÐ!Qó"
ˆÔð 	×Ñ˜-Ð)E×)LÑ)LÌWÓ)UÔVØ &§
¡
Ð+=¸rÓ BˆÔØˆ�‰Ñ!˜&Ó!ó    c                 ó.  — t        | j                  t        «      r!t        j                  | j                  dfi |¤ŽS t        | j                  d«      r-t        j                  | j                  g| j                  ¢­i |¤ŽS t        d| j                  › �«      ‚)NzOcp-Apim-Subscription-KeyÚ	get_tokenzUnsupported credential: )	Ú
isinstancer   r   r   ÚAzureKeyCredentialPolicyÚhasattrÚ AsyncBearerTokenCredentialPolicyr   Ú	TypeError©r   r   s     r   Ú_infer_policyz5ContentUnderstandingClientConfiguration._infer_policy=   s�   € Ü�d—o‘oÔ'9Ô:Ü×4Ñ4Ø—‘Ð!<ñØ@Fñð ô �4—?‘? KÔ0Ü×<Ñ<Ø—‘ðØ"&×"8Ñ"8òØ<Bñð ô Ð2°4·?±?Ð2CÐDÓEÐEr!   c                 ób  — |j                  d«      xs t        j                  d
i |¤Ž| _        |j                  d«      xs t        j                  d
i |¤Ž| _        |j                  d«      xs t        j                  d
i |¤Ž| _        |j                  d«      xs t        j                  d
i |¤Ž| _	        |j                  d«      xs t        j                  d
i |¤Ž| _        |j                  d«      xs t        j                  d
i |¤Ž| _        |j                  d«      xs t        j                  d
i |¤Ž| _        |j                  d«      xs t        j                   d
i |¤Ž| _        |j                  d	«      | _        | j&                  r%| j$                  s | j(                  d
i |¤Ž| _        y y y )NÚuser_agent_policyÚheaders_policyÚproxy_policyÚlogging_policyÚhttp_logging_policyÚcustom_hook_policyÚredirect_policyÚretry_policyÚauthentication_policyr   )r   r   ÚUserAgentPolicyr,   ÚHeadersPolicyr-   ÚProxyPolicyr.   ÚNetworkTraceLoggingPolicyr/   ÚHttpLoggingPolicyr0   ÚCustomHookPolicyr1   ÚAsyncRedirectPolicyr2   ÚAsyncRetryPolicyr3   r4   r   r*   r)   s     r   r   z2ContentUnderstandingClientConfiguration._configureH   s­  € Ø!'§¡Øó"
ò "0ä×%Ñ%Ñ/¨Ñ/ð 	Ôð %Ÿj™jÐ)9Ó:ò 
¼h×>TÑ>Tñ ?
Øñ?
ˆÔð #ŸJ™J ~Ó6ÒX¼(×:NÑ:NÑ:XÐQWÑ:XˆÔØ$Ÿj™jØó
ò :ä×/Ñ/Ñ9°&Ñ9ð 	Ôð $*§:¡:Ø!ó$
ò $2ä×'Ñ'Ñ1¨&Ñ1ð 	Ô ð #)§*¡*Ø ó#
ò #1ä×&Ñ&Ñ0¨Ñ0ð 	Ôð  &Ÿz™zØó 
ò  4ä×)Ñ)Ñ3¨FÑ3ð 	Ôð #ŸJ™J ~Ó6ò 
¼(×:SÑ:Sñ ;
Øñ;
ˆÔð &,§Z¡ZÐ0GÓ%HˆÔ"Ø�?Š? 4×#=Ò#=Ø);¨×);Ñ);Ñ)E¸fÑ)EˆDÕ&ð $>ˆ?r!   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústrr   r   r   r    r*   r   r   r!   r   r   r      sZ   „ ñð""àð"ð Ð,Ð.DÐDÑEð"ð ð	"ð
 
ó"ò.	FðF 3ð F¨4ô Fr!   r   N)Útypingr   r   r   Úazure.core.credentialsr   Úazure.core.pipeliner   Ú_versionr	   Úazure.core.credentials_asyncr
   r   r   r!   r   ú<module>rG      s*   ð÷ -Ñ ,å 5Ý (å áÝA÷MFò MFr!   