
    gY                         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$ )	ContentAndApprovalsInstance   aO  
: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 approval_requests: The submitted information and approval request status of the Content resource.
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        g )
Ndate_createddate_updatedsidaccount_sidfriendly_namelanguage	variablestypesapproval_requests)super__init__r   iso8601_datetimegetr   r   r   r   r   r   r   r   r    )selfr   r   	__class__s      t/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/content/v2/content_and_approvals.pyr"   $ContentAndApprovalsInstance.__init__&   s    !0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4*1++m*D,3KK,H'.{{:'>6=kk+6N29++g2F
>Ekk?
    returnc                     g)N
Provide a friendly representation

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

:param payload: Payload response from the API
)r   _version)r%   r   s     r'   get_instance$ContentAndApprovalsPage.get_instanceE   s     +4=='BBr)   c                     g)r,   z+<Twilio.Content.V2.ContentAndApprovalsPage>r-   r.   s    r'   r/    ContentAndApprovalsPage.__repr__M        =r)   r-   N)r1   r2   r3   r4   r   r6   r   r   r?   r/   r7   r-   r)   r'   r;   r;   C   s-    CDcN C7R C=# =r)   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$ )ContentAndApprovalsListV   r   c                 2   > [         TU ]  U5        SU l        g)z]
Initialize the ContentAndApprovalsList

:param version: Version that contains the resource

z/ContentAndApprovalsN)r!   r"   _uri)r%   r   r&   s     r'   r"    ContentAndApprovalsList.__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 ContentAndApprovalsInstance 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
rS   
rJ   rK   rL   rM   rN   rO   r   rP   rQ   rS   rR   )r>   read_limitspagestreamr%   rJ   rK   rL   rM   rN   rO   r   rP   rQ   rR   rS   limitsrW   s                 r'   rX   ContentAndApprovalsList.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 ContentAndApprovalsInstance 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
rS   rU   NrR   )r>   rV   
page_asyncstream_asyncrY   s                 r'   r^   $ContentAndApprovalsList.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      $ )aO  
Lists ContentAndApprovalsInstance 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
rJ   rK   rL   rM   rN   rO   r   rP   rQ   rR   rS   )listrX   )r%   rJ   rK   rL   rM   rN   rO   r   rP   rQ   rR   rS   s               r'   rb   ContentAndApprovalsList.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)a^  
Asynchronously lists ContentAndApprovalsInstance 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
ra   N)r^   )r%   rJ   rK   rL   rM   rN   rO   r   rP   rQ   rR   rS   records                r'   
list_async"ContentAndApprovalsList.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 ContentAndApprovalsInstance 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 ContentAndApprovalsInstance
c                     U $ Nr-   es    r'   <lambda>.ContentAndApprovalsList.page.<locals>.<lambda>d      ar)   c                     U $ rl   r-   rm   s    r'   ro   rp   e      Qr)   c                     U $ rl   r-   rm   s    r'   ro   rp   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>   rW   rH   r;   r%   rJ   rK   rL   rM   rN   rO   r   rP   rQ   rh   ri   rS   datar   responses                   r'   rW   ContentAndApprovalsList.page:  s    D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.==%%dii & 
 't}}h??r)   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 ContentAndApprovalsInstance 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 ContentAndApprovalsInstance
c                     U $ rl   r-   rm   s    r'   ro   4ContentAndApprovalsList.page_async.<locals>.<lambda>  rq   r)   c                     U $ rl   r-   rm   s    r'   ro   r     rs   r)   c                     U $ rl   r-   rm   s    r'   ro   r     ru   r)   rv   r   r   r   r   r   r   N)	r   r   r   r#   r   r>   r]   rH   r;   r   s                   r'   r]   "ContentAndApprovalsList.page_asyncv  s     D yy*%9$-$>$>?Q$R%.%?%?@S%T+"%MM(K@(}}\;G&/mm4G&U'#%
" ))^-PQR.11dii 2 
 
 't}}h??
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 ContentAndApprovalsInstance records from the API.
Request is executed immediately

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

:returns: Page of ContentAndApprovalsInstance
r   )r>   domaintwiliorequestr;   r%   r   r   s      r'   get_page ContentAndApprovalsList.get_page  s7     ==''..66ujI&t}}h??r)   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 ContentAndApprovalsInstance records from the API.
Request is executed immediately

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

:returns: Page of ContentAndApprovalsInstance
r   N)r>   r   r   request_asyncr;   r   s      r'   get_page_async&ContentAndApprovalsList.get_page_async  sC      --44BB5*UU&t}}h?? Vs   4AAAc                     g)r,   z+<Twilio.Content.V2.ContentAndApprovalsList>r-   r.   s    r'   r/    ContentAndApprovalsList.__repr__  rC   r)   )rH   )r1   r2   r3   r4   r   r"   r   unsetr   r6   objectr   r   r   intr	   r   rX   r
   r^   rb   rf   r;   rW   r]   r   r   r/   r7   r8   r9   s   @r'   rE   rE   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 
2	3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
 
)	*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
 
)	*4
p ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.:@CK(:@ $CK0:@ "(F"23	:@
 #8V#34:@ CK(:@ sF{#:@ S	6)*:@ DIv-.:@ #49f#45:@ #v+&:@ 3;':@ f%:@ 
!:@| ,2<<39<<6<ll7=||+1<<&,ll-3\\178>)/*0,,(.:@CK(:@ $CK0:@ "(F"23	:@
 #8V#34:@ CK(:@ sF{#:@ S	6)*:@ DIv-.:@ #49f#45:@ #v+&:@ 3;':@ f%:@ 
!:@x
@3 
@+B 
@
@s 
@7N 
@=# = =r)   rE   N)r5   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;   rE   r-   r)   r'   <module>r      sT     L L L 6 6 : 2 ' !'A"2 'AT=d =&z=l z=r)   