
    gkK                         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	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 - Serverless
 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)InstanceContext)InstanceResource)ListResource)Version)Pagec                      ^  \ rS rSrSr SS\S\\\4   S\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$ )DeploymentInstance   a&  
:ivar sid: The unique string that we created to identify the Deployment resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Deployment resource.
:ivar service_sid: The SID of the Service that the Deployment resource is associated with.
:ivar environment_sid: The SID of the Environment for the Deployment.
:ivar build_sid: The SID of the Build for the deployment.
:ivar date_created: The date and time in GMT when the Deployment resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Deployment resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar url: The absolute URL of the Deployment resource.
versionpayloadservice_sidenvironment_sidsidc                   > [         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
        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UUU=(       d    U R                  S	.U l        S U l        g )
Nr   account_sidr   r   	build_siddate_createddate_updatedurlr   r   r   )super__init__getr   r   r   r   r   r   iso8601_datetimer   r   r    	_solution_context)selfr   r   r   r   r   	__class__s         ڀ/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/serverless/v1/service/environment/deployment.pyr#   DeploymentInstance.__init__%   s     	!")++e"4*1++m*D*1++m*D.5kk:K.L(/K(@0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '.?$((

 6:    returnc                     U R                   cB  [        U R                  U R                  S   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: DeploymentContext for this DeploymentInstance
r   r   r   r!   )r'   DeploymentContext_versionr&   r(   s    r*   _proxyDeploymentInstance._proxyC   sR     == - NN=9 $/@ ANN5)	DM }}r,   c                 6    U R                   R                  5       $ )I
Fetch the DeploymentInstance


:returns: The fetched DeploymentInstance
)r2   fetchr1   s    r*   r6   DeploymentInstance.fetchT   s     {{  ""r,   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)c
Asynchronous coroutine to fetch the DeploymentInstance


:returns: The fetched DeploymentInstance
N)r2   fetch_asyncr1   s    r*   r:   DeploymentInstance.fetch_async]   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>.DeploymentInstance.__repr__.<locals>.<genexpr>l         S<RDA7>>!//<R    "z,<Twilio.Serverless.V1.DeploymentInstance {}>joinr&   itemsrB   r(   contexts     r*   __repr__DeploymentInstance.__repr__f   s6     ((SDNN<P<P<RSS=DDWMMr,   )
r'   r&   r   r   r   r   r   r   r   r    )N)r-   r/   )r-   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r#   propertyr2   r6   r:   rP   __static_attributes____classcell__r)   s   @r*   r   r      s    	" ":: c3h: 	:
 : c]: :<   #/N# N Nr,   r   c                   f   ^  \ rS rSrS\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/   p   r   r   r   r   c                 |   > [         TU ]  U5        UUUS.U l        SR                  " S0 U R                  D6U l        g)aB  
Initialize the DeploymentContext

:param version: Version that contains the resource
:param service_sid: The SID of the Service to fetch the Deployment resource from.
:param environment_sid: The SID of the Environment used by the Deployment to fetch.
:param sid: The SID that identifies the Deployment resource to fetch.
r!   zH/Services/{service_sid}/Environments/{environment_sid}/Deployments/{sid}N r"   r#   r&   rB   _uri)r(   r   r   r   r   r)   s        r*   r#   DeploymentContext.__init__r   sG     	! '.

 _ee 
nn
	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   U R                  S   S9$ )	r5   application/jsonAcceptGETmethoduriheadersr   r   r   r!   )r   ofr0   r6   ra   r   r&   r(   rj   r   s      r*   r6   DeploymentContext.fetch   sv     ))B-.--%%U		7%S!MM}5 NN+<=u%
 	
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   U R                  S   S	9$  NB7f)
r9   rd   re   rf   rg   Nr   r   r   r!   )r   rk   r0   r:   ra   r   r&   rl   s      r*   r:   DeploymentContext.fetch_async   s      ))B-.11dii 2 
 
 "MM}5 NN+<=u%
 	
	
s   ABB	A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@   rA   rC   s      r*   rG   -DeploymentContext.__repr__.<locals>.<genexpr>   rI   rJ   z+<Twilio.Serverless.V1.DeploymentContext {}>rK   rN   s     r*   rP   DeploymentContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr,   r&   ra   )rR   rS   rT   rU   r   rW   r#   r   r6   r:   rP   rY   rZ   r[   s   @r*   r/   r/   p   sV    

-0
CF
MP
.
) 
,
#5 
0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)DeploymentPage   r   r-   c                 b    [        U R                  UU R                  S   U R                  S   S9$ )zX
Build an instance of DeploymentInstance

:param payload: Payload response from the API
r   r   r   r   )r   r0   r&   )r(   r   s     r*   get_instanceDeploymentPage.get_instance   s4     "MM}5 NN+<=	
 	
r,   c                     g)r=   z%<Twilio.Serverless.V1.DeploymentPage>r_   r1   s    r*   rP   DeploymentPage.__repr__        7r,   r_   N)rR   rS   rT   rU   r   rW   r   r   rz   rP   rY   r_   r,   r*   rv   rv      s*    
DcN 
7I 
7# 7r,   rv   c            	         ^  \ rS rSrS\S\S\4U 4S jjr\R                  \R                  4S\	\\
4   S\	\\
4   S\4S	 jjr\R                  \R                  4S\	\\
4   S\	\\
4   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  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"$ )DeploymentList   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)a  
Initialize the DeploymentList

:param version: Version that contains the resource
:param service_sid: The SID of the Service to read the Deployment resources from.
:param environment_sid: The SID of the Environment used by the Deployment resources to read.

ry   zB/Services/{service_sid}/Environments/{environment_sid}/DeploymentsNr_   r`   )r(   r   r   r   r)   s       r*   r#   DeploymentList.__init__   sG     	! '.

 QWW .. 		r,   r   	is_pluginr-   c                 J   [         R                  " U[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  UU R                  S   U R                  S	   S
9$ )z
Create the DeploymentInstance

:param build_sid: The SID of the Build for the Deployment.
:param is_plugin: Whether the Deployment is a plugin.

:returns: The created DeploymentInstance
BuildSidIsPluginContent-Type!application/x-www-form-urlencodedrd   re   POSTrh   ri   datarj   r   r   ry   )	r   rk   r   boolean_to_stringr0   createra   r   r&   r(   r   r   r   rj   r   s         r*   r   DeploymentList.create   s     yy%%77	B
 ))^-PQR"E.--&&tyyt ' 
 "MM}5 NN+<=	
 	
r,   c                 f  #    [         R                  " U[        R                  " U5      S.5      n[         R                  " SS0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U R                  S	   U R                  S
   S9$  N47f)z
Asynchronously create the DeploymentInstance

:param build_sid: The SID of the Build for the Deployment.
:param is_plugin: Whether the Deployment is a plugin.

:returns: The created DeploymentInstance
r   r   r   rd   re   r   r   Nr   r   ry   )	r   rk   r   r   r0   create_asyncra   r   r&   r   s         r*   r   DeploymentList.create_async  s      yy%%77	B
 ))^-PQR"E.22tyyt 3 
 
 "MM}5 NN+<=	
 	
	
s   A8B1:B/;5B1limit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a   
Streams DeploymentInstance 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   )r0   read_limitspagestreamr(   r   r   limitsr   s        r*   r   DeploymentList.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 DeploymentInstance 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   )r0   r   
page_asyncstream_asyncr   s        r*   r   DeploymentList.stream_asyncT  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists DeploymentInstance 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   DeploymentList.listm  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 DeploymentInstance 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DeploymentList.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      $ )aA  
Retrieve a single page of DeploymentInstance 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 DeploymentInstance
	PageTokenr   PageSizer   r   rd   re   rf   rh   ri   paramsrj   )r   rk   r0   r   ra   rv   r&   r(   r   r   r   r   rj   responses          r*   r   DeploymentList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 dmmX~~FFr,   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)	aP  
Asynchronously retrieve a single page of DeploymentInstance 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 DeploymentInstance
r   r   r   rd   re   rf   r   N)r   rk   r0   r   ra   rv   r&   r   s          r*   r   DeploymentList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 dmmX~~FF
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 DeploymentInstance records from the API.
Request is executed immediately

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

:returns: Page of DeploymentInstance
rf   )r0   domaintwiliorequestrv   r&   r(   r   r   s      r*   get_pageDeploymentList.get_page  s;     ==''..66ujIdmmX~~FFr,   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 DeploymentInstance records from the API.
Request is executed immediately

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

:returns: Page of DeploymentInstance
rf   N)r0   r   r   request_asyncrv   r&   r   s      r*   get_page_asyncDeploymentList.get_page_async  sG      --44BB5*UUdmmX~~FF Vs   4AA%Ar   c                 b    [        U R                  U R                  S   U R                  S   US9$ zg
Constructs a DeploymentContext

:param sid: The SID that identifies the Deployment resource to fetch.
r   r   r!   r/   r0   r&   r(   r   s     r*   r$   DeploymentList.get  4     !MM}5 NN+<=	
 	
r,   c                 b    [        U R                  U R                  S   U R                  S   US9$ r   r   r   s     r*   __call__DeploymentList.__call__	  r   r,   c                     g)r=   z%<Twilio.Serverless.V1.DeploymentList>r_   r1   s    r*   rP   DeploymentList.__repr__  r~   r,   rt   )NN)#rR   rS   rT   rU   r   rW   r#   r   unsetr   objectboolr   r   r   r   intr	   r   r
   r   r   r   r   rv   r   r   r   r   r/   r$   r   rP   rY   rZ   r[   s   @r*   r   r      s   
 
c 
C 
0 )/)/#
f%#
 v&#
 
	#
N )/)/#
f%#
 v&#
 
	#
N  $#';}; C=; 
$	%	;6  $#'A}A C=A 
)	*	A6  $#'
}
 C=
 
 	!	
8  $#'
}
 C=
 
 	!	
: *0*0,,(.	G#v+&G 3;'G f%	G
 
GF *0*0,,(.	G#v+&G 3;'G f%	G
 
GB
G3 
G> 
G
Gs 
G~ 
G
s 
0 

C 
$5 
7# 7 7r,   r   N)rV   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r/   rv   r   r_   r,   r*   <module>r      sj     L L L 6 6 8 : 2 ' !TN) TNnNM NMb7T 70C7\ C7r,   