
    d{i                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec            
            e Zd ZdZ	 ddedeeef   dedee   f fdZ	e
dd       Zdefd	Zdefd
ZdefdZdefdZddZddZdefdZdefdZdedd fdZdedd fdZdedefdZdedefdZdefdZ xZS )MessagingConfigurationInstancea  
    :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         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _	        t        j                  |j                  d            | _
        |j                  d      | _        ||xs | j
                  d| _        d | _        y )	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        s/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/verify/v2/service/messaging_configuration.pyr!   z'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                     | j                   7t        | j                  | j                  d   | j                  d         | _         | j                   S )a  
        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(   _proxyz%MessagingConfigurationInstance._proxy@   sE     == 9 NN=9y1DM
 }}r)   c                 6    | j                   j                         S zy
        Deletes the MessagingConfigurationInstance


        :returns: True if delete succeeds, False otherwise
        )r/   deleter.   s    r(   r2   z%MessagingConfigurationInstance.deleteP   s     {{!!##r)   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the MessagingConfigurationInstance


        :returns: True if delete succeeds, False otherwise
        N)r/   delete_asyncr.   s    r(   r5   z+MessagingConfigurationInstance.delete_asyncY   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the MessagingConfigurationInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r/   delete_with_http_infor.   s    r(   r8   z4MessagingConfigurationInstance.delete_with_http_infob   s     {{0022r)   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the MessagingConfigurationInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r/   delete_with_http_info_asyncr.   s    r(   r:   z:MessagingConfigurationInstance.delete_with_http_info_asynck   s!      [[<<>>>>r6   c                 6    | j                   j                         S )y
        Fetch the MessagingConfigurationInstance


        :returns: The fetched MessagingConfigurationInstance
        )r/   fetchr.   s    r(   r=   z$MessagingConfigurationInstance.fetcht   s     {{  ""r)   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the MessagingConfigurationInstance


        :returns: The fetched MessagingConfigurationInstance
        N)r/   fetch_asyncr.   s    r(   r@   z*MessagingConfigurationInstance.fetch_async}   s!      [[,,....r6   c                 6    | j                   j                         S )z
        Fetch the MessagingConfigurationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r/   fetch_with_http_infor.   s    r(   rB   z3MessagingConfigurationInstance.fetch_with_http_info   s     {{//11r)   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the MessagingConfigurationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r/   fetch_with_http_info_asyncr.   s    r(   rD   z9MessagingConfigurationInstance.fetch_with_http_info_async   s!      [[;;====r6   r   c                 :    | j                   j                  |      S )<  
        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   )r/   updater&   r   s     r(   rH   z%MessagingConfigurationInstance.update   s#     {{!!"7 " 
 	
r)   c                 V   K   | j                   j                  |       d{   S 7 w)V  
        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
        rG   N)r/   update_asyncrI   s     r(   rL   z+MessagingConfigurationInstance.update_async   s1      [[--"7 . 
 
 	
 
    )')c                 :    | j                   j                  |      S )aT  
        Update the MessagingConfigurationInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rG   )r/   update_with_http_inforI   s     r(   rO   z4MessagingConfigurationInstance.update_with_http_info   s#     {{00"7 1 
 	
r)   c                 V   K   | j                   j                  |       d{   S 7 w)an  
        Asynchronous coroutine to update the MessagingConfigurationInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rG   N)r/   update_with_http_info_asyncrI   s     r(   rQ   z:MessagingConfigurationInstance.update_with_http_info_async   s1      [[<<"7 = 
 
 	
 
rM   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r(   	<genexpr>z:MessagingConfigurationInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z4<Twilio.Verify.V2.MessagingConfigurationInstance {}>joinr$   itemsrX   r&   contexts     r(   __repr__z'MessagingConfigurationInstance.__repr__   s6     ((SDNN<P<P<RSSELLWUUr)   )N)r*   r,   )r*   r   )__name__
__module____qualname____doc__r   r   strr   r   r!   propertyr/   boolr2   r5   r   r8   r:   r=   r@   rB   rD   rH   rL   rO   rQ   re   __classcell__r'   s   @r(   r   r      s    "&FF c3hF 	F
 #F6  $ $0D 03{ 3?; ?#/2k 2>+ >

C 

4T 


%(
	)


3 

; 


%(
	
V# Vr)   r   c                   (    e Zd Zdededef fdZdefdZdefdZ	de
fdZdefd	Zdefd
Zde
fdZdefdZdefdZde
fdZdefdZdefdZde
fdZdedefdZdedefdZdede
fdZdedefdZdedefdZdede
fdZdefdZ xZS )r,   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)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$   rX   _uri)r&   r   r   r   r'   s       r(   r!   z&MessagingConfigurationContext.__init__   sG     	! '
 WOVV 
nn
	r)   r*   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr-   delete_with_response_infors   r&   ry   s     r(   _deletez%MessagingConfigurationContext._delete   s8     ))B-}}66G 7 
 	
r)   c                 .    | j                         \  }}}|S r1   )r}   r&   success_s      r(   r2   z$MessagingConfigurationContext.delete   s     Ar)   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the MessagingConfigurationInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_codery   )r}   r   r&   r   r   ry   s       r(   r8   z3MessagingConfigurationContext.delete_with_http_info  s%     )-%g['RRr)   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        ru   rv   N)r   rz   r-   delete_with_response_info_asyncrs   r|   s     r(   _delete_asyncz+MessagingConfigurationContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr4   )r   r   s      r(   r5   z*MessagingConfigurationContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the MessagingConfigurationInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r(   r:   z9MessagingConfigurationContext.delete_with_http_info_async%  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETrv   )r   rz   r-   fetch_with_response_infors   r|   s     r(   _fetchz$MessagingConfigurationContext._fetch/  sB     ))B-.}}55dii 6 
 	
r)   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )r<   r   r   r   )r   r   r-   r$   r&   r   r   s      r(   r=   z#MessagingConfigurationContext.fetch?  sD     A-MM}5NN9-	
 	
r)   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the MessagingConfigurationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r   )r   r   r-   r$   r   r&   r   r   ry   instances        r(   rB   z2MessagingConfigurationContext.fetch_with_http_infoN  sS     )-%g1MM}5NN9-	
 k7SSr)   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   rv   N)r   rz   r-   fetch_with_response_info_asyncrs   r|   s     r(   _fetch_asyncz*MessagingConfigurationContext._fetch_async^  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)r?   Nr   r   r   )r   r   r-   r$   r   s      r(   r@   z)MessagingConfigurationContext.fetch_asyncn  sS      #//11A-MM}5NN9-	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the MessagingConfigurationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r   r   )r   r   r-   r$   r   r   s        r(   rD   z8MessagingConfigurationContext.fetch_with_http_info_async}  sc      /3.?.?.A(A%g1MM}5NN9-	
 k7SS )Bs   A"A A
A"r   c                     t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        MessagingServiceSid!application/x-www-form-urlencodedContent-Typer   r   POSTrw   rx   r   ry   )r   rz   r-   update_with_response_infors   r&   r   r   ry   s       r(   _updatez%MessagingConfigurationContext._update  si     yy%'<

 ))B-"E.}}66tyytW 7 
 	
r)   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         S )rF   rG   r   r   r   )r   r   r-   r$   r&   r   r   r   s       r(   rH   z$MessagingConfigurationContext.update  sJ     ;PQA-MM}5NN9-	
 	
r)   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )ab  
        Update the MessagingConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rG   r   r   r   r   )r   r   r-   r$   r   r&   r   r   r   ry   r   s         r(   rO   z3MessagingConfigurationContext.update_with_http_info  s`     )-"7 )5 )
%g 2MM}5NN9-	
 k7SSr)   c                    K   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rz   r-   update_with_response_info_asyncrs   r   s       r(   _update_asyncz+MessagingConfigurationContext._update_async  sx      yy%'<

 ))B-"E.]]BBtyytW C 
 
 	
 
s   A#A,%A*&A,c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rK   rG   Nr   r   r   )r   r   r-   r$   r   s       r(   rL   z*MessagingConfigurationContext.update_async  sa      #00"7 1 
 
A .MM}5NN9-	
 	

s   AA<Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)a|  
        Asynchronous coroutine to update the MessagingConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rG   Nr   r   r   r   )r   r   r-   r$   r   r   s         r(   rQ   z9MessagingConfigurationContext.update_with_http_info_async  sq      /3.@.@"7 /A /
 )
%g 2MM}5NN9-	
 k7SS)
s   A$A"A
A$c                     dj                  d | j                  j                         D              }dj                  |      S )rS   rT   c              3   F   K   | ]  \  }}d j                  ||        ywrV   rW   rY   s      r(   r]   z9MessagingConfigurationContext.__repr__.<locals>.<genexpr>  r^   r_   z3<Twilio.Verify.V2.MessagingConfigurationContext {}>r`   rc   s     r(   re   z&MessagingConfigurationContext.__repr__  s6     ((SDNN<P<P<RSSDKKGTTr)   )rf   rg   rh   r   rj   r!   tupler}   rl   r2   r   r8   r   r5   r:   r   r   r=   rB   r   r@   rD   r   rH   rO   r   rL   rQ   re   rm   rn   s   @r(   r,   r,      sB   
 
c 
C 
&
 
 S{ S
U 
D S; S
 
 
5 
Tk T 
E 
 
#A 
T+ T 
S 
U 
.
C 
4R 
 T3 T; T&
 
 
.
%(
	'
(T%(T	T*U# Ur)   r,   c                   2    e Zd Zdeeef   defdZdefdZy)MessagingConfigurationPager   r*   c                 L    t        | j                  || j                  d         S )z|
        Build an instance of MessagingConfigurationInstance

        :param payload: Payload response from the API
        r   r   )r   r-   r$   )r&   r   s     r(   get_instancez'MessagingConfigurationPage.get_instance  s%     .MM7}0M
 	
r)   c                      y)rS   z-<Twilio.Verify.V2.MessagingConfigurationPage>rq   r.   s    r(   re   z#MessagingConfigurationPage.__repr__       ?r)   N)	rf   rg   rh   r   rj   r   r   r   re   rq   r)   r(   r   r     s*    
DcN 
7U 
?# ?r)   r   c            	           e Zd Zdedef fdZdededefdZdededefdZ	dedede
fd	Zdededefd
ZdededefdZdedede
fdZ	 	 d#dee   dee   dee   fdZ	 	 d#dee   dee   dee   fdZ	 	 d#dee   dee   defdZ	 	 d#dee   dee   defdZ	 	 d#dee   dee   dee   fdZ	 	 d#dee   dee   dee   fdZ	 	 d#dee   dee   de
fdZ	 	 d#dee   dee   de
fdZej:                  ej:                  ej:                  fdeeef   deeef   deeef   de fdZ!ej:                  ej:                  ej:                  fdeeef   deeef   deeef   de fdZ"ej:                  ej:                  ej:                  fdeeef   deeef   deeef   de
fdZ#ej:                  ej:                  ej:                  fdeeef   deeef   deeef   de
fdZ$dede fdZ%dede fdZ&dede'fd Z(dede'fd!Z)defd"Z* xZ+S )$MessagingConfigurationListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)a  
        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!   z#MessagingConfigurationList.__init__(  sF     	! ;
 MELL 
nn
	r)   r   r   r*   c                     t        j                  ||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Countryr   r   r   r   r   r   r   )r   rz   r-   create_with_response_infors   r&   r   r   r   ry   s        r(   _createz"MessagingConfigurationList._create:  sp     yy"'<
 ))^-PQR"E.}}66tyytW 7 
 	
r)   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )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
        r   r   r   r   )r   r   r-   r$   r&   r   r   r   r   s        r(   createz!MessagingConfigurationList.createR  sF     3H % 
A .MM7}0M
 	
r)   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )aF  
        Create the MessagingConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   r   r   r   )r   r   r-   r$   r   r&   r   r   r   r   ry   r   s          r(   create_with_http_infoz0MessagingConfigurationList.create_with_http_infod  sU     )-3H )5 )
%g 2MM7}0M
 k7SSr)   c                    K   t        j                  ||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rz   r-   create_with_response_info_asyncrs   r   s        r(   _create_asyncz(MessagingConfigurationList._create_asyncw  s      yy"'<
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A&A/(A-)A/c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)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   Nr   r   )r   r   r-   r$   r   s        r(   create_asyncz'MessagingConfigurationList.create_async  sV      #003H 1 
 
A .MM7}0M
 	

s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)aU  
        Asynchronously create the MessagingConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   Nr   r   r   )r   r   r-   r$   r   r   s          r(   create_with_http_info_asyncz6MessagingConfigurationList.create_with_http_info_async  sf      /3.@.@3H /A /
 )
%g 2MM7}0M
 k7SS)
s   AA<Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )al  
        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   z!MessagingConfigurationList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r)   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)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   z'MessagingConfigurationList.stream_async  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams MessagingConfigurationInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r-   r   page_with_http_infor   r   r   ry   r&   r   r   r   page_response	generators         r(   stream_with_http_infoz0MessagingConfigurationList.stream_with_http_info  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr)   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams MessagingConfigurationInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r-   r   page_with_http_info_asyncr   r   r   ry   r   s         r(   stream_with_http_info_asyncz6MessagingConfigurationList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )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   zMessagingConfigurationList.list  s(    & KK#  
 	
r)   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)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_asyncz%MessagingConfigurationList.list_async2  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists MessagingConfigurationInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )r&   r   r   r   r   ry   rb   s          r(   list_with_http_infoz.MessagingConfigurationList.list_with_http_infoM  sA    $ +/*D*D +E +
'	; Y;PPr)   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists MessagingConfigurationInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )r&   r   r   r   r   ry   r   rb   s           r(   list_with_http_info_asyncz4MessagingConfigurationList.list_with_http_info_asyncf  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )a  
        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   rw   rx   paramsry   )r   rz   r-   r   rs   r   r$   r&   r   r   r   r   ry   responses          r(   r   zMessagingConfigurationList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 *$--4>>RRr)   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        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   rz   r-   r   rs   r   r$   r   s          r(   r   z%MessagingConfigurationList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 *$--4>>RR
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || j                        }	t        |	||      S )	ah  
        Retrieve a single page with response metadata


        :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: ApiResponse with MessagingConfigurationPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   rz   r-   page_with_response_infors   r   r$   r   
r&   r   r   r   r   ry   r   r   response_headersr   s
             r(   r   z.MessagingConfigurationList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ *$--4>>R+GWXXr)   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 7w)
aw  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with MessagingConfigurationPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   rz   r-   page_with_response_info_asyncrs   r   r$   r   r   s
             r(   r   z4MessagingConfigurationList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 *$--4>>R+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )a  
        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_pagez#MessagingConfigurationList.get_page  s=     ==''..66ujI)$--4>>RRr)   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a   
        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_asyncz)MessagingConfigurationList.get_page_async  sJ      --44BB5*UU)$--4>>RR Vs   4AA&Ac                 L    t        | j                  | j                  d   |      S 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"   zMessagingConfigurationList.get  %     -MMt~~m'Dg
 	
r)   c                 L    t        | j                  | j                  d   |      S r
  r  r  s     r(   __call__z#MessagingConfigurationList.__call__)  r  r)   c                      y)rS   z-<Twilio.Verify.V2.MessagingConfigurationList>rq   r.   s    r(   re   z#MessagingConfigurationList.__repr__3  r   r)   )NN),rf   rg   rh   r   rj   r!   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   unsetr   objectr   r   r   r   r   r  r  r,   r"   r  re   rm   rn   s   @r(   r   r   &  sh   
 
c 
$
s 
3 
5 
0

36
	'
$TT36T	T&
3 
s 
u 
0

36
	'
$TT36T	T*  $#';}; C=; 
0	1	;6  $#'A}A C=A 
5	6	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
,	-	
8  $#'
}
 C=
 
,	-	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	S#v+&S 3;'S f%	S
 
$SF *0*0,,(.	S#v+&S 3;'S f%	S
 
$SF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
S3 
S+E 
S
Ss 
S7Q 
S
3 
#@ 

 
(E 
?# ?r)   r   N)ri   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   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     sj     L L L + 0 8 : 2 ' !yV%5 yVxxUO xUv	? ?*S? S?r)   