
    g=K                         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 - Messaging
 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\4S
 jrS\4S jrSS jrSS jrS\4S jrSrU =r$ )AlphaSenderInstance   aj  
:ivar sid: The unique string that we created to identify the AlphaSender resource.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AlphaSender resource.
:ivar service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the resource is associated with.
:ivar date_created: The date and time in GMT when the 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 resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar alpha_sender: The Alphanumeric Sender ID string.
:ivar capabilities: An array of values that describe whether the number can receive calls or messages. Can be: `SMS`.
:ivar url: The absolute URL of the AlphaSender resource.
versionpayloadservice_sid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
        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   account_sidr   date_createddate_updatedalpha_sendercapabilitiesurlr   r   )super__init__getr   r   r   r   iso8601_datetimer   r   r   r   r   	_solution_context)selfr   r   r   r   	__class__s        u/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/messaging/v1/service/alpha_sender.pyr"   AlphaSenderInstance.__init__%   s     	!")++e"4*1++m*D*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 ,3;;~+F18^1L")++e"4 '?$((
 7;    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: AlphaSenderContext for this AlphaSenderInstance
r   r   r    )r&   AlphaSenderContext_versionr%   r'   s    r)   _proxyAlphaSenderInstance._proxyA   sE     == . NN=9NN5)DM
 }}r+   c                 6    U R                   R                  5       $ )V
Deletes the AlphaSenderInstance


:returns: True if delete succeeds, False otherwise
)r1   deleter0   s    r)   r5   AlphaSenderInstance.deleteQ   s     {{!!##r+   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)r
Asynchronous coroutine that deletes the AlphaSenderInstance


:returns: True if delete succeeds, False otherwise
N)r1   delete_asyncr0   s    r)   r9    AlphaSenderInstance.delete_asyncZ   s       [[--////   '%'c                 6    U R                   R                  5       $ )K
Fetch the AlphaSenderInstance


:returns: The fetched AlphaSenderInstance
)r1   fetchr0   s    r)   r>   AlphaSenderInstance.fetchc   s     {{  ""r+   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)e
Asynchronous coroutine to fetch the AlphaSenderInstance


:returns: The fetched AlphaSenderInstance
N)r1   fetch_asyncr0   s    r)   rB   AlphaSenderInstance.fetch_asyncl   s       [[,,....r;   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>/AlphaSenderInstance.__repr__.<locals>.<genexpr>{         S<RDA7>>!//<R    "z,<Twilio.Messaging.V1.AlphaSenderInstance {}>joinr%   itemsrJ   r'   contexts     r)   __repr__AlphaSenderInstance.__repr__u   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"   propertyr1   boolr5   r9   r>   rB   rX   __static_attributes____classcell__r(   s   @r)   r   r      s    	  ";; c3h; 	;
 c]; ;8  $ $0D 0#/N# N Nr+   r   c                   ~   ^  \ 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\
4S
 jrS\4S jrSrU =r$ )r.      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 AlphaSenderContext

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from.
:param sid: The SID of the AlphaSender resource to fetch.
r    z*/Services/{service_sid}/AlphaSenders/{sid}N r!   r"   r%   rJ   _uri)r'   r   r   r   r(   s       r)   r"   AlphaSenderContext.__init__   sD     	! '
 AGG 
nn
	r+   r,   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r4   DELETEmethoduriheaders)r   ofr/   r5   rj   r'   rq   s     r)   r5   AlphaSenderContext.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)r8   rm   rn   N)r   rr   r/   r9   rj   rs   s     r)   r9   AlphaSenderContext.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   U R                  S   S9$ )r=   application/jsonAcceptGETrn   r   r   r    )r   rr   r/   r>   rj   r   r%   r'   rq   r   s      r)   r>   AlphaSenderContext.fetch   si     ))B-.--%%U		7%S"MM}5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   S9$  N47f)	rA   rx   ry   rz   rn   Nr   r   r    )r   rr   r/   rB   rj   r   r%   r{   s      r)   rB   AlphaSenderContext.fetch_async   s}      ))B-.11dii 2 
 
 #MM}5u%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rE   rF   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frH   rI   rK   s      r)   rO   .AlphaSenderContext.__repr__.<locals>.<genexpr>   rQ   rR   z+<Twilio.Messaging.V1.AlphaSenderContext {}>rS   rV   s     r)   rX   AlphaSenderContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr+   r%   rj   )rZ   r[   r\   r]   r   r_   r"   ra   r5   r9   r   r>   rB   rX   rb   rc   rd   s   @r)   r.   r.      se    
 
c 
 
&
U 
U
D 

* 
*
#6 
.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)AlphaSenderPage   r   r,   c                 D    [        U R                  XR                  S   S9$ )zY
Build an instance of AlphaSenderInstance

:param payload: Payload response from the API
r   r   )r   r/   r%   )r'   r   s     r)   get_instanceAlphaSenderPage.get_instance   s#     #MM7}0M
 	
r+   c                     g)rE   z%<Twilio.Messaging.V1.AlphaSenderPage>rh   r0   s    r)   rX   AlphaSenderPage.__repr__        7r+   rh   N)rZ   r[   r\   r]   r   r_   r   r   r   rX   rb   rh   r+   r)   r   r      s*    
DcN 
7J 
7# 7r+   r   c            	       j  ^  \ rS rSrS\S\4U 4S jjrS\S\4S jrS\S\4S 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!$ )AlphaSenderList   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 AlphaSenderList

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from.

r   z$/Services/{service_sid}/AlphaSendersNrh   ri   )r'   r   r   r(   s      r)   r"   AlphaSenderList.__init__   s=     	! ;
 ;AASDNNS	r+   r   r,   c                    [         R                  " SU05      n[         R                  " SS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$ )
a0  
Create the AlphaSenderInstance

:param alpha_sender: The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen `-`, plus `+`, underscore `_` and ampersand `&`. This value cannot contain only numbers.

:returns: The created AlphaSenderInstance
AlphaSenderContent-Type!application/x-www-form-urlencodedrx   ry   POSTro   rp   datarq   r   r   )r   rr   r/   createrj   r   r%   r'   r   r   rq   r   s        r)   r   AlphaSenderList.create  s     yy|

 ))^-PQR"E.--&&tyyt ' 
 #MM7}0M
 	
r+   c                   #    [         R                  " SU05      n[         R                  " SS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)a?  
Asynchronously create the AlphaSenderInstance

:param alpha_sender: The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen `-`, plus `+`, underscore `_` and ampersand `&`. This value cannot contain only numbers.

:returns: The created AlphaSenderInstance
r   r   r   rx   ry   r   r   Nr   r   )r   rr   r/   create_asyncrj   r   r%   r   s        r)   r   AlphaSenderList.create_async'  s      yy|

 ))^-PQR"E.22tyyt 3 
 
 #MM7}0M
 	
	
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 AlphaSenderInstance 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   AlphaSenderList.streamC  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 AlphaSenderInstance 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   AlphaSenderList.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 AlphaSenderInstance 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   AlphaSenderList.listu  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 AlphaSenderInstance 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AlphaSenderList.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      $ )aC  
Retrieve a single page of AlphaSenderInstance 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 AlphaSenderInstance
	PageTokenr   PageSizer   r   rx   ry   rz   ro   rp   paramsrq   )r   rr   r/   r   rj   r   r%   r'   r   r   r   r   rq   responses          r)   r   AlphaSenderList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 t}}hGGr+   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)	aR  
Asynchronously retrieve a single page of AlphaSenderInstance 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 AlphaSenderInstance
r   r   r   rx   ry   rz   r   N)r   rr   r/   r   rj   r   r%   r   s          r)   r   AlphaSenderList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 t}}hGG
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 AlphaSenderInstance records from the API.
Request is executed immediately

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

:returns: Page of AlphaSenderInstance
rz   )r/   domaintwiliorequestr   r%   r'   r   r   s      r)   get_pageAlphaSenderList.get_page  s;     ==''..66ujIt}}hGGr+   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 AlphaSenderInstance records from the API.
Request is executed immediately

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

:returns: Page of AlphaSenderInstance
rz   N)r/   r   r   request_asyncr   r%   r   s      r)   get_page_asyncAlphaSenderList.get_page_async  sG      --44BB5*UUt}}hGG Vs   4AA%Ar   c                 F    [        U R                  U R                  S   US9$ z\
Constructs a AlphaSenderContext

:param sid: The SID of the AlphaSender resource to fetch.
r   r    r.   r/   r%   r'   r   s     r)   r#   AlphaSenderList.get  %     "MMt~~m'D#
 	
r+   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r)   __call__AlphaSenderList.__call__  r   r+   c                     g)rE   z%<Twilio.Messaging.V1.AlphaSenderList>rh   r0   s    r)   rX   AlphaSenderList.__repr__  r   r+   r   )NN)"rZ   r[   r\   r]   r   r_   r"   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   objectr   r   r   r   r   r.   r#   r   rX   rb   rc   rd   s   @r)   r   r      sL   T Tc T 
3 
+> 
8
s 
7J 
<  $#';}; C=; 
%	&	;6  $#'A}A C=A 
*	+	A6  $#'
}
 C=
 
!	"	
8  $#'
}
 C=
 
!	"	
: *0*0,,(.	H#v+&H 3;'H f%	H
 
HF *0*0,,(.	H#v+&H 3;'H f%	H
 
HB
H3 
H? 
H
Hs 
H 
H
s 
1 

C 
$6 
7# 7 7r+   r   N)r^   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   rh   r+   r)   <module>r      sg     L L L + 8 : 2 ' !cN* cNLbM bMJ7d 7*e7l e7r+   