
    g_                         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 - Verify
 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\SS 4S jrS\SS 4S jrS\4S jrSrU =r$ )MessagingConfigurationInstance   a  
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Service resource.
:ivar service_sid: The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with.
:ivar country: The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`.
:ivar messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.
: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 URL of this resource.
versionpayloadservice_sidcountryc                   > [         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        [        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   messaging_service_siddate_createddate_updatedurlr   r   )super__init__getr   r   r   r   r   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   r   	__class__s        }/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/verify/v2/service/messaging_configuration.pyr!   'MessagingConfigurationInstance.__init__$   s     	!*1++m*D*1++m*D&-kk)&<4;KK@W4X"0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 '.$,,
 BF    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: MessagingConfigurationContext for this MessagingConfigurationInstance
r   r   r   )r%   MessagingConfigurationContext_versionr$   r&   s    r(   _proxy%MessagingConfigurationInstance._proxy?   sE     == 9 NN=9y1DM
 }}r*   c                 6    U R                   R                  5       $ )a
Deletes the MessagingConfigurationInstance


:returns: True if delete succeeds, False otherwise
)r0   deleter/   s    r(   r4   %MessagingConfigurationInstance.deleteO   s     {{!!##r*   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)}
Asynchronous coroutine that deletes the MessagingConfigurationInstance


:returns: True if delete succeeds, False otherwise
N)r0   delete_asyncr/   s    r(   r8   +MessagingConfigurationInstance.delete_asyncX   s       [[--////   '%'c                 6    U R                   R                  5       $ )a
Fetch the MessagingConfigurationInstance


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


:returns: The fetched MessagingConfigurationInstance
N)r0   fetch_asyncr/   s    r(   rA   *MessagingConfigurationInstance.fetch_asyncj   s       [[,,....r:   r   c                 4    U R                   R                  US9$ )  
Update the MessagingConfigurationInstance

:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.

:returns: The updated MessagingConfigurationInstance
r   )r0   updater&   r   s     r(   rF   %MessagingConfigurationInstance.updates   s#     {{!!"7 " 
 	
r*   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)6  
Asynchronous coroutine to update the MessagingConfigurationInstance

:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.

:returns: The updated MessagingConfigurationInstance
rE   N)r0   update_asyncrG   s     r(   rK   +MessagingConfigurationInstance.update_async   s0      [[--"7 . 
 
 	
 
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>:MessagingConfigurationInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z4<Twilio.Verify.V2.MessagingConfigurationInstance {}>joinr$   itemsrS   r&   contexts     r(   __repr__'MessagingConfigurationInstance.__repr__   s6     ((SDNN<P<P<RSSELLWUUr*   )	r%   r$   r   r   r   r   r   r   r   )N)r+   r-   )r+   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r!   propertyr0   boolr4   r8   r=   rA   rF   rK   ra   __static_attributes____classcell__r'   s   @r(   r   r      s     "&FF c3hF 	F
 #F F6  $ $0D 0#/

C 

4T 


%(
	)
V# V V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\S\
4S jrS\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 MessagingConfigurationContext

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with.
:param country: The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`.
r   z9/Services/{service_sid}/MessagingConfigurations/{country}N r    r!   r$   rS   _uri)r&   r   r   r   r'   s       r(   r!   &MessagingConfigurationContext.__init__   sD     	! '
 PVV 
nn
	r*   r+   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r3   DELETEmethoduriheaders)r   ofr.   r4   rs   r&   rz   s     r(   r4   $MessagingConfigurationContext.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)r7   rv   rw   N)r   r{   r.   r8   rs   r|   s     r(   r8   *MessagingConfigurationContext.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GETrw   r   r   r   )r   r{   r.   r=   rs   r   r$   r&   rz   r   s      r(   r=   #MessagingConfigurationContext.fetch   si     ))B-.--%%U		7%S-MM}5NN9-	
 	
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)	r@   r   r   r   rw   Nr   r   r   )r   r{   r.   rA   rs   r   r$   r   s      r(   rA   )MessagingConfigurationContext.fetch_async   s}      ))B-.11dii 2 
 
 .MM}5NN9-	
 	
	
s   AA=A;5A=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                  UU R                  S   U R                  S	   S
9$ )rD   MessagingServiceSid!application/x-www-form-urlencodedContent-Typer   r   POSTrx   ry   datarz   r   r   r   )r   r{   r.   rF   rs   r   r$   r&   r   r   rz   r   s        r(   rF   $MessagingConfigurationContext.update   s     yy%'<

 ))B-"E.--&&tyyt ' 
 .MM}5NN9-	
 	
r*   c                 8  #    [         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                  UU R                  S	   U R                  S
   S9$  N47f)rJ   r   r   r   r   r   r   r   Nr   r   r   )r   r{   r.   rK   rs   r   r$   r   s        r(   rK   *MessagingConfigurationContext.update_async  s      yy%'<

 ))B-"E.22tyyt 3 
 
 .MM}5NN9-	
 	
	
s   A!B#B$5Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rN   rO   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frQ   rR   rT   s      r(   rX   9MessagingConfigurationContext.__repr__.<locals>.<genexpr>8  rZ   r[   z3<Twilio.Verify.V2.MessagingConfigurationContext {}>r\   r_   s     r(   ra   &MessagingConfigurationContext.__repr__2  s6     ((SDNN<P<P<RSSDKKGTTr*   r$   rs   )rc   rd   re   rf   r   rh   r!   rj   r4   r8   r   r=   rA   rF   rK   ra   rk   rl   rm   s   @r(   r-   r-      s    
 
c 
C 
&
U 
U
D 

5 
*
#A 
.
C 
4R 
>
%(
	'
BU# U Ur*   r-   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)MessagingConfigurationPagei<  r   r+   c                 D    [        U R                  XR                  S   S9$ )zd
Build an instance of MessagingConfigurationInstance

:param payload: Payload response from the API
r   r   )r   r.   r$   )r&   r   s     r(   get_instance'MessagingConfigurationPage.get_instance>  s#     .MM7}0M
 	
r*   c                     g)rN   z-<Twilio.Verify.V2.MessagingConfigurationPage>rq   r/   s    r(   ra   #MessagingConfigurationPage.__repr__H       ?r*   rq   N)rc   rd   re   rf   r   rh   r   r   r   ra   rk   rq   r*   r(   r   r   <  s*    
DcN 
7U 
?# ?r*   r   c            	       r  ^  \ rS rSrS\S\4U 4S jjrS\S\S\4S jrS\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!$ )MessagingConfigurationListiQ  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 MessagingConfigurationList

:param version: Version that contains the resource
:param service_sid: The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with.

r   z//Services/{service_sid}/MessagingConfigurationsNrq   rr   )r&   r   r   r'   s      r(   r!   #MessagingConfigurationList.__init__S  sC     	! ;
 FLL 
nn
	r*   r   r   r+   c                    [         R                  " UU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                  XPR                  S   S	9$ )
a  
Create the MessagingConfigurationInstance

:param country: The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`.
:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.

:returns: The created MessagingConfigurationInstance
Countryr   r   r   r   r   r   r   r   r   )r   r{   r.   creaters   r   r$   r&   r   r   r   rz   r   s         r(   r   !MessagingConfigurationList.createe  s     yy"'<
 ))^-PQR"E.--&&tyyt ' 
 .MM7}0M
 	
r*   c                    #    [         R                  " UU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                  XPR                  S	   S
9$  N%7f)a  
Asynchronously create the MessagingConfigurationInstance

:param country: The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`.
:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.

:returns: The created MessagingConfigurationInstance
r   r   r   r   r   r   r   Nr   r   )r   r{   r.   create_asyncrs   r   r$   r   s         r(   r   'MessagingConfigurationList.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 MessagingConfigurationInstance 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   !MessagingConfigurationList.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 MessagingConfigurationInstance 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   'MessagingConfigurationList.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 MessagingConfigurationInstance 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   MessagingConfigurationList.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 MessagingConfigurationInstance 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%MessagingConfigurationList.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      $ )aY  
Retrieve a single page of MessagingConfigurationInstance 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 MessagingConfigurationInstance
	PageTokenr   PageSizer   r   r   r   r   rx   ry   paramsrz   )r   r{   r.   r   rs   r   r$   r&   r   r   r   r   rz   responses          r(   r   MessagingConfigurationList.page  s{      yy'#%
 ))^-PQR.==%%dii & 
 *$-->>RRr*   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)	ah  
Asynchronously retrieve a single page of MessagingConfigurationInstance 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 MessagingConfigurationInstance
r   r   r   r   r   r   r   N)r   r{   r.   r   rs   r   r$   r   s          r(   r   %MessagingConfigurationList.page_async-  s       yy'#%
 ))^-PQR.11dii 2 
 
 *$-->>RR
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 MessagingConfigurationInstance records from the API.
Request is executed immediately

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

:returns: Page of MessagingConfigurationInstance
r   )r.   domaintwiliorequestr   r$   r&   r   r   s      r(   get_page#MessagingConfigurationList.get_pageN  s;     ==''..66ujI)$-->>RRr*   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 MessagingConfigurationInstance records from the API.
Request is executed immediately

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

:returns: Page of MessagingConfigurationInstance
r   N)r.   r   r   request_asyncr   r$   r   s      r(   get_page_async)MessagingConfigurationList.get_page_asyncZ  sG      --44BB5*UU)$-->>RR Vs   4AA%Ac                 F    [        U R                  U R                  S   US9$ a	  
Constructs a MessagingConfigurationContext

:param country: The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`.
r   r   r-   r.   r$   r&   r   s     r(   r"   MessagingConfigurationList.getf  %     -MMt~~m'Dg
 	
r*   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r(   __call__#MessagingConfigurationList.__call__p  r   r*   c                     g)rN   z-<Twilio.Verify.V2.MessagingConfigurationList>rq   r/   s    r(   ra   #MessagingConfigurationList.__repr__z  r   r*   r   )NN)"rc   rd   re   rf   r   rh   r!   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   objectr   r   r   r   r   r-   r"   r   ra   rk   rl   rm   s   @r(   r   r   Q  s_   
 
c 
$

36
	'
@

36
	'
D  $#';}; C=; 
0	1	;6  $#'A}A C=A 
5	6	A6  $#'
}
 C=
 
,	-	
8  $#'
}
 C=
 
,	-	
: *0*0,,(.	S#v+&S 3;'S f%	S
 
$SF *0*0,,(.	S#v+&S 3;'S f%	S
 
$SB
S3 
S+E 
S
Ss 
S7Q 
S
3 
#@ 

 
(E 
?# ? ?r*   r   N)rg   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   rq   r*   r(   <module>r      sg     L L L + 8 : 2 ' !{V%5 {V|bUO bUJ? ?*o? o?r*   