
    pi                         d Z ddlmZ ddl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 ddlmZ  G d d	e      Z G d
 de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Api
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictOptionalUnion)deserializevalues)InstanceResource)ListResource)Versionc                   ^     e Zd Z G d de      Z	 dedeeef   dedef fdZ	defd	Z
 xZS )
FeedbackInstancec                       e Zd ZdZdZy)FeedbackInstance.Outcome	confirmedunconfirmedN)__name__
__module____qualname__	CONFIRMEDUNCONFIRMED     p/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/message/feedback.pyOutcomer      s    	#r   r   versionpayloadaccount_sidmessage_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        ||d| _        y )Nr   r   outcomedate_createddate_updatedurir   r   )super__init__getr   r   r!   r   rfc2822_datetimer"   r#   r$   	_solution)selfr   r   r   r   	__class__s        r   r'   zFeedbackInstance.__init__'   s     	!*1++m*D*1++m*D=D[[=S0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '&
r   returnc                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)format).0kvs      r   	<genexpr>z,FeedbackInstance.__repr__.<locals>.<genexpr>F   s     SDAq7>>!Q/Ss   !z&<Twilio.Api.V2010.FeedbackInstance {}>)joinr*   itemsr2   )r+   contexts     r   __repr__zFeedbackInstance.__repr__@   s6     ((SDNN<P<P<RSS7>>wGGr   )r   r   r   objectr   r   r   strr   r'   r:   __classcell__r,   s   @r   r   r      sU    $& $

 c3h
 	

 
2H# Hr   r   c                        e Zd Zdededef fdZej                  fdede	f   de
fdZej                  fdede	f   de
fd	Zdefd
Z xZS )FeedbackListr   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)aw  
        Initialize the FeedbackList

        :param version: Version that contains the resource
        :param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback.
        :param message_sid: The SID of the Message resource for which to create MessageFeedback.

        r%   z</Accounts/{account_sid}/Messages/{message_sid}/Feedback.jsonNr   )r&   r'   r*   r2   _uri)r+   r   r   r   r,   s       r   r'   zFeedbackList.__init__L   sJ     	! '&

 RJQQ .. 		r   r!   r   r-   c                 *   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d   | j                  d	   
      S )zv
        Create the FeedbackInstance

        :param outcome:

        :returns: The created FeedbackInstance
        r   Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethodr$   dataheadersr   r   r%   )r	   of_versioncreaterB   r   r*   r+   r!   rK   rL   r   s        r   rO   zFeedbackList.createb   s     yy7

 ))^-PQR"E.--&&tyytW ' 
  MM}5}5	
 	
r   c                 F  K   t        j                  d|i      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d	   | j                  d
         S 7 7w)z
        Asynchronously create the FeedbackInstance

        :param outcome:

        :returns: The created FeedbackInstance
        r   rD   rE   rF   rG   rH   rI   Nr   r   r%   )r	   rM   rN   create_asyncrB   r   r*   rP   s        r   rR   zFeedbackList.create_async   s      yy7

 ))^-PQR"E.22tyytW 3 
 
  MM}5}5	
 	
	
s   A%B!'B(8B!c                      y)r/   z<Twilio.Api.V2010.FeedbackList>r   )r+   s    r   r:   zFeedbackList.__repr__   s     1r   )r   r   r   r   r<   r'   r	   unsetr   r;   r   rO   rR   r:   r=   r>   s   @r   r@   r@   J   s    
 
c 
 
. DJ<<
7?@
	
D DJ<<
7?@
	
B1# 1r   r@   N)__doc__r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r@   r   r   r   <module>r[      s?     - - + : 2 '/H' /Hd`1< `1r   