
    gZ                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - 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)InstanceContext)InstanceResource)ListResource)Version)Pagec                   X  ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       rS\4S	 jrS\4S
 jrSS jrSS jr\R&                  \R&                  4S\\\4   S\\\4   SS 4S jjr\R&                  \R&                  4S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )RatePlanInstance   a   
: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                 J  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        [        R                   " UR                  S5      5      U l        [        R                   " UR                  S5      5      U l        UR                  S5      U l        SU=(       d    U R                  0U l        S U l        g )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       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/preview/wireless/rate_plan.pyr(   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                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: RatePlanContext for this RatePlanInstance
r   r   )r-   RatePlanContext_versionr,   r.   s    r0   _proxyRatePlanInstance._proxyL   s9     == +NN5)DM }}r2   c                 6    U R                   R                  5       $ )S
Deletes the RatePlanInstance


:returns: True if delete succeeds, False otherwise
)r9   deleter8   s    r0   r=   RatePlanInstance.delete[   s     {{!!##r2   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)o
Asynchronous coroutine that deletes the RatePlanInstance


:returns: True if delete succeeds, False otherwise
N)r9   delete_asyncr8   s    r0   rA   RatePlanInstance.delete_asyncd   s       [[--////   '%'c                 6    U R                   R                  5       $ )E
Fetch the RatePlanInstance


:returns: The fetched RatePlanInstance
)r9   fetchr8   s    r0   rF   RatePlanInstance.fetchm   s     {{  ""r2   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)_
Asynchronous coroutine to fetch the RatePlanInstance


:returns: The fetched RatePlanInstance
N)r9   fetch_asyncr8   s    r0   rJ   RatePlanInstance.fetch_asyncv   s       [[,,....rC   r   r   c                 6    U R                   R                  UUS9$ )p
Update the RatePlanInstance

:param unique_name:
:param friendly_name:

:returns: The updated RatePlanInstance
r   r   )r9   updater.   r   r   s      r0   rO   RatePlanInstance.update   s&     {{!!#' " 
 	
r2   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)
Asynchronous coroutine to update the RatePlanInstance

:param unique_name:
:param friendly_name:

:returns: The updated RatePlanInstance
rN   N)r9   update_asyncrP   s      r0   rT   RatePlanInstance.update_async   s3      [[--#' . 
 
 	
 
rC   c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r0   	<genexpr>,RatePlanInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z-<Twilio.Preview.Wireless.RatePlanInstance {}>joinr,   itemsr\   r.   contexts     r0   __repr__RatePlanInstance.__repr__   s6     ((SDNN<P<P<RSS>EEgNNr2   )r-   r,   r   r   r   r   r$   r%   r   r#   r    r"   r   r   r&   r!   N)r3   r6   )r3   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r(   propertyr9   boolr=   rA   rF   rJ   r   unsetr   objectrO   rT   rj   __static_attributes____classcell__r/   s   @r0   r   r      s   $ OS88)-c3h8>Fsm8 8B  $ $0D 0#/ +1,,,2LL
3;'
 S&[)
 
	
( +1,,,2LL
3;'
 S&[)
 
	
$O# O Or2   r   c                   .  ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\
4S jrS\
4S	 jr\R                  \R                  4S
\\\4   S\\\4   S\
4S jjr\R                  \R                  4S
\\\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )r6      r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z`
Initialize the RatePlanContext

:param version: Version that contains the resource
:param sid:
r   z/RatePlans/{sid}N )r'   r(   r,   r\   _uri)r.   r   r   r/   s      r0   r(   RatePlanContext.__init__   s=     	! 3
 '--??	r2   r3   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r<   DELETEmethoduriheaders)r   ofr7   r=   r~   r.   r   s     r0   r=   RatePlanContext.delete   s1     ))B-}}##8G#TTr2   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r@   r   r   N)r   r   r7   rA   r~   r   s     r0   rA   RatePlanContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )rE   application/jsonAcceptGETr   r   r5   )r   r   r7   rF   r~   r   r,   r.   r   r   s      r0   rF   RatePlanContext.fetch   s]     ))B-.--%%U		7%SMMu%
 	
r2   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)rI   r   r   r   r   Nr   r5   )r   r   r7   rJ   r~   r   r,   r   s      r0   rJ   RatePlanContext.fetch_async   sq      ))B-.11dii 2 
 
  MMu%
 	
	
s   AA/A-'A/r   r   c                     [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  XPR                  S   S	9$ )
rM   
UniqueNameFriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r   r5   )r   r   r7   rO   r~   r   r,   r.   r   r   r   r   r   s         r0   rO   RatePlanContext.update  s     yy) -
 ))B-"E.--&&tyyt ' 
  wNN5<QRRr2   c                   #    [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  XPR                  S	   S
9$  N%7f)rS   r   r   r   r   r   r   r   Nr   r5   )r   r   r7   rT   r~   r   r,   r   s         r0   rT   RatePlanContext.update_async"  s      yy) -
 ))B-"E.22tyyt 3 
 
  wNN5<QRR	
s   A"B$B
%&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rW   rX   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frZ   r[   r]   s      r0   ra   +RatePlanContext.__repr__.<locals>.<genexpr>H  rc   rd   z,<Twilio.Preview.Wireless.RatePlanContext {}>re   rh   s     r0   rj   RatePlanContext.__repr__B  s6     ((SDNN<P<P<RSS=DDWMMr2   )r,   r~   )rm   rn   ro   rp   r   rr   r(   rt   r=   rA   r   rF   rJ   r   ru   r   rv   rO   rT   rj   rw   rx   ry   s   @r0   r6   r6      s    @ @c @
U 
U
D 

' 
(
#3 
0 +1,,,2LLS3;'S S&[)S 
	SD +1,,,2LLS3;'S S&[)S 
	S@N# N Nr2   r6   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)RatePlanPageiL  r   r3   c                 .    [        U R                  U5      $ )zV
Build an instance of RatePlanInstance

:param payload: Payload response from the API
)r   r7   )r.   r   s     r0   get_instanceRatePlanPage.get_instanceN  s      w77r2   c                     g)rW   z&<Twilio.Preview.Wireless.RatePlanPage>r}   r8   s    r0   rj   RatePlanPage.__repr__V       8r2   r}   N)rm   rn   ro   rp   r   rr   r   r   r   rj   rw   r}   r2   r0   r   r   L  s*    8DcN 87G 88# 8r2   r   c                   B  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S	\\\
4   S
\\\
4   S\\\
4   S\\\
4   S\\\	   \
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
S\\	\
4   S\\	\
4   S\\\
4   S\\\
4   S\\	\
4   S	\\\
4   S
\\\
4   S\\\
4   S\\\
4   S\\\	   \
4   S\4S jjr  S#S\\   S\\   S\\   4S jjr  S#S\\   S\\   S\\   4S jjr  S#S\\   S\\   S\\   4S jjr  S#S\\   S\\   S\\   4S jjr\R                  \R                  \R                  4S\\	\
4   S\\\
4   S\\\
4   S\4S jjr\R                  \R                  \R                  4S\\	\
4   S\\\
4   S\\\
4   S\4S jjrS\	S\4S jrS\	S\4S jrS\	S\4S jrS\	S\4S  jrS\	4S! jr S"r!U =r"$ )$RatePlanListi_  r   c                 2   > [         TU ]  U5        SU l        g)zR
Initialize the RatePlanList

:param version: Version that contains the resource

z
/RatePlansN)r'   r(   r~   )r.   r   r/   s     r0   r(   RatePlanList.__init__a  s     	! 	r2   r   r   r   r   r   r    r!   commands_enabledr"   r#   r3   c                    [         R                  " UU[        R                  " U5      UU[        R                  " U5      [        R                  " U5      [        R                  " U5      [        R                  " U	5      [        R                  " U
S 5      S.
5      n[         R                  " SS05      nSUS'   SUS'   U R
                  R                  SU R                  XS9n[        U R
                  U5      $ )	a6  
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
c                     U $ rl   r}   es    r0   <lambda>%RatePlanList.create.<locals>.<lambda>      Qr2   
r   r   DataEnabled	DataLimitDataMeteringMessagingEnabledVoiceEnabledCommandsEnabledNationalRoamingEnabledInternationalRoamingr   r   r   r   r   r   )	r   r   r   boolean_to_stringmapr7   creater~   r   r.   r   r   r   r   r   r    r!   r   r"   r#   r   r   r   s                 r0   r   RatePlanList.createl  s    < yy) -(::<H' -$-$?$?@Q$R ) ; ;M J#,#>#>?O#P*3*E*E,+ )2);)
$ ))^-PQR"E.--&&tyyt ' 
  w77r2   c                   #    [         R                  " UU[        R                  " U5      UU[        R                  " U5      [        R                  " U5      [        R                  " U5      [        R                  " U	5      [        R                  " U
S 5      S.
5      n[         R                  " SS05      nSUS'   SUS'   U R
                  R                  SU R                  XS9I S	h  vN n[        U R
                  U5      $  N7f)
aE  
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
c                     U $ rl   r}   r   s    r0   r   +RatePlanList.create_async.<locals>.<lambda>  r   r2   r   r   r   r   r   r   r   N)	r   r   r   r   r   r7   create_asyncr~   r   r   s                 r0   r   RatePlanList.create_async  s     < yy) -(::<H' -$-$?$?@Q$R ) ; ;M J#,#>#>?O#P*3*E*E,+ )2);)
$ ))^-PQR"E.22tyyt 3 
 
  w77	
s   C&D(D)Dlimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )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   )r7   read_limitspagestreamr.   r   r   limitsr   s        r0   r   RatePlanList.stream  sF    ( **5<yy6+#6y7}}##D/::r2   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams 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   )r7   r   
page_asyncstream_asyncr   s        r0   r   RatePlanList.stream_async  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )a  
Lists 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   RatePlanList.list  s(    & KK#  
 	
r2   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists 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_asyncRatePlanList.list_async0  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a=  
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   r7   r   r~   r   r.   r   r   r   r   r   responses          r0   r   RatePlanList.pageK  sw      yy'#%
 ))^-PQR.==%%dii & 
 DMM844r2   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	aL  
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   r7   r   r~   r   r   s          r0   r   RatePlanList.page_asyncl  s       yy'#%
 ))^-PQR.11dii 2 
 
 DMM844
s   A A?"A=#A?
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )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   )r7   domaintwiliorequestr   r.   r   r   s      r0   get_pageRatePlanList.get_page  s7     ==''..66ujIDMM844r2   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
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)r7   r   r   request_asyncr   r   s      r0   get_page_asyncRatePlanList.get_page_async  sC      --44BB5*UUDMM844 Vs   4AAAr   c                 *    [        U R                  US9$ z+
Constructs a RatePlanContext

:param sid:
r5   r6   r7   r.   r   s     r0   r)   RatePlanList.get       t}}#66r2   c                 *    [        U R                  US9$ r   r   r   s     r0   __call__RatePlanList.__call__  r   r2   c                     g)rW   z&<Twilio.Preview.Wireless.RatePlanList>r}   r8   s    r0   rj   RatePlanList.__repr__  r   r2   )r~   )NN)#rm   rn   ro   rp   r   r(   r   ru   r   rr   rv   rt   intr   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   r6   r)   r  rj   rw   rx   ry   s   @r0   r   r   _  s:   	! 	! +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 
:8| +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 
:8|  $#';}; C=; 
"	#	;6  $#'A}A C=A 
'	(	A6  $#'
}
 C=
 
		
8  $#'
}
 C=
 
		
: *0*0,,(.	5#v+&5 3;'5 f%	5
 
5F *0*0,,(.	5#v+&5 3;'5 f%	5
 
5B
53 
5< 
5
5s 
5| 
57s 7 77C 7O 78# 8 8r2   r   N)rq   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r6   r   r   r}   r2   r0   <module>r     sj     L L L 6 6 8 : 2 ' !QO' QOh\No \N~84 8&\8< \8r2   