
    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 - Events
 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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$ )SchemaVersionInstance   a)  
:ivar id: The unique identifier of the schema. Each schema can have multiple versions, that share the same id.
:ivar schema_version: The version of this schema.
:ivar date_created: The date the schema version was created, given in ISO 8601 format.
:ivar url: The URL of this resource.
:ivar raw:
versionpayloadidschema_versionc                   > [         TU ]  U5        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R                  S5      U l
        UU=(       d    U R                  S.U l        S U l        g )Nr   r   date_createdurlrawr   r   )super__init__getr   r   integerr   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   r   	__class__s        s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/events/v1/schema/schema_version.pyr   SchemaVersionInstance.__init__"   s     	!!(T!2-8-@-@KK().
 1<0L0LKK'1
 #*++e"4")++e"4 ,C0C0C
 9=    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: SchemaVersionContext for this SchemaVersionInstance
r   r   r   )r$   SchemaVersionContext_versionr#   r%   s    r'   _proxySchemaVersionInstance._proxy;   sF     == 0>>$'#~~.>?DM
 }}r)   c                 6    U R                   R                  5       $ )O
Fetch the SchemaVersionInstance


:returns: The fetched SchemaVersionInstance
)r/   fetchr.   s    r'   r3   SchemaVersionInstance.fetchK   s     {{  ""r)   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)i
Asynchronous coroutine to fetch the SchemaVersionInstance


:returns: The fetched SchemaVersionInstance
N)r/   fetch_asyncr.   s    r'   r7   !SchemaVersionInstance.fetch_asyncT   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>1SchemaVersionInstance.__repr__.<locals>.<genexpr>c         S<RDA7>>!//<R    "z+<Twilio.Events.V1.SchemaVersionInstance {}>joinr#   itemsr?   r%   contexts     r'   __repr__SchemaVersionInstance.__repr__]   s6     ((SDNN<P<P<RSS<CCGLLr)   )r$   r#   r   r   r   r   r   )N)r*   r,   )r*   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   intr   propertyr/   r3   r7   rM   __static_attributes____classcell__r&   s   @r'   r   r      s{     )-== c3h= 	=
 != =2  #/M# M M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$ )r,   g   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 SchemaVersionContext

:param version: Version that contains the resource
:param id: The unique identifier of the schema. Each schema can have multiple versions, that share the same id.
:param schema_version: The version of the schema
r   z'/Schemas/{id}/Versions/{schema_version}N r   r   r#   r?   _uri)r%   r   r   r   r&   s       r'   r   SchemaVersionContext.__init__i   s>     	! ,
 >DDVt~~V	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$ )r2   application/jsonAcceptGETmethoduriheadersr   r   r   )r   ofr-   r3   r_   r   r#   r%   rh   r   s      r'   r3   SchemaVersionContext.fetchz   sj     ))B-.--%%U		7%S$MM~~d#>>*:;	
 	
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)	r6   rb   rc   rd   re   Nr   r   r   )r   ri   r-   r7   r_   r   r#   rj   s      r'   r7    SchemaVersionContext.fetch_async   s~      ))B-.11dii 2 
 
 %MM~~d#>>*:;	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r:   r;   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr=   r>   r@   s      r'   rD   0SchemaVersionContext.__repr__.<locals>.<genexpr>   rF   rG   z*<Twilio.Events.V1.SchemaVersionContext {}>rH   rK   s     r'   rM   SchemaVersionContext.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr)   r#   r_   )rO   rP   rQ   rR   r   rT   rU   r   r   r3   r7   rM   rW   rX   rY   s   @r'   r,   r,   g   sO    W WS W# W"
, 
*
#8 
.L# L Lr)   r,   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SchemaVersionPage   r   r*   c                 D    [        U R                  XR                  S   S9$ )z[
Build an instance of SchemaVersionInstance

:param payload: Payload response from the API
r   )r   )r   r-   r#   )r%   r   s     r'   get_instanceSchemaVersionPage.get_instance   s     %T]]Gt@TUUr)   c                     g)r:   z$<Twilio.Events.V1.SchemaVersionPage>r]   r.   s    r'   rM   SchemaVersionPage.__repr__        6r)   r]   N)rO   rP   rQ   rR   r   rT   r   r   rw   rM   rW   r]   r)   r'   rt   rt      s-    VDcN V7L V6# 6r)   rt   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$ )SchemaVersionList   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 SchemaVersionList

:param version: Version that contains the resource
:param id: The unique identifier of the schema. Each schema can have multiple versions, that share the same id.

r   z/Schemas/{id}/VersionsNr]   r^   )r%   r   r   r&   s      r'   r   SchemaVersionList.__init__   s=     	! "
 -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 SchemaVersionInstance 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   )r-   read_limitspagestreamr%   r   r   limitsr   s        r'   r   SchemaVersionList.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 SchemaVersionInstance 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   )r-   r   
page_asyncstream_asyncr   s        r'   r   SchemaVersionList.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 SchemaVersionInstance 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   SchemaVersionList.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 SchemaVersionInstance 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SchemaVersionList.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                  X`R                  5      $ )aG  
Retrieve a single page of SchemaVersionInstance 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 SchemaVersionInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrb   rc   rd   rf   rg   paramsrh   )r   ri   r-   r   r_   rt   r#   r%   r   r   r   datarh   responses          r'   r   SchemaVersionList.page<  s{      yy'#%
 ))^-PQR.==%%dii & 
 !..IIr)   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)	aV  
Asynchronously retrieve a single page of SchemaVersionInstance 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 SchemaVersionInstance
r   r   r   rb   rc   rd   r   N)r   ri   r-   r   r_   rt   r#   r   s          r'   r   SchemaVersionList.page_async]  s       yy'#%
 ))^-PQR.11dii 2 
 
 !..II
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 SchemaVersionInstance records from the API.
Request is executed immediately

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

:returns: Page of SchemaVersionInstance
rd   )r-   domaintwiliorequestrt   r#   r%   r   r   s      r'   get_pageSchemaVersionList.get_page~  s;     ==''..66ujI ..IIr)   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 SchemaVersionInstance records from the API.
Request is executed immediately

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

:returns: Page of SchemaVersionInstance
rd   N)r-   r   r   request_asyncrt   r#   r   s      r'   get_page_async SchemaVersionList.get_page_async  sG      --44BB5*UU ..II Vs   4AA%Ar   c                 F    [        U R                  U R                  S   US9$ zU
Constructs a SchemaVersionContext

:param schema_version: The version of the schema
r   r   r,   r-   r#   r%   r   s     r'   r    SchemaVersionList.get  %     $MMdnnT2>
 	
r)   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r'   __call__SchemaVersionList.__call__  r   r)   c                     g)r:   z$<Twilio.Events.V1.SchemaVersionList>r]   r.   s    r'   rM   SchemaVersionList.__repr__  r{   r)   rr   )NN) rO   rP   rQ   rR   r   rT   r   r   rU   r	   r   r   r
   r   r   r   r   r   unsetr   objectrt   r   r   r   r   r,   r    r   rM   rW   rX   rY   s   @r'   r}   r}      s&   F FS F$  $#';}; C=; 
'	(	;6  $#'A}A C=A 
,	-	A6  $#'
}
 C=
 
#	$	
8  $#'
}
 C=
 
#	$	
: *0*0,,(.	J#v+&J 3;'J f%	J
 
JF *0*0,,(.	J#v+&J 3;'J f%	J
 
JB
J3 
J+< 
J
Js 
J7H 
J
# 
*> 

s 
/C 
6# 6 6r)   r}   N)rS   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   r,   rt   r}   r]   r)   r'   <module>r      sg     L L L + 8 : 2 ' !KM, KM\FL? FLR6 6&m6 m6r)   