
    gC:                         S r SSKJrJrJrJr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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 - Pricing
 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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)InstanceContext)InstanceResource)ListResource)Version)Pagec                      ^  \ 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S	 jrSS
 jrS\4S jrSrU =r$ )CountryInstance   a  
:ivar country: The name of the country.
:ivar iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
:ivar outbound_prefix_prices: The list of [OutboundPrefixPriceWithOrigin](https://www.twilio.com/docs/voice/pricing#outbound-prefix-price-with-origin) records.
:ivar inbound_call_prices: The list of [InboundCallPrice](https://www.twilio.com/docs/voice/pricing#inbound-call-price) records.
:ivar price_unit: The currency in which prices are measured, specified in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`).
:ivar url: The absolute URL of the resource.
versionpayloadiso_countryc                 r  > [         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        SU=(       d    U R                  0U l	        S U l
        g )Ncountryr   outbound_prefix_pricesinbound_call_prices
price_uniturl)super__init__getr   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       l/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/pricing/v2/voice/country.pyr   CountryInstance.__init__"   s     	!&-kk)&<*1++m*D;B;;$<
# 9@!9
  *1\)B")++e"4 ;:$*:*:
 37    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: CountryContext for this CountryInstance
r   r   )r    CountryContext_versionr   r!   s    r#   _proxyCountryInstance._proxy:   s9     == * NN=9DM }}r%   c                 6    U R                   R                  5       $ )C
Fetch the CountryInstance


:returns: The fetched CountryInstance
)r,   fetchr+   s    r#   r0   CountryInstance.fetchI   s     {{  ""r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)]
Asynchronous coroutine to fetch the CountryInstance


:returns: The fetched CountryInstance
N)r,   fetch_asyncr+   s    r#   r4   CountryInstance.fetch_asyncR   s       [[,,....s   '%'c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r#   	<genexpr>+CountryInstance.__repr__.<locals>.<genexpr>a         S<RDA7>>!//<R    "z&<Twilio.Pricing.V2.CountryInstance {}>joinr   itemsr<   r!   contexts     r#   __repr__CountryInstance.__repr__[   s6     ((SDNN<P<P<RSS7>>wGGr%   )r    r   r   r   r   r   r   r   )N)r&   r)   )r&   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr,   r0   r4   rJ   __static_attributes____classcell__r"   s   @r#   r   r      sq     &*	77 c3h7 c]	7 70  #/H# H Hr%   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	rU =r$ )
r)   e   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 CountryContext

:param version: Version that contains the resource
:param iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch.
r   z/Voice/Countries/{iso_country}N )r   r   r   r<   _uri)r!   r   r   r"   s      r#   r   CountryContext.__init__g   s=     	! ;
 5;;MdnnM	r%   r&   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$ )r/   application/jsonAcceptGETmethoduriheadersr   r(   )r
   ofr*   r0   rZ   r   r   r!   rc   r   s      r#   r0   CountryContext.fetchv   s]     ))B-.--%%U		7%SMM}5
 	
r%   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)r3   r]   r^   r_   r`   Nr   r(   )r
   rd   r*   r4   rZ   r   r   re   s      r#   r4   CountryContext.fetch_async   sq      ))B-.11dii 2 
 
 MM}5
 	
	
s   AA/A-'A/c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r7   r8   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr:   r;   r=   s      r#   rA   *CountryContext.__repr__.<locals>.<genexpr>   rC   rD   z%<Twilio.Pricing.V2.CountryContext {}>rE   rH   s     r#   rJ   CountryContext.__repr__   s6     ((SDNN<P<P<RSS6==gFFr%   )r   rZ   )rL   rM   rN   rO   r   rQ   r   r   r0   r4   rJ   rS   rT   rU   s   @r#   r)   r)   e   sE    N Nc N
 
(
? 
,G# G Gr%   r)   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)CountryPage   r   r&   c                 .    [        U R                  U5      $ )zU
Build an instance of CountryInstance

:param payload: Payload response from the API
)r   r*   )r!   r   s     r#   get_instanceCountryPage.get_instance   s     t}}g66r%   c                     g)r7   z<Twilio.Pricing.V2.CountryPage>rY   r+   s    r#   rJ   CountryPage.__repr__        1r%   rY   N)rL   rM   rN   rO   r   rQ   r   r   rq   rJ   rS   rY   r%   r#   rn   rn      s)    7DcN 7 71# 1r%   rn   c            	       B  ^  \ rS rSrS\4U 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$ )CountryList   r   c                 2   > [         TU ]  U5        SU l        g)zQ
Initialize the CountryList

:param version: Version that contains the resource

z/Voice/CountriesN)r   r   rZ   )r!   r   r"   s     r#   r   CountryList.__init__   s     	!&	r%   limit	page_sizer&   c                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
Streams CountryInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r|   r|   r{   )r*   read_limitspagestreamr!   r{   r|   limitsr   s        r#   r   CountryList.stream   sF    ( **5<yy6+#6y7}}##D/::r%   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
Asynchronously streams CountryInstance records from the API as a generator stream.
This operation lazily loads records as efficiently as possible until the limit
is reached.
The results are returned as a generator, so this operation is memory efficient.

:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r|   r~   Nr{   )r*   r   
page_asyncstream_asyncr   s        r#   r   CountryList.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 CountryInstance 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   CountryList.list   s(    & KK#  
 	
r%   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists CountryInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   N)r   )r!   r{   r|   records       r#   
list_asyncCountryList.list_async  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )a;  
Retrieve a single page of CountryInstance 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 CountryInstance
	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedr]   r^   r_   ra   rb   paramsrc   )r
   rd   r*   r   rZ   rn   r!   r   r   r|   datarc   responses          r#   r   CountryList.page1  sw      yy'#%
 ))^-PQR.==%%dii & 
 4==(33r%   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)	aJ  
Asynchronously retrieve a single page of CountryInstance 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 CountryInstance
r   r   r   r]   r^   r_   r   N)r
   rd   r*   r   rZ   rn   r   s          r#   r   CountryList.page_asyncR  s       yy'#%
 ))^-PQR.11dii 2 
 
 4==(33
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 CountryInstance records from the API.
Request is executed immediately

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

:returns: Page of CountryInstance
r_   )r*   domaintwiliorequestrn   r!   r   r   s      r#   get_pageCountryList.get_pages  s7     ==''..66ujI4==(33r%   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 CountryInstance records from the API.
Request is executed immediately

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

:returns: Page of CountryInstance
r_   N)r*   r   r   request_asyncrn   r   s      r#   get_page_asyncCountryList.get_page_async  sC      --44BB5*UU4==(33 Vs   4AAAr   c                 *    [        U R                  US9$ z
Constructs a CountryContext

:param iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch.
r(   r)   r*   r!   r   s     r#   r   CountryList.get       dmmEEr%   c                 *    [        U R                  US9$ r   r   r   s     r#   __call__CountryList.__call__  r   r%   c                     g)r7   z<Twilio.Pricing.V2.CountryList>rY   r+   s    r#   rJ   CountryList.__repr__  ru   r%   )rZ   )NN) rL   rM   rN   rO   r   r   r   intr   r   r   r	   r   r   r   r   r
   unsetr   rQ   objectrn   r   r   r   r   r)   r   r   rJ   rS   rT   rU   s   @r#   rw   rw      s
   	' 	'  $#';}; C=; 
/	"	;6  $#'A}A C=A 
	'	A6  $#'
}
 C=
 
o		
8  $#'
}
 C=
 
o		
: *0*0,,(.	4#v+&4 3;'4 f%	4
 
4F *0*0,,(.	4#v+&4 3;'4 f%	4
 
4B
43 
4; 
4
4s 
4{ 
4Fs F~ FFC FN F1# 1 1r%   rw   N)rP   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r)   rn   rw   rY   r%   r#   <module>r      se    M L L  8 : 2 ' !JH& JHZBG_ BGJ1$ 1&d1, d1r%   