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

 Twilio - Verify
 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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)InstanceResource)ListResource)Version)Pagec                   P   ^  \ rS rSrSrS\S\\\4   4U 4S jjr	S\4S jr
SrU =r$ )	TemplateInstance   aQ  
:ivar sid: A 34 character string that uniquely identifies a Verification Template.
:ivar account_sid: The unique SID identifier of the Account.
:ivar friendly_name: A descriptive string that you create to describe a Template. It can be up to 32 characters long.
:ivar channels: A list of channels that support the Template. Can include: sms, voice.
:ivar translations: An object that contains the different translations of the template. Every translation is identified by the language short name and contains its respective information as the approval status, text and created/modified date.
versionpayloadc                    > [         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        g )Nsidaccount_sidfriendly_namechannelstranslations)super__init__getr   r   r   r   r   )selfr   r   	__class__s      f/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/verify/v2/template.pyr   TemplateInstance.__init__!   sc    !")++e"4*1++m*D,3KK,H-4[[-D9@^9T    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z#<Twilio.Verify.V2.TemplateInstance> r   s    r   __repr__TemplateInstance.__repr__*   s     5r!   )r   r   r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r'   __static_attributes____classcell__r   s   @r   r   r      s7    U U$sCx. U5# 5 5r!   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)TemplatePage4   r   r"   c                 .    [        U R                  U5      $ )zV
Build an instance of TemplateInstance

:param payload: Payload response from the API
)r   _version)r   r   s     r   get_instanceTemplatePage.get_instance6   s      w77r!   c                     g)r$   z<Twilio.Verify.V2.TemplatePage>r%   r&   s    r   r'   TemplatePage.__repr__>        1r!   r%   N)r)   r*   r+   r,   r   r.   r   r   r7   r'   r/   r%   r!   r   r3   r3   4   s*    8DcN 87G 81# 1r!   r3   c                     ^  \ rS rSrS\4U 4S jjr\R                  SS4S\\	\
4   S\\   S\\   S\\   4S	 jjr\R                  SS4S\\	\
4   S\\   S\\   S\\   4S
 jjr\R                  SS4S\\	\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\\	\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S\4
S jjr\R                  \R                  \R                  \R                  4S\\	\
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$ )TemplateListG   r   c                 2   > [         TU ]  U5        SU l        g)zR
Initialize the TemplateList

:param version: Version that contains the resource

z
/TemplatesN)r   r   _uri)r   r   r   s     r   r   TemplateList.__init__I   s     	! 	r!   Nr   limit	page_sizer"   c                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )aZ  
Streams TemplateInstance 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 str friendly_name: String filter used to query templates with a given friendly name.
: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
rC   r   rC   rB   )r6   read_limitspagestreamr   r   rB   rC   limitsrG   s         r   rH   TemplateList.streamT   sF    , **5<yy}{@SyT}}##D/::r!   c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   5      $  N"7f)ai  
Asynchronously streams TemplateInstance 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 str friendly_name: String filter used to query templates with a given friendly name.
: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
rC   rE   NrB   )r6   rF   
page_asyncstream_asyncrI   s         r   rN   TemplateList.stream_asynco   s[     , **5<__'+3F % 
 
 }}))$w@@	
s   1AA#Ac                 6    [        U R                  UUUS95      $ )a  
Lists TemplateInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str friendly_name: String filter used to query templates with a given friendly name.
: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   rB   rC   )listrH   )r   r   rB   rC   s       r   rR   TemplateList.list   s+    * KK+#  
 	
r!   c                 x   #    U R                  U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 TemplateInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str friendly_name: String filter used to query templates with a given friendly name.
: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
rQ   N)rN   )r   r   rB   rC   records        r   
list_asyncTemplateList.list_async   sT     . '+&7&7+# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                     [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  U5      $ )a  
Retrieve a single page of TemplateInstance records from the API.
Request is executed immediately

:param friendly_name: String filter used to query templates with a given friendly name.
: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 TemplateInstance
FriendlyName	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr6   rG   r@   r3   r   r   rX   rY   rC   datarh   responses           r   rG   TemplateList.page   sz    $ yy -'#%	
 ))^-PQR.==%%dii & 
 DMM844r!   c                   #    [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously retrieve a single page of TemplateInstance records from the API.
Request is executed immediately

:param friendly_name: String filter used to query templates with a given friendly name.
: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 TemplateInstance
r[   r_   r`   ra   rb   rc   rd   N)r
   ri   r6   rM   r@   r3   rj   s           r   rM   TemplateList.page_async   s     $ yy -'#%	
 ))^-PQR.11dii 2 
 
 DMM844
s   A!B #A>$B 
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of TemplateInstance records from the API.
Request is executed immediately

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

:returns: Page of TemplateInstance
rc   )r6   domaintwiliorequestr3   r   rp   rl   s      r   get_pageTemplateList.get_page  s7     ==''..66ujIDMM844r!   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
Asynchronously retrieve a specific page of TemplateInstance records from the API.
Request is executed immediately

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

:returns: Page of TemplateInstance
rc   N)r6   rr   rs   request_asyncr3   ru   s      r   get_page_asyncTemplateList.get_page_async  sC      --44BB5*UUDMM844 Vs   4AAAc                     g)r$   z<Twilio.Verify.V2.TemplateList>r%   r&   s    r   r'   TemplateList.__repr__'  r;   r!   )r@   )r)   r*   r+   r,   r   r   r
   unsetr   r.   objectr   intr   r   rH   r	   rN   r   rR   rV   r3   rG   rM   rv   rz   r'   r/   r0   r1   s   @r   r=   r=   G   s   	! 	! -3LL##'	;S&[); }; C=	;
 
"	#;: -3LL##'	AS&[)A }A C=	A
 
'	(A> -3LL##'	
S&[)
 }
 C=	

 
	
> -3LL##'	
S&[)
 }
 C=	

 
	
@ -3LL)/*0,,(."5S&[)"5 #v+&"5 3;'	"5
 f%"5 
"5L -3LL)/*0,,(."5S&[)"5 #v+&"5 3;'	"5
 f%"5 
"5H
53 
5< 
5
5s 
5| 
51# 1 1r!   r=   N)r-   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r3   r=   r%   r!   r   <module>r      sL    M L L  : 2 ' !5' 5814 1&f1< f1r!   