
    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 - 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$ )	ContentAndApprovalsInstance   aS  
: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 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/v1/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.V1.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.V1.ContentAndApprovalsPage>r,   r-   s    r&   r.    ContentAndApprovalsPage.__repr__M        =r(   r,   N)r0   r1   r2   r3   r   r5   r   r   r>   r.   r6   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  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$ )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(   limit	page_sizer)   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   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 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
rJ   rJ   rI   )r=   read_limitspagestreamr$   rI   rJ   limitsrN   s        r&   rO   ContentAndApprovalsList.streamc   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 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 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
rJ   rL   NrI   )r=   rM   
page_asyncstream_asyncrP   s        r&   rU   $ContentAndApprovalsList.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 ContentAndApprovalsInstance 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
rI   rJ   )listrO   )r$   rI   rJ   s      r&   rY   ContentAndApprovalsList.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 ContentAndApprovalsInstance 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
rX   N)rU   )r$   rI   rJ   records       r&   
list_async"ContentAndApprovalsList.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      $ )aS  
Retrieve a single page of ContentAndApprovalsInstance 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 ContentAndApprovalsInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptGETmethoduriparamsheaders)r   ofr=   rN   rG   r:   r$   r_   r`   rJ   datarn   responses          r&   rN   ContentAndApprovalsList.page   sw      yy'#%
 ))^-PQR.==%%dii & 
 't}}h??r(   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)	ab  
Asynchronously retrieve a single page of ContentAndApprovalsInstance 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 ContentAndApprovalsInstance
rb   re   rf   rg   rh   ri   rj   N)r   ro   r=   rT   rG   r:   rp   s          r&   rT   "ContentAndApprovalsList.page_async   s       yy'#%
 ))^-PQR.11dii 2 
 
 't}}h??
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 ContentAndApprovalsInstance records from the API.
Request is executed immediately

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

:returns: Page of ContentAndApprovalsInstance
ri   )r=   domaintwiliorequestr:   r$   rv   rr   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
ri   N)r=   rx   ry   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.V1.ContentAndApprovalsList>r,   r-   s    r&   r.    ContentAndApprovalsList.__repr__$  rB   r(   )rG   )NN)r0   r1   r2   r3   r   r!   r   intr	   r   rO   r
   rU   r   rY   r]   r   unsetr   r5   objectr:   rN   rT   r|   r   r.   r6   r7   r8   s   @r&   rD   rD   V   s   	+ 	+  $#';}; C=; 
-	.	;6  $#'A}A C=A 
2	3	A6  $#'
}
 C=
 
)	*	
8  $#'
}
 C=
 
)	*	
: *0*0,,(.	@#v+&@ 3;'@ f%	@
 
!@F *0*0,,(.	@#v+&@ 3;'@ f%	@
 
!@B
@3 
@+B 
@
@s 
@7N 
@=# = =r(   rD   N)r4   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:   rD   r,   r(   r&   <module>r      sQ     L L L + : 2 ' !'A"2 'AT=d =&T=l T=r(   