
    g0                         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 - Content
 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                   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$ )	LegacyContentInstance   a  
:ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar sid: The unique string that that we created to identify the Content resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/usage/api/account) that created Content resource.
:ivar friendly_name: A string name used to describe the Content resource. Not visible to the end recipient.
:ivar language: Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
:ivar variables: Defines the default placeholder values for variables included in the Content resource. e.g. {"1": "Customer_Name"}.
:ivar types: The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
:ivar legacy_template_name: The string name of the legacy content template associated with this Content resource, unique across all template names for its account.  Only lowercase letters, numbers and underscores are allowed
:ivar legacy_body: The string body field of the legacy content template associated with this Content resource
:ivar url: The URL of the resource, relative to `https://content.twilio.com`.
versionpayloadc                 X  > [         TU ]  U5        [        R                  " UR	                  S5      5      U l        [        R                  " UR	                  S5      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        UR	                  S
5      U l        UR	                  S5      U l        g )Ndate_createddate_updatedsidaccount_sidfriendly_namelanguage	variablestypeslegacy_template_namelegacy_bodyurl)super__init__r   iso8601_datetimegetr   r   r   r   r   r   r   r   r   r    r!   )selfr   r   	__class__s      m/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/content/v1/legacy_content.pyr#   LegacyContentInstance.__init__(   s    !0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4*1++m*D,3KK,H'.{{:'>6=kk+6N29++g2F
3:;;?U3V!*1++m*D")++e"4    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z)<Twilio.Content.V1.LegacyContentInstance> r&   s    r(   __repr__LegacyContentInstance.__repr__;   s     ;r*   )r   r   r   r   r   r    r   r   r   r!   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r#   r0   __static_attributes____classcell__r'   s   @r(   r   r      s4    5 5$sCx. 5&;# ; ;r*   r   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)LegacyContentPageE   r   r+   c                 .    [        U R                  U5      $ )z[
Build an instance of LegacyContentInstance

:param payload: Payload response from the API
)r   _version)r&   r   s     r(   get_instanceLegacyContentPage.get_instanceG   s     %T]]G<<r*   c                     g)r-   z%<Twilio.Content.V1.LegacyContentPage>r.   r/   s    r(   r0   LegacyContentPage.__repr__O        7r*   r.   N)r2   r3   r4   r5   r   r7   r   r   r@   r0   r8   r.   r*   r(   r<   r<   E   s*    =DcN =7L =7# 7r*   r<   c            	         ^  \ rS rSr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$ )LegacyContentListX   r   c                 2   > [         TU ]  U5        SU l        g)zW
Initialize the LegacyContentList

:param version: Version that contains the resource

z/LegacyContentN)r"   r#   _uri)r&   r   r'   s     r(   r#   LegacyContentList.__init__Z   s     	!$	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 LegacyContentInstance 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
rL   rL   rK   )r?   read_limitspagestreamr&   rK   rL   limitsrP   s        r(   rQ   LegacyContentList.streame   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 LegacyContentInstance 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
rL   rN   NrK   )r?   rO   
page_asyncstream_asyncrR   s        r(   rW   LegacyContentList.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 LegacyContentInstance 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
rK   rL   )listrQ   )r&   rK   rL   s      r(   r[   LegacyContentList.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 LegacyContentInstance 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
rZ   N)rW   )r&   rK   rL   records       r(   
list_asyncLegacyContentList.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                  U5      $ )aG  
Retrieve a single page of LegacyContentInstance 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 LegacyContentInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr?   rP   rI   r<   r&   ra   rb   rL   datarp   responses          r(   rP   LegacyContentList.page   sw      yy'#%
 ))^-PQR.==%%dii & 
 !99r*   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                  U5      $  N7f)	aV  
Asynchronously retrieve a single page of LegacyContentInstance 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 LegacyContentInstance
rd   rg   rh   ri   rj   rk   rl   N)r   rq   r?   rV   rI   r<   rr   s          r(   rV   LegacyContentList.page_async   s       yy'#%
 ))^-PQR.11dii 2 
 
 !99
s   A A?"A=#A?
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of LegacyContentInstance records from the API.
Request is executed immediately

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

:returns: Page of LegacyContentInstance
rk   )r?   domaintwiliorequestr<   r&   rx   rt   s      r(   get_pageLegacyContentList.get_page  s7     ==''..66ujI 99r*   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 LegacyContentInstance records from the API.
Request is executed immediately

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

:returns: Page of LegacyContentInstance
rk   N)r?   rz   r{   request_asyncr<   r}   s      r(   get_page_async LegacyContentList.get_page_async  sC      --44BB5*UU 99 Vs   4AAAc                     g)r-   z%<Twilio.Content.V1.LegacyContentList>r.   r/   s    r(   r0   LegacyContentList.__repr__&  rD   r*   )rI   )NN)r2   r3   r4   r5   r   r#   r   intr	   r   rQ   r
   rW   r   r[   r_   r   unsetr   r7   objectr<   rP   rV   r~   r   r0   r8   r9   r:   s   @r(   rF   rF   X   s   	% 	%  $#';}; C=; 
'	(	;6  $#'A}A C=A 
,	-	A6  $#'
}
 C=
 
#	$	
8  $#'
}
 C=
 
#	$	
: *0*0,,(.	:#v+&: 3;': f%	:
 
:F *0*0,,(.	:#v+&: 3;': f%	:
 
:B
:3 
:+< 
:
:s 
:7H 
:7# 7 7r*   rF   N)r6   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   r.   r*   r(   <module>r      sO     L L L + : 2 ' !);, );X7 7&T7 T7r*   