
    _j                       S SK Jr  S SKrSSKJr  SSKJrJrJrJ	r	J
r
  SSKJr  SSKJr  SSKJrJr  SS	KJrJrJrJr  SS
KJr  SS/r " S S\5      r " S S\5      r " S S5      r " S S5      r " S S5      r " S S5      rg)    )annotationsN   )_legacy_response)BodyQueryHeadersNotGiven	not_given)path_template)cached_property)SyncAPIResourceAsyncAPIResource)StreamedBinaryAPIResponseAsyncStreamedBinaryAPIResponse#to_custom_streamed_response_wrapper)async_to_custom_streamed_response_wrapper)make_request_optionsContentAsyncContentc                  n    \ rS rSr\SS j5       r\S	S j5       rSSS\S.             S
S jjrSr	g)r      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
)ContentWithRawResponseselfs    ^/home/rurouni/.local/lib/python3.13/site-packages/openai/resources/containers/files/content.pywith_raw_responseContent.with_raw_response   s     &d++    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
)ContentWithStreamingResponser   s    r   with_streaming_responseContent.with_streaming_response"   s     ,D11r    Nextra_headersextra_query
extra_bodytimeoutc                   U(       d  [        SU< 35      eU(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  [        SX!S9[        UUUUSS0S	9[        R
                  S
9$ )  
Retrieve Container File Content

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 6Expected a non-empty value for `file_id` but received Acceptapplication/binary2/containers/{container_id}/files/{file_id}/contentcontainer_idfile_idbearer_authTr'   r(   r)   r*   securityoptionscast_to
ValueError_getr   r   r   HttpxBinaryResponseContentr   r4   r3   r'   r(   r)   r*   s          r   retrieveContent.retrieve+   s    0 Z[gZjkllUV]U`abb!#7QM<ORQyyDS_ )+'%'. %??  
 	
r     )returnr   )rC   r#   r4   strr3   rE   r'   zHeaders | Noner(   zQuery | Noner)   zBody | Noner*   z'float | httpx.Timeout | None | NotGivenrC   z+_legacy_response.HttpxBinaryResponseContent
__name__
__module____qualname____firstlineno__r   r   r$   r
   r@   __static_attributes__rB   r    r   r   r      s    , , 2 2 )-$("&;D)
)
 	)
 &)
 ")
  )
 9)
 
5)
 )
r    c                  n    \ rS rSr\SS j5       r\S	S j5       rSSS\S.             S
S jjrSr	g)r   W   c                    [        U 5      $ r   )AsyncContentWithRawResponser   s    r   r   AsyncContent.with_raw_responseX   s     +400r    c                    [        U 5      $ r"   )!AsyncContentWithStreamingResponser   s    r   r$   $AsyncContent.with_streaming_responseb   s     166r    Nr&   c                  #    U(       d  [        SU< 35      eU(       d  [        SU< 35      eSS0U=(       d    0 EnU R                  [        SX!S9[        UUUUSS0S	9[        R
                  S
9I Sh  vN $  N7f)r,   r-   r.   r/   r0   r1   r2   r5   Tr6   r8   Nr;   r?   s          r   r@   AsyncContent.retrievek   s     0 Z[gZjkllUV]U`abb!#7QM<ORQYYDS_ )+'%'. %??  
 
 	
 
s   A3A<5A:6A<rB   )rC   rO   )rC   rR   rD   rF   rB   r    r   r   r   W   s    1 1 7 7 )-$("&;D)
)
 	)
 &)
 ")
  )
 9)
 
5)
 )
r    c                      \ rS rSrSS jrSrg)r      c                Z    Xl         [        R                  " UR                  5      U l        g N)_contentr   to_raw_response_wrapperr@   r   contents     r   __init__ContentWithRawResponse.__init__   s"    (@@
r    rZ   r@   Nr]   r   rC   NonerG   rH   rI   rJ   r^   rK   rB   r    r   r   r          
r    r   c                      \ rS rSrSS jrSrg)rO      c                Z    Xl         [        R                  " UR                  5      U l        g rY   )rZ   r   async_to_raw_response_wrapperr@   r\   s     r   r^   $AsyncContentWithRawResponse.__init__   s"    (FF
r    r`   Nr]   r   rC   rb   rc   rB   r    r   rO   rO      rd   r    rO   c                      \ rS rSrSS jrSrg)r#      c                N    Xl         [        UR                  [        5      U l        g rY   )rZ   r   r@   r   r\   s     r   r^   %ContentWithStreamingResponse.__init__   s    ;%
r    r`   Nra   rc   rB   r    r   r#   r#          
r    r#   c                      \ rS rSrSS jrSrg)rR      c                N    Xl         [        UR                  [        5      U l        g rY   )rZ   r   r@   r   r\   s     r   r^   *AsyncContentWithStreamingResponse.__init__   s    A*
r    r`   Nrj   rc   rB   r    r   rR   rR      ro   r    rR   ) 
__future__r   httpx r   _typesr   r   r   r	   r
   _utilsr   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rO   r#   rR   rB   r    r   <module>r~      s{    #  ! @ @ $ ' ;  2n
%=
o =
@=
# =
@
 

 

 

 
r    