
    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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 - Wireless
    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	serializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                   &    e Zd Z G d de      Z	 	 ddedeeef   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ej0                  ej0                  fdeeef   deeef   dd fdZej0                  ej0                  fdeeef   deeef   dd fdZej0                  ej0                  fdeeef   deeef   defdZej0                  ej0                  fdeeef   deeef   defdZdefdZ xZS )RatePlanInstancec                       e Zd ZdZdZy)"RatePlanInstance.DataLimitStrategyblockthrottleN)__name__
__module____qualname__BLOCKTHROTTLE     _/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/wireless/v1/rate_plan.pyDataLimitStrategyr      s    r    r"   versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        t        j                  |j                  d            | _        |j                  d      | _        t        j                  |j                  d            | _        t        j$                  |j                  d            | _        t        j$                  |j                  d            | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )Nr%   unique_nameaccount_sidfriendly_namedata_enableddata_metering
data_limitmessaging_enabledvoice_enablednational_roaming_enablednational_roaming_data_limitinternational_roaming international_roaming_data_limitdate_createddate_updatedurl)super__init__getr%   r'   r(   r)   r*   r+   r   integerr,   r-   r.   r/   r0   r1   r2   iso8601_datetimer3   r4   r5   	_solution_context)selfr#   r$   r%   	__class__s       r!   r7   zRatePlanInstance.__init__3   s    	!")++e"4*1++m*D*1++m*D,3KK,H,3KK,G,3KK,H)4)<)<W[[=V)W18=P1Q-4[[-I8?&9
% ;F:M:MKK56;
( ;B++#;
" @K?R?RKK:;@
- 1<0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 48r    returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )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: RatePlanContext for this RatePlanInstance
        r%   r%   )r<   RatePlanContext_versionr;   r=   s    r!   _proxyzRatePlanInstance._proxyZ   s9     == +NN5)DM }}r    c                 6    | j                   j                         S zk
        Deletes the RatePlanInstance


        :returns: True if delete succeeds, False otherwise
        )rE   deleterD   s    r!   rH   zRatePlanInstance.deletei   s     {{!!##r    c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the RatePlanInstance


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


        :returns: ApiResponse with success boolean, status code, and headers
        )rE   delete_with_http_inforD   s    r!   rN   z&RatePlanInstance.delete_with_http_info{   s     {{0022r    c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the RatePlanInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)rE   delete_with_http_info_asyncrD   s    r!   rP   z,RatePlanInstance.delete_with_http_info_async   s!      [[<<>>>>rL   c                 6    | j                   j                         S )]
        Fetch the RatePlanInstance


        :returns: The fetched RatePlanInstance
        )rE   fetchrD   s    r!   rS   zRatePlanInstance.fetch   s     {{  ""r    c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the RatePlanInstance


        :returns: The fetched RatePlanInstance
        N)rE   fetch_asyncrD   s    r!   rV   zRatePlanInstance.fetch_async   s!      [[,,....rL   c                 6    | j                   j                         S )z
        Fetch the RatePlanInstance with HTTP info


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


        :returns: ApiResponse with instance, status code, and headers
        N)rE   fetch_with_http_info_asyncrD   s    r!   rZ   z+RatePlanInstance.fetch_with_http_info_async   s!      [[;;====rL   r'   r)   c                 <    | j                   j                  ||      S )  
        Update the RatePlanInstance

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.

        :returns: The updated RatePlanInstance
        r'   r)   )rE   updater=   r'   r)   s      r!   r^   zRatePlanInstance.update   s&     {{!!#' " 
 	
r    c                 X   K   | j                   j                  ||       d{   S 7 w)  
        Asynchronous coroutine to update the RatePlanInstance

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.

        :returns: The updated RatePlanInstance
        r]   N)rE   update_asyncr_   s      r!   rb   zRatePlanInstance.update_async   s4      [[--#' . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )a  
        Update the RatePlanInstance with HTTP info

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.

        :returns: ApiResponse with instance, status code, and headers
        r]   )rE   update_with_http_infor_   s      r!   re   z&RatePlanInstance.update_with_http_info   s&     {{00#' 1 
 	
r    c                 X   K   | j                   j                  ||       d{   S 7 w)a  
        Asynchronous coroutine to update the RatePlanInstance with HTTP info

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.

        :returns: ApiResponse with instance, status code, and headers
        r]   N)rE   update_with_http_info_asyncr_   s      r!   rg   z,RatePlanInstance.update_with_http_info_async   s4      [[<<#' = 
 
 	
 
rc   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,RatePlanInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z(<Twilio.Wireless.V1.RatePlanInstance {}>joinr;   itemsrn   r=   contexts     r!   __repr__zRatePlanInstance.__repr__   s6     ((SDNN<P<P<RSS9@@IIr    N)r?   rB   )r?   r   ) r   r   r   objectr"   r   r   strr   r   r7   propertyrE   boolrH   rK   r   rN   rP   rS   rV   rX   rZ   r   unsetr   r^   rb   re   rg   r{   __classcell__r>   s   @r!   r   r      s   F ( OS%8%8)-c3h%8>Fsm%8N  $ $0D 03{ 3?; ?#/2k 2>+ > +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
$J# Jr    r   c                       e Zd Z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ej.                  ej.                  fdeeef   deeef   defdZej.                  ej.                  fdeeef   deeef   defdZej.                  ej.                  fdeeef   deeef   de
fdZej.                  ej.                  fdeeef   deeef   defdZej.                  ej.                  fdeeef   deeef   defdZej.                  ej.                  fdeeef   deeef   de
fdZdefdZ  xZ!S )rB   r#   r%   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the RatePlanContext

        :param version: Version that contains the resource
        :param sid: The SID of the RatePlan resource to update.
        r%   z/RatePlans/{sid}Nr   )r6   r7   r;   rn   _uri)r=   r#   r%   r>   s      r!   r7   zRatePlanContext.__init__  s@     	! 3
 .&--??	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   ofrC   delete_with_response_infor   r=   r   s     r!   _deletezRatePlanContext._delete  s8     ))B-}}66G 7 
 	
r    c                 .    | j                         \  }}}|S rG   )r   r=   success_s      r!   rH   zRatePlanContext.delete"  s     Ar    c                 F    | j                         \  }}}t        |||      S )z
        Deletes the RatePlanInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   r=   r   r   r   s       r!   rN   z%RatePlanContext.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)
        r   r   N)r   r   rC   delete_with_response_info_asyncr   r   s     r!   _delete_asynczRatePlanContext._delete_async6  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wrJ   )r   r   s      r!   rK   zRatePlanContext.delete_asyncD  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the RatePlanInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r!   rP   z+RatePlanContext.delete_with_http_info_asyncN  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GETr   )r   r   rC   fetch_with_response_infor   r   s     r!   _fetchzRatePlanContext._fetchX  sB     ))B-.}}55dii 6 
 	
r    c                 t    | j                         \  }}}t        | j                  || j                  d         S )rR   r%   rA   )r   r   rC   r;   r=   r$   r   s      r!   rS   zRatePlanContext.fetchh  s8     AMMu%
 	
r    c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the RatePlanInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r%   rA   r   )r   r   rC   r;   r   r=   r$   r   r   instances        r!   rX   z$RatePlanContext.fetch_with_http_infov  sG     )-%g#MMu%

 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   r   N)r   r   rC   fetch_with_response_info_asyncr   r   s     r!   _fetch_asynczRatePlanContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rU   Nr%   rA   )r   r   rC   r;   r   s      r!   rV   zRatePlanContext.fetch_async  sG      #//11AMMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the RatePlanInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr%   rA   r   )r   r   rC   r;   r   r   s        r!   rZ   z*RatePlanContext.fetch_with_http_info_async  sW      /3.?.?.A(A%g#MMu%

 k7SS )Bs   AA<Ar'   r)   c                     t        j                  ||d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        
UniqueNameFriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   r   r   )r   r   rC   update_with_response_infor   r=   r'   r)   r   r   s        r!   _updatezRatePlanContext._update  si     yy) -
 ))B-"E.}}66tyytW 7 
 	
r    c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )r\   r]   r%   rA   )r   r   rC   r;   r=   r'   r)   r$   r   s        r!   r^   zRatePlanContext.update  s@     #= % 
A  wDNN5<QRRr    c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Update the RatePlanInstance and return response metadata

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.

        :returns: ApiResponse with instance, status code, and headers
        r]   r%   rA   r   )r   r   rC   r;   r   r=   r'   r)   r$   r   r   r   s          r!   re   z%RatePlanContext.update_with_http_info  sO     )-#= )5 )
%g $DMM7u@UVk7SSr    c                    K   t        j                  ||d      }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   r   rC   update_with_response_info_asyncr   r   s        r!   _update_asynczRatePlanContext._update_async  sx      yy) -
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A$A-&A+'A-c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)ra   r]   Nr%   rA   )r   r   rC   r;   r   s        r!   rb   zRatePlanContext.update_async  sP      #00#= 1 
 
A  wDNN5<QRR
s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to update the RatePlanInstance and return response metadata

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.

        :returns: ApiResponse with instance, status code, and headers
        r]   Nr%   rA   r   )r   r   rC   r;   r   r   s          r!   rg   z+RatePlanContext.update_with_http_info_async!  s`      /3.@.@#= /A /
 )
%g $DMM7u@UVk7SS	)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )ri   rj   c              3   F   K   | ]  \  }}d j                  ||        ywrl   rm   ro   s      r!   rs   z+RatePlanContext.__repr__.<locals>.<genexpr>:  rt   ru   z'<Twilio.Wireless.V1.RatePlanContext {}>rv   ry   s     r!   r{   zRatePlanContext.__repr__4  s6     ((SDNN<P<P<RSS8??HHr    )"r   r   r   r   r~   r7   tupler   r   rH   r   rN   r   rK   rP   r   r   rS   rX   r   rV   rZ   r   r   r   r}   r   r^   re   r   rb   rg   r{   r   r   s   @r!   rB   rB     sc   @ @c @
 
 S{ S
U 
D S; S
 
 
' 
Tk T
E 
 
#3 
T+ T" +1,,,2LL
3;'
 S&[)
 
	
< +1,,,2LLS3;'S S&[)S 
	S( +1,,,2LLT3;'T S&[)T 
	T* +1,,,2LL
3;'
 S&[)
 
	
< +1,,,2LLS3;'S S&[)S 
	S( +1,,,2LLT3;'T S&[)T 
	T&I# Ir    rB   c                   2    e Zd Zdeeef   defdZdefdZy)RatePlanPager$   r?   c                 .    t        | j                  |      S )zn
        Build an instance of RatePlanInstance

        :param payload: Payload response from the API
        )r   rC   )r=   r$   s     r!   get_instancezRatePlanPage.get_instance@  s      w77r    c                      y)ri   z!<Twilio.Wireless.V1.RatePlanPage>r   rD   s    r!   r{   zRatePlanPage.__repr__H       3r    N)	r   r   r   r   r~   r   r   r   r{   r   r    r!   r   r   >  s*    8DcN 87G 83# 3r    r   c                   8    e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   d	ee
e	f   d
ee
e	f   deee   e	f   deee	f   deee	f   dede	f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   d	ee
e	f   d
ee
e	f   deee   e	f   deee	f   deee	f   dede	f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   d	ee
e	f   d
ee
e	f   deee   e	f   deee	f   deee	f   dede	f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   d	ee
e	f   d
ee
e	f   deee   e	f   deee	f   deee	f   dede	f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   d	ee
e	f   d
ee
e	f   deee   e	f   deee	f   deee	f   dede	f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  fdeee	f   deee	f   dee
e	f   deee	f   deee	f   dee
e	f   d	ee
e	f   d
ee
e	f   deee   e	f   deee	f   deee	f   dede	f   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 )/RatePlanListr#   c                 2    t         |   |       d| _        y)zj
        Initialize the RatePlanList

        :param version: Version that contains the resource

        z
/RatePlansN)r6   r7   r   )r=   r#   r>   s     r!   r7   zRatePlanList.__init__S  s     	! 	r    r'   r)   r*   r,   r+   r-   r.   r/   r1   r0   r2   data_limit_strategyr   r?   c                    t        j                  ||t        j                  |      ||t        j                  |      t        j                  |      t        j                  |      t        j                  |	d       |
||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)
        c                     | S r|   r   es    r!   <lambda>z&RatePlanList._create.<locals>.<lambda>      Q r    r   r   DataEnabled	DataLimitDataMeteringMessagingEnabledVoiceEnabledNationalRoamingEnabledInternationalRoamingNationalRoamingDataLimitInternationalRoamingDataLimitr"   r   r   r   r   r   r   )r   r   r   boolean_to_stringmaprC   create_with_response_infor   r=   r'   r)   r*   r,   r+   r-   r.   r/   r1   r0   r2   r   r   r   s                  r!   _createzRatePlanList._create^  s    0 yy) -(::<H' -$-$?$?@Q$R ) ; ;M J*3*E*E,+ )2);) -H1Q%8!
( ))^-PQR"E.}}66tyytW 7 
 	
r    c                 p    | j                  |||||||||	|
||      \  }}}t        | j                  |      S )aR	  
        Create the RatePlanInstance

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.
        :param data_enabled: Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
        :param data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`.
        :param data_metering: The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#payg-vs-quota-data-plans).
        :param messaging_enabled: Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/iot/wireless/api/command-resource).
        :param voice_enabled: Deprecated.
        :param national_roaming_enabled: Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming).
        :param international_roaming: The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
        :param national_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming) for more info.
        :param international_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
        :param data_limit_strategy:

        :returns: The created RatePlanInstance
        r'   r)   r*   r,   r+   r-   r.   r/   r1   r0   r2   r   )r   r   rC   r=   r'   r)   r*   r,   r+   r-   r.   r/   r1   r0   r2   r   r$   r   s                  r!   createzRatePlanList.create  sU    F #'%!'/'%="7(C-M 3 % 
A  w77r    c                     | j                  |||||||||	|
||      \  }}}t        | j                  |      }t        |||      S )a	  
        Create the RatePlanInstance and return response metadata

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.
        :param data_enabled: Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
        :param data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`.
        :param data_metering: The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#payg-vs-quota-data-plans).
        :param messaging_enabled: Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/iot/wireless/api/command-resource).
        :param voice_enabled: Deprecated.
        :param national_roaming_enabled: Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming).
        :param international_roaming: The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
        :param national_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming) for more info.
        :param international_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
        :param data_limit_strategy:

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   rC   r   r=   r'   r)   r*   r,   r+   r-   r.   r/   r1   r0   r2   r   r$   r   r   r   s                    r!   create_with_http_infoz"RatePlanList.create_with_http_info  sd    F )-#'%!'/'%="7(C-M 3 )5 )
%g $DMM7;k7SSr    c                   K   t        j                  ||t        j                  |      ||t        j                  |      t        j                  |      t        j                  |      t        j                  |	d       |
||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)
        c                     | S r|   r   r   s    r!   r   z,RatePlanList._create_async.<locals>.<lambda>   r   r    r   r   r   r   r   r   r   N)r   r   r   r   r   rC   create_with_response_info_asyncr   r   s                  r!   _create_asynczRatePlanList._create_async  s     0 yy) -(::<H' -$-$?$?@Q$R ) ; ;M J*3*E*E,+ )2);) -H1Q%8!
( ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   CCCCc                    K   | j                  |||||||||	|
||       d{   \  }}}t        | j                  |      S 7 w)aa	  
        Asynchronously create the RatePlanInstance

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.
        :param data_enabled: Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
        :param data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`.
        :param data_metering: The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#payg-vs-quota-data-plans).
        :param messaging_enabled: Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/iot/wireless/api/command-resource).
        :param voice_enabled: Deprecated.
        :param national_roaming_enabled: Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming).
        :param international_roaming: The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
        :param national_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming) for more info.
        :param international_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
        :param data_limit_strategy:

        :returns: The created RatePlanInstance
        r   N)r   r   rC   r   s                  r!   create_asynczRatePlanList.create_async1  se     F #00#'%!'/'%="7(C-M 3 1 
 
A  w77
s   !AAAc                    K   | j                  |||||||||	|
||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a	  
        Asynchronously create the RatePlanInstance and return response metadata

        :param unique_name: An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource.
        :param friendly_name: A descriptive string that you create to describe the resource. It does not have to be unique.
        :param data_enabled: Whether SIMs can use GPRS/3G/4G/LTE data connectivity.
        :param data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`.
        :param data_metering: The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#payg-vs-quota-data-plans).
        :param messaging_enabled: Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/iot/wireless/api/command-resource).
        :param voice_enabled: Deprecated.
        :param national_roaming_enabled: Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming).
        :param international_roaming: The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can contain: `data` and `messaging`.
        :param national_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/iot/wireless/api/rateplan-resource#national-roaming) for more info.
        :param international_roaming_data_limit: The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB.
        :param data_limit_strategy:

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   rC   r   r   s                    r!   create_with_http_info_asyncz(RatePlanList.create_with_http_info_asyncd  su     F /3.@.@#'%!'/'%="7(C-M 3 /A /
 )
%g $DMM7;k7SS)
s   !AA-Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )a^  
        Streams RatePlanInstance 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   )rC   read_limitspagestreamr=   r   r   limitsr   s        r!   r   zRatePlanList.stream  sJ    ( **5)<yy6+#6y7}}##D&/::r    c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)am  
        Asynchronously streams RatePlanInstance 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   )rC   r   
page_asyncstream_asyncr   s        r!   r   zRatePlanList.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 RatePlanInstance 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   )rC   r   page_with_http_infor   r   r   r   r=   r   r   r   page_response	generators         r!   stream_with_http_infoz"RatePlanList.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 RatePlanInstance 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   )rC   r   page_with_http_info_asyncr   r   r   r   r  s         r!   stream_with_http_info_asyncz(RatePlanList.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 RatePlanInstance 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RatePlanList.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 RatePlanInstance 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RatePlanList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists RatePlanInstance 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   r   rx   s          r!   list_with_http_infoz RatePlanList.list_with_http_info1  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 RatePlanInstance 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   r   r  rx   s           r!   list_with_http_info_asyncz&RatePlanList.list_with_http_info_asyncJ  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                  |      S )au  
        Retrieve a single page of RatePlanInstance 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 RatePlanInstance
        	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rC   r   r   r   r=   r  r  r   r   r   responses          r!   r   zRatePlanList.pagec  sy      yy'#%
 ))^-PQR.==%%diig & 
 DMM844r    c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of RatePlanInstance 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 RatePlanInstance
        r  r   r   r   r   r   r  N)r   r   rC   r   r   r   r  s          r!   r   zRatePlanList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 DMM844
s   A"B$A?%Bc                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }	t        |	||      S )	aZ  
        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 RatePlanPage, status code, and headers
        r  r   r   r   r   r   r  r   )r   r   rC   page_with_response_infor   r   r   
r=   r  r  r   r   r   r  r   response_headersr   s
             r!   r  z RatePlanList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ DMM84+GWXXr    c                 *  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }	t        |	||	      S 7 ,w)
ai  
        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 RatePlanPage, status code, and headers
        r  r   r   r   r   r   r  Nr   )r   r   rC   page_with_response_info_asyncr   r   r   r   s
             r!   r  z&RatePlanList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 DMM84+GWXXs   A"B$B%-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )z
        Retrieve a specific page of RatePlanInstance records from the API.
        Request is executed immediately

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

        :returns: Page of RatePlanInstance
        r   )rC   domaintwiliorequestr   r=   r$  r  s      r!   get_pagezRatePlanList.get_page  s7     ==''..66ujIDMM844r    c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of RatePlanInstance records from the API.
        Request is executed immediately

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

        :returns: Page of RatePlanInstance
        r   N)rC   r&  r'  request_asyncr   r)  s      r!   get_page_asynczRatePlanList.get_page_async  sD      --44BB5*UUDMM844 Vs   4AAAr%   c                 0    t        | j                  |      S zo
        Constructs a RatePlanContext

        :param sid: The SID of the RatePlan resource to update.
        rA   rB   rC   r=   r%   s     r!   r8   zRatePlanList.get       t}}#66r    c                 0    t        | j                  |      S r/  r0  r1  s     r!   __call__zRatePlanList.__call__  r2  r    c                      y)ri   z!<Twilio.Wireless.V1.RatePlanList>r   rD   s    r!   r{   zRatePlanList.__repr__  r   r    )NN)-r   r   r   r   r7   r   r   r   r~   r}   r   intr   r   r   r   r   r   r   r   r   r   r   r	   r   r
   r   r  r  r  r  r  r  r   r   r   r  r  r*  r-  rB   r8   r4  r{   r   r   s   @r!   r   r   Q  s   	! 	! +1,,,2LL,2LL)/,2LL17-3\\8>:@,,:@,,?E|| LL4
3;'4
 S&[)4
 D&L)	4

 #v+&4
 S&[)4
 !v.4
 T6\*4
 #(f"54
  %T#Y%674
 &+3;%74
 +0V*<4
 #0&8
4
  
!4
p +1,,,2LL,2LL)/,2LL17-3\\8>:@,,:@,,?E|| LL183;'18 S&[)18 D&L)	18
 #v+&18 S&[)18 !v.18 T6\*18 #(f"518  %T#Y%6718 &+3;%718 +0V*<18 #0&8
18  
!18j +1,,,2LL,2LL)/,2LL17-3\\8>:@,,:@,,?E|| LL2T3;'2T S&[)2T D&L)	2T
 #v+&2T S&[)2T !v.2T T6\*2T #(f"52T  %T#Y%672T &+3;%72T +0V*<2T #0&8
2T  
!2Tl +1,,,2LL,2LL)/,2LL17-3\\8>:@,,:@,,?E|| LL4
3;'4
 S&[)4
 D&L)	4

 #v+&4
 S&[)4
 !v.4
 T6\*4
 #(f"54
  %T#Y%674
 &+3;%74
 +0V*<4
 #0&8
4
  
!4
p +1,,,2LL,2LL)/,2LL17-3\\8>:@,,:@,,?E|| LL183;'18 S&[)18 D&L)	18
 #v+&18 S&[)18 !v.18 T6\*18 #(f"518  %T#Y%6718 &+3;%718 +0V*<18 #0&8
18  
!18j +1,,,2LL,2LL)/,2LL17-3\\8>:@,,:@,,?E|| LL2T3;'2T S&[)2T D&L)	2T
 #v+&2T S&[)2T !v.2T T6\*2T #(f"52T  %T#Y%672T &+3;%72T +0V*<2T #0&8
2T  
!2Tl  $#';}; C=; 
"	#	;6  $#'A}A C=A 
'	(	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,,(.	5#v+&5 3;'5 f%	5
 
5F *0*0,,(.	5#v+&5 3;'5 f%	5
 
5F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
53 
5< 
5
5s 
5| 
57s 7 77C 7O 73# 3r    r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rB   r   r   r   r    r!   <module>r@     sm     L L L 6 6 0 8 : 2 ' !fJ' fJRxIo xIv	34 3&H3< H3r    