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

 Twilio - Studio
 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)InstanceContext)InstanceResource)ListResource)Version)Pagec            
          ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\S\
\   4U 4S jjjr\SS
 j5       rSS jrSS jrS	\4S jrSrU =r$ )FlowRevisionInstance   c                       \ rS rSrSrSrSrg)FlowRevisionInstance.Status   draft	published N)__name__
__module____qualname____firstlineno__DRAFT	PUBLISHED__static_attributes__r       p/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/studio/v2/flow/flow_revision.pyStatusr      s    	r"   r$   versionpayloadsidrevisionc                   > [         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        [        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        [        R                  " UR                  S
5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UU=(       d    U R                  S.U l        S U l        g )Nr'   account_sidfriendly_name
definitionstatusr(   commit_messagevaliderrorsdate_createddate_updatedurlr'   r(   )super__init__getr'   r*   r+   r,   r-   r   integerr(   r.   r/   r0   iso8601_datetimer1   r2   r3   	_solution_context)selfr%   r&   r'   r(   	__class__s        r#   r6   FlowRevisionInstance.__init__.   s&    	!")++e"4*1++m*D,3KK,H7>{{<7P?F{{8?T'2':':7;;z;R'S-4[[9I-J%,[[%9
9@X9N0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4  1DMM
 8<r"   returnc                     U R                   c4  [        U R                  U R                  S   U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: FlowRevisionContext for this FlowRevisionInstance
r'   r(   r4   )r;   FlowRevisionContext_versionr:   r<   s    r#   _proxyFlowRevisionInstance._proxyN   sE     == /NN5)
3DM
 }}r"   c                 6    U R                   R                  5       $ )M
Fetch the FlowRevisionInstance


:returns: The fetched FlowRevisionInstance
)rD   fetchrC   s    r#   rH   FlowRevisionInstance.fetch^   s     {{  ""r"   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)g
Asynchronous coroutine to fetch the FlowRevisionInstance


:returns: The fetched FlowRevisionInstance
N)rD   fetch_asyncrC   s    r#   rL    FlowRevisionInstance.fetch_asyncg   s       [[,,....s   '%'c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r#   	<genexpr>0FlowRevisionInstance.__repr__.<locals>.<genexpr>v         S<RDA7>>!//<R    "z*<Twilio.Studio.V2.FlowRevisionInstance {}>joinr:   itemsrT   r<   contexts     r#   __repr__FlowRevisionInstance.__repr__p   s6     ((SDNN<P<P<RSS;BB7KKr"   )r;   r:   r*   r.   r1   r2   r,   r0   r+   r(   r'   r-   r3   r/   )N)r?   rA   )r?   r   )r   r   r   r   objectr$   r   r   strr   r   r6   propertyrD   rH   rL   rb   r!   __classcell__r=   s   @r#   r   r      s       ( #'<< c3h< 	<
 3-< <@  #/L# L Lr"   r   c                   b   ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	S\4S	 jr
S
rU =r$ )rA   z   r%   r'   r(   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)z
Initialize the FlowRevisionContext

:param version: Version that contains the resource
:param sid: The SID of the Flow resource to fetch.
:param revision: Specific Revision number or can be `LatestPublished` and `LatestRevision`.
r4   z!/Flows/{sid}/Revisions/{revision}Nr   r5   r6   r:   rT   _uri)r<   r%   r'   r(   r=   s       r#   r6   FlowRevisionContext.__init__|   s>     	!  
 8>>PP	r"   r?   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )rG   application/jsonAcceptGETmethoduriheadersr'   r(   r4   )r   ofrB   rH   rm   r   r:   r<   rv   r&   s      r#   rH   FlowRevisionContext.fetch   si     ))B-.--%%U		7%S#MMu%^^J/	
 	
r"   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)	rK   rp   rq   rr   rs   Nr'   r(   r4   )r   rw   rB   rL   rm   r   r:   rx   s      r#   rL   FlowRevisionContext.fetch_async   s}      ))B-.11dii 2 
 
 $MMu%^^J/	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rO   rP   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frR   rS   rU   s      r#   rY   /FlowRevisionContext.__repr__.<locals>.<genexpr>   r[   r\   z)<Twilio.Studio.V2.FlowRevisionContext {}>r]   r`   s     r#   rb   FlowRevisionContext.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr"   r:   rm   )r   r   r   r   r   re   r6   r   rH   rL   rb   r!   rg   rh   s   @r#   rA   rA   z   sO    Q Qc QS Q"
+ 
*
#7 
.K# K Kr"   rA   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)FlowRevisionPage   r&   r?   c                 D    [        U R                  XR                  S   S9$ )zZ
Build an instance of FlowRevisionInstance

:param payload: Payload response from the API
r'   )r'   )r   rB   r:   )r<   r&   s     r#   get_instanceFlowRevisionPage.get_instance   s     $DMM7u@UVVr"   c                     g)rO   z#<Twilio.Studio.V2.FlowRevisionPage>r   rC   s    r#   rb   FlowRevisionPage.__repr__        5r"   r   N)r   r   r   r   r   re   r   r   r   rb   r!   r   r"   r#   r   r      s-    WDcN W7K W5# 5r"   r   c            	       F  ^  \ rS rSrS\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\S\4S jrS\S\4S jrS\4S jrSrU =r$ )FlowRevisionList   r%   r'   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the FlowRevisionList

:param version: Version that contains the resource
:param sid: The SID of the Flow resource to fetch.

r'   z/Flows/{sid}/RevisionsNr   rl   )r<   r%   r'   r=   s      r#   r6   FlowRevisionList.__init__   s=     	! 3
 -33EdnnE	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 FlowRevisionInstance 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
r   r   r   )rB   read_limitspagestreamr<   r   r   limitsr   s        r#   r   FlowRevisionList.stream   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 FlowRevisionInstance 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
r   r   Nr   )rB   r   
page_asyncstream_asyncr   s        r#   r   FlowRevisionList.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 FlowRevisionInstance 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
r   r   )listr   )r<   r   r   s      r#   r   FlowRevisionList.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 FlowRevisionInstance 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
r   N)r   )r<   r   r   records       r#   
list_asyncFlowRevisionList.list_async4  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                  X`R                  5      $ )aE  
Retrieve a single page of FlowRevisionInstance 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 FlowRevisionInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrp   rq   rr   rt   ru   paramsrv   )r   rw   rB   r   rm   r   r:   r<   r   r   r   datarv   responses          r#   r   FlowRevisionList.pageO  s{      yy'#%
 ))^-PQR.==%%dii & 
  xHHr"   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                  X`R                  5      $  N$7f)	aT  
Asynchronously retrieve a single page of FlowRevisionInstance 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 FlowRevisionInstance
r   r   r   rp   rq   rr   r   N)r   rw   rB   r   rm   r   r:   r   s          r#   r   FlowRevisionList.page_asyncp  s       yy'#%
 ))^-PQR.11dii 2 
 
  xHH
s   A B	"B#%B	
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of FlowRevisionInstance records from the API.
Request is executed immediately

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

:returns: Page of FlowRevisionInstance
rr   )rB   domaintwiliorequestr   r:   r<   r   r   s      r#   get_pageFlowRevisionList.get_page  s;     ==''..66ujIxHHr"   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of FlowRevisionInstance records from the API.
Request is executed immediately

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

:returns: Page of FlowRevisionInstance
rr   N)rB   r   r   request_asyncr   r:   r   s      r#   get_page_asyncFlowRevisionList.get_page_async  sG      --44BB5*UUxHH Vs   4AA%Ar(   c                 F    [        U R                  U R                  S   US9$ z
Constructs a FlowRevisionContext

:param revision: Specific Revision number or can be `LatestPublished` and `LatestRevision`.
r'   r4   rA   rB   r:   r<   r(   s     r#   r7   FlowRevisionList.get  %     #MMt~~e4x
 	
r"   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r#   __call__FlowRevisionList.__call__  r   r"   c                     g)rO   z#<Twilio.Studio.V2.FlowRevisionList>r   rC   s    r#   rb   FlowRevisionList.__repr__  r   r"   r   )NN) r   r   r   r   r   re   r6   r   intr	   r   r   r
   r   r   r   r   r   unsetr   rd   r   r   r   r   r   rA   r7   r   rb   r!   rg   rh   s   @r#   r   r      s&   F Fc F$  $#';}; C=; 
&	'	;6  $#'A}A C=A 
+	,	A6  $#'
}
 C=
 
"	#	
8  $#'
}
 C=
 
"	#	
: *0*0,,(.	I#v+&I 3;'I f%	I
 
IF *0*0,,(.	I#v+&I 3;'I f%	I
 
IB
I3 
I+; 
I
Is 
I7G 
I
C 
$7 

 
)< 
5# 5 5r"   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rA   r   r   r   r"   r#   <module>r      sg     L L L + 8 : 2 ' !^L+ ^LBFK/ FKR5t 5&m5| m5r"   