
    gH                         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  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 - Intelligence
 This is the public Twilio REST API.

 NOTE: This class is auto generated by OpenAPI Generator.
 https://openapi-generator.tech
 Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                      ^  \ rS rSr " S S\5      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$ )OperatorInstance   c                   $    \ rS rSrSrSrSrSrSrg)OperatorInstance.Availability   internalbetapublicretired N)	__name__
__module____qualname____firstlineno__INTERNALBETAPUBLICRETIRED__static_attributes__r       l/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/intelligence/v2/operator.pyAvailabilityr      s    r&   r(   versionpayloadsidc                   > [         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        [        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 )Naccount_sidr+   friendly_namedescriptionauthoroperator_typer)   availabilityconfigdate_createddate_updatedurl)super__init__getr-   r+   r.   r/   r0   r1   r   integerr)   r2   r3   iso8601_datetimer4   r5   r6   	_solution_context)selfr)   r*   r+   	__class__s       r'   r8   OperatorInstance.__init__0   s+    	!*1++m*D")++e"4,3KK,H*1++m*D%,[[%:,3KK,H&1&9&9'++i:P&QGN{{H
 4;;;x3H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 48r&   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: OperatorContext for this OperatorInstance
r+   r+   )r=   OperatorContext_versionr<   r>   s    r'   _proxyOperatorInstance._proxyM   s9     == +NN5)DM }}r&   c                 6    U R                   R                  5       $ )E
Fetch the OperatorInstance


:returns: The fetched OperatorInstance
)rG   fetchrF   s    r'   rK   OperatorInstance.fetch\   s     {{  ""r&   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)_
Asynchronous coroutine to fetch the OperatorInstance


:returns: The fetched OperatorInstance
N)rG   fetch_asyncrF   s    r'   rO   OperatorInstance.fetch_asynce   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>,OperatorInstance.__repr__.<locals>.<genexpr>t         S<RDA7>>!//<R    "z,<Twilio.Intelligence.V2.OperatorInstance {}>joinr<   itemsrW   r>   contexts     r'   __repr__OperatorInstance.__repr__n   s6     ((SDNN<P<P<RSS=DDWMMr&   )r=   r<   r-   r0   r2   r3   r4   r5   r/   r.   r1   r+   r6   r)   )N)rA   rD   )rA   r   )r   r   r   r    objectr(   r   r   strr   r   r8   propertyrG   rK   rO   re   r%   __classcell__r?   s   @r'   r   r      s{    v   OS88)-c3h8>Fsm8 8:  #/N# N N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$ )
rD   x   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 OperatorContext

:param version: Version that contains the resource
:param sid: A 34 character string that uniquely identifies this Operator.
r+   z/Operators/{sid}Nr   )r7   r8   r<   rW   _uri)r>   r)   r+   r?   s      r'   r8   OperatorContext.__init__z   s=     	! 3
 '--??	r&   rA   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$ )rJ   application/jsonAcceptGETmethoduriheadersr+   rC   )r   ofrE   rK   ro   r   r<   r>   rx   r*   s      r'   rK   OperatorContext.fetch   s]     ))B-.--%%U		7%SMMu%
 	
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)rN   rr   rs   rt   ru   Nr+   rC   )r   ry   rE   rO   ro   r   r<   rz   s      r'   rO   OperatorContext.fetch_async   sq      ))B-.11dii 2 
 
  MMu%
 	
	
s   AA/A-'A/c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rR   rS   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frU   rV   rX   s      r'   r\   +OperatorContext.__repr__.<locals>.<genexpr>   r^   r_   z+<Twilio.Intelligence.V2.OperatorContext {}>r`   rc   s     r'   re   OperatorContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr&   )r<   ro   )r   r   r   r    r   rh   r8   r   rK   rO   re   r%   rj   rk   s   @r'   rD   rD   x   sG    @ @c @
' 
(
#3 
,M# M Mr&   rD   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)OperatorPage   r*   rA   c                 .    [        U R                  U5      $ )zV
Build an instance of OperatorInstance

:param payload: Payload response from the API
)r   rE   )r>   r*   s     r'   get_instanceOperatorPage.get_instance   s      w77r&   c                     g)rR   z%<Twilio.Intelligence.V2.OperatorPage>r   rF   s    r'   re   OperatorPage.__repr__        7r&   r   N)r   r   r   r    r   rh   r   r   r   re   r%   r   r&   r'   r   r      s*    8DcN 87G 87# 7r&   r   c                     ^  \ rS rSrS\4U 4S jjr\R                  \R                  SS4S\S\	4   S\\
\	4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  SS4S\S\	4   S\\
\	4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  SS4S\S\	4   S\\
\	4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  SS4S\S\	4   S\\
\	4   S\\   S	\\   S
\\   4
S jjr\R                  \R                  \R                  \R                  \R                  4S\S\	4   S\\
\	4   S\\
\	4   S\\\	4   S	\\\	4   S
\4S jjr\R                  \R                  \R                  \R                  \R                  4S\S\	4   S\\
\	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$ )OperatorList   r)   c                 2   > [         TU ]  U5        SU l        g)zR
Initialize the OperatorList

:param version: Version that contains the resource

z
/OperatorsN)r7   r8   ro   )r>   r)   r?   s     r'   r8   OperatorList.__init__   s     	! 	r&   Nr2   r   language_codelimit	page_sizerA   c                     U R                   R                  X45      nU R                  UUUS   S9nU R                   R                  XeS   5      $ )a  
Streams OperatorInstance 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 &quot;OperatorInstance.Availability&quot; availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Operators that support the provided language code.
: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   r2   r   r   r   )rE   read_limitspagestreamr>   r2   r   r   r   limitsr   s          r'   r   OperatorList.stream   sT    0 **5<yy%'[)  
 }}##D/::r&   c                    #    U R                   R                  X45      nU R                  UUUS   S9I Sh  vN nU R                   R                  XeS   5      $  N"7f)a
  
Asynchronously streams OperatorInstance 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 &quot;OperatorInstance.Availability&quot; availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Operators that support the provided language code.
: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   )rE   r   
page_asyncstream_asyncr   s          r'   r   OperatorList.stream_async   sa     0 **5<__%'[) % 
 
 }}))$w@@
s   3AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists OperatorInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param &quot;OperatorInstance.Availability&quot; availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Operators that support the provided language code.
: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
r2   r   r   r   )listr   )r>   r2   r   r   r   s        r'   r   OperatorList.list  s.    . KK)+#	  
 	
r&   c                 z   #    U R                  UU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 OperatorInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param &quot;OperatorInstance.Availability&quot; availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Operators that support the provided language code.
: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>   r2   r   r   r   records         r'   
list_asyncOperatorList.list_async?  sW     2 '+&7&7)+#	 '8 ' ! !
 
 !
 	
 
s0   ;.;620
26;26;
page_tokenpage_numberc                     [         R                  " UUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS9n[        U R                  U5      $ )a  
Retrieve a single page of OperatorInstance records from the API.
Request is executed immediately

:param availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param language_code: Returns Operators that support the provided language code.
: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 OperatorInstance
r(   LanguageCode	PageTokenr   PageSizeContent-Type!application/x-www-form-urlencodedrr   rs   rt   rv   rw   paramsrx   )r   ry   rE   r   ro   r   	r>   r2   r   r   r   r   datarx   responses	            r'   r   OperatorList.page`  s}    ( yy , -'#%
 ))^-PQR.==%%dii & 
 DMM844r&   c                   #    [         R                  " UUUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XgS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously retrieve a single page of OperatorInstance records from the API.
Request is executed immediately

:param availability: Returns Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param language_code: Returns Operators that support the provided language code.
: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 OperatorInstance
r   r   r   rr   rs   rt   r   N)r   ry   rE   r   ro   r   r   s	            r'   r   OperatorList.page_async  s     ( yy , -'#%
 ))^-PQR.11dii 2 
 
 DMM844
s   A"B$A?%B
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
Retrieve a specific page of OperatorInstance records from the API.
Request is executed immediately

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

:returns: Page of OperatorInstance
rt   )rE   domaintwiliorequestr   r>   r   r   s      r'   get_pageOperatorList.get_page  s7     ==''..66ujIDMM844r&   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 OperatorInstance records from the API.
Request is executed immediately

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

:returns: Page of OperatorInstance
rt   N)rE   r   r   request_asyncr   r   s      r'   get_page_asyncOperatorList.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$ zi
Constructs a OperatorContext

:param sid: A 34 character string that uniquely identifies this Operator.
rC   rD   rE   r>   r+   s     r'   r9   OperatorList.get       t}}#66r&   c                 *    [        U R                  US9$ r   r   r   s     r'   __call__OperatorList.__call__  r   r&   c                     g)rR   z%<Twilio.Intelligence.V2.OperatorList>r   rF   s    r'   re   OperatorList.__repr__  r   r&   )ro   ) r   r   r   r    r   r8   r   unsetr   rg   rh   r   intr	   r   r   r
   r   r   r   r   r   r   r   r   r   rD   r9   r   re   r%   rj   rk   s   @r'   r   r      s^   	! 	! HN||,2LL##';;VCD; S&[); }	;
 C=; 
"	#;F HN||,2LL##'A;VCDA S&[)A }	A
 C=A 
'	(AF HN||,2LL##'
;VCD
 S&[)
 }	

 C=
 
	
D HN||,2LL##'
;VCD
 S&[)
 }	

 C=
 
	
F HN||,2LL)/*0,,(.%5;VCD%5 S&[)%5 #v+&	%5
 3;'%5 f%%5 
%5R HN||,2LL)/*0,,(.%5;VCD%5 S&[)%5 #v+&	%5
 3;'%5 f%%5 
%5N
53 
5< 
5
5s 
5| 
57s 7 77C 7O 77# 7 7r&   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rD   r   r   r   r&   r'   <module>r      sg     L L L + 8 : 2 ' !\N' \N~BMo BMJ74 7&L7< L7r&   