
    i                     (    S r SSKJr   " S S5      rg)zBase REST adapter.   )RetrySessionc                   b    \ rS rSrSr0 r SS0rSS0rSS0rSS\	S	\
S
S4S jjrS\
S
\
4S jrSrg)RestAdapterBase   zBase class for REST adapters.zContent-Typezapplication/jsonAcceptzIBM-API-Versionz
2025-05-01session
prefix_urlreturnNc                 R    Xl         U R                  U R                   l        X l        g)zRestAdapterBase constructor.

Args:
    session: Session to be used in the adapter.
    prefix_url: String to be prepend to all URLs.
N)r   _HEADER_API_VERSIONheadersr	   )selfr   r	   s      Z/home/james-whalen/.local/lib/python3.13/site-packages/qiskit_ibm_runtime/api/rest/base.py__init__RestAdapterBase.__init__   s      #77$    
identifierc                 T    SR                  U R                  U R                  U   5      $ )zReturn the resolved URL for the specified identifier.

Args:
    identifier: Internal identifier of the endpoint.

Returns:
    The resolved URL of the endpoint (relative to the session base URL).
z{}{})formatr	   URL_MAP)r   r   s     r   get_urlRestAdapterBase.get_url)   s"     }}T__dll:.FGGr   )r	   r   ) )__name__
__module____qualname____firstlineno____doc__r   _HEADER_JSON_CONTENT_HEADER_JSON_ACCEPTr   r   strr   r   __static_attributes__ r   r   r   r      s`    'GN*,>?#%78,l;	% 	%# 	%t 	%	H# 	H# 	Hr   r   N)r   r   r   r   r#   r   r   <module>r$      s     " H  Hr   