
    gL                         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$ )PrebuiltOperatorInstance   c                   $    \ rS rSrSrSrSrSrSrg)%PrebuiltOperatorInstance.Availability   internalbetapublicretired N)	__name__
__module____qualname____firstlineno__INTERNALBETAPUBLICRETIRED__static_attributes__r       u/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/intelligence/v2/prebuilt_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   !PrebuiltOperatorInstance.__init__0   s+    	!*1++m*D")++e"4,3KK,H*1++m*D%,[[%:,3KK,H&1&9&9'++i:P&QKK' 	 4;;;x3H0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 <@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: PrebuiltOperatorContext for this PrebuiltOperatorInstance
r+   r+   )r=   PrebuiltOperatorContext_versionr<   r>   s    r'   _proxyPrebuiltOperatorInstance._proxyM   s9     == 3NN5)DM }}r&   c                 6    U R                   R                  5       $ )U
Fetch the PrebuiltOperatorInstance


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


:returns: The fetched PrebuiltOperatorInstance
N)rG   fetch_asyncrF   s    r'   rO   $PrebuiltOperatorInstance.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>4PrebuiltOperatorInstance.__repr__.<locals>.<genexpr>t         S<RDA7>>!//<R    "z4<Twilio.Intelligence.V2.PrebuiltOperatorInstance {}>joinr<   itemsrW   r>   contexts     r'   __repr__!PrebuiltOperatorInstance.__repr__n   s6     ((SDNN<P<P<RSSELLWUUr&   )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@@)-c3h@>Fsm@ @:  #/V# V V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 PrebuiltOperatorContext

:param version: Version that contains the resource
:param sid: A 34 character string that uniquely identifies this Pre-built Operator.
r+   z/Operators/PreBuilt/{sid}Nr   )r7   r8   r<   rW   _uri)r>   r)   r+   r?   s      r'   r8    PrebuiltOperatorContext.__init__z   s=     	! 3
 066HH	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   PrebuiltOperatorContext.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   #PrebuiltOperatorContext.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\   3PrebuiltOperatorContext.__repr__.<locals>.<genexpr>   r^   r_   z3<Twilio.Intelligence.V2.PrebuiltOperatorContext {}>r`   rc   s     r'   re    PrebuiltOperatorContext.__repr__   s6     ((SDNN<P<P<RSSDKKGTTr&   )r<   ro   )r   r   r   r    r   rh   r8   r   rK   rO   re   r%   rj   rk   s   @r'   rD   rD   x   sG    I Ic I
/ 
(
#; 
,U# U Ur&   rD   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)PrebuiltOperatorPage   r*   rA   c                 .    [        U R                  U5      $ )z^
Build an instance of PrebuiltOperatorInstance

:param payload: Payload response from the API
)r   rE   )r>   r*   s     r'   get_instance!PrebuiltOperatorPage.get_instance   s     (w??r&   c                     g)rR   z-<Twilio.Intelligence.V2.PrebuiltOperatorPage>r   rF   s    r'   re   PrebuiltOperatorPage.__repr__        ?r&   r   N)r   r   r   r    r   rh   r   r   r   re   r%   r   r&   r'   r   r      s-    @DcN @7O @?# ?r&   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$ )PrebuiltOperatorList   r)   c                 2   > [         TU ]  U5        SU l        g)zZ
Initialize the PrebuiltOperatorList

:param version: Version that contains the resource

z/Operators/PreBuiltN)r7   r8   ro   )r>   r)   r?   s     r'   r8   PrebuiltOperatorList.__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 PrebuiltOperatorInstance 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;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Pre-built 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   PrebuiltOperatorList.stream   sT    4 **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 PrebuiltOperatorInstance 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;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Pre-built 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   !PrebuiltOperatorList.stream_async   sa     4 **5<__%'[) % 
 
 }}))$w@@
s   3AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists PrebuiltOperatorInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param &quot;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Pre-built 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   PrebuiltOperatorList.list#  s.    2 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 PrebuiltOperatorInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param &quot;PrebuiltOperatorInstance.Availability&quot; availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Pre-built 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PrebuiltOperatorList.list_asyncE  sW     6 '+&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      $ )a0  
Retrieve a single page of PrebuiltOperatorInstance records from the API.
Request is executed immediately

:param availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param language_code: Returns Pre-built 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 PrebuiltOperatorInstance
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   PrebuiltOperatorList.pageh  s}    , yy , -'#%
 ))^-PQR.==%%dii & 
 $DMM8<<r&   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 PrebuiltOperatorInstance records from the API.
Request is executed immediately

:param availability: Returns Pre-built Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param language_code: Returns Pre-built 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 PrebuiltOperatorInstance
r   r   r   rr   rs   rt   r   N)r   ry   rE   r   ro   r   r   s	            r'   r   PrebuiltOperatorList.page_async  s     , yy , -'#%
 ))^-PQR.11dii 2 
 
 $DMM8<<
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 PrebuiltOperatorInstance records from the API.
Request is executed immediately

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

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

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

:returns: Page of PrebuiltOperatorInstance
rt   N)rE   r   r   request_asyncr   r   s      r'   get_page_async#PrebuiltOperatorList.get_page_async  sC      --44BB5*UU#DMM8<< Vs   4AAAr+   c                 *    [        U R                  US9$ z{
Constructs a PrebuiltOperatorContext

:param sid: A 34 character string that uniquely identifies this Pre-built Operator.
rC   rD   rE   r>   r+   s     r'   r9   PrebuiltOperatorList.get       't}}#>>r&   c                 *    [        U R                  US9$ r   r   r   s     r'   __call__PrebuiltOperatorList.__call__  r   r&   c                     g)rR   z-<Twilio.Intelligence.V2.PrebuiltOperatorList>r   rF   s    r'   re   PrebuiltOperatorList.__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      sb   	* 	* LL,2LL##'!;3V;
!;
 S&[)!; }!; C=!; 
*	+!;N LL,2LL##'!A3V;
!A
 S&[)!A }!A C=!A 
/	0!AN LL,2LL##' 
3V;
 

 S&[) 
 } 
 C= 
 
&	' 
L LL,2LL##'!
3V;
!

 S&[)!
 }!
 C=!
 
&	'!
N LL,2LL)/*0,,(.'=3V;
'=
 S&[)'= #v+&'= 3;''= f%'= 
'=Z LL,2LL)/*0,,(.'=3V;
'=
 S&[)'= #v+&'= 3;''= f%'= 
'=R
=3 
=+? 
=
=s 
=7K 
=?s ?6 ??C ?$; ??# ? ?r&   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 ' !\V/ \V~BUo BUJ?4 ?&X?< X?r&   