
    gL                         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$ )ChannelSenderInstance   a  
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ChannelSender resource.
:ivar messaging_service_sid: The SID of the [Service](https://www.twilio.com/docs/messaging/services) the resource is associated with.
:ivar sid: The unique string that we created to identify the ChannelSender resource.
:ivar sender: The unique string that identifies the sender e.g whatsapp:+123456XXXX.
:ivar sender_type: A string value that identifies the sender type e.g WhatsApp, Messenger.
:ivar country_code: The 2-character [ISO Country Code](https://www.iso.org/iso-3166-country-codes.html) of the number.
: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 url: The absolute URL of the ChannelSender resource.
versionpayloadmessaging_service_sidsidc                 H  > [         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        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=(       d    U R
                  S
.U l        S U l        g )Naccount_sidr   r   sendersender_typecountry_codedate_createddate_updatedurlr   r   )super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   r    	_solution_context)selfr   r   r   r   	__class__s        w/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/messaging/v1/service/channel_sender.pyr#   ChannelSenderInstance.__init__&   s     	!*1++m*D4;KK@W4X"")++e"4%,[[%:*1++m*D+2;;~+F0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 &;?$((
 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: ChannelSenderContext for this ChannelSenderInstance
r   r   r!   )r'   ChannelSenderContext_versionr&   r(   s    r*   _proxyChannelSenderInstance._proxyC   sF     == 0&*nn5L&MNN5)DM
 }}r,   c                 6    U R                   R                  5       $ )X
Deletes the ChannelSenderInstance


:returns: True if delete succeeds, False otherwise
)r2   deleter1   s    r*   r6   ChannelSenderInstance.deleteS   s     {{!!##r,   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)t
Asynchronous coroutine that deletes the ChannelSenderInstance


:returns: True if delete succeeds, False otherwise
N)r2   delete_asyncr1   s    r*   r:   "ChannelSenderInstance.delete_async\   s       [[--////   '%'c                 6    U R                   R                  5       $ )O
Fetch the ChannelSenderInstance


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


:returns: The fetched ChannelSenderInstance
N)r2   fetch_asyncr1   s    r*   rC   !ChannelSenderInstance.fetch_asyncn   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>1ChannelSenderInstance.__repr__.<locals>.<genexpr>}         S<RDA7>>!//<R    "z.<Twilio.Messaging.V1.ChannelSenderInstance {}>joinr&   itemsrK   r(   contexts     r*   __repr__ChannelSenderInstance.__repr__w   s6     ((SDNN<P<P<RSS?FFwOOr,   )r'   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   boolr6   r:   r?   rC   rY   __static_attributes____classcell__r)   s   @r*   r   r      s    
" "== c3h=  #	=
 c]= =:  $ $0D 0#/P# P P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 ChannelSenderContext

:param version: Version that contains the resource
:param messaging_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 ChannelSender resource to fetch.
r!   z6/Services/{messaging_service_sid}/ChannelSenders/{sid}N r"   r#   r&   rK   _uri)r(   r   r   r   r)   s       r*   r#   ChannelSenderContext.__init__   sD     	! &;
 MSS 
nn
	r,   r-   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r5   DELETEmethoduriheaders)r   ofr0   r6   rk   r(   rr   s     r*   r6   ChannelSenderContext.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)r9   rn   ro   N)r   rs   r0   r:   rk   rt   s     r*   r:   !ChannelSenderContext.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GETro   r   r   r!   )r   rs   r0   r?   rk   r   r&   r(   rr   r   s      r*   r?   ChannelSenderContext.fetch   sj     ))B-.--%%U		7%S$MM"&..1H"I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)	rB   ry   rz   r{   ro   Nr   r   r!   )r   rs   r0   rC   rk   r   r&   r|   s      r*   rC    ChannelSenderContext.fetch_async   s~      ))B-.11dii 2 
 
 %MM"&..1H"Iu%	
 	
	
s   AA=A;5A=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rF   rG   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frI   rJ   rL   s      r*   rP   0ChannelSenderContext.__repr__.<locals>.<genexpr>   rR   rS   z-<Twilio.Messaging.V1.ChannelSenderContext {}>rT   rW   s     r*   rY   ChannelSenderContext.__repr__   s6     ((SDNN<P<P<RSS>EEgNNr,   r&   rk   )r[   r\   r]   r^   r   r`   r#   rb   r6   r:   r   r?   rC   rY   rc   rd   re   s   @r*   r/   r/      se    
 
 
# 
&
U 
U
D 

, 
*
#8 
.O# O Or,   r/   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ChannelSenderPage   r   r-   c                 F    [        U R                  UU R                  S   S9$ )z[
Build an instance of ChannelSenderInstance

:param payload: Payload response from the API
r   r   )r   r0   r&   )r(   r   s     r*   get_instanceChannelSenderPage.get_instance   s(     %MM"&..1H"I
 	
r,   c                     g)rF   z'<Twilio.Messaging.V1.ChannelSenderPage>ri   r1   s    r*   rY   ChannelSenderPage.__repr__        9r,   ri   N)r[   r\   r]   r^   r   r`   r   r   r   rY   rc   ri   r,   r*   r   r      s*    

DcN 

7L 

9# 9r,   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!$ )ChannelSenderList   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 ChannelSenderList

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

r   z0/Services/{messaging_service_sid}/ChannelSendersNri   rj   )r(   r   r   r)   s      r*   r#   ChannelSenderList.__init__   sD     	! $%:
 GMM 
nn
	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                  UU R                  S   S	9$ )
z
Create the ChannelSenderInstance

:param sid: The SID of the Channel Sender being added to the Service.

:returns: The created ChannelSenderInstance
SidContent-Type!application/x-www-form-urlencodedry   rz   POSTrp   rq   datarr   r   r   )r   rs   r0   createrk   r   r&   r(   r   r   rr   r   s        r*   r   ChannelSenderList.create  s     yys

 ))^-PQR"E.--&&tyyt ' 
 %MM"&..1H"I
 	
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                  UU R                  S	   S
9$  N&7f)z
Asynchronously create the ChannelSenderInstance

:param sid: The SID of the Channel Sender being added to the Service.

:returns: The created ChannelSenderInstance
r   r   r   ry   rz   r   r   Nr   r   )r   rs   r0   create_asyncrk   r   r&   r   s        r*   r   ChannelSenderList.create_async/  s      yys

 ))^-PQR"E.22tyyt 3 
 
 %MM"&..1H"I
 	
	
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 ChannelSenderInstance 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   ChannelSenderList.streamM  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 ChannelSenderInstance 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   ChannelSenderList.stream_asyncf  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists ChannelSenderInstance 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   ChannelSenderList.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 ChannelSenderInstance 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ChannelSenderList.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 ChannelSenderInstance 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 ChannelSenderInstance
	PageTokenr   PageSizer   r   ry   rz   r{   rp   rq   paramsrr   )r   rs   r0   r   rk   r   r&   r(   r   r   r   r   rr   responses          r*   r   ChannelSenderList.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 ChannelSenderInstance 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 ChannelSenderInstance
r   r   r   ry   rz   r{   r   N)r   rs   r0   r   rk   r   r&   r   s          r*   r   ChannelSenderList.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 ChannelSenderInstance records from the API.
Request is executed immediately

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

:returns: Page of ChannelSenderInstance
r{   )r0   domaintwiliorequestr   r&   r(   r   r   s      r*   get_pageChannelSenderList.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 ChannelSenderInstance records from the API.
Request is executed immediately

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

:returns: Page of ChannelSenderInstance
r{   N)r0   r   r   request_asyncr   r&   r   s      r*   get_page_async ChannelSenderList.get_page_async  sG      --44BB5*UU ..II Vs   4AA%Ac                 F    [        U R                  U R                  S   US9$ z`
Constructs a ChannelSenderContext

:param sid: The SID of the ChannelSender resource to fetch.
r   r!   r/   r0   r&   r(   r   s     r*   r$   ChannelSenderList.get  (     $MM"&..1H"I
 	
r,   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r*   __call__ChannelSenderList.__call__  r   r,   c                     g)rF   z'<Twilio.Messaging.V1.ChannelSenderList>ri   r1   s    r*   rY   ChannelSenderList.__repr__&  r   r,   r   )NN)"r[   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   rY   rc   rd   re   s   @r*   r   r      sL   
 
 
$
# 
"7 
<
c 
.C 
@  $#';}; 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 

3 



C 

$8 

9# 9 9r,   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   ri   r,   r*   <module>r      sg     L L L + 8 : 2 ' !eP, ePPbO? bOJ9 9.o9 o9r,   