
    _iL                       S SK Jr  S SKJr  S SKrSSKJr  SSKJrJ	r	  SSK
JrJrJrJrJrJrJrJrJr  SSKJrJr  SS	KJr  SS
KJrJr  SSKJrJr  SSKJ r J!r!J"r"J#r#J$r$J%r%  SSK&J'r'J(r(  SSK)J*r*J+r+  SSK,J-r-  SSK.J/r/  SSK0J1r1  SS/r2 " S S\5      r3 " S S\5      r4 " S S5      r5 " S S5      r6 " S S5      r7 " S S5      r8g)    )annotations)LiteralN   )_legacy_response)container_list_paramscontainer_create_params)	BodyOmitQueryHeadersNoneTypeNotGivenSequenceNotStromit	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper   )Files
AsyncFilesFilesWithRawResponseAsyncFilesWithRawResponseFilesWithStreamingResponseAsyncFilesWithStreamingResponse)SyncCursorPageAsyncCursorPage)AsyncPaginatormake_request_options)ContainerListResponse)ContainerCreateResponse)ContainerRetrieveResponse
ContainersAsyncContainersc                  (   \ rS rSr\SS j5       r\SS j5       r\SS j5       r\\\SSS\	S.                 SS jjr
SSS\	S.           SS	 jjr\\\SSS\	S
.               SS jjrSSS\	S.           SS jjrSrg)r'   !   c                ,    [        U R                  5      $ N)r   _clientselfs    b/var/www/html/land-ocr/venv/lib/python3.13/site-packages/openai/resources/containers/containers.pyfilesContainers.files"   s    T\\""    c                    [        U 5      $ z
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/openai/openai-python#accessing-raw-response-data-eg-headers
)ContainersWithRawResponser.   s    r0   with_raw_responseContainers.with_raw_response&   s     )..r3   c                    [        U 5      $ z
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/openai/openai-python#with_streaming_response
)ContainersWithStreamingResponser.   s    r0   with_streaming_response"Containers.with_streaming_response0   s     /t44r3   Nexpires_afterfile_idsmemory_limitextra_headersextra_query
extra_bodytimeoutc               x    U R                  S[        UUUUS.[        R                  5      [	        XVXxS9[
        S9$ )  
Create Container

Args:
  name: Name of the container to create.

  expires_after: Container expiration time in seconds relative to the 'anchor' time.

  file_ids: IDs of files to copy to the container.

  memory_limit: Optional memory limit for the container. Defaults to "1g".

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
/containersnamer?   r@   rA   rB   rC   rD   rE   bodyoptionscast_to)_postr   r   ContainerCreateParamsr#   r%   	r/   rJ   r?   r@   rA   rB   rC   rD   rE   s	            r0   createContainers.create9   sW    D zz  %2 ($0	 (== )+Q[ ,  
 	
r3   rK   c          
     n    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9$ )  
Retrieve Container

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
;Expected a non-empty value for `container_id` but received /containers/rK   rN   rO   
ValueError_getr#   r&   r/   container_idrB   rC   rD   rE   s         r0   retrieveContainers.retrievel   sO    . Z[gZjkllyy<.)(+Q[ .  
 	
r3   afterlimitorderrB   rC   rD   rE   c                   U R                  S[        [           [        UUUU[	        UUUS.[
        R                  5      S9[        S9$ a6  List Containers

Args:
  after: A cursor for use in pagination.

`after` is an object ID that defines your place
      in the list. For instance, if you make a list request and receive 100 objects,
      ending with obj_foo, your subsequent call can include after=obj_foo in order to
      fetch the next page of the list.

  limit: A limit on the number of objects to be returned. Limit can range between 1 and
      100, and the default is 20.

  order: Sort order by the `created_at` timestamp of the objects. `asc` for ascending
      order and `desc` for descending order.

  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rH   )rb   rc   rd   )rB   rC   rD   rE   query)pagerN   model)_get_api_listr    r$   r#   r   r   ContainerListParamsr/   rb   rc   rd   rB   rC   rD   rE   s           r0   listContainers.list   sc    J !! 56(+'%%!&!&!&
 *== (# " 
 	
r3   c          
         U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  SU 3[        X#XES9[        S9$ )  
Delete Container

Args:
  extra_headers: Send extra headers

  extra_query: Add additional query parameters to the request

  extra_body: Add additional JSON properties to the request

  timeout: Override the client-level default timeout for this request, in seconds
rW   Accept*/*rX   rK   rY   r[   _deleter#   r   r]   s         r0   deleteContainers.delete   sc    . Z[gZjkll!5B]-@bB||<.)(+Q[   
 	
r3    )returnr   )rx   r6   )rx   r;   rJ   strr?   z+container_create_params.ExpiresAfter | Omitr@   zSequenceNotStr[str] | OmitrA   z(Literal['1g', '4g', '16g', '64g'] | OmitrB   Headers | NonerC   Query | NonerD   Body | NonerE   'float | httpx.Timeout | None | NotGivenrx   r%   r^   rz   rB   r{   rC   r|   rD   r}   rE   r~   rx   r&   )rb   
str | Omitrc   
int | Omitrd   Literal['asc', 'desc'] | OmitrB   r{   rC   r|   rD   r}   rE   r~   rx   z%SyncCursorPage[ContainerListResponse]r^   rz   rB   r{   rC   r|   rD   r}   rE   r~   rx   None__name__
__module____qualname____firstlineno__r   r1   r7   r<   r   r   rS   r_   rm   ru   __static_attributes__rw   r3   r0   r'   r'   !   s   # # / / 5 5 FJ/3AE )-$("&;D1
 1
 C	1

 -1
 ?1
 &1
 "1
  1
 91
 
!1
r )-$("&;D

 &
 "
  
 9
 
#
H ! /3 )-$("&;D7
 7
 	7

 -7
 &7
 "7
  7
 97
 
/7
~ )-$("&;D 
 
 & 
 " 
   
 9 
 
 
  
r3   c                  (   \ rS rSr\SS j5       r\SS j5       r\SS j5       r\\\SSS\	S.                 SS jjr
SSS\	S.           SS	 jjr\\\SSS\	S
.               SS jjrSSS\	S.           SS jjrSrg)r(      c                ,    [        U R                  5      $ r,   )r   r-   r.   s    r0   r1   AsyncContainers.files   s    $,,''r3   c                    [        U 5      $ r5   )AsyncContainersWithRawResponser.   s    r0   r7   !AsyncContainers.with_raw_response   s     .d33r3   c                    [        U 5      $ r:   )$AsyncContainersWithStreamingResponser.   s    r0   r<   'AsyncContainers.with_streaming_response   s     4D99r3   Nr>   c                  #    U R                  S[        UUUUS.[        R                  5      I Sh  vN [	        XVXxS9[
        S9I Sh  vN $  N N7f)rG   rH   rI   NrK   rL   )rP   r   r   rQ   r#   r%   rR   s	            r0   rS   AsyncContainers.create  sn     D ZZ, %2 ($0	 (==  )+Q[ ,   
 
 	

s!   /AA
A	A
AArK   c          
        #    U(       d  [        SU< 35      eU R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)rV   rW   rX   rK   rY   NrZ   r]   s         r0   r_   AsyncContainers.retrieve4  s\     . Z[gZjkllYY<.)(+Q[ .  
 
 	
 
s   :AAAra   c                   U R                  S[        [           [        UUUU[	        UUUS.[
        R                  5      S9[        S9$ rf   )rj   r!   r$   r#   r   r   rk   rl   s           r0   rm   AsyncContainers.listU  sc    J !! !67(+'%%!&!&!&
 *== (# " 
 	
r3   c          
        #    U(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  SU 3[        X#XES9[        S9I Sh  vN $  N7f)rp   rW   rq   rr   rX   rK   rY   Nrs   r]   s         r0   ru   AsyncContainers.delete  sp     . Z[gZjkll!5B]-@bB\\<.)(+Q[  " 
 
 	
 
s   A	AAArw   )rx   r   )rx   r   )rx   r   ry   r   )rb   r   rc   r   rd   r   rB   r{   rC   r|   rD   r}   rE   r~   rx   zMAsyncPaginator[ContainerListResponse, AsyncCursorPage[ContainerListResponse]]r   r   rw   r3   r0   r(   r(      s   ( ( 4 4 : : FJ/3AE )-$("&;D1
 1
 C	1

 -1
 ?1
 &1
 "1
  1
 91
 
!1
r )-$("&;D

 &
 "
  
 9
 
#
H ! /3 )-$("&;D7
 7
 	7

 -7
 &7
 "7
  7
 97
 
W7
~ )-$("&;D 
 
 & 
 " 
   
 9 
 
 
  
r3   c                  2    \ rS rSrSS jr\SS j5       rSrg)r6   i  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g r,   )_containersr   to_raw_response_wrapperrS   r_   rm   ru   r/   
containerss     r0   __init__"ContainersWithRawResponse.__init__  sx    %&>>
 )@@
 %<<OO
	 '>>
r3   c                @    [        U R                  R                  5      $ r,   )r   r   r1   r.   s    r0   r1   ContainersWithRawResponse.files  s    #D$4$4$:$:;;r3   r   rS   ru   rm   r_   Nr   r'   rx   r   )rx   r   r   r   r   r   r   r   r1   r   rw   r3   r0   r6   r6     s    
  < <r3   r6   c                  2    \ rS rSrSS jr\SS j5       rSrg)r   i  c                8   Xl         [        R                  " UR                  5      U l        [        R                  " UR                  5      U l        [        R                  " UR
                  5      U l        [        R                  " UR                  5      U l        g r,   )r   r   async_to_raw_response_wrapperrS   r_   rm   ru   r   s     r0   r   'AsyncContainersWithRawResponse.__init__  sx    %&DD
 )FF
 %BBOO
	 'DD
r3   c                @    [        U R                  R                  5      $ r,   )r   r   r1   r.   s    r0   r1   $AsyncContainersWithRawResponse.files  s    ()9)9)?)?@@r3   r   Nr   r(   rx   r   )rx   r   r   rw   r3   r0   r   r     s    
  A Ar3   r   c                  2    \ rS rSrSS jr\SS j5       rSrg)r;   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r,   )r   r   rS   r_   rm   ru   r   s     r0   r   (ContainersWithStreamingResponse.__init__  s`    %2
 5
 1OO
	 3
r3   c                @    [        U R                  R                  5      $ r,   )r   r   r1   r.   s    r0   r1   %ContainersWithStreamingResponse.files  s    )$*:*:*@*@AAr3   r   Nr   )rx   r   r   rw   r3   r0   r;   r;     s    
  B Br3   r;   c                  2    \ rS rSrSS jr\SS j5       rSrg)r   i  c                    Xl         [        UR                  5      U l        [        UR                  5      U l        [        UR                  5      U l        [        UR
                  5      U l        g r,   )r   r   rS   r_   rm   ru   r   s     r0   r   -AsyncContainersWithStreamingResponse.__init__  s`    %8
 ;
 7OO
	 9
r3   c                @    [        U R                  R                  5      $ r,   )r   r   r1   r.   s    r0   r1   *AsyncContainersWithStreamingResponse.files  s    .t/?/?/E/EFFr3   r   Nr   )rx   r   r   rw   r3   r0   r   r     s    
  G Gr3   r   )9
__future__r   typing_extensionsr   httpx r   typesr   r   _typesr	   r
   r   r   r   r   r   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   files.filesr   r   r   r   r   r   
paginationr    r!   _base_clientr"   r#   types.container_list_responser$   types.container_create_responser%   !types.container_retrieve_responser&   __all__r'   r(   r6   r   r;   r   rw   r3   r0   <module>r      s    # %    C e e e < & : Y  : @ B F J*
+E
 E
PE
& E
P< <,A A,B B,G Gr3   