
    gW                         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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	serialize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$ )	ContentInstance   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/content-types-overview) (e.g. twilio/text) for this Content resource.
:ivar url: The URL of the resource, relative to `https://content.twilio.com`.
:ivar links: A list of links related to the Content resource, such as approval_fetch and approval_create
versionpayloadc                 ,  > [         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        g )Ndate_createddate_updatedsidaccount_sidfriendly_namelanguage	variablestypesurllinks)super__init__r   iso8601_datetimegetr   r   r   r   r   r   r   r   r    r!   )selfr   r   	__class__s      f/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/content/v2/content.pyr#   ContentInstance.__init__'   s    !0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4*1++m*D,3KK,H'.{{:'>6=kk+6N29++g2F
")++e"429++g2F
    returnc                     g)N
Provide a friendly representation

:returns: Machine friendly representation
z#<Twilio.Content.V2.ContentInstance> r&   s    r(   __repr__ContentInstance.__repr__9   s     5r*   )
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      s7    G G$sCx. G$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)ContentPageC   r   r+   c                 .    [        U R                  U5      $ )zU
Build an instance of ContentInstance

:param payload: Payload response from the API
)r   _version)r&   r   s     r(   get_instanceContentPage.get_instanceE   s     t}}g66r*   c                     g)r-   z<Twilio.Content.V2.ContentPage>r.   r/   s    r(   r0   ContentPage.__repr__M        1r*   r.   N)r2   r3   r4   r5   r   r7   r   r   r@   r0   r8   r.   r*   r(   r<   r<   C   s)    7DcN 7 71# 1r*   r<   c                   "
  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\\	\
4   S
\\	\
4   S\\\	   \
4   S\\\	   \
4   S\\\	   \
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\\	\
4   S
\\	\
4   S\\\	   \
4   S\\\	   \
4   S\\\	   \
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\\	\
4   S
\\	\
4   S\\\	   \
4   S\\\	   \
4   S\\\	   \
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  SS4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\\	\
4   S
\\	\
4   S\\\	   \
4   S\\\	   \
4   S\\\	   \
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\\	\
4   S
\\	\
4   S\\\	   \
4   S\\\	   \
4   S\\\	   \
4   S\\	\
4   S\\\
4   S\\\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S	\\	\
4   S
\\	\
4   S\\\	   \
4   S\\\	   \
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$ )ContentListV   r   c                 2   > [         TU ]  U5        SU l        g)zQ
Initialize the ContentList

:param version: Version that contains the resource

z/ContentN)r"   r#   _uri)r&   r   r'   s     r(   r#   ContentList.__init__X   s     	!	r*   Nsort_by_datesort_by_content_namedate_created_afterdate_created_beforecontent_namecontentr   content_typechannel_eligibilitylimit	page_sizer+   c                     U R                   R                  X5      nU R                  UUUUUUUUU	US   S9
nU R                   R                  XS   5      $ )a  
Streams ContentInstance 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 sort_by_date: Whether to sort by ascending or descending date updated
:param str sort_by_content_name: Whether to sort by ascending or descending content name
:param datetime date_created_after: Filter by >=[date-time]
:param datetime date_created_before: Filter by <=[date-time]
:param str content_name: Filter by Regex Pattern in content name
:param str content: Filter by Regex Pattern in template content
:param List[str] language: Filter by array of valid language(s)
:param List[str] content_type: Filter by array of contentType(s)
:param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
: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
rT   
rK   rL   rM   rN   rO   rP   r   rQ   rR   rT   rS   )r?   read_limitspagestreamr&   rK   rL   rM   rN   rO   rP   r   rQ   rR   rS   rT   limitsrX   s                 r(   rY   ContentList.streamc   sj    L **5<yy%!51 3%% 3[)  
 }}##D/::r*   c                    #    U R                   R                  X5      nU R                  UUUUUUUUU	US   S9
I Sh  vN nU R                   R                  XS   5      $  N"7f)a  
Asynchronously streams ContentInstance 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 sort_by_date: Whether to sort by ascending or descending date updated
:param str sort_by_content_name: Whether to sort by ascending or descending content name
:param datetime date_created_after: Filter by >=[date-time]
:param datetime date_created_before: Filter by <=[date-time]
:param str content_name: Filter by Regex Pattern in content name
:param str content: Filter by Regex Pattern in template content
:param List[str] language: Filter by array of valid language(s)
:param List[str] content_type: Filter by array of contentType(s)
:param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
: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
rT   rV   NrS   )r?   rW   
page_asyncstream_asyncrZ   s                 r(   r_   ContentList.stream_async   sw     L **5<__%!51 3%% 3[) % 
 
 }}))$w@@
s   :A!A#A!c                 F    [        U R                  UUUUUUUUU	U
US95      $ )aC  
Lists ContentInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str sort_by_date: Whether to sort by ascending or descending date updated
:param str sort_by_content_name: Whether to sort by ascending or descending content name
:param datetime date_created_after: Filter by >=[date-time]
:param datetime date_created_before: Filter by <=[date-time]
:param str content_name: Filter by Regex Pattern in content name
:param str content: Filter by Regex Pattern in template content
:param List[str] language: Filter by array of valid language(s)
:param List[str] content_type: Filter by array of contentType(s)
:param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
: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   rM   rN   rO   rP   r   rQ   rR   rS   rT   )listrY   )r&   rK   rL   rM   rN   rO   rP   r   rQ   rR   rS   rT   s               r(   rc   ContentList.list   sD    J KK)%9#5$7)!)$7#  
 	
r*   c                    #    U R                  UUUUUUUU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)aR  
Asynchronously lists ContentInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str sort_by_date: Whether to sort by ascending or descending date updated
:param str sort_by_content_name: Whether to sort by ascending or descending content name
:param datetime date_created_after: Filter by >=[date-time]
:param datetime date_created_before: Filter by <=[date-time]
:param str content_name: Filter by Regex Pattern in content name
:param str content: Filter by Regex Pattern in template content
:param List[str] language: Filter by array of valid language(s)
:param List[str] content_type: Filter by array of contentType(s)
:param List[str] channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
: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
rb   N)r_   )r&   rK   rL   rM   rN   rO   rP   r   rQ   rR   rS   rT   records                r(   
list_asyncContentList.list_async  sm     N '+&7&7)%9#5$7)!)$7# '8 ' ! !
 
 !
 	
 
s4   A5A=97
9=A9=A
page_tokenpage_numberc                    [         R                  " UU[        R                  " U5      [        R                  " U5      UU[        R                  " US 5      [        R                  " US 5      [        R                  " U	S 5      U
UUS.5      n[         R                  " SS05      nSUS'   U R
                  R                  S	U R                  XS
9n[        U R
                  U5      $ )a  
Retrieve a single page of ContentInstance records from the API.
Request is executed immediately

:param sort_by_date: Whether to sort by ascending or descending date updated
:param sort_by_content_name: Whether to sort by ascending or descending content name
:param date_created_after: Filter by >=[date-time]
:param date_created_before: Filter by <=[date-time]
:param content_name: Filter by Regex Pattern in content name
:param content: Filter by Regex Pattern in template content
:param language: Filter by array of valid language(s)
:param content_type: Filter by array of contentType(s)
:param channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
: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 ContentInstance
c                     U $ Nr.   es    r(   <lambda>"ContentList.page.<locals>.<lambda>d      ar*   c                     U $ rm   r.   rn   s    r(   rp   rq   e      Qr*   c                     U $ rm   r.   rn   s    r(   rp   rq   f      STr*   
SortByDateSortByContentNameDateCreatedAfterDateCreatedBeforeContentNameContentLanguageContentTypeChannelEligibility	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)	r   ofr   r$   mapr?   rX   rI   r<   r&   rK   rL   rM   rN   rO   rP   r   rQ   rR   ri   rj   rT   datar   responses                   r(   rX   ContentList.page:  s    D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.==%%dii & 
 4==(33r*   c                   #    [         R                  " UU[        R                  " U5      [        R                  " U5      UU[        R                  " US 5      [        R                  " US 5      [        R                  " U	S 5      U
UUS.5      n[         R                  " SS05      nSUS'   U R
                  R                  S	U R                  XS
9I Sh  vN n[        U R
                  U5      $  N7f)a  
Asynchronously retrieve a single page of ContentInstance records from the API.
Request is executed immediately

:param sort_by_date: Whether to sort by ascending or descending date updated
:param sort_by_content_name: Whether to sort by ascending or descending content name
:param date_created_after: Filter by >=[date-time]
:param date_created_before: Filter by <=[date-time]
:param content_name: Filter by Regex Pattern in content name
:param content: Filter by Regex Pattern in template content
:param language: Filter by array of valid language(s)
:param content_type: Filter by array of contentType(s)
:param channel_eligibility: Filter by array of ChannelEligibility(s), where ChannelEligibility=<channel>:<status>
: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 ContentInstance
c                     U $ rm   r.   rn   s    r(   rp   (ContentList.page_async.<locals>.<lambda>  rr   r*   c                     U $ rm   r.   rn   s    r(   rp   r     rt   r*   c                     U $ rm   r.   rn   s    r(   rp   r     rv   r*   rw   r   r   r   r   r   r   N)	r   r   r   r$   r   r?   r^   rI   r<   r   s                   r(   r^   ContentList.page_asyncv  s     D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.11dii 2 
 
 4==(33
s   CC2C0C2
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of ContentInstance records from the API.
Request is executed immediately

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

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

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

:returns: Page of ContentInstance
r   N)r?   r   r   request_asyncr<   r   s      r(   get_page_asyncContentList.get_page_async  sC      --44BB5*UU4==(33 Vs   4AAAc                     g)r-   z<Twilio.Content.V2.ContentList>r.   r/   s    r(   r0   ContentList.__repr__  rD   r*   )rI   )r2   r3   r4   r5   r   r#   r   unsetr   r7   objectr   r   r   intr	   r   rY   r
   r_   rc   rg   r<   rX   r^   r   r   r0   r8   r9   r:   s   @r(   rF   rF   V   s   	 	 ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'4;CK(4; $CK04; "(F"23	4;
 #8V#344; CK(4; sF{#4; S	6)*4; DIv-.4; #49f#454; }4; C=4; 
/	"4;p ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'4ACK(4A $CK04A "(F"23	4A
 #8V#344A CK(4A sF{#4A S	6)*4A DIv-.4A #49f#454A }4A C=4A 
	'4Ap ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'3
CK(3
 $CK03
 "(F"23	3

 #8V#343
 CK(3
 sF{#3
 S	6)*3
 DIv-.3
 #49f#453
 }3
 C=3
 
o	3
n ,2<<39<<6<ll7=||+1<<&,ll-3\\178>##'4
CK(4
 $CK04
 "(F"23	4

 #8V#344
 CK(4
 sF{#4
 S	6)*4
 DIv-.4
 #49f#454
 }4
 C=4
 
o	4
p ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.:4CK(:4 $CK0:4 "(F"23	:4
 #8V#34:4 CK(:4 sF{#:4 S	6)*:4 DIv-.:4 #49f#45:4 #v+&:4 3;':4 f%:4 
:4| ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.:4CK(:4 $CK0:4 "(F"23	:4
 #8V#34:4 CK(:4 sF{#:4 S	6)*:4 DIv-.:4 #49f#45:4 #v+&:4 3;':4 f%:4 
:4x
43 
4; 
4
4s 
4{ 
41# 1 1r*   rF   N)r6   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r<   rF   r.   r*   r(   <module>r      sR     L L L 6 6 : 2 ' !'5& '5T1$ 1&z1, z1r*   