
    iy                     X    S r SSKJrJrJrJr  SSKJr  SSKJ	r	  SSK
Jr   " S S5      rg	)
z0Represent IBM Quantum account client parameters.    )DictOptionalAnyCallable   )ProxyConfiguration)default_runtime_url_resolver)	CloudAuthc                       \ rS rSrSr      SS\S\S\S\\   S\\   S	\S
\\   S\\	\\\\   \/\4      SS4S jjr
S\4S jrS\4S jrS\\\4   4S jrSrg)ClientParameters   z&IBM Quantum account client parameters.Nchanneltokenurlinstanceproxiesverifyprivate_endpointurl_resolverreturnc	                 ~    X l         X@l        Xl        X0l        XPl        X`l        Xpl        U(       d  [        nXl        g)a  ClientParameters constructor.

Args:
    channel: Channel type. ``ibm_cloud``, or ``ibm_quantum_platform``.
    token: IBM Quantum Platform API token.
    url: IBM Quantum Platform URL.
    instance: Service instance to use.
    proxies: Proxy configuration.
    verify: If ``False``, ignores SSL certificates errors.
    private_endpoint: Connect to private API URL.
    url_resolver: Function used to resolve the runtime url.
N)	r   r   r   r   r   r   r   r	   r   )	selfr   r   r   r   r   r   r   r   s	            b/home/james-whalen/.local/lib/python3.13/site-packages/qiskit_ibm_runtime/api/client_parameters.py__init__ClientParameters.__init__   s6    . 
  07L(    c                 T    [        U R                  U R                  U R                  S9$ )z.Returns the respective authentication handler.)api_keycrnprivate)r
   r   r   r   r   s    r   get_auth_handler!ClientParameters.get_auth_handler;   s    H]H]^^r   c                 z    U R                  U R                  U R                  U R                  U R                  5      $ )z!Returns the Runtime API base url.)r   r   r   r   r   r!   s    r   get_runtime_api_base_url)ClientParameters.get_runtime_api_base_url?   s.      4==$:O:OQUQ]Q]^^r   c                     SU R                   0nU R                  (       a)  UR                  U R                  R                  5       5        U$ )zConstruct connection related parameters.

Returns:
    A dictionary with connection-related parameters in the format
    expected by ``requests``. The following keys can be present:
    ``proxies``, ``verify``, and ``auth``.
r   )r   r   updateto_request_params)r   request_kwargss     r   connection_parameters&ClientParameters.connection_parametersC   s:      (5<<!!$,,"@"@"BCr   )r   r   r   r   r   r   r   r   )NNNTFN)__name__
__module____qualname____firstlineno____doc__strr   r   boolr   r   r
   r"   r%   r   r   r+   __static_attributes__ r   r   r   r      s    0 "&04+0QU ) )  ) 	 )
 3- ) ,- )  ) #4. ) xc8D>3(G(LMN ) 
 )D_) __# _tCH~ r   r   N)r1   typingr   r   r   r   r   r   utilsr	   api.authr
   r   r5   r   r   <module>r9      s#    7 0 0 ( 0  : :r   