
    gR                         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 - Accounts
 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S\4S	 jrS\4S
 jrSS jrSS j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$ )PublicKeyInstance   a  
:ivar sid: The unique string that that we created to identify the PublicKey resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Credential that the PublicKey resource belongs to.
:ivar friendly_name: The string that you assigned to describe the resource.
:ivar date_created: The date and time in GMT when 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 when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar url: The URI for this resource, relative to `https://accounts.twilio.com`
versionpayloadsidc                   > [         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        [        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friendly_namedate_createddate_updatedurl)super__init__getr   r   r   r   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   	__class__s       u/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/accounts/v1/credential/public_key.pyr   PublicKeyInstance.__init__#   s     	!")++e"4*1++m*D,3KK,H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 59    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: PublicKeyContext for this PublicKeyInstance
r   r   )r#   PublicKeyContext_versionr"   r$   s    r&   _proxyPublicKeyInstance._proxy8   s9     == ,NN5)DM }}r(   c                 6    U R                   R                  5       $ )T
Deletes the PublicKeyInstance


:returns: True if delete succeeds, False otherwise
)r/   deleter.   s    r&   r3   PublicKeyInstance.deleteG   s     {{!!##r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)p
Asynchronous coroutine that deletes the PublicKeyInstance


:returns: True if delete succeeds, False otherwise
N)r/   delete_asyncr.   s    r&   r7   PublicKeyInstance.delete_asyncP   s       [[--////   '%'c                 6    U R                   R                  5       $ )G
Fetch the PublicKeyInstance


:returns: The fetched PublicKeyInstance
)r/   fetchr.   s    r&   r<   PublicKeyInstance.fetchY   s     {{  ""r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)a
Asynchronous coroutine to fetch the PublicKeyInstance


:returns: The fetched PublicKeyInstance
N)r/   fetch_asyncr.   s    r&   r@   PublicKeyInstance.fetch_asyncb   s       [[,,....r9   r   c                 4    U R                   R                  US9$ )
Update the PublicKeyInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

:returns: The updated PublicKeyInstance
r   )r/   updater$   r   s     r&   rE   PublicKeyInstance.updatek   s#     {{!!' " 
 	
r(   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
Asynchronous coroutine to update the PublicKeyInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.

:returns: The updated PublicKeyInstance
rD   N)r/   update_asyncrF   s     r&   rJ   PublicKeyInstance.update_asyncy   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>-PublicKeyInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z)<Twilio.Accounts.V1.PublicKeyInstance {}>joinr"   itemsrR   r$   contexts     r&   __repr__PublicKeyInstance.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr(   )r#   r"   r   r   r   r   r   r   )N)r)   r,   )r)   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr/   boolr3   r7   r<   r@   r   unsetr   objectrE   rJ   r`   __static_attributes____classcell__r%   s   @r&   r   r      s     OS99)-c3h9>Fsm9 9*  $ $0D 0#/ 39,,
"3;/
	
 39,,
"3;/
	
K# K Kr(   r   c                      ^  \ rS rSr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\
4S	 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,      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 PublicKeyContext

:param version: Version that contains the resource
:param sid: The Twilio-provided string that uniquely identifies the PublicKey resource to update.
r   z/Credentials/PublicKeys/{sid}N )r   r   r"   rR   _uri)r$   r   r   r%   s      r&   r   PublicKeyContext.__init__   s=     	! 3
 4::LT^^L	r(   r)   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r2   DELETEmethoduriheaders)r   ofr-   r3   rs   r$   rz   s     r&   r3   PublicKeyContext.delete   s1     ))B-}}##8G#TTr(   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r6   rv   rw   N)r   r{   r-   r7   rs   r|   s     r&   r7   PublicKeyContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )r;   application/jsonAcceptGETrw   r   r+   )r   r{   r-   r<   rs   r   r"   r$   rz   r   s      r&   r<   PublicKeyContext.fetch   s]     ))B-.--%%U		7%S MM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   S9$  N&7f)r?   r   r   r   rw   Nr   r+   )r   r{   r-   r@   rs   r   r"   r   s      r&   r@   PublicKeyContext.fetch_async   sq      ))B-.11dii 2 
 
 !MMu%
 	
	
s   AA/A-'A/r   c                     [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  X@R                  S   S	9$ )
rC   FriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTrx   ry   datarz   r   r+   )r   r{   r-   rE   rs   r   r"   r$   r   r   rz   r   s        r&   rE   PublicKeyContext.update   s     yy

 ))B-"E.--&&tyyt ' 
 !^^E=RSSr(   c                   #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  X@R                  S	   S
9$  N%7f)rI   r   r   r   r   r   r   r   Nr   r+   )r   r{   r-   rJ   rs   r   r"   r   s        r&   rJ   PublicKeyContext.update_async  s      yy

 ))B-"E.22tyyt 3 
 
 !^^E=RSS	
s   A!B#B	$&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rM   rN   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frP   rQ   rS   s      r&   rW   ,PublicKeyContext.__repr__.<locals>.<genexpr>$  rY   rZ   z(<Twilio.Accounts.V1.PublicKeyContext {}>r[   r^   s     r&   r`   PublicKeyContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr(   )r"   rs   )rb   rc   rd   re   r   rg   r   ri   r3   r7   r   r<   r@   r   rj   r   rk   rE   rJ   r`   rl   rm   rn   s   @r&   r,   r,      s    M Mc M
U 
U
D 

( 
(
#4 
. 39,,T"3;/T	T: 39,,T"3;/T	T8J# J Jr(   r,   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)PublicKeyPagei(  r   r)   c                 .    [        U R                  U5      $ )zW
Build an instance of PublicKeyInstance

:param payload: Payload response from the API
)r   r-   )r$   r   s     r&   get_instancePublicKeyPage.get_instance*  s     !88r(   c                     g)rM   z"<Twilio.Accounts.V1.PublicKeyPage>rr   r.   s    r&   r`   PublicKeyPage.__repr__2       4r(   rr   N)rb   rc   rd   re   r   rg   r   r   r   r`   rl   rr   r(   r&   r   r   (  s*    9DcN 97H 94# 4r(   r   c            	         ^  \ rS rSrS\4U 4S jjr\R                  \R                  4S\S\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  4S\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!$ )PublicKeyListi;  r   c                 2   > [         TU ]  U5        SU l        g)zS
Initialize the PublicKeyList

:param version: Version that contains the resource

z/Credentials/PublicKeysN)r   r   rs   )r$   r   r%   s     r&   r   PublicKeyList.__init__=  s     	!-	r(   
public_keyr   r   r)   c                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a  
Create the PublicKeyInstance

:param public_key: A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param account_sid: The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request

:returns: The created PublicKeyInstance
	PublicKeyr   
AccountSidr   r   r   r   r   r   )r   r{   r-   creaters   r   r$   r   r   r   r   rz   r   s          r&   r   PublicKeyList.createH  s      yy' -)
 ))^-PQR"E.--&&tyyt ' 
 !88r(   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously create the PublicKeyInstance

:param public_key: A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----`
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param account_sid: The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request

:returns: The created PublicKeyInstance
r   r   r   r   r   r   r   N)r   r{   r-   create_asyncrs   r   r   s          r&   r   PublicKeyList.create_asynck  s       yy' -)
 ))^-PQR"E.22tyyt 3 
 
 !88	
s   A%B'B(Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams PublicKeyInstance 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   PublicKeyList.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 PublicKeyInstance 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   PublicKeyList.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 PublicKeyInstance 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   PublicKeyList.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 PublicKeyInstance 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PublicKeyList.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      $ )a?  
Retrieve a single page of PublicKeyInstance 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 PublicKeyInstance
	PageTokenr   PageSizer   r   r   r   r   rx   ry   paramsrz   )r   r{   r-   r   rs   r   r$   r   r   r   r   rz   responses          r&   r   PublicKeyList.page  sw      yy'#%
 ))^-PQR.==%%dii & 
 T]]H55r(   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)	aN  
Asynchronously retrieve a single page of PublicKeyInstance 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 PublicKeyInstance
r   r   r   r   r   r   r   N)r   r{   r-   r   rs   r   r   s          r&   r   PublicKeyList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 T]]H55
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 PublicKeyInstance records from the API.
Request is executed immediately

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

:returns: Page of PublicKeyInstance
r   )r-   domaintwiliorequestr   r$   r   r   s      r&   get_pagePublicKeyList.get_page7  s7     ==''..66ujIT]]H55r(   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 PublicKeyInstance records from the API.
Request is executed immediately

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

:returns: Page of PublicKeyInstance
r   N)r-   r   r   request_asyncr   r   s      r&   get_page_asyncPublicKeyList.get_page_asyncC  sC      --44BB5*UUT]]H55 Vs   4AAAr   c                 *    [        U R                  US9$ z
Constructs a PublicKeyContext

:param sid: The Twilio-provided string that uniquely identifies the PublicKey resource to update.
r+   r,   r-   r$   r   s     r&   r    PublicKeyList.getO        377r(   c                 *    [        U R                  US9$ r   r   r   s     r&   __call__PublicKeyList.__call__W  r   r(   c                     g)rM   z"<Twilio.Accounts.V1.PublicKeyList>rr   r.   s    r&   r`   PublicKeyList.__repr___  r   r(   )rs   )NN)"rb   rc   rd   re   r   r   r   rj   rg   r   rk   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r,   r    r   r`   rl   rm   rn   s   @r&   r   r   ;  s   	. 	. -3LL*0,,	!9!9 S&[)!9 3;'	!9
 
!9L -3LL*0,,	!9!9 S&[)!9 3;'	!9
 
!9J  $#';}; C=; 
#	$	;6  $#'A}A C=A 
(	)	A6  $#'
}
 C=
 
	 	
8  $#'
}
 C=
 
	 	
: *0*0,,(.	6#v+&6 3;'6 f%	6
 
6F *0*0,,(.	6#v+&6 3;'6 f%	6
 
6B
63 
6= 
6
6s 
6} 
68s 8/ 88C 8$4 84# 4 4r(   r   N)rf   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,   r   r   rr   r(   r&   <module>r      sg     L L L + 8 : 2 ' !uK( uKpTJ TJn4D 4&j4L j4r(   