
    ]j|
                     l    d dl Z ddlmZmZ ddlmZ ddlmZ ddlm	Z	m
Z
  G d d	      Z G d
 d      Zy)    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)VersionResponse   )AsyncRawVersionsClientRawVersionsClientc                   ^    e Zd ZdefdZedefd       Zdddej                  e
   defdZy)	VersionsClientclient_wrapperc                &    t        |      | _        y N)r   )r
   _raw_clientselfr   s     J/root/env/lib/python3.12/site-packages/label_studio_sdk/versions/client.py__init__zVersionsClient.__init__   s    ,NK    returnc                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawVersionsClient
        r   r   s    r   with_raw_responsez VersionsClient.with_raw_response        r   Nrequest_optionsr   c                R    | j                   j                  |      }|j                  S )a  
        Get version information about the Label Studio instance.

        Parameters
        ----------
        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        VersionResponse


        Examples
        --------
        from label_studio_sdk import LabelStudio

        client = LabelStudio(
            api_key="YOUR_API_KEY",
        )
        client.versions.get()
        r   r   getdatar   r   	_responses      r   r    zVersionsClient.get   s'    . $$(((I	~~r   )__name__
__module____qualname__r   r   propertyr
   r   typingOptionalr   r   r     r   r   r   r      sQ    L*; L  #4     IM foon&E Q` r   r   c                   ^    e Zd ZdefdZedefd       Zdddej                  e
   defdZy)	AsyncVersionsClientr   c                &    t        |      | _        y r   )r	   r   r   s     r   r   zAsyncVersionsClient.__init__6   s    1Pr   r   c                     | j                   S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawVersionsClient
        r   r   s    r   r   z%AsyncVersionsClient.with_raw_response9   r   r   Nr   r   c                n   K   | j                   j                  |       d{   }|j                  S 7 w)a>  
        Get version information about the Label Studio instance.

        Parameters
        ----------
        request_options : typing.Optional[RequestOptions]
            Request-specific configuration.

        Returns
        -------
        VersionResponse


        Examples
        --------
        import asyncio

        from label_studio_sdk import AsyncLabelStudio

        client = AsyncLabelStudio(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.versions.get()


        asyncio.run(main())
        r   Nr   r"   s      r   r    zAsyncVersionsClient.getD   s4     > **...OO	~~ Ps    535)r$   r%   r&   r   r   r'   r	   r   r(   r)   r   r   r    r*   r   r   r,   r,   5   sQ    Q*< Q  #9     OS  FOON,K  Wf  r   r,   )r(   core.client_wrapperr   r   core.request_optionsr   types.version_responser   
raw_clientr	   r
   r   r,   r*   r   r   <module>r4      s+     G 1 4 A' 'T/ /r   