
    g;                         S r SSKJr  SSKJr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  SSKJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Assistants
 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ListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceResource)ListResource)Version)Pagec                   h   ^  \ rS rSr " S S\5      r S\S\\\	4   S\4U 4S jjr
S\4S	 jrS
rU =r$ )FeedbackInstance   c                   6    \ rS rSrSrS\\\4   4S jrS r	Sr
g)9FeedbackInstance.AssistantsV1ServiceCreateFeedbackRequest   
:ivar message_id: The message ID.
:ivar score: The score to be given(0-1).
:ivar session_id: The Session ID.
:ivar text: The text to be given as feedback.
payloadc                     UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g N
message_idscore
session_idtextgetr   r   r   r   selfr   s     t/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/assistants/v1/assistant/feedback.py__init__BFeedbackInstance.AssistantsV1ServiceCreateFeedbackRequest.__init__#   B    -4[[-FDO*1++g*>DJ-4[[-FDO'.{{6':DI    c                 `    U R                   U R                  U R                  U R                  S.$ Nr   r   r   r   r*   r"   s    r#   to_dictAFeedbackInstance.AssistantsV1ServiceCreateFeedbackRequest.to_dict*   (    "oo"oo			 r'   r*   N__name__
__module____qualname____firstlineno____doc__r   strr   r$   r,   __static_attributes__ r'   r#   (AssistantsV1ServiceCreateFeedbackRequestr           		;DcN 	;	r'   r8   versionr   idc                 >  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        [        R                  " UR                  S	5      5      U l        [        R                  " UR                  S
5      5      U l        SU0U l        g )Nassistant_idr;   account_siduser_sidr   r   r   r   date_createddate_updated)superr$   r    r=   r;   r>   r?   r   r   r   r   r   iso8601_datetimer@   rA   	_solution)r"   r:   r   r;   	__class__s       r#   r$   FeedbackInstance.__init__?   s    !+2;;~+F!(T!2*1++m*D'.{{:'>)0\)B&-kk'&:
)0\)B#*;;v#6	0;0L0LKK'1
 1<0L0LKK'1

 "
r'   returnc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7f)z{}={}N)format).0kvs      r#   	<genexpr>,FeedbackInstance.__repr__.<locals>.<genexpr>[   s      S<RDA7>>!//<Rs    "z*<Twilio.Assistants.V1.FeedbackInstance {}>)joinrD   itemsrL   )r"   contexts     r#   __repr__FeedbackInstance.__repr__U   s6     ((SDNN<P<P<RSS;BB7KKr'   )rD   r>   r=   r@   rA   r;   r   r   r   r   r?   )r0   r1   r2   r3   objectr8   r   r   r5   r   r$   rU   r6   __classcell__rE   s   @r#   r   r      sJ    6 .
 
$sCx. 
c 
,L# L Lr'   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)FeedbackPage_   r   rG   c                 D    [        U R                  XR                  S   S9$ )zV
Build an instance of FeedbackInstance

:param payload: Payload response from the API
r;   r;   )r   _versionrD   r!   s     r#   get_instanceFeedbackPage.get_instancea   s      w>>$;OPPr'   c                     g)rI   z#<Twilio.Assistants.V1.FeedbackPage>r7   r+   s    r#   rU   FeedbackPage.__repr__i        5r'   r7   N)r0   r1   r2   r3   r   r5   r   r   r`   rU   r6   r7   r'   r#   r[   r[   _   s-    QDcN Q7G Q5# 5r'   r[   c            	       \  ^  \ rS rSr " S S\5      rS\S\4U 4S jjrS\S\	4S	 jr
S\S\	4S
 jr  SS\\   S\\   S\\	   4S jjr  SS\\   S\\   S\\	   4S jjr  SS\\   S\\   S\\	   4S jjr  SS\\   S\\   S\\	   4S jjr\R,                  \R,                  \R,                  4S\\\4   S\\\4   S\\\4   S\4S jjr\R,                  \R,                  \R,                  4S\\\4   S\\\4   S\\\4   S\4S jjrS\S\4S jrS\S\4S jrS\4S jrSrU =r$ )FeedbackListr   c                   6    \ rS rSrSrS\\\4   4S jrS r	Sr
g)5FeedbackList.AssistantsV1ServiceCreateFeedbackRequestt   r   r   c                     UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        g r   r   r!   s     r#   r$   >FeedbackList.AssistantsV1ServiceCreateFeedbackRequest.__init__|   r&   r'   c                 `    U R                   U R                  U R                  U R                  S.$ r)   r*   r+   s    r#   r,   =FeedbackList.AssistantsV1ServiceCreateFeedbackRequest.to_dict   r.   r'   r*   Nr/   r7   r'   r#   r8   ri   t   r9   r'   r8   r:   r;   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)zo
Initialize the FeedbackList

:param version: Version that contains the resource
:param id: The assistant ID.

r;   z/Assistants/{id}/FeedbacksNr7   )rB   r$   rD   rL   _uri)r"   r:   r;   rE   s      r#   r$   FeedbackList.__init__   s=     	! "
 177I$..I	r'   -assistants_v1_service_create_feedback_requestrG   c                     UR                  5       n[        R                  " SS05      nSUS'   SUS'   U R                  R	                  SU R
                  X#S9n[        U R                  X@R                  S   S9$ )	z|
Create the FeedbackInstance

:param assistants_v1_service_create_feedback_request:

:returns: The created FeedbackInstance
Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr;   r^   )r,   r   ofr_   createrp   r   rD   r"   rr   r|   r}   r   s        r#   r   FeedbackList.create   sz     =DDF))^-PQR"4.--&&tyyt ' 
  w>>$;OPPr'   c                   #    UR                  5       n[        R                  " SS05      nSUS'   SUS'   U R                  R	                  SU R
                  X#S9I Sh  vN n[        U R                  X@R                  S   S	9$  N%7f)
z
Asynchronously create the FeedbackInstance

:param assistants_v1_service_create_feedback_request:

:returns: The created FeedbackInstance
rt   ru   rv   rw   rx   ry   Nr;   r^   )r,   r   r~   r_   create_asyncrp   r   rD   r   s        r#   r   FeedbackList.create_async   s      =DDF))^-PQR"4.22tyyt 3 
 
  w>>$;OPP	
s   ABB&Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams FeedbackInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   r   )r_   read_limitspagestreamr"   r   r   limitsr   s        r#   r   FeedbackList.stream   sF    ( **5<yy6+#6y7}}##D/::r'   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams FeedbackInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   Nr   )r_   r   
page_asyncstream_asyncr   s        r#   r   FeedbackList.stream_async   sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists FeedbackInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   r   )listr   )r"   r   r   s      r#   r   FeedbackList.list   s(    & KK#  
 	
r'   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists FeedbackInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   N)r   )r"   r   r   records       r#   
list_asyncFeedbackList.list_async  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  5      $ )a=  
Retrieve a single page of FeedbackInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of FeedbackInstance
	PageTokenr   PageSizert   ru   rv   rw   GETrz   r{   paramsr}   )r   r~   r_   r   rp   r[   rD   r"   r   r   r   r|   r}   responses          r#   r   FeedbackList.page4  s{      yy'#%
 ))^-PQR.==%%dii & 
 DMM8^^DDr'   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  X`R                  5      $  N$7f)	aL  
Asynchronously retrieve a single page of FeedbackInstance records from the API.
Request is executed immediately

:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
:param page_size: Number of records to return, defaults to 50

:returns: Page of FeedbackInstance
r   rt   ru   rv   rw   r   r   N)r   r~   r_   r   rp   r[   rD   r   s          r#   r   FeedbackList.page_asyncU  s       yy'#%
 ))^-PQR.11dii 2 
 
 DMM8^^DD
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of FeedbackInstance records from the API.
Request is executed immediately

:param target_url: API-generated URL for the requested results page

:returns: Page of FeedbackInstance
r   )r_   domaintwiliorequestr[   rD   r"   r   r   s      r#   get_pageFeedbackList.get_pagev  s;     ==''..66ujIDMM8^^DDr'   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of FeedbackInstance records from the API.
Request is executed immediately

:param target_url: API-generated URL for the requested results page

:returns: Page of FeedbackInstance
r   N)r_   r   r   request_asyncr[   rD   r   s      r#   get_page_asyncFeedbackList.get_page_async  sG      --44BB5*UUDMM8^^DD Vs   4AA%Ac                     g)rI   z#<Twilio.Assistants.V1.FeedbackList>r7   r+   s    r#   rU   FeedbackList.__repr__  rd   r'   )rD   rp   )NN) r0   r1   r2   r3   rW   r8   r   r5   r$   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   r[   r   r   r   r   rU   r6   rX   rY   s   @r#   rf   rf   r   s<   6 .J JS J Q7_Q 
Q2Q7_Q 
Q6  $#';}; C=; 
"	#	;6  $#'A}A C=A 
'	(	A6  $#'
}
 C=
 
		
8  $#'
}
 C=
 
		
: *0*0,,(.	E#v+&E 3;'E f%	E
 
EF *0*0,,(.	E#v+&E 3;'E f%	E
 
EB
E3 
E< 
E
Es 
E| 
E5# 5 5r'   rf   N)r4   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r[   rf   r7   r'   r#   <module>r      sS     L L L + : 2 ' !CL' CLL54 5&b5< b5r'   