
    ]h                        d dl mZ d dlmZmZmZmZmZmZ  ed      Z	 ed      Z
er!ddlmZmZmZ eee
e	f   ee
e	f   ee
e	f   f   Z G d dee
e	f         Z G d	 d
      Zy)    )annotations)UnionOptionalAnyGenericTypeVarTYPE_CHECKINGHTTPResponseTypeHTTPRequestType   )
HTTPPolicyAsyncHTTPPolicySansIOHTTPPolicyc                      e Zd ZdZddZy)Configurationa   Provides the home for all of the configurable policies in the pipeline.

    A new Configuration object provides no default policies and does not specify in what
    order the policies will be added to the pipeline. The SDK developer must specify each
    of the policy defaults as required by the service and use the policies in the
    Configuration to construct the pipeline correctly, as well as inserting any
    unexposed/non-configurable policies.

    :ivar headers_policy: Provides parameters for custom or additional headers to be sent with the request.
    :ivar proxy_policy: Provides configuration parameters for proxy.
    :ivar redirect_policy: Provides configuration parameters for redirects.
    :ivar retry_policy: Provides configuration parameters for retries in the pipeline.
    :ivar custom_hook_policy: Provides configuration parameters for a custom hook.
    :ivar logging_policy: Provides configuration parameters for logging.
    :ivar http_logging_policy: Provides configuration parameters for HTTP specific logging.
    :ivar user_agent_policy: Provides configuration parameters to append custom values to the
     User-Agent header.
    :ivar authentication_policy: Provides configuration parameters for adding a bearer token Authorization
     header to requests.
    :ivar request_id_policy: Provides configuration parameters for adding a request id to requests.
    :keyword polling_interval: Polling interval while doing LRO operations, if Retry-After is not set.

    .. admonition:: Example:

        .. literalinclude:: ../samples/test_example_config.py
            :start-after: [START configuration]
            :end-before: [END configuration]
            :language: python
            :caption: Creates the service configuration and adds policies.
    c                    d | _         d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _        d | _	        |j                  dd      | _        y )Npolling_interval   )headers_policyproxy_policyredirect_policyretry_policycustom_hook_policylogging_policyhttp_logging_policyuser_agent_policyauthentication_policyrequest_id_policygetr   )selfkwargss     ^/var/www/core.comfia.cic-ware.com/crm/lib/python3.12/site-packages/azure/core/configuration.py__init__zConfiguration.__init__J   s    VZ UY X\ UY [_ W[ \`  Z^ ^b" Z^ (.zz2Db'I    N)r!   r   returnNone__name__
__module____qualname____doc__r#    r$   r"   r   r   *   s    > Jr$   r   c                  @    e Zd ZdZdddddd	 	 	 	 	 	 	 	 	 	 	 	 	 ddZy)	ConnectionConfigurationa(  HTTP transport connection configuration settings.

    Common properties that can be configured on all transports. Found in the
    Configuration object.

    :keyword float connection_timeout: A single float in seconds for the connection timeout. Defaults to 300 seconds.
    :keyword float read_timeout: A single float in seconds for the read timeout. Defaults to 300 seconds.
    :keyword connection_verify: SSL certificate verification. Enabled by default. Set to False to disable,
     alternatively can be set to the path to a CA_BUNDLE file or directory with certificates of trusted CAs.
    :paramtype connection_verify: bool or str
    :keyword str connection_cert: Client-side certificates. You can specify a local cert to use as client side
     certificate, as a single file (containing the private key and the certificate) or as a tuple of both files' paths.
    :keyword int connection_data_block_size: The block size of data sent over the connection. Defaults to 4096 bytes.

    .. admonition:: Example:

        .. literalinclude:: ../samples/test_example_config.py
            :start-after: [START connection_configuration]
            :end-before: [END connection_configuration]
            :language: python
            :dedent: 4
            :caption: Configuring transport connection settings.
    i,  TNi   )connection_timeoutread_timeoutconnection_verifyconnection_certconnection_data_block_sizec               J    || _         || _        || _        || _        || _        y )N)timeoutr0   verifycertdata_block_size)r    r/   r0   r1   r2   r3   r!   s          r"   r#   z ConnectionConfiguration.__init__   s)     *('#	9r$   )r/   floatr0   r9   r1   zUnion[bool, str]r2   zOptional[str]r3   intr!   r   r%   r&   r'   r,   r$   r"   r.   r.   m   sc    6 %(!.2)-*.: ": 	:
 ,: ': %(: : 
:r$   r.   N)
__future__r   typingr   r   r   r   r   r	   r
   r   pipeline.policiesr   r   r   	AnyPolicyr   r.   r,   r$   r"   <module>r?      s   4 # H H-. +,PP?$445)99:*::;	=I@JGO-==> @JF': ':r$   