
    i?1i                    t    d dl mZ d dlmZ d dlmZ d dlmZmZ d dl	m
Z
mZ  G d de      Z G d d	e      Zy
)    )annotations)Any)ignore_docs)ActorJobBaseClientActorJobBaseClientAsync)	LogClientLogClientAsyncc                  \     e Zd ZdZed
 fd       ZddZddZddZddddZ	dd	Z
 xZS )BuildClientz1Sub-client for manipulating a single actor build.c                L    |j                  dd      }t        |   |d|i| y)zInitialize the BuildClient.resource_pathactor-buildsNpopsuper__init__selfargskwargsr   	__class__s       u/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/apify_client/clients/resource_clients/build.pyr   zBuildClient.__init__   ,     

?NC$FmFvF    c                "    | j                         S )Return information about the actor build.

        https://docs.apify.com/api/v2#/reference/actor-builds/build-object/get-build

        Returns:
            dict, optional: The retrieved actor build data
        _getr   s    r   getzBuildClient.get   s     yy{r   c                "    | j                         S )sDelete the build.

        https://docs.apify.com/api/v2#/reference/actor-builds/delete-build/delete-build
        _deleter   s    r   deletezBuildClient.delete   s    
 ||~r   c                "    | j                         S )Abort the actor build which is starting or currently running and return its details.

        https://docs.apify.com/api/v2#/reference/actor-builds/abort-build/abort-build

        Returns:
            dict: The data of the aborted actor build
        _abortr   s    r   abortzBuildClient.abort%   s     {{}r   N	wait_secsc               &    | j                  |      S )  Wait synchronously until the build finishes or the server times out.

        Args:
            wait_secs (int, optional): how long does the client wait for build to finish. None for indefinite.

        Returns:
            dict, optional: The actor build data. If the status on the object is not one of the terminal statuses
                (SUCEEDED, FAILED, TIMED_OUT, ABORTED), then the build has not yet finished.
        r+   _wait_for_finishr   r,   s     r   wait_for_finishzBuildClient.wait_for_finish/   s     $$y$99r   c                8    t        di | j                  d      S )zGet the client for the log of the actor build.

        https://docs.apify.com/api/v2/#/reference/actor-builds/build-log/get-log

        Returns:
            LogClient: A client allowing access to the log of this actor build.
        logr    )r   _sub_resource_init_optionsr   s    r   r4   zBuildClient.log;   s'      
--E-B
 	
r   )r   r   r   r   r   r   returnNone)r   r   r8   dict | None)r   r   r8   r9   )r   r   r8   dict)r   r   r,   
int | Noner8   r:   )r   r   r8   r   )__name__
__module____qualname____doc__r   r   r    r%   r*   r2   r4   __classcell__r   s   @r   r   r      s:    ;G G
 GK 
:

r   r   c                  \     e Zd ZdZed
 fd       ZddZddZddZddddZ	dd	Z
 xZS )BuildClientAsyncz7Async sub-client for manipulating a single actor build.c                L    |j                  dd      }t        |   |d|i| y)z Initialize the BuildClientAsync.r   r   Nr   r   s       r   r   zBuildClientAsync.__init__K   r   r   c                >   K   | j                          d{   S 7 w)r   Nr   r   s    r   r    zBuildClientAsync.getQ   s      YY[      c                >   K   | j                          d{   S 7 w)r'   Nr(   r   s    r   r*   zBuildClientAsync.abort[   s      [[]"""rG   c                >   K   | j                          d{   S 7 w)r"   Nr#   r   s    r   r%   zBuildClientAsync.deletee   s     
 \\^###rG   Nr+   c               B   K   | j                  |       d{   S 7 w)r.   r+   Nr/   r1   s     r   r2   z BuildClientAsync.wait_for_finishl   s"      **Y*????s   c                8    t        di | j                  d      S )zGet the client for the log of the actor build.

        https://docs.apify.com/api/v2/#/reference/actor-builds/build-log/get-log

        Returns:
            LogClientAsync: A client allowing access to the log of this actor build.
        r4   r5   r6   )r	   r7   r   s    r   r4   zBuildClientAsync.logx   s'      
--E-B
 	
r   )r   rD   r   r   r   r   r8   r9   )r   rD   r8   r:   )r   rD   r8   r;   )r   rD   r8   r9   )r   rD   r,   r<   r8   r:   )r   rD   r8   r	   )r=   r>   r?   r@   r   r   r    r*   r%   r2   r4   rA   rB   s   @r   rD   rD   H   s;    AG G
!#$ RV 
@

r   rD   N)
__future__r   typingr   apify_shared.utilsr   apify_client.clients.baser   r   )apify_client.clients.resource_clients.logr   r	   r   rD   r6   r   r   <module>rQ      s/    "  * Q O:
$ :
z:
. :
r   