
    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                   T   ^  \ rS rSrSrS\S\\\4   S\4U 4S jjr	S\4S jr
S	rU =r$ )
ChunkInstance   a  
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource.
:ivar content: The chunk content.
:ivar metadata: The metadata of the chunk.
:ivar date_created: The date and time in GMT when the Chunk was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Chunk was updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
versionpayloadidc                 b  > [         TU ]  U5        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account_sidcontentmetadatadate_createddate_updatedr   )super__init__getr   r   r   r   iso8601_datetimer   r   	_solution)selfr   r   r   	__class__s       q/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/assistants/v1/knowledge/chunk.pyr   ChunkInstance.__init__"   s    !*1++m*D&-kk)&<5<[[5L0;0L0LKK'1
 1<0L0LKK'1

 "
    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>)ChunkInstance.__repr__.<locals>.<genexpr>9   s      S<RDA7>>!//<Rs    "z'<Twilio.Assistants.V1.ChunkInstance {}>)joinr!   itemsr,   )r"   contexts     r$   __repr__ChunkInstance.__repr__3   s6     ((SDNN<P<P<RSS8??HHr&   )r!   r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r5   __static_attributes____classcell__r#   s   @r$   r   r      s>    
 
$sCx. 
c 
"I# I Ir&   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)	ChunkPage=   r   r'   c                 D    [        U R                  XR                  S   S9$ )zS
Build an instance of ChunkInstance

:param payload: Payload response from the API
r   )r   )r   _versionr!   )r"   r   s     r$   get_instanceChunkPage.get_instance?   s     T]]Gt8LMMr&   c                     g)r)   z <Twilio.Assistants.V1.ChunkPage> r"   s    r$   r5   ChunkPage.__repr__G        2r&   rH   N)r7   r8   r9   r:   r   r<   r   r   rE   r5   r=   rH   r&   r$   rA   rA   =   s,    NDcN N} N2# 2r&   rA   c            	       "  ^  \ rS rSrS\S\4U 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  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$ )	ChunkListP   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)zl
Initialize the ChunkList

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

r   z/Knowledge/{id}/ChunksNrH   )r   r   r!   r,   _uri)r"   r   r   r#   s      r$   r   ChunkList.__init__R   s=     	! "
 -33EdnnE	r&   limit	page_sizer'   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams ChunkInstance 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
rS   rS   rR   )rD   read_limitspagestreamr"   rR   rS   limitsrW   s        r$   rX   ChunkList.streamb   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 ChunkInstance 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
rS   rU   NrR   )rD   rV   
page_asyncstream_asyncrY   s        r$   r^   ChunkList.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 ChunkInstance 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
rR   rS   )listrX   )r"   rR   rS   s      r$   rb   ChunkList.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 ChunkInstance 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
ra   N)r^   )r"   rR   rS   records       r$   
list_asyncChunkList.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      $ )a7  
Retrieve a single page of ChunkInstance 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 ChunkInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofrD   rW   rP   rA   r!   r"   rh   ri   rS   datarw   responses          r$   rW   ChunkList.page   s{      yy'#%
 ))^-PQR.==%%dii & 
 ..AAr&   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)	aF  
Asynchronously retrieve a single page of ChunkInstance 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 ChunkInstance
rk   rn   ro   rp   rq   rr   rs   N)r   rx   rD   r]   rP   rA   r!   ry   s          r$   r]   ChunkList.page_async   s       yy'#%
 ))^-PQR.11dii 2 
 
 ..AA
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 ChunkInstance records from the API.
Request is executed immediately

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

:returns: Page of ChunkInstance
rr   )rD   domaintwiliorequestrA   r!   r"   r   r{   s      r$   get_pageChunkList.get_page  s;     ==''..66ujI..AAr&   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 ChunkInstance records from the API.
Request is executed immediately

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

:returns: Page of ChunkInstance
rr   N)rD   r   r   request_asyncrA   r!   r   s      r$   get_page_asyncChunkList.get_page_async  sG      --44BB5*UU..AA Vs   4AA%Ac                     g)r)   z <Twilio.Assistants.V1.ChunkList>rH   rI   s    r$   r5   ChunkList.__repr__#  rK   r&   )r!   rP   )NN)r7   r8   r9   r:   r   r<   r   r   intr	   r   rX   r
   r^   r   rb   rf   r   unsetr   objectrA   rW   r]   r   r   r5   r=   r>   r?   s   @r$   rM   rM   P   s   F FS F$  $#';}; C=; 
-	 	;6  $#'A}A C=A 
}	%	A6  $#'
}
 C=
 
m		
8  $#'
}
 C=
 
m		
: *0*0,,(.	B#v+&B 3;'B f%	B
 
BF *0*0,,(.	B#v+&B 3;'B f%	B
 
BB
B3 
B9 
B
Bs 
By 
B2# 2 2r&   rM   N)r;   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   rA   rM   rH   r&   r$   <module>r      sQ     L L L + : 2 ' !!I$ !IH2 2&Y2 Y2r&   