
    g[                         S 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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.
    )AnyDictOptional)values)InstanceContext)InstanceResource)ListResource)Versionc            
          ^  \ rS rSrSr  SS\S\\\4   S\	\   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\4S jrS\4S jrSrU =r$ )OperatorAttachmentInstance   z
:ivar service_sid: The unique SID identifier of the Service.
:ivar operator_sid: The unique SID identifier of the Operator.
:ivar url: The URL of this resource.
versionpayloadservice_sidoperator_sidc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        U=(       d    U R                  U=(       d    U R                  S.U l        S U l        g )Nr   r   urlr   r   )super__init__getr   r   r   	_solution_context)selfr   r   r   r   	__class__s        w/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/intelligence/v2/operator_attachment.pyr   #OperatorAttachmentInstance.__init__   su     	!*1++m*D+2;;~+F")++e"4 ':$*:*:(=D,=,=
 >B    returnc                     U R                   c4  [        U R                  U R                  S   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: OperatorAttachmentContext for this OperatorAttachmentInstance
r   r   r   )r   OperatorAttachmentContext_versionr   r   s    r   _proxy!OperatorAttachmentInstance._proxy1   sE     == 5 NN=9!^^N;DM
 }}r   c                 6    U R                   R                  5       $ )Z
Create the OperatorAttachmentInstance


:returns: The created OperatorAttachmentInstance
)r$   creater#   s    r   r(   !OperatorAttachmentInstance.createA        {{!!##r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)t
Asynchronous coroutine to create the OperatorAttachmentInstance


:returns: The created OperatorAttachmentInstance
N)r$   create_asyncr#   s    r   r-   'OperatorAttachmentInstance.create_asyncJ          [[--////   '%'c                 6    U R                   R                  5       $ )]
Deletes the OperatorAttachmentInstance


:returns: True if delete succeeds, False otherwise
)r$   deleter#   s    r   r3   !OperatorAttachmentInstance.deleteS   r*   r   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)y
Asynchronous coroutine that deletes the OperatorAttachmentInstance


:returns: True if delete succeeds, False otherwise
N)r$   delete_asyncr#   s    r   r7   'OperatorAttachmentInstance.delete_async\   r/   r0   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>6OperatorAttachmentInstance.__repr__.<locals>.<genexpr>k         S<RDA7>>!//<R    "z6<Twilio.Intelligence.V2.OperatorAttachmentInstance {}>joinr   itemsr?   r   contexts     r   __repr__#OperatorAttachmentInstance.__repr__e   s6     ((SDNN<P<P<RSSGNNwWWr   )r   r   r   r   r   )NN)r   r!   )r   r   )__name__
__module____qualname____firstlineno____doc__r
   r   strr   r   r   propertyr$   r(   r-   boolr3   r7   rM   __static_attributes____classcell__r   s   @r   r   r      s     &*&*BB c3hB c]	B
 smB B&  $0$ $0D 0X# X Xr   r   c                   ~   ^  \ rS rSrS\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S\4S jrSrU =r$ )r!   o   r   r   r   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)a  
Initialize the OperatorAttachmentContext

:param version: Version that contains the resource
:param service_sid: The unique SID identifier of the Service.
:param operator_sid: The unique SID identifier of the Operator. Allows both Custom and Pre-built Operators.
r   z0/Services/{service_sid}/Operators/{operator_sid}N )r   r   r   r?   _uri)r   r   r   r   r   s       r   r   "OperatorAttachmentContext.__init__q   sD     	! '(
 GMM 
nn
	r   r   c                     [         R                  " 0 5      nU R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )r'   POSTmethoduridatar   r   r   )r   ofr"   r(   r^   r   r   r   re   r   s      r   r(    OperatorAttachmentContext.create   s_     yy}--&&f$))$&O)MM}57	
 	
r   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)r,   ra   rb   Nr   r   r   )r   rf   r"   r-   r^   r   r   rg   s      r   r-   &OperatorAttachmentContext.create_async   ss      yy}22tyyt 3 
 
 *MM}57	
 	
	
s   ?A8A65A8c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r2   DELETErc   rd   headers)r   rf   r"   r3   r^   r   rn   s     r   r3    OperatorAttachmentContext.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)r6   rl   rm   N)r   rf   r"   r7   r^   ro   s     r   r7   &OperatorAttachmentContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r:   r;   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr=   r>   r@   s      r   rD   5OperatorAttachmentContext.__repr__.<locals>.<genexpr>   rF   rG   z5<Twilio.Intelligence.V2.OperatorAttachmentContext {}>rH   rK   s     r   rM   "OperatorAttachmentContext.__repr__   s6     ((SDNN<P<P<RSSFMMgVVr   )r   r^   )rO   rP   rQ   rR   r
   rT   r   r   r(   r-   rV   r3   r7   rM   rW   rX   rY   s   @r   r!   r!   o   se    
 
c 
 
&
2 
$
$> 
(
U 
U
D 
W# W Wr   r!   c                   j   ^  \ rS rSrS\4U 4S jjrS\S\S\4S jrS\S\S\4S jr	S\4S	 jr
S
rU =r$ )OperatorAttachmentList   r   c                 $   > [         TU ]  U5        g)z\
Initialize the OperatorAttachmentList

:param version: Version that contains the resource

N)r   r   )r   r   r   s     r   r   OperatorAttachmentList.__init__   s     	!r   r   r   r   c                 *    [        U R                  XS9$ z
Constructs a OperatorAttachmentContext

:param service_sid: The unique SID identifier of the Service.
:param operator_sid: The unique SID identifier of the Operator. Allows both Custom and Pre-built Operators.
r   r!   r"   r   r   r   s      r   r   OperatorAttachmentList.get   s     )MM{
 	
r   c                 *    [        U R                  XS9$ r}   r~   r   s      r   __call__OperatorAttachmentList.__call__   s     )MM{
 	
r   c                     g)r:   z/<Twilio.Intelligence.V2.OperatorAttachmentList>r]   r#   s    r   rM   OperatorAttachmentList.__repr__   s     Ar   r]   )rO   rP   rQ   rR   r
   r   rT   r!   r   r   rM   rW   rX   rY   s   @r   rx   rx      s[    " "	
s 	
# 	
:S 	


.1
	"
A# A Ar   rx   N)rS   typingr   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer	   twilio.base.versionr
   r   r!   rx   r]   r   r   <module>r      sR    ' &  8 : 2 'UX!1 UXp\W \W~)A\ )Ar   