o
    i                     @   sz   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	 ddl
mZmZ e e jd	ZG d
d dZG dd dZdS )    N   )AsyncClientWrapperSyncClientWrapper)RequestOptions)!ListProjectMemberScopesV1Response)#UpdateProjectMemberScopesV1Response   )AsyncRawScopesClientRawScopesClient.c                   @   |   e Zd ZdefddZedefddZddd	ed
ede	j
e defddZddd	ed
edede	j
e def
ddZdS )ScopesClientclient_wrapperc                C      t |d| _d S N)r   )r
   _raw_clientselfr    r   e/home/ubuntu/.local/lib/python3.10/site-packages/deepgram/manage/v1/projects/members/scopes/client.py__init__      zScopesClient.__init__returnc                 C      | j S )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        RawScopesClient
        r   r   r   r   r   with_raw_response      	zScopesClient.with_raw_responseNrequest_options
project_id	member_idr   c                C   s   | j j|||d}|jS )a*  
        Retrieves a list of scopes for a specific member

        Parameters
        ----------
        project_id : str
            The unique identifier of the project

        member_id : str
            The unique identifier of the Member

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

        Returns
        -------
        ListProjectMemberScopesV1Response
            A list of scopes for a specific member

        Examples
        --------
        from deepgram import DeepgramClient

        client = DeepgramClient(
            api_key="YOUR_API_KEY",
        )
        client.manage.v1.projects.members.scopes.list(
            project_id="123456-7890-1234-5678-901234",
            member_id="123456789012345678901234",
        )
        r   r   listdatar   r   r    r   	_responser   r   r   r"      s   "zScopesClient.listscopec                C   s   | j j||||d}|jS )av  
        Updates the scopes for a specific member

        Parameters
        ----------
        project_id : str
            The unique identifier of the project

        member_id : str
            The unique identifier of the Member

        scope : str
            A scope to update

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

        Returns
        -------
        UpdateProjectMemberScopesV1Response
            Updated the scopes for a specific member

        Examples
        --------
        from deepgram import DeepgramClient

        client = DeepgramClient(
            api_key="YOUR_API_KEY",
        )
        client.manage.v1.projects.members.scopes.update(
            project_id="123456-7890-1234-5678-901234",
            member_id="123456789012345678901234",
            scope="admin",
        )
        r&   r   r   updater#   r   r   r    r&   r   r%   r   r   r   r)   C   s   &zScopesClient.update)__name__
__module____qualname__r   r   propertyr
   r   strtypingOptionalr   r   r"   r   r)   r   r   r   r   r      s4    
&r   c                   @   r   )AsyncScopesClientr   c                C   r   r   )r	   r   r   r   r   r   r   n   r   zAsyncScopesClient.__init__r   c                 C   r   )z
        Retrieves a raw implementation of this client that returns raw responses.

        Returns
        -------
        AsyncRawScopesClient
        r   r   r   r   r   r   q   r   z#AsyncScopesClient.with_raw_responseNr   r   r    r   c                   s    | j j|||dI dH }|jS )a  
        Retrieves a list of scopes for a specific member

        Parameters
        ----------
        project_id : str
            The unique identifier of the project

        member_id : str
            The unique identifier of the Member

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

        Returns
        -------
        ListProjectMemberScopesV1Response
            A list of scopes for a specific member

        Examples
        --------
        import asyncio

        from deepgram import AsyncDeepgramClient

        client = AsyncDeepgramClient(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.manage.v1.projects.members.scopes.list(
                project_id="123456-7890-1234-5678-901234",
                member_id="123456789012345678901234",
            )


        asyncio.run(main())
        r   Nr!   r$   r   r   r   r"   |   s   *zAsyncScopesClient.listr&   c                   s"   | j j||||dI dH }|jS )a  
        Updates the scopes for a specific member

        Parameters
        ----------
        project_id : str
            The unique identifier of the project

        member_id : str
            The unique identifier of the Member

        scope : str
            A scope to update

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

        Returns
        -------
        UpdateProjectMemberScopesV1Response
            Updated the scopes for a specific member

        Examples
        --------
        import asyncio

        from deepgram import AsyncDeepgramClient

        client = AsyncDeepgramClient(
            api_key="YOUR_API_KEY",
        )


        async def main() -> None:
            await client.manage.v1.projects.members.scopes.update(
                project_id="123456-7890-1234-5678-901234",
                member_id="123456789012345678901234",
                scope="admin",
            )


        asyncio.run(main())
        r'   Nr(   r*   r   r   r   r)      s   .zAsyncScopesClient.update)r+   r,   r-   r   r   r.   r	   r   r/   r0   r1   r   r   r"   r   r)   r   r   r   r   r2   m   s4    
.r2   )r0   core.client_wrapperr   r   core.request_optionsr   +types.list_project_member_scopes_v1responser   -types.update_project_member_scopes_v1responser   
raw_clientr	   r
   castAnyOMITr   r2   r   r   r   r   <module>   s   ^