
    2hjK                       S SK Jr  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  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K/J0r0  SS/r1 " S S\5      r2 " S S\5      r3 " S S5      r4 " S S5      r5 " S S5      r6 " S S5      r7g)     )annotations)List)LiteralN   )_legacy_response)container_list_paramscontainer_create_params)	NOT_GIVENBodyQueryHeadersNoneTypeNotGiven)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    ^/var/www/auris/envauris/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    r.   with_raw_responseContainers.with_raw_response'   s     )..r1   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    r.   with_streaming_response"Containers.with_streaming_response1   s     /t44r1   Nexpires_afterfile_idsextra_headersextra_query
extra_bodytimeoutc               v    U R                  S[        UUUS.[        R                  5      [	        XEXgS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.

  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>   r?   r@   rA   rB   bodyoptionscast_to)_postr   r	   ContainerCreateParamsr!   r#   r-   rG   r=   r>   r?   r@   rA   rB   s           r.   createContainers.create:   sS    > zz  %2 (
 (== )+Q[ ,  
 	
r1   rH   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/rH   rK   rL   
ValueError_getr!   r$   r-   container_idr?   r@   rA   rB   s         r.   retrieveContainers.retrievei   sO    . Z[gZjkllyy<.)(+Q[ .  
 	
r1   afterlimitorderr?   r@   rA   rB   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
rE   )r_   r`   ra   )r?   r@   rA   rB   query)pagerK   model)_get_api_listr   r"   r!   r   r   ContainerListParamsr-   r_   r`   ra   r?   r@   rA   rB   s           r.   listContainers.list   sc    J !! 56(+'%%!&!&!&
 *== (# " 
 	
r1   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
rT   Accept*/*rU   rH   rV   rX   _deleter!   r   rZ   s         r.   deleteContainers.delete   sc    . Z[gZjkll!5B]-@bB||<.)(+Q[   
 	
r1    )returnr   )ru   r4   )ru   r9   rG   strr=   z/container_create_params.ExpiresAfter | NotGivenr>   zList[str] | NotGivenr?   Headers | Noner@   Query | NonerA   Body | NonerB   'float | httpx.Timeout | None | NotGivenru   r#   r[   rw   r?   rx   r@   ry   rA   rz   rB   r{   ru   r$   )r_   str | NotGivenr`   int | NotGivenra   !Literal['asc', 'desc'] | NotGivenr?   rx   r@   ry   rA   rz   rB   r{   ru   z%SyncCursorPage[ContainerListResponse]r[   rw   r?   rx   r@   ry   rA   rz   rB   r{   ru   None__name__
__module____qualname____firstlineno__r   r/   r5   r:   r
   rP   r\   rj   rr   __static_attributes__rt   r1   r.   r%   r%   "   s   # # / / 5 5 JS)2 )-$("&;D-
 -
 G	-

 '-
 &-
 "-
  -
 9-
 
!-
j )-$("&;D

 &
 "
  
 9
 
#
H !* )3< )-$("&;D7
 7
 	7

 17
 &7
 "7
  7
 97
 
/7
~ )-$("&;D 
 
 & 
 " 
   
 9 
 
 
  
r1   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    r.   r/   AsyncContainers.files   s    $,,''r1   c                    [        U 5      $ r3   )AsyncContainersWithRawResponser,   s    r.   r5   !AsyncContainers.with_raw_response   s     .d33r1   c                    [        U 5      $ r8   )$AsyncContainersWithStreamingResponser,   s    r.   r:   'AsyncContainers.with_streaming_response   s     4D99r1   Nr<   c                  #    U R                  S[        UUUS.[        R                  5      I Sh  vN [	        XEXgS9[
        S9I Sh  vN $  N N7f)rD   rE   rF   NrH   rI   )rM   r   r	   rN   r!   r#   rO   s           r.   rP   AsyncContainers.create   sj     > ZZ, %2 (
 (==  )+Q[ ,   
 
 	

s!   .AA
AA	AArH   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)rS   rT   rU   rH   rV   NrW   rZ   s         r.   r\   AsyncContainers.retrieve-  s\     . Z[gZjkllYY<.)(+Q[ .  
 
 	
 
s   :AAAr^   c                   U R                  S[        [           [        UUUU[	        UUUS.[
        R                  5      S9[        S9$ rc   )rg   r   r"   r!   r   r   rh   ri   s           r.   rj   AsyncContainers.listN  sc    J !! !67(+'%%!&!&!&
 *== (# " 
 	
r1   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)rm   rT   rn   ro   rU   rH   rV   Nrp   rZ   s         r.   rr   AsyncContainers.delete  sp     . Z[gZjkll!5B]-@bB\\<.)(+Q[  " 
 
 	
 
s   A	AAArt   )ru   r   )ru   r   )ru   r   rv   r|   )r_   r}   r`   r~   ra   r   r?   rx   r@   ry   rA   rz   rB   r{   ru   zMAsyncPaginator[ContainerListResponse, AsyncCursorPage[ContainerListResponse]]r   r   rt   r1   r.   r&   r&      s   ( ( 4 4 : : JS)2 )-$("&;D-
 -
 G	-

 '-
 &-
 "-
  -
 9-
 
!-
j )-$("&;D

 &
 "
  
 9
 
#
H !* )3< )-$("&;D7
 7
 	7

 17
 &7
 "7
  7
 97
 
W7
~ )-$("&;D 
 
 & 
 " 
   
 9 
 
 
  
r1   c                  2    \ rS rSrSS jr\SS j5       rSrg)r4   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_wrapperrP   r\   rj   rr   r-   
containerss     r.   __init__"ContainersWithRawResponse.__init__  sx    %&>>
 )@@
 %<<OO
	 '>>
r1   c                @    [        U R                  R                  5      $ r*   )r   r   r/   r,   s    r.   r/   ContainersWithRawResponse.files  s    #D$4$4$:$:;;r1   r   rP   rr   rj   r\   Nr   r%   ru   r   )ru   r   r   r   r   r   r   r   r/   r   rt   r1   r.   r4   r4     s    
  < <r1   r4   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_wrapperrP   r\   rj   rr   r   s     r.   r   'AsyncContainersWithRawResponse.__init__  sx    %&DD
 )FF
 %BBOO
	 'DD
r1   c                @    [        U R                  R                  5      $ r*   )r   r   r/   r,   s    r.   r/   $AsyncContainersWithRawResponse.files  s    ()9)9)?)?@@r1   r   Nr   r&   ru   r   )ru   r   r   rt   r1   r.   r   r     s    
  A Ar1   r   c                  2    \ rS rSrSS jr\SS j5       rSrg)r9   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   rP   r\   rj   rr   r   s     r.   r   (ContainersWithStreamingResponse.__init__  s`    %2
 5
 1OO
	 3
r1   c                @    [        U R                  R                  5      $ r*   )r   r   r/   r,   s    r.   r/   %ContainersWithStreamingResponse.files  s    )$*:*:*@*@AAr1   r   Nr   )ru   r   r   rt   r1   r.   r9   r9     s    
  B Br1   r9   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   rP   r\   rj   rr   r   s     r.   r   -AsyncContainersWithStreamingResponse.__init__  s`    %8
 ;
 7OO
	 9
r1   c                @    [        U R                  R                  5      $ r*   )r   r   r/   r,   s    r.   r/   *AsyncContainersWithStreamingResponse.files  s    .t/?/?/E/EFFr1   r   Nr   )ru   r   r   rt   r1   r.   r   r     s    
  G Gr1   r   )8
__future__r   typingr   typing_extensionsr   httpx r   typesr   r	   _typesr
   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&   r4   r   r9   r   rt   r1   r.   <module>r      s    #  %    C I I < & : Y  : @ B F J*
+A
 A
HA
& A
H< <,A A,B B,G Gr1   