
    gHh                         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 - 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	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec            	       4  ^  \ 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\4S
 jrS\4S jrSS jrSS jr\R(                  4S\S\S\\\4   SS 4S jjr\R(                  4S\S\S\\\4   SS 4S jjrS\4S jrSrU =r$ )CustomOperatorInstance   c                   $    \ rS rSrSrSrSrSrSrg)#CustomOperatorInstance.Availability   internalbetapublicretired N)	__name__
__module____qualname____firstlineno__INTERNALBETAPUBLICRETIRED__static_attributes__r       s/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/intelligence/v2/custom_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/   r0   r1   r2   r   integerr*   r3   r4   iso8601_datetimer5   r6   r7   	_solution_context)selfr*   r+   r,   	__class__s       r(   r9   CustomOperatorInstance.__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: CustomOperatorContext for this CustomOperatorInstance
r,   r,   )r>   CustomOperatorContext_versionr=   r?   s    r(   _proxyCustomOperatorInstance._proxyM   s9     == 1NN5)DM }}r'   c                 6    U R                   R                  5       $ )Y
Deletes the CustomOperatorInstance


:returns: True if delete succeeds, False otherwise
)rH   deleterG   s    r(   rL   CustomOperatorInstance.delete\   s     {{!!##r'   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)u
Asynchronous coroutine that deletes the CustomOperatorInstance


:returns: True if delete succeeds, False otherwise
N)rH   delete_asyncrG   s    r(   rP   #CustomOperatorInstance.delete_asynce   s       [[--////   '%'c                 6    U R                   R                  5       $ )Q
Fetch the CustomOperatorInstance


:returns: The fetched CustomOperatorInstance
)rH   fetchrG   s    r(   rU   CustomOperatorInstance.fetchn   s     {{  ""r'   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)k
Asynchronous coroutine to fetch the CustomOperatorInstance


:returns: The fetched CustomOperatorInstance
N)rH   fetch_asyncrG   s    r(   rY   "CustomOperatorInstance.fetch_asyncw   s       [[,,....rR   r/   r4   if_matchc                 8    U R                   R                  UUUS9$ )1  
Update the CustomOperatorInstance

:param friendly_name: A human-readable name of this resource, up to 64 characters.
:param config: Operator configuration, following the schema defined by the Operator Type.
:param if_match: The If-Match HTTP request header

:returns: The updated CustomOperatorInstance
r/   r4   r[   )rH   updater?   r/   r4   r[   s       r(   r_   CustomOperatorInstance.update   s)     {{!!' " 
 	
r'   c                 T   #    U R                   R                  UUUS9I Sh  vN $  N7f)K  
Asynchronous coroutine to update the CustomOperatorInstance

:param friendly_name: A human-readable name of this resource, up to 64 characters.
:param config: Operator configuration, following the schema defined by the Operator Type.
:param if_match: The If-Match HTTP request header

:returns: The updated CustomOperatorInstance
r^   N)rH   update_asyncr`   s       r(   rd   #CustomOperatorInstance.update_async   s6      [[--' . 
 
 	
 
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>2CustomOperatorInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z2<Twilio.Intelligence.V2.CustomOperatorInstance {}>joinr=   itemsrl   r?   contexts     r(   __repr__CustomOperatorInstance.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr'   )r>   r=   r.   r1   r3   r4   r5   r6   r0   r/   r2   r,   r7   r*   )N)rB   rE   )rB   r   )r   r   r    r!   objectr)   r   r   strr   r   r9   propertyrH   boolrL   rP   rU   rY   r   unsetr   r_   rd   rz   r&   __classcell__r@   s   @r(   r   r      s   v   OS>>)-c3h>>Fsm> >:  $ $0D 0#/ (.||	

 
 V$	

 
"
2 (.||	

 
 V$	

 
"
*T# T T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\
4S	 jr\R                  4S
\S\S\\\4   S\
4S jjr\R                  4S
\S\S\\\4   S\
4S jjrS\4S jrSrU =r$ )rE      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 CustomOperatorContext

:param version: Version that contains the resource
:param sid: A 34 character string that uniquely identifies this Custom Operator.
r,   z/Operators/Custom/{sid}Nr   )r8   r9   r=   rl   _uri)r?   r*   r,   r@   s      r(   r9   CustomOperatorContext.__init__   s=     	! 3
 .44Ft~~F	r'   rB   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rK   DELETEmethoduriheaders)r   ofrF   rL   r   r?   r   s     r(   rL   CustomOperatorContext.delete   s1     ))B-}}##8G#TTr'   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rO   r   r   N)r   r   rF   rP   r   r   s     r(   rP   "CustomOperatorContext.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$ )rT   application/jsonAcceptGETr   r,   rD   )r   r   rF   rU   r   r   r=   r?   r   r+   s      r(   rU   CustomOperatorContext.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)rX   r   r   r   r   Nr,   rD   )r   r   rF   rY   r   r   r=   r   s      r(   rY   !CustomOperatorContext.fetch_async   sq      ))B-.11dii 2 
 
 &MMu%
 	
	
s   AA/A-'A/r/   r4   r[   c                    [         R                  " U[        R                  " U5      S.5      n[         R                  " 0 5      nU[         R                  L d   [        U[        5      (       a  U(       a  X5S'   SUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  X`R                  S	   S
9$ )r]   FriendlyNameConfigIf-Match!application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r,   rD   )r   r   r   r|   r   
isinstancer}   rF   r_   r   r   r=   r?   r/   r4   r[   r   r   r+   s          r(   r_   CustomOperatorContext.update	  s      yy -#**62
 ))B- $Hc)B)B8"*J"E.--&&tyyt ' 
 &dmmW..QVBWXXr'   c                   #    [         R                  " U[        R                  " U5      S.5      n[         R                  " 0 5      nU[         R                  L d   [        U[        5      (       a  U(       a  X5S'   SUS'   SUS'   U R                  R                  SU R                  XES9I S	h  vN n[        U R                  X`R                  S
   S9$  N%7f)rc   r   r   r   r   r   r   r   r   Nr,   rD   )r   r   r   r|   r   r   r}   rF   rd   r   r   r=   r   s          r(   rd   "CustomOperatorContext.update_async0  s       yy -#**62
 ))B- $Hc)B)B8"*J"E.22tyyt 3 
 
 &dmmW..QVBWXX	
s   B)C+C,&Cc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rg   rh   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frj   rk   rm   s      r(   rq   1CustomOperatorContext.__repr__.<locals>.<genexpr>]  rs   rt   z1<Twilio.Intelligence.V2.CustomOperatorContext {}>ru   rx   s     r(   rz   CustomOperatorContext.__repr__W  s6     ((SDNN<P<P<RSSBII'RRr'   )r=   r   )r   r   r    r!   r   r}   r9   r   rL   rP   r   rU   rY   r   r   r|   r   r_   rd   rz   r&   r   r   s   @r(   rE   rE      s    G Gc G
U 
U
D 

- 
(
#9 
4 (.||	%Y%Y %Y V$	%Y
 
 %YV (.||	%Y%Y %Y V$	%Y
 
 %YNS# S Sr'   rE   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)CustomOperatorPageia  r+   rB   c                 .    [        U R                  U5      $ )z\
Build an instance of CustomOperatorInstance

:param payload: Payload response from the API
)r   rF   )r?   r+   s     r(   get_instanceCustomOperatorPage.get_instancec  s     &dmmW==r'   c                     g)rg   z+<Twilio.Intelligence.V2.CustomOperatorPage>r   rG   s    r(   rz   CustomOperatorPage.__repr__k       =r'   r   N)r   r   r    r!   r   r}   r   r   r   rz   r&   r   r'   r(   r   r   a  s*    >DcN >7M >=# =r'   r   c                   &  ^  \ rS rSrS\4U 4S jjrS\S\S\S\4S jr	S\S\S\S\4S	 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!$ ) CustomOperatorListit  r*   c                 2   > [         TU ]  U5        SU l        g)zX
Initialize the CustomOperatorList

:param version: Version that contains the resource

z/Operators/CustomN)r8   r9   r   )r?   r*   r@   s     r(   r9   CustomOperatorList.__init__v  s     	!'	r'   r/   r2   r4   rB   c                    [         R                  " UU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )ao  
Create the CustomOperatorInstance

:param friendly_name: A human readable description of the new Operator, up to 64 characters.
:param operator_type: Operator Type for this Operator. References an existing Operator Type resource.
:param config: Operator configuration, following the schema defined by the Operator Type.

:returns: The created CustomOperatorInstance
r   OperatorTyper   r   r   r   r   r   r   )r   r   r   r|   rF   creater   r   r?   r/   r2   r4   r   r   r+   s          r(   r   CustomOperatorList.create  s     yy - -#**62
 ))^-PQR"E.--&&tyyt ' 
 &dmmW==r'   c                 4  #    [         R                  " UU[        R                  " U5      S.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	a~  
Asynchronously create the CustomOperatorInstance

:param friendly_name: A human readable description of the new Operator, up to 64 characters.
:param operator_type: Operator Type for this Operator. References an existing Operator Type resource.
:param config: Operator configuration, following the schema defined by the Operator Type.

:returns: The created CustomOperatorInstance
r   r   r   r   r   r   r   N)r   r   r   r|   rF   create_asyncr   r   r   s          r(   r   CustomOperatorList.create_async  s      yy - -#**62
 ))^-PQR"E.22tyyt 3 
 
 &dmmW==	
s   A9B;B<BNr3   r   language_codelimit	page_sizec                     U R                   R                  X45      nU R                  UUUS   S9nU R                   R                  XeS   5      $ )a  
Streams CustomOperatorInstance 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;CustomOperatorInstance.Availability&quot; availability: Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Custom 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   r3   r   r   r   )rF   read_limitspagestreamr?   r3   r   r   r   limitsr   s          r(   r   CustomOperatorList.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 CustomOperatorInstance 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;CustomOperatorInstance.Availability&quot; availability: Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Custom 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   )rF   r   
page_asyncstream_asyncr   s          r(   r   CustomOperatorList.stream_async  sa     4 **5<__%'[) % 
 
 }}))$w@@
s   3AA#Ac           	      8    [        U R                  UUUUS95      $ )a  
Lists CustomOperatorInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param &quot;CustomOperatorInstance.Availability&quot; availability: Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Custom 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
r3   r   r   r   )listr   )r?   r3   r   r   r   s        r(   r   CustomOperatorList.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 CustomOperatorInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param &quot;CustomOperatorInstance.Availability&quot; availability: Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param str language_code: Returns Custom 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?   r3   r   r   r   records         r(   
list_asyncCustomOperatorList.list_async)  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      $ )a&  
Retrieve a single page of CustomOperatorInstance records from the API.
Request is executed immediately

:param availability: Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param language_code: Returns Custom 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 CustomOperatorInstance
r)   LanguageCode	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rF   r   r   r   	r?   r3   r   r   r   r   r   r   responses	            r(   r   CustomOperatorList.pageL  s}    , yy , -'#%
 ))^-PQR.==%%dii & 
 "$--::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)	a5  
Asynchronously retrieve a single page of CustomOperatorInstance records from the API.
Request is executed immediately

:param availability: Returns Custom Operators with the provided availability type. Possible values: internal, beta, public, retired.
:param language_code: Returns Custom 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 CustomOperatorInstance
r   r   r   r   r   r   r   N)r   r   rF   r   r   r   r   s	            r(   r   CustomOperatorList.page_asyncu  s     , yy , -'#%
 ))^-PQR.11dii 2 
 
 "$--::
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 CustomOperatorInstance records from the API.
Request is executed immediately

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

:returns: Page of CustomOperatorInstance
r   )rF   domaintwiliorequestr   r?   r   r   s      r(   get_pageCustomOperatorList.get_page  s7     ==''..66ujI!$--::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 CustomOperatorInstance records from the API.
Request is executed immediately

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

:returns: Page of CustomOperatorInstance
r   N)rF   r   r   request_asyncr   r   s      r(   get_page_async!CustomOperatorList.get_page_async  sC      --44BB5*UU!$--:: Vs   4AAAr,   c                 *    [        U R                  US9$ zv
Constructs a CustomOperatorContext

:param sid: A 34 character string that uniquely identifies this Custom Operator.
rD   rE   rF   r?   r,   s     r(   r:   CustomOperatorList.get       %T]]<<r'   c                 *    [        U R                  US9$ r   r   r   s     r(   __call__CustomOperatorList.__call__  r   r'   c                     g)rg   z+<Twilio.Intelligence.V2.CustomOperatorList>r   rG   s    r(   rz   CustomOperatorList.__repr__  r   r'   )r   )"r   r   r    r!   r   r9   r}   r|   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   rE   r:   r   rz   r&   r   r   s   @r(   r   r   t  s   	( 	(> >14>>D>	>@> >14>>D>	>H LL,2LL##'!;169
!;
 S&[)!; }!; C=!; 
(	)!;N LL,2LL##'!A169
!A
 S&[)!A }!A C=!A 
-	.!AN LL,2LL##' 
169
 

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

 S&[)!
 }!
 C=!
 
$	%!
N LL,2LL)/*0,,(.';169
';
 S&[)'; #v+&'; 3;''; f%'; 
';Z LL,2LL)/*0,,(.';169
';
 S&[)'; #v+&'; 3;''; f%'; 
';R
;3 
;+= 
;
;s 
;7I 
;=s =4 ==C =$9 ==# = =r'   r   N)__doc__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   rE   r   r   r   r'   r(   <module>r     sj     L L L 6 6 8 : 2 ' !XT- XTvjSO jSZ= =&X= X=r'   