o
    ni0                     @  s   d dl mZ d dlZddlmZ ddlmZmZmZm	Z	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mZmZ dd
lmZ ddgZG dd deZG dd deZG dd dZG dd dZG dd dZG dd dZdS )    )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                   @  >   e Zd ZedddZedddZddded	dddZdS )r   returnContentWithRawResponsec                 C     t | S a  
        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
        )r   self r   i/var/www/html/arapca_proje/venv/lib/python3.10/site-packages/openai/resources/containers/files/content.pywith_raw_response      zContent.with_raw_responseContentWithStreamingResponsec                 C  r   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
        )r    r   r   r   r   with_streaming_response"      zContent.with_streaming_responseNextra_headersextra_query
extra_bodytimeoutfile_idstrcontainer_idr%   Headers | Noner&   Query | Noner'   Body | Noner(   'float | httpx.Timeout | None | NotGiven+_legacy_response.HttpxBinaryResponseContentc                C  s\   |s	t d||st d|ddi|pi }| jtd||dt||||dtjdS )	S  
        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r+   r)   r$   optionscast_to
ValueError_getr
   r   r   HttpxBinaryResponseContentr   r)   r+   r%   r&   r'   r(   r   r   r   retrieve+   s   zContent.retrieve)r   r   )r   r    r)   r*   r+   r*   r%   r,   r&   r-   r'   r.   r(   r/   r   r0   __name__
__module____qualname__r   r   r"   r	   r@   r   r   r   r   r          	c                   @  r   )r   r   AsyncContentWithRawResponsec                 C  r   r   )rG   r   r   r   r   r   T   r   zAsyncContent.with_raw_response!AsyncContentWithStreamingResponsec                 C  r   r!   )rH   r   r   r   r   r"   ^   r#   z$AsyncContent.with_streaming_responseNr$   r)   r*   r+   r%   r,   r&   r-   r'   r.   r(   r/   r0   c                  sd   |s
t d||st d|ddi|pi }| jtd||dt||||dtjdI d	H S )
r1   r2   r3   r4   r5   r6   r7   r$   r8   Nr;   r?   r   r   r   r@   g   s   zAsyncContent.retrieve)r   rG   )r   rH   rA   rB   r   r   r   r   r   S   rF   c                   @     e Zd ZdddZdS )	r   contentr   r   Nonec                 C     || _ t|j| _d S N)_contentr   to_raw_response_wrapperr@   r   rJ   r   r   r   __init__      
zContentWithRawResponse.__init__NrJ   r   r   rK   rC   rD   rE   rQ   r   r   r   r   r          r   c                   @  rI   )	rG   rJ   r   r   rK   c                 C  rL   rM   )rN   r   async_to_raw_response_wrapperr@   rP   r   r   r   rQ      rR   z$AsyncContentWithRawResponse.__init__NrJ   r   r   rK   rT   r   r   r   r   rG      rU   rG   c                   @  rI   )	r    rJ   r   r   rK   c                 C     || _ t|jt| _d S rM   )rN   r   r@   r   rP   r   r   r   rQ      
   
z%ContentWithStreamingResponse.__init__NrS   rT   r   r   r   r   r       rU   r    c                   @  rI   )	rH   rJ   r   r   rK   c                 C  rX   rM   )rN   r   r@   r   rP   r   r   r   rQ      rY   z*AsyncContentWithStreamingResponse.__init__NrW   rT   r   r   r   r   rH      rU   rH   ) 
__future__r   httpx r   _typesr   r   r   r   r	   _utilsr
   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   __all__r   r   r   rG   r    rH   r   r   r   r   <module>   s    <<		
