
    i?1i                    x    d dl mZ d dlmZmZ d dlmZ d dlmZm	Z	 erd dl
mZ  G d de      Z G d d	e	      Zy
)    )annotations)TYPE_CHECKINGAny)ignore_docs)ResourceCollectionClientResourceCollectionClientAsync)ListPagec                  R     e Zd ZdZed fd       Zdddd	 	 	 	 	 	 	 	 	 ddZ xZS )BuildCollectionClientz$Sub-client for listing actor builds.c                L    |j                  dd      }t        |   |d|i| y)z%Initialize the BuildCollectionClient.resource_pathactor-buildsNpopsuper__init__selfargskwargsr   	__class__s       /home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/apify_client/clients/resource_clients/build_collection.pyr   zBuildCollectionClient.__init__   ,     

?NC$FmFvF    Nlimitoffsetdescc               *    | j                  |||      S )  List all actor builds (either of a single actor, or all user's actors, depending on where this client was initialized from).

        https://docs.apify.com/api/v2#/reference/actors/build-collection/get-list-of-builds
        https://docs.apify.com/api/v2#/reference/actor-builds/build-collection/get-user-builds-list

        Args:
            limit (int, optional): How many builds to retrieve
            offset (int, optional): What build to include as first when retrieving the list
            desc (bool, optional): Whether to sort the builds in descending order based on their start date

        Returns:
            ListPage: The retrieved actor builds
        r   _listr   r   r   r   s       r   listzBuildCollectionClient.list   s    ( zzf4z@@r   )r   r   r   r   r   r   returnNone)
r   r   r   
int | Noner   r'   r   bool | Noner%   ListPage[dict]__name__
__module____qualname____doc__r   r   r$   __classcell__r   s   @r   r   r      s`    .G G !! A#A A 	A
 A 
Ar   r   c                  R     e Zd ZdZed fd       Zdddd	 	 	 	 	 	 	 	 	 ddZ xZS )BuildCollectionClientAsyncz*Async sub-client for listing actor builds.c                L    |j                  dd      }t        |   |d|i| y)z*Initialize the BuildCollectionClientAsync.r   r   Nr   r   s       r   r   z#BuildCollectionClientAsync.__init__0   r   r   Nr   c               F   K   | j                  |||       d{   S 7 w)r    r   Nr!   r#   s       r   r$   zBuildCollectionClientAsync.list6   s#     ( ZZeFZFFFFs   !!)r   r2   r   r   r   r   r%   r&   )
r   r2   r   r'   r   r'   r   r(   r%   r)   r*   r0   s   @r   r2   r2   -   s`    4G G !! G(G G 	G
 G 
Gr   r2   N)
__future__r   typingr   r   apify_shared.utilsr   apify_client.clients.baser   r   apify_shared.modelsr	   r   r2    r   r   <module>r;      s6    " % * ],A4 A@G!> Gr   