
    gI                         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 - Flex
 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\	\   4U 4S jjjr
\SS j5       r\R                  4S	\\\4   SS 4S
 jjr\R                  4S	\\\4   SS 4S jjrS\4S jrSrU =r$ )PluginReleaseInstance   a  
:ivar sid: The unique string that we created to identify the Plugin Release resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Plugin Release resource and owns this resource.
:ivar configuration_sid: The SID of the Plugin Configuration resource to release.
:ivar date_created: The date and time in GMT when the Flex Plugin Release was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar url: The absolute URL of the Plugin Release resource.
versionpayloadsidc                 n  > [         TU ]  U5        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	        SU=(       d    U R                  0U l
        S U l        g )Nr   account_sidconfiguration_siddate_createdurl)super__init__getr   r   r   r   iso8601_datetimer   r   	_solution_context)selfr   r   r   	__class__s       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/flex_api/v1/plugin_release.pyr   PluginReleaseInstance.__init__"   s     	!")++e"4*1++m*D07<O0P0;0L0LKK'1
 #*++e"4 3?$((
 9=    returnc                     U R                   c&  [        U R                  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: PluginReleaseContext for this PluginReleaseInstance
r   r   )r"   PluginReleaseContext_versionr!   r#   s    r%   _proxyPluginReleaseInstance._proxy4   s9     == 0NN5)DM }}r'   flex_metadatac                 4    U R                   R                  US9$ )
Fetch the PluginReleaseInstance

:param flex_metadata: The Flex-Metadata HTTP request header

:returns: The fetched PluginReleaseInstance
r0   )r.   fetchr#   r0   s     r%   r4   PluginReleaseInstance.fetchC   s#     {{  ' ! 
 	
r'   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to fetch the PluginReleaseInstance

:param flex_metadata: The Flex-Metadata HTTP request header

:returns: The fetched PluginReleaseInstance
r3   N)r.   fetch_asyncr5   s     r%   r9   !PluginReleaseInstance.fetch_asyncQ   s0      [[,,' - 
 
 	
 
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>1PluginReleaseInstance.__repr__.<locals>.<genexpr>e         S<RDA7>>!//<R    "z,<Twilio.FlexApi.V1.PluginReleaseInstance {}>joinr!   itemsrA   r#   contexts     r%   __repr__PluginReleaseInstance.__repr___   s6     ((SDNN<P<P<RSS=DDWMMr'   )r"   r!   r   r   r   r   r   )N)r(   r+   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr.   r   unsetr   objectr4   r9   rO   __static_attributes____classcell__r$   s   @r%   r   r      s     OS==)-c3h=>Fsm= =$   39,,
"3;/
	 
 39,,
"3;/
	 
N# N Nr'   r   c                      ^  \ rS rSrS\S\4U 4S jjr\R                  4S\	\\
4   S\4S jjr\R                  4S\	\\
4   S\4S jjrS\4S	 jrS
rU =r$ )r+   i   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 PluginReleaseContext

:param version: Version that contains the resource
:param sid: The SID of the Flex Plugin Release resource to fetch.
r   z/PluginService/Releases/{sid}N )r   r   r!   rA   _uri)r#   r   r   r$   s      r%   r   PluginReleaseContext.__init__k   s=     	! 3
 4::LT^^L	r'   r0   r(   c                     [         R                  " SU05      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X#S9n[        U R                  UU R                  S   S9$ )r2   Flex-Metadataapplication/jsonAcceptGETmethoduriparamsheadersr   r*   )r   ofr,   r4   ra   r   r!   r#   r0   datarl   r   s        r%   r4   PluginReleaseContext.fetchz   s~     yy
 ))B-.--%%dii & 
 %MMu%
 	
r'   c                   #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)	r8   rd   re   rf   rg   rh   Nr   r*   )r   rm   r,   r9   ra   r   r!   rn   s        r%   r9    PluginReleaseContext.fetch_async   s      yy
 ))B-.11dii 2 
 
 %MMu%
 	
	
s   ABB'B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@   rB   s      r%   rF   0PluginReleaseContext.__repr__.<locals>.<genexpr>   rH   rI   z+<Twilio.FlexApi.V1.PluginReleaseContext {}>rJ   rM   s     r%   rO   PluginReleaseContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr'   )r!   ra   )rQ   rR   rS   rT   r   rV   r   r   rX   r   rY   r   r4   r9   rO   rZ   r[   r\   s   @r%   r+   r+   i   s|    M Mc M  39,,
"3;/
	
@ 39,,
"3;/
	
>M# M Mr'   r+   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)PluginReleasePage   r   r(   c                 .    [        U R                  U5      $ )z[
Build an instance of PluginReleaseInstance

:param payload: Payload response from the API
)r   r,   )r#   r   s     r%   get_instancePluginReleasePage.get_instance   s     %T]]G<<r'   c                     g)r<   z%<Twilio.FlexApi.V1.PluginReleasePage>r`   r-   s    r%   rO   PluginReleasePage.__repr__        7r'   r`   N)rQ   rR   rS   rT   r   rV   r   r   r{   rO   rZ   r`   r'   r%   rx   rx      s*    =DcN =7L =7# 7r'   rx   c                     ^  \ rS rSrS\4U 4S jjr\R                  4S\S\	\\
4   S\4S jjr\R                  4S\S\	\\
4   S\4S jjr\R                  S	S	4S\	\\
4   S
\\   S\\   S\\   4S jjr\R                  S	S	4S\	\\
4   S
\\   S\\   S\\   4S jjr\R                  S	S	4S\	\\
4   S
\\   S\\   S\\   4S jjr\R                  S	S	4S\	\\
4   S
\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S jjr\R                  \R                  \R                  \R                  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\S\4S jrS\S\4S jrS\4S jrSr U =r!$ )PluginReleaseList   r   c                 2   > [         TU ]  U5        SU l        g)zW
Initialize the PluginReleaseList

:param version: Version that contains the resource

z/PluginService/ReleasesN)r   r   ra   )r#   r   r$   s     r%   r   PluginReleaseList.__init__   s     	!-	r'   configuration_idr0   r(   c                     [         R                  " SU05      n[         R                  " USS.5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  U5      $ )	z
Create the PluginReleaseInstance

:param configuration_id: The SID or the Version of the Flex Plugin Configuration to release.
:param flex_metadata: The Flex-Metadata HTTP request header

:returns: The created PluginReleaseInstance
ConfigurationId!application/x-www-form-urlencodedrd   Content-Typer   re   rf   POSTri   rj   ro   rl   )r   rm   r,   createra   r   r#   r   r0   ro   rl   r   s         r%   r   PluginReleaseList.create   s     yy!#3

 ))!. C
 #F.--&&tyyt ' 
 %T]]G<<r'   c                 
  #    [         R                  " SU05      n[         R                  " USS.5      nSUS'   SUS'   U R                  R                  SU R                  X4S9I S	h  vN n[        U R                  U5      $  N7f)
z
Asynchronously create the PluginReleaseInstance

:param configuration_id: The SID or the Version of the Flex Plugin Configuration to release.
:param flex_metadata: The Flex-Metadata HTTP request header

:returns: The created PluginReleaseInstance
r   r   r   r   re   rf   r   r   N)r   rm   r,   create_asyncra   r   r   s         r%   r   PluginReleaseList.create_async  s      yy!#3

 ))!. C
 #F.22tyyt 3 
 
 %T]]G<<	
s   A$B&B'BNlimit	page_sizec                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )aC  
Streams PluginReleaseInstance 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 flex_metadata: The Flex-Metadata HTTP request header
: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   r0   r   r   )r,   read_limitspagestreamr#   r0   r   r   limitsr   s         r%   r   PluginReleaseList.stream&  sF    , **5<yy}{@SyT}}##D/::r'   c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   5      $  N"7f)aR  
Asynchronously streams PluginReleaseInstance 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 flex_metadata: The Flex-Metadata HTTP request header
: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   PluginReleaseList.stream_asyncA  s[     , **5<__'+3F % 
 
 }}))$w@@	
s   1AA#Ac                 6    [        U R                  UUUS95      $ )a  
Lists PluginReleaseInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str flex_metadata: The Flex-Metadata HTTP request header
: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
r0   r   r   )listr   )r#   r0   r   r   s       r%   r   PluginReleaseList.list^  s+    * KK+#  
 	
r'   c                 x   #    U R                  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 PluginReleaseInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str flex_metadata: The Flex-Metadata HTTP request header
: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#   r0   r   r   records        r%   
list_asyncPluginReleaseList.list_async{  sT     . '+&7&7+# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                     [         R                  " UUUUS.5      n[         R                  " USS.5      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  U5      $ )a  
Retrieve a single page of PluginReleaseInstance records from the API.
Request is executed immediately

:param flex_metadata: The Flex-Metadata HTTP request header
: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 PluginReleaseInstance
rd   	PageTokenr   PageSizer   r   re   rf   rg   rh   )r   rm   r,   r   ra   rx   r#   r0   r   r   r   ro   rl   responses           r%   r   PluginReleaseList.page  s    $ yy!.'#%	
 ))!. C
 /==%%dii & 
 !99r'   c                   #    [         R                  " UUUUS.5      n[         R                  " USS.5      nSUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously retrieve a single page of PluginReleaseInstance records from the API.
Request is executed immediately

:param flex_metadata: The Flex-Metadata HTTP request header
: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 PluginReleaseInstance
r   r   r   re   rf   rg   rh   N)r   rm   r,   r   ra   rx   r   s           r%   r   PluginReleaseList.page_async  s     $ yy!.'#%	
 ))!. C
 /11dii 2 
 
 !99
s   A"B$A?%B
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of PluginReleaseInstance records from the API.
Request is executed immediately

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

:returns: Page of PluginReleaseInstance
rg   )r,   domaintwiliorequestrx   r#   r   r   s      r%   get_pagePluginReleaseList.get_page  s7     ==''..66ujI 99r'   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 PluginReleaseInstance records from the API.
Request is executed immediately

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

:returns: Page of PluginReleaseInstance
rg   N)r,   r   r   request_asyncrx   r   s      r%   get_page_async PluginReleaseList.get_page_async  sC      --44BB5*UU 99 Vs   4AAAr   c                 *    [        U R                  US9$ zf
Constructs a PluginReleaseContext

:param sid: The SID of the Flex Plugin Release resource to fetch.
r*   r+   r,   r#   r   s     r%   r   PluginReleaseList.get       $DMMs;;r'   c                 *    [        U R                  US9$ r   r   r   s     r%   __call__PluginReleaseList.__call__  r   r'   c                     g)r<   z%<Twilio.FlexApi.V1.PluginReleaseList>r`   r-   s    r%   rO   PluginReleaseList.__repr__  r   r'   )ra   )"rQ   rR   rS   rT   r   r   r   rX   rV   r   rY   r   r   r   r   intr	   r   r
   r   r   r   r   rx   r   r   r   r   r+   r   r   rO   rZ   r[   r\   s   @r%   r   r      s   	. 	. JP = # =49#v+4F =	 =F JP = # =49#v+4F =	 =H -3LL##'	;S&[); }; C=	;
 
'	(;: -3LL##'	AS&[)A }A C=	A
 
,	-A> -3LL##'	
S&[)
 }
 C=	

 
#	$
> -3LL##'	
S&[)
 }
 C=	

 
#	$
@ -3LL)/*0,,(.':S&[)': #v+&': 3;'	':
 f%': 
':V -3LL)/*0,,(.':S&[)': #v+&': 3;'	':
 f%': 
':R
:3 
:+< 
:
:s 
:7H 
:<s <3 <<C <$8 <7# 7 7r'   r   N)rU   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+   rx   r   r`   r'   r%   <module>r      sg     L L L + 8 : 2 ' !MN, MN`VM? VMr7 7&D7 D7r'   