
    Yj$                    0   d dl mZ 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mZ ddlmZ dd	lmZmZ dd
lmZmZ ddlmZ ddlmZ ddlmZ ddgZ G d de      Z G d de      Z  G d d      Z! G d d      Z" G d d      Z# G d d      Z$y)    )annotations)LiteralN   )_legacy_response)BodyQueryHeadersNotGiven	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_streamed_response_wrapper"async_to_streamed_response_wrapper)make_request_options)data_retention_update_params)OrganizationDataRetentionDataRetentionAsyncDataRetentionc                      e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 d	dZddded	 	 	 	 	 	 	 	 	 	 	 d
dZy)r   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
        )DataRetentionWithRawResponseselfs    q/var/www/html/vmm-quimica/venv/lib/python3.12/site-packages/openai/resources/admin/organization/data_retention.pywith_raw_responsezDataRetention.with_raw_response   s     ,D11    c                    t        |       S 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
        )"DataRetentionWithStreamingResponser   s    r   with_streaming_responsez%DataRetention.with_streaming_response!   s     2$77r    Nextra_headersextra_query
extra_bodytimeoutc               R    | j                  dt        ||||ddi      t              S )/Retrieves organization data retention controls./organization/data_retentionadmin_api_key_authTr&   r'   r(   r)   securityoptionscast_to_getr   r   r   r&   r'   r(   r)   s        r   retrievezDataRetention.retrieve*   s>     yy*(+'%.5 .  

 
	
r    c                   | j                  dt        d|it        j                        t	        ||||ddi      t
              S )  
        Updates organization data retention controls.

        Args:
          retention_type: The desired organization data retention type.

          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
        r,   retention_typer-   Tr.   bodyr1   r2   )_postr   r   DataRetentionUpdateParamsr   r   r   r9   r&   r'   r(   r)   s         r   updatezDataRetention.updateA   sY    < zz* !>24P4j4j )+'%.5 .  
 	
r    )returnr   )r@   r#   
r&   Headers | Noner'   Query | Noner(   Body | Noner)   (float | httpx2.Timeout | None | NotGivenr@   r   r9   zLiteral['zero_data_retention', 'modified_abuse_monitoring', 'enhanced_zero_data_retention', 'enhanced_modified_abuse_monitoring']r&   rB   r'   rC   r(   rD   r)   rE   r@   r   	__name__
__module____qualname__r   r   r$   r   r6   r?    r    r   r   r      s    2 2 8 8 )-$("&<E

 &
 "
  
 :
 
#
D )-$("&<E+

+
 &+
 "+
  +
 :+
 
#+
r    c                      e Zd Zedd       Zedd       Zddded	 	 	 	 	 	 	 	 	 d	dZddded	 	 	 	 	 	 	 	 	 	 	 d
dZy)r   c                    t        |       S r   )!AsyncDataRetentionWithRawResponser   s    r   r   z$AsyncDataRetention.with_raw_responsep   s     166r    c                    t        |       S r"   )'AsyncDataRetentionWithStreamingResponser   s    r   r$   z*AsyncDataRetention.with_streaming_responsez   s     7t<<r    Nr%   c               n   K   | j                  dt        ||||ddi      t               d{   S 7 w)r+   r,   r-   Tr.   r0   Nr3   r5   s        r   r6   zAsyncDataRetention.retrieve   sL      YY*(+'%.5 .  

 

 
	
 

s   ,535c                  K   | j                  dt        d|it        j                         d{   t	        ||||ddi      t
               d{   S 7 '7 w)r8   r,   r9   Nr-   Tr.   r:   )r<   r   r   r=   r   r   r>   s         r   r?   zAsyncDataRetention.update   sr     < ZZ*,!>24P4j4j  )+'%.5 .   
 
 	

s!   ,AA
"AAAA)r@   rN   )r@   rP   rA   rF   rG   rK   r    r   r   r   o   s    7 7 = = )-$("&<E

 &
 "
  
 :
 
#
D )-$("&<E+

+
 &+
 "+
  +
 :+
 
#+
r    c                      e Zd ZddZy)r   c                    || _         t        j                  |j                        | _        t        j                  |j                        | _        y N)_data_retentionr   to_raw_response_wrapperr6   r?   r   data_retentions     r   __init__z%DataRetentionWithRawResponse.__init__   sB    -(@@##
 '>>!!
r    NrY   r   r@   NonerH   rI   rJ   rZ   rK   r    r   r   r          
r    r   c                      e Zd ZddZy)rN   c                    || _         t        j                  |j                        | _        t        j                  |j                        | _        y rU   )rV   r   async_to_raw_response_wrapperr6   r?   rX   s     r   rZ   z*AsyncDataRetentionWithRawResponse.__init__   sB    -(FF##
 'DD!!
r    NrY   r   r@   r\   r]   rK   r    r   rN   rN      r^   r    rN   c                      e Zd ZddZy)r#   c                z    || _         t        |j                        | _        t        |j                        | _        y rU   )rV   r   r6   r?   rX   s     r   rZ   z+DataRetentionWithStreamingResponse.__init__   s6    -4##
 3!!
r    Nr[   r]   rK   r    r   r#   r#      r^   r    r#   c                      e Zd ZddZy)rP   c                z    || _         t        |j                        | _        t        |j                        | _        y rU   )rV   r   r6   r?   rX   s     r   rZ   z0AsyncDataRetentionWithStreamingResponse.__init__   s6    -:##
 9!!
r    Nrb   r]   rK   r    r   rP   rP      r^   r    rP   )%
__future__r   typing_extensionsr   httpx2 r   _typesr   r   r	   r
   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   _base_clientr   types.admin.organizationr   4types.admin.organization.organization_data_retentionr   __all__r   r   r   rN   r#   rP   rK   r    r   <module>rt      s    # %  ! @ @ = ' ; Z 1 E ^0
1V
O V
rV
) V
r	
 	
	
 	
	
 	
	
 	
r    