
    d{iN                         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 - Preview
    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d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j.                  ej.                  fdeeef   deeef   dd fdZej.                  ej.                  fdeeef   deeef   dd 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 )RatePlanInstancea\  
    :ivar sid:
    :ivar unique_name:
    :ivar account_sid:
    :ivar friendly_name:
    :ivar data_enabled:
    :ivar data_metering:
    :ivar data_limit:
    :ivar messaging_enabled:
    :ivar voice_enabled:
    :ivar national_roaming_enabled:
    :ivar international_roaming:
    :ivar date_created:
    :ivar date_updated:
    :ivar url:
    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
      | _        |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international_roamingdate_createddate_updatedurl)super__init__getr   r   r   r   r   r   r   integerr   r    r!   r"   r#   iso8601_datetimer$   r%   r&   	_solution_context)selfr   r   r   	__class__s       d/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/preview/wireless/rate_plan.pyr(   zRatePlanInstance.__init__,   sU    	!")++e"4*1++m*D*1++m*D,3KK,H,3KK,G,3KK,H)4)<)<W[[=V)W18=P1Q-4[[-I8?&9
% ;B++#;
" 1<0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 48    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    r0   _proxyzRatePlanInstance._proxyM   s9     == +NN5)DM }}r1   c                 6    | j                   j                         S zk
        Deletes the RatePlanInstance


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


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


        :returns: ApiResponse with success boolean, status code, and headers
        )r8   delete_with_http_infor7   s    r0   rA   z&RatePlanInstance.delete_with_http_infon   s     {{0022r1   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)r8   delete_with_http_info_asyncr7   s    r0   rC   z,RatePlanInstance.delete_with_http_info_asyncw   s!      [[<<>>>>r?   c                 6    | j                   j                         S )]
        Fetch the RatePlanInstance


        :returns: The fetched RatePlanInstance
        )r8   fetchr7   s    r0   rF   zRatePlanInstance.fetch   s     {{  ""r1   c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the RatePlanInstance


        :returns: The fetched RatePlanInstance
        N)r8   fetch_asyncr7   s    r0   rI   zRatePlanInstance.fetch_async   s!      [[,,....r?   c                 6    | j                   j                         S )z
        Fetch the RatePlanInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r8   fetch_with_http_infor7   s    r0   rK   z%RatePlanInstance.fetch_with_http_info   s     {{//11r1   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)r8   fetch_with_http_info_asyncr7   s    r0   rM   z+RatePlanInstance.fetch_with_http_info_async   s!      [[;;====r?   r   r   c                 <    | j                   j                  ||      S )
        Update the RatePlanInstance

        :param unique_name:
        :param friendly_name:

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

        :param unique_name:
        :param friendly_name:

        :returns: The updated RatePlanInstance
        rP   N)r8   update_asyncrR   s      r0   rU   zRatePlanInstance.update_async   s4      [[--#' . 
 
 	
 
   !*(*c                 <    | j                   j                  ||      S )z
        Update the RatePlanInstance with HTTP info

        :param unique_name:
        :param friendly_name:

        :returns: ApiResponse with instance, status code, and headers
        rP   )r8   update_with_http_inforR   s      r0   rX   z&RatePlanInstance.update_with_http_info   s&     {{00#' 1 
 	
r1   c                 X   K   | j                   j                  ||       d{   S 7 w)z
        Asynchronous coroutine to update the RatePlanInstance with HTTP info

        :param unique_name:
        :param friendly_name:

        :returns: ApiResponse with instance, status code, and headers
        rP   N)r8   update_with_http_info_asyncrR   s      r0   rZ   z,RatePlanInstance.update_with_http_info_async   s4      [[<<#' = 
 
 	
 
rV   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      r0   	<genexpr>z,RatePlanInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z-<Twilio.Preview.Wireless.RatePlanInstance {}>joinr,   itemsra   r.   contexts     r0   __repr__zRatePlanInstance.__repr__   s6     ((SDNN<P<P<RSS>EEgNNr1   N)r2   r5   )r2   r   ) __name__
__module____qualname____doc__r   r   strr   r   r(   propertyr8   boolr;   r>   r   rA   rC   rF   rI   rK   rM   r   unsetr   objectrQ   rU   rX   rZ   rn   __classcell__r/   s   @r0   r   r      s   $ OS88)-c3h8>Fsm8B  $ $0D 03{ 3?; ?#/2k 2>+ > +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
$O# Or1   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 )r5   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:
        r   z/RatePlans/{sid}N )r'   r(   r,   ra   _uri)r.   r   r   r/   s      r0   r(   zRatePlanContext.__init__   s@     	! 3
 .&--??	r1   r2   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   ofr6   delete_with_response_infor~   r.   r   s     r0   _deletezRatePlanContext._delete  s8     ))B-}}66G 7 
 	
r1   c                 .    | j                         \  }}}|S r:   )r   r.   success_s      r0   r;   zRatePlanContext.delete  s     Ar1   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       r0   rA   z%RatePlanContext.delete_with_http_info  s%     )-%g['RRr1   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   r6   delete_with_response_info_asyncr~   r   s     r0   _delete_asynczRatePlanContext._delete_async)  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr=   )r   r   s      r0   r>   zRatePlanContext.delete_async7  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       r0   rC   z+RatePlanContext.delete_with_http_info_asyncA  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   r6   fetch_with_response_infor~   r   s     r0   _fetchzRatePlanContext._fetchK  sB     ))B-.}}55dii 6 
 	
r1   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rE   r   r4   )r   r   r6   r,   r.   r   r   s      r0   rF   zRatePlanContext.fetch[  s8     AMMu%
 	
r1   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   r4   r   )r   r   r6   r,   r   r.   r   r   r   instances        r0   rK   z$RatePlanContext.fetch_with_http_infoi  sG     )-%g#MMu%

 k7SSr1   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   r6   fetch_with_response_info_asyncr~   r   s     r0   _fetch_asynczRatePlanContext._fetch_asyncx  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)rH   Nr   r4   )r   r   r6   r,   r   s      r0   rI   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   r4   r   )r   r   r6   r,   r   r   s        r0   rM   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   r6   update_with_response_infor~   r.   r   r   r   r   s        r0   _updatezRatePlanContext._update  si     yy) -
 ))B-"E.}}66tyytW 7 
 	
r1   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )rO   rP   r   r4   )r   r   r6   r,   r.   r   r   r   r   s        r0   rQ   zRatePlanContext.update  s@     #= % 
A  wDNN5<QRRr1   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Update the RatePlanInstance and return response metadata

        :param unique_name:
        :param friendly_name:

        :returns: ApiResponse with instance, status code, and headers
        rP   r   r4   r   )r   r   r6   r,   r   r.   r   r   r   r   r   r   s          r0   rX   z%RatePlanContext.update_with_http_info  sO     )-#= )5 )
%g $DMM7u@UVk7SSr1   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   r6   update_with_response_info_asyncr~   r   s        r0   _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)rT   rP   Nr   r4   )r   r   r6   r,   r   s        r0   rU   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)z
        Asynchronous coroutine to update the RatePlanInstance and return response metadata

        :param unique_name:
        :param friendly_name:

        :returns: ApiResponse with instance, status code, and headers
        rP   Nr   r4   r   )r   r   r6   r,   r   r   s          r0   rZ   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 )r\   r]   c              3   F   K   | ]  \  }}d j                  ||        ywr_   r`   rb   s      r0   rf   z+RatePlanContext.__repr__.<locals>.<genexpr>-  rg   rh   z,<Twilio.Preview.Wireless.RatePlanContext {}>ri   rl   s     r0   rn   zRatePlanContext.__repr__'  s6     ((SDNN<P<P<RSS=DDWMMr1   )"rp   rq   rr   r   rt   r(   tupler   rv   r;   r   rA   r   r>   rC   r   r   rF   rK   r   rI   rM   r   rw   r   rx   r   rQ   rX   r   rU   rZ   rn   ry   rz   s   @r0   r5   r5      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&N# Nr1   r5   c                   2    e Zd Zdeeef   defdZdefdZy)RatePlanPager   r2   c                 .    t        | j                  |      S )zn
        Build an instance of RatePlanInstance

        :param payload: Payload response from the API
        )r   r6   )r.   r   s     r0   get_instancezRatePlanPage.get_instance3  s      w77r1   c                      y)r\   z&<Twilio.Preview.Wireless.RatePlanPage>r}   r7   s    r0   rn   zRatePlanPage.__repr__;       8r1   N)	rp   rq   rr   r   rt   r   r   r   rn   r}   r1   r0   r   r   1  s*    8DcN 87G 88# 8r1   r   c                       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                  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	f   deee   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                  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	f   deee   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                  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	f   deee   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                  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	f   deee   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                  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	f   deee   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                  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	f   deee   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)r'   r(   r~   )r.   r   r/   s     r0   r(   zRatePlanList.__init__F  s     	! 	r1   r   r   r   r   r   r    r!   commands_enabledr"   r#   r2   c                    t        j                  ||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 ro   r}   es    r0   <lambda>z&RatePlanList._create.<locals>.<lambda>s      Q r1   
r   r   DataEnabled	DataLimitDataMeteringMessagingEnabledVoiceEnabledCommandsEnabledNationalRoamingEnabledInternationalRoamingr   r   r   r   r   r   )r   r   r   boolean_to_stringmapr6   create_with_response_infor~   r.   r   r   r   r   r   r    r!   r   r"   r#   r   r   s                r0   _createzRatePlanList._createQ  s    ( yy) -(::<H' -$-$?$?@Q$R ) ; ;M J#,#>#>?O#P*3*E*E,+ )2);)
$ ))^-PQR"E.}}66tyytW 7 
 	
r1   c                 l    | j                  |||||||||	|

      \  }}}t        | j                  |      S )a  
        Create the RatePlanInstance

        :param unique_name:
        :param friendly_name:
        :param data_enabled:
        :param data_limit:
        :param data_metering:
        :param messaging_enabled:
        :param voice_enabled:
        :param commands_enabled:
        :param national_roaming_enabled:
        :param international_roaming:

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

        :param unique_name:
        :param friendly_name:
        :param data_enabled:
        :param data_limit:
        :param data_metering:
        :param messaging_enabled:
        :param voice_enabled:
        :param commands_enabled:
        :param national_roaming_enabled:
        :param international_roaming:

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

        :param unique_name:
        :param friendly_name:
        :param data_enabled:
        :param data_limit:
        :param data_metering:
        :param messaging_enabled:
        :param voice_enabled:
        :param commands_enabled:
        :param national_roaming_enabled:
        :param international_roaming:

        :returns: The created RatePlanInstance
        r   N)r   r   r6   r   s                r0   create_asynczRatePlanList.create_async  s^     : #00#'%!'/'-%="7 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:
        :param friendly_name:
        :param data_enabled:
        :param data_limit:
        :param data_metering:
        :param messaging_enabled:
        :param voice_enabled:
        :param commands_enabled:
        :param national_roaming_enabled:
        :param international_roaming:

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r6   r   r   s                  r0   create_with_http_info_asyncz(RatePlanList.create_with_http_info_async3  sn     : /3.@.@#'%!'/'-%="7 /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   )r6   read_limitspagestreamr.   r   r   limitsr   s        r0   r   zRatePlanList.stream_  sJ    ( **5)<yy6+#6y7}}##D&/::r1   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   )r6   r   
page_asyncstream_asyncr   s        r0   r   zRatePlanList.stream_asyncx  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   )r6   r   page_with_http_infor   r   r   r   r.   r   r   r   page_response	generators         r0   stream_with_http_infoz"RatePlanList.stream_with_http_info  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr1   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   )r6   r   page_with_http_info_asyncr   r   r   r   r   s         r0   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      r0   r  zRatePlanList.list  s(    & KK#  
 	
r1   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       r0   
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   rk   s          r0   list_with_http_infoz RatePlanList.list_with_http_info  sA    $ +/*D*D +E +
'	; Y;PPr1   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  rk   s           r0   list_with_http_info_asyncz&RatePlanList.list_with_http_info_async  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   r6   r   r~   r   r.   r
  r  r   r   r   responses          r0   r   zRatePlanList.page*  sy      yy'#%
 ))^-PQR.==%%diig & 
 DMM844r1   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   r6   r   r~   r   r  s          r0   r   zRatePlanList.page_asyncK  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   r6   page_with_response_infor~   r   r   
r.   r
  r  r   r   r   r  r   response_headersr   s
             r0   r   z RatePlanList.page_with_http_infol  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ DMM84+GWXXr1   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   r6   page_with_response_info_asyncr~   r   r   r  s
             r0   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   )r6   domaintwiliorequestr   r.   r  r  s      r0   get_pagezRatePlanList.get_page  s7     ==''..66ujIDMM844r1   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)r6   r  r  request_asyncr   r   s      r0   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 zC
        Constructs a RatePlanContext

        :param sid:
        r4   r5   r6   r.   r   s     r0   r)   zRatePlanList.get       t}}#66r1   c                 0    t        | j                  |      S r&  r'  r(  s     r0   __call__zRatePlanList.__call__  r)  r1   c                      y)r\   z&<Twilio.Preview.Wireless.RatePlanList>r}   r7   s    r0   rn   zRatePlanList.__repr__  r   r1   )NN)-rp   rq   rr   r   r(   r   rw   r   rt   rx   rv   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$  r5   r)   r+  rn   ry   rz   s   @r0   r   r   D  sK
   	! 	! +1,,,2LL,2LL)/,2LL17-3\\068>:@,,.
3;'.
 S&[).
 D&L)	.

 #v+&.
 S&[).
 !v..
 T6\*.
  f-.
 #(f"5.
  %T#Y%67.
 
.
d +1,,,2LL,2LL)/,2LL17-3\\068>:@,,)83;')8 S&[))8 D&L)	)8
 #v+&)8 S&[))8 !v.)8 T6\*)8  f-)8 #(f"5)8  %T#Y%67)8 
)8Z +1,,,2LL,2LL)/,2LL17-3\\068>:@,,*T3;'*T S&[)*T D&L)	*T
 #v+&*T S&[)*T !v.*T T6\**T  f-*T #(f"5*T  %T#Y%67*T 
*T\ +1,,,2LL,2LL)/,2LL17-3\\068>:@,,.
3;'.
 S&[).
 D&L)	.

 #v+&.
 S&[).
 !v..
 T6\*.
  f-.
 #(f"5.
  %T#Y%67.
 
.
d +1,,,2LL,2LL)/,2LL17-3\\068>:@,,)83;')8 S&[))8 D&L)	)8
 #v+&)8 S&[))8 !v.)8 T6\*)8  f-)8 #(f"5)8  %T#Y%67)8 
)8Z +1,,,2LL,2LL)/,2LL17-3\\068>:@,,*T3;'*T S&[)*T D&L)	*T
 #v+&*T S&[)*T !v.*T T6\**T  f-*T #(f"5*T  %T#Y%67*T 
*T\  $#';}; 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8# 8r1   r   N)rs   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   r5   r   r   r}   r1   r0   <module>r6     sm     L L L 6 6 0 8 : 2 ' !YO' YOxxNo xNv	84 8&\
8< \
8r1   