
    d{ix                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ  G d de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Taskrouter
    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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec            
           e Zd ZdZ	 ddedeeef   dedee   f fdZ	e
dd       Zdefd	Zdefd
ZdefdZdefdZddZddZdefdZdefdZej.                  fdeeef   dd fdZej.                  fdeeef   dd fdZej.                  fdeeef   defdZej.                  fdeeef   defdZdefdZ xZS )ActivityInstancea  
    :ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Activity resource.
    :ivar available: Whether the Worker is eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` indicates the Activity is available. All other values indicate that it is not. The value cannot be changed after the Activity is created.
    :ivar date_created: The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar date_updated: The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    :ivar friendly_name: The string that you assigned to describe the Activity resource.
    :ivar sid: The unique string that we created to identify the Activity resource.
    :ivar workspace_sid: The SID of the Workspace that contains the Activity.
    :ivar url: The absolute URL of the Activity resource.
    :ivar links:
    versionpayloadworkspace_sidsidc                 :   t         |   |       |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        ||xs | j                  d
| _        d | _        y )Naccount_sid	availabledate_createddate_updatedfriendly_namer   r   urllinksr   r   )super__init__getr   r   r   iso8601_datetimer   r   r   r   r   r    r!   	_solution_context)selfr   r   r   r   	__class__s        j/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/taskrouter/v1/workspace/activity.pyr$   zActivityInstance.__init__'   s     	!*1++m*D)0[)A0;0L0LKK'1
 1<0L0LKK'1
 -4KK,H")++e"4,3KK,H")++e"429++g2F
 +?$((
 48    returnc                     | j                   7t        | j                  | j                  d   | j                  d         | _         | j                   S )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: ActivityContext for this ActivityInstance
        r   r   r"   )r(   ActivityContext_versionr'   r)   s    r+   _proxyzActivityInstance._proxyD   sE     == +"nn_=NN5)DM
 }}r,   c                 6    | j                   j                         S zk
        Deletes the ActivityInstance


        :returns: True if delete succeeds, False otherwise
        )r2   deleter1   s    r+   r5   zActivityInstance.deleteT   s     {{!!##r,   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the ActivityInstance


        :returns: True if delete succeeds, False otherwise
        N)r2   delete_asyncr1   s    r+   r8   zActivityInstance.delete_async]   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the ActivityInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )r2   delete_with_http_infor1   s    r+   r;   z&ActivityInstance.delete_with_http_infof   s     {{0022r,   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the ActivityInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r2   delete_with_http_info_asyncr1   s    r+   r=   z,ActivityInstance.delete_with_http_info_asynco   s!      [[<<>>>>r9   c                 6    | j                   j                         S )]
        Fetch the ActivityInstance


        :returns: The fetched ActivityInstance
        )r2   fetchr1   s    r+   r@   zActivityInstance.fetchx   s     {{  ""r,   c                 R   K   | j                   j                          d{   S 7 w)w
        Asynchronous coroutine to fetch the ActivityInstance


        :returns: The fetched ActivityInstance
        N)r2   fetch_asyncr1   s    r+   rC   zActivityInstance.fetch_async   s!      [[,,....r9   c                 6    | j                   j                         S )z
        Fetch the ActivityInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r2   fetch_with_http_infor1   s    r+   rE   z%ActivityInstance.fetch_with_http_info   s     {{//11r,   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the ActivityInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r2   fetch_with_http_info_asyncr1   s    r+   rG   z+ActivityInstance.fetch_with_http_info_async   s!      [[;;====r9   r   c                 :    | j                   j                  |      S )  
        Update the ActivityInstance

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.

        :returns: The updated ActivityInstance
        r   )r2   updater)   r   s     r+   rK   zActivityInstance.update   s#     {{!!' " 
 	
r,   c                 V   K   | j                   j                  |       d{   S 7 w)  
        Asynchronous coroutine to update the ActivityInstance

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.

        :returns: The updated ActivityInstance
        rJ   N)r2   update_asyncrL   s     r+   rO   zActivityInstance.update_async   s1      [[--' . 
 
 	
 
    )')c                 :    | j                   j                  |      S )a  
        Update the ActivityInstance with HTTP info

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.

        :returns: ApiResponse with instance, status code, and headers
        rJ   )r2   update_with_http_inforL   s     r+   rR   z&ActivityInstance.update_with_http_info   s#     {{00' 1 
 	
r,   c                 V   K   | j                   j                  |       d{   S 7 w)a  
        Asynchronous coroutine to update the ActivityInstance with HTTP info

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.

        :returns: ApiResponse with instance, status code, and headers
        rJ   N)r2   update_with_http_info_asyncrL   s     r+   rT   z,ActivityInstance.update_with_http_info_async   s1      [[<<' = 
 
 	
 
rP   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r+   	<genexpr>z,ActivityInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Taskrouter.V1.ActivityInstance {}>joinr'   itemsr[   r)   contexts     r+   __repr__zActivityInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr,   )N)r-   r/   )r-   r   ) __name__
__module____qualname____doc__r   r   strr   r   r$   propertyr2   boolr5   r8   r   r;   r=   r@   rC   rE   rG   r   unsetr   objectrK   rO   rR   rT   rh   __classcell__r*   s   @r+   r   r      sT   
" "88 c3h8 	8
 c]8:  $ $0D 03{ 3?; ?#/2k 2>+ > 39,,
"3;/
	
 39,,
"3;/
	
 39,,
"3;/
	
 39,,
"3;/
	
L# Lr,   r   c                       e Zd Zdededef fdZdefdZdefdZ	de
fdZdefd	Zdefd
Zde
fdZdefdZdefdZde
fdZdefdZdefdZde
fdZej.                  fdeeef   defdZej.                  fdeeef   defdZej.                  fdeeef   de
fdZej.                  fdeeef   defdZej.                  fdeeef   defdZej.                  fdeeef   de
fdZdefdZ  xZ!S )r/   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a
  
        Initialize the ActivityContext

        :param version: Version that contains the resource
        :param workspace_sid: The SID of the Workspace with the Activity resources to update.
        :param sid: The SID of the Activity resource to update.
        r"   z,/Workspaces/{workspace_sid}/Activities/{sid}N r#   r$   r'   r[   _uri)r)   r   r   r   r*   s       r+   r$   zActivityContext.__init__   sG     	! +
 JBII 
nn
	r,   r-   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofr0   delete_with_response_inforx   r)   r~   s     r+   _deletezActivityContext._delete   s8     ))B-}}66G 7 
 	
r,   c                 .    | j                         \  }}}|S r4   )r   r)   success_s      r+   r5   zActivityContext.delete  s     Ar,   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the ActivityInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder~   )r   r   r)   r   r   r~   s       r+   r;   z%ActivityContext.delete_with_http_info  s%     )-%g['RRr,   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        rz   r{   N)r   r   r0   delete_with_response_info_asyncrx   r   s     r+   _delete_asynczActivityContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr7   )r   r   s      r+   r8   zActivityContext.delete_async#  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the ActivityInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r+   r=   z+ActivityContext.delete_with_http_info_async-  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr{   )r   r   r0   fetch_with_response_inforx   r   s     r+   _fetchzActivityContext._fetch7  sB     ))B-.}}55dii 6 
 	
r,   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )r?   r   r   r"   )r   r   r0   r'   r)   r   r   s      r+   r@   zActivityContext.fetchG  sD     AMM..9u%	
 	
r,   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the ActivityInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r   r"   r   )r   r   r0   r'   r   r)   r   r   r~   instances        r+   rE   z$ActivityContext.fetch_with_http_infoV  sS     )-%g#MM..9u%	
 k7SSr,   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r{   N)r   r   r0   fetch_with_response_info_asyncrx   r   s     r+   _fetch_asynczActivityContext._fetch_asyncf  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rB   Nr   r   r"   )r   r   r0   r'   r   s      r+   rC   zActivityContext.fetch_asyncv  sS      #//11AMM..9u%	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the ActivityInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r   r"   r   )r   r   r0   r'   r   r   s        r+   rG   z*ActivityContext.fetch_with_http_info_async  sc      /3.?.?.A(A%g#MM..9u%	
 k7SS )Bs   A"A A
A"r   c                     t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        FriendlyName!application/x-www-form-urlencodedContent-Typer   r   POSTr|   r}   r   r~   )r   r   r0   update_with_response_inforx   r)   r   r   r~   s       r+   _updatezActivityContext._update  sh     yy

 ))B-"E.}}66tyytW 7 
 	
r,   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         S )rI   rJ   r   r   r"   )r   r   r0   r'   r)   r   r   r   s       r+   rK   zActivityContext.update  sI     =AAMM..9u%	
 	
r,   c                     | j                  |      \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )a  
        Update the ActivityInstance and return response metadata

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.

        :returns: ApiResponse with instance, status code, and headers
        rJ   r   r   r"   r   )r   r   r0   r'   r   r)   r   r   r   r~   r   s         r+   rR   z%ActivityContext.update_with_http_info  sX     )-=(Q%g#MM..9u%	
 k7SSr,   c                    K   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r0   update_with_response_info_asyncrx   r   s       r+   _update_asynczActivityContext._update_async  sw      yy

 ))B-"E.]]BBtyytW C 
 
 	
 
s   A#A,%A*&A,c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)rN   rJ   Nr   r   r"   )r   r   r0   r'   r   s       r+   rO   zActivityContext.update_async  sY      #00}0MMAMM..9u%	
 	
 Ns   AA<Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)a  
        Asynchronous coroutine to update the ActivityInstance and return response metadata

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.

        :returns: ApiResponse with instance, status code, and headers
        rJ   Nr   r   r"   r   )r   r   r0   r'   r   r   s         r+   rT   z+ActivityContext.update_with_http_info_async  sq      /3.@.@' /A /
 )
%g $MM..9u%	
 k7SS)
s   A$A"A
A$c                     dj                  d | j                  j                         D              }dj                  |      S )rV   rW   c              3   F   K   | ]  \  }}d j                  ||        ywrY   rZ   r\   s      r+   r`   z+ActivityContext.__repr__.<locals>.<genexpr>  ra   rb   z)<Twilio.Taskrouter.V1.ActivityContext {}>rc   rf   s     r+   rh   zActivityContext.__repr__  s6     ((SDNN<P<P<RSS:AA'JJr,   )"ri   rj   rk   r   rm   r$   tupler   ro   r5   r   r;   r   r8   r=   r   r   r@   rE   r   rC   rG   r   rp   r   rq   r   rK   rR   r   rO   rT   rh   rr   rs   s   @r+   r/   r/      s   
 
 
# 
&
 
 S{ S
U 
D S; S
 
 
' 
Tk T 
E 
 
#3 
T+ T  ;A,, 
U3;%7 
5 
0 39,,
"3;/
	
& 39,,T"3;/T	T( 39,,
"3;/
	
4 39,,
"3;/
	
& 39,,T"3;/T	T*K# Kr,   r/   c                   2    e Zd Zdeeef   defdZdefdZy)ActivityPager   r-   c                 L    t        | j                  || j                  d         S )zn
        Build an instance of ActivityInstance

        :param payload: Payload response from the API
        r   r   )r   r0   r'   )r)   r   s     r+   get_instancezActivityPage.get_instance  s%      MM7$..2Q
 	
r,   c                      y)rV   z#<Twilio.Taskrouter.V1.ActivityPage>rv   r1   s    r+   rh   zActivityPage.__repr__'       5r,   N)	ri   rj   rk   r   rm   r   r   r   rh   rv   r,   r+   r   r     s*    
DcN 
7G 
5# 5r,   r   c                   H    e Zd Zdedef fdZej                  fdedee	e
f   defdZej                  fdedee	e
f   defdZej                  fdedee	e
f   defd	Zej                  fdedee	e
f   defd
Zej                  fdedee	e
f   defdZej                  fdedee	e
f   defdZej                  ej                  ddfdeee
f   deee
f   dee   dee   dee   f
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   dee   f
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   def
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   def
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   dee   f
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   dee   f
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   def
dZej                  ej                  ddfdeee
f   deee
f   dee   dee   def
dZ ej                  ej                  ej                  ej                  ej                  fdeee
f   deee
f   deee
f   deee
f   deee
f   de!fdZ"ej                  ej                  ej                  ej                  ej                  fdeee
f   deee
f   deee
f   deee
f   deee
f   de!fdZ#ej                  ej                  ej                  ej                  ej                  fdeee
f   deee
f   deee
f   deee
f   deee
f   defdZ$ej                  ej                  ej                  ej                  ej                  fdeee
f   deee
f   deee
f   deee
f   deee
f   defdZ%dede!fdZ&dede!fd Z'd!ede(fd"Z)d!ede(fd#Z*defd$Z+ xZ,S )%ActivityListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the ActivityList

        :param version: Version that contains the resource
        :param workspace_sid: The SID of the Workspace with the Activity resources to read.

        r   z&/Workspaces/{workspace_sid}/ActivitiesNrv   rw   )r)   r   r   r*   s      r+   r$   zActivityList.__init__2  sA     	! ]
 D<CCUdnnU	r,   r   r   r-   c                     t        j                  |t        j                  |      d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   	Availabler   r   r   r   r   r   )r   r   r   boolean_to_stringr0   create_with_response_inforx   r)   r   r   r   r~   s        r+   _createzActivityList._createB  s{     yy -&88C
 ))^-PQR"E.}}66tyytW 7 
 	
r,   c                 z    | j                  ||      \  }}}t        | j                  || j                  d         S )a  
        Create the ActivityInstance

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.
        :param available: Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created.

        :returns: The created ActivityInstance
        r   r   r   r   )r   r   r0   r'   r)   r   r   r   r   s        r+   createzActivityList.create\  s=     =IVAMM7$..2Q
 	
r,   c                     | j                  ||      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Create the ActivityInstance and return response metadata

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.
        :param available: Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created.

        :returns: ApiResponse with instance, status code, and headers
        r   r   r   r   )r   r   r0   r'   r   r)   r   r   r   r   r~   r   s          r+   create_with_http_infoz"ActivityList.create_with_http_infol  sT     )-'9 )5 )
%g $MM7$..2Q
 k7SSr,   c                   K   t        j                  |t        j                  |      d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   r   r   r   r0   create_with_response_info_asyncrx   r   s        r+   _create_asynczActivityList._create_async  s      yy -&88C
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A9B;B <Bc                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         S 7 -w)a  
        Asynchronously create the ActivityInstance

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.
        :param available: Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created.

        :returns: The created ActivityInstance
        r   Nr   r   )r   r   r0   r'   r   s        r+   create_asynczActivityList.create_async  sU      #00'9 1 
 
A  MM7$..2Q
 	

s   A	A.A	c                    K   | j                  ||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronously create the ActivityInstance and return response metadata

        :param friendly_name: A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`.
        :param available: Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   r   r   )r   r   r0   r'   r   r   s          r+   create_with_http_info_asyncz(ActivityList.create_with_http_info_async  se      /3.@.@'9 /A /
 )
%g $MM7$..2Q
 k7SS)
s   AA<ANlimit	page_sizec                     | j                   j                  ||      }| j                  |||d         }| j                   j                  ||d         S )a  
        Streams ActivityInstance 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 str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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   r   )r0   read_limitspagestreamr)   r   r   r   r   limitsr   s          r+   r   zActivityList.stream  sX    0 **5)<yy'[)  
 }}##D&/::r,   c                    K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams ActivityInstance 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 str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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   )r0   r   
page_asyncstream_asyncr   s          r+   r   zActivityList.stream_async  sf     0 **5)<__'[) % 
 
 }}))$w@@
s   7AA$Ac                     | j                   j                  ||      }| j                  |||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a$  
        Streams ActivityInstance and returns headers from first page


        :param str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r0   r   page_with_http_infor   r   r   r~   r)   r   r   r   r   r   page_response	generators           r+   stream_with_http_infoz"ActivityList.stream_with_http_info   sx    , **5)<00'[) 1 
 MM((););VG_M	=44m6K6KLLr,   c                   K   | j                   j                  ||      }| j                  |||d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a3  
        Asynchronously streams ActivityInstance and returns headers from first page


        :param str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r0   r   page_with_http_info_asyncr   r   r   r~   r   s           r+   stream_with_http_info_asyncz(ActivityList.stream_with_http_info_async   s     , **5)<"<<'[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   7BB ABc                 >    t        | j                  ||||            S )am  
        Lists ActivityInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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   r   r   )listr   )r)   r   r   r   r   s        r+   r   zActivityList.list@  s.    . KK+##	  
 	
r,   c                 ~   K   | j                  ||||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a|  
        Asynchronously lists ActivityInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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   r   r   records         r+   
list_asynczActivityList.list_async`  sZ     2 '+&7&7+##	 '8 ' !
 
 !
 
 	
 
s0   =0=842
48=48=c                 f    | j                  ||||      \  }}}t        |      }t        |||      S )a  
        Lists ActivityInstance and returns headers from first page


        :param str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )	r)   r   r   r   r   r   r   r~   re   s	            r+   list_with_http_infoz ActivityList.list_with_http_info  sG    , +/*D*D'	 +E +
'	; Y;PPr,   c                    K   | j                  ||||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }	}t        |	||      S w)a  
        Asynchronously lists ActivityInstance and returns headers from first page


        :param str friendly_name: The `friendly_name` of the Activity resources to read.
        :param str available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )
r)   r   r   r   r   r   r   r~   r   re   s
             r+   list_with_http_info_asyncz&ActivityList.list_with_http_info_async  sl     , 150P0P'	 1Q 1
 +
'	; -666&+
 7666;PPs4   A6A<:8
:<A:<A
page_tokenpage_numberc                    t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                        S )a  
        Retrieve a single page of ActivityInstance records from the API.
        Request is executed immediately

        :param friendly_name: The `friendly_name` of the Activity resources to read.
        :param available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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 ActivityInstance
        r   r   	PageTokenr   PageSizer   r   r   r   r   r|   r}   paramsr~   )r   r   r0   r   rx   r   r'   	r)   r   r   r   r   r   r   r~   responses	            r+   r   zActivityList.page  s    ( yy -&'#%
 ))^-PQR.==%%diig & 
 DMM8T^^DDr,   c                    K   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        Asynchronously retrieve a single page of ActivityInstance records from the API.
        Request is executed immediately

        :param friendly_name: The `friendly_name` of the Activity resources to read.
        :param available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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 ActivityInstance
        r   r   r   r   r   r   r   N)r   r   r0   r   rx   r   r'   r   s	            r+   r   zActivityList.page_async  s     ( yy -&'#%
 ))^-PQR.11diig 2 
 
 DMM8T^^DD
s   A$B&B'&Bc                 (   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}	}
t        | j                  || j                        }t        ||	|
      S )	a  
        Retrieve a single page with response metadata


        :param friendly_name: The `friendly_name` of the Activity resources to read.
        :param available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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: ApiResponse with ActivityPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   r   r0   page_with_response_inforx   r   r'   r   r)   r   r   r   r   r   r   r~   r   r   response_headersr   s               r+   r   z ActivityList.page_with_http_info  s    ( yy -&'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ DMM8T^^D+GWXXr,   c                 D  K   t        j                  |||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}	}
t        | j                  || j                        }t        ||	|
	      S 7 7w)
a  
        Asynchronously retrieve a single page with response metadata


        :param friendly_name: The `friendly_name` of the Activity resources to read.
        :param available: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        :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: ApiResponse with ActivityPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   r   r0   page_with_response_info_asyncrx   r   r'   r   r  s               r+   r   z&ActivityList.page_with_http_info_async5  s     ( yy -&'#%
 ))^-PQR. --==$))D' >   	0+/
 DMM8T^^D+GWXXs   A$B &B'8B 
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of ActivityInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ActivityInstance
        r   )r0   domaintwiliorequestr   r'   r)   r  r   s      r+   get_pagezActivityList.get_page_  s=     ==''..66ujIDMM8T^^DDr,   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a  
        Asynchronously retrieve a specific page of ActivityInstance records from the API.
        Request is executed immediately

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

        :returns: Page of ActivityInstance
        r   N)r0   r  r  request_asyncr   r'   r
  s      r+   get_page_asynczActivityList.get_page_asynck  sJ      --44BB5*UUDMM8T^^DD Vs   4AA&Ar   c                 L    t        | j                  | j                  d   |      S zo
        Constructs a ActivityContext

        :param sid: The SID of the Activity resource to update.
        r   r"   r/   r0   r'   r)   r   s     r+   r%   zActivityList.getw  %     MM)Hc
 	
r,   c                 L    t        | j                  | j                  d   |      S r  r  r  s     r+   __call__zActivityList.__call__  r  r,   c                      y)rV   z#<Twilio.Taskrouter.V1.ActivityList>rv   r1   s    r+   rh   zActivityList.__repr__  r   r,   )-ri   rj   rk   r   rm   r$   r   rp   r   ro   rq   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r/   r%   r  rh   rr   rs   s   @r+   r   r   0  so   V V V" DJ<<
 
-24<-@
	
6 DJ<<
 
-24<-@
	
" DJ<<T T-24<-@T	T( DJ<<
 
-24<-@
	
6 DJ<<
 
-24<-@
	
& DJ<<T T-24<-@T	T* -3LL(.##';S&[); f%; }	;
 C=; 
"	#;F -3LL(.##'AS&[)A f%A }	A
 C=A 
'	(AF -3LL(.##'MS&[)M f%M }	M
 C=M 
MD -3LL(.##'MS&[)M f%M }	M
 C=M 
MD -3LL(.##'
S&[)
 f%
 }	

 C=
 
	
D -3LL(.##'
S&[)
 f%
 }	

 C=
 
	
F -3LL(.##'QS&[)Q f%Q }	Q
 C=Q 
QB -3LL(.##'QS&[)Q f%Q }	Q
 C=Q 
QB -3LL(.)/*0,,(.%ES&[)%E f%%E #v+&	%E
 3;'%E f%%E 
%ER -3LL(.)/*0,,(.%ES&[)%E f%%E #v+&	%E
 3;'%E f%%E 
%ER -3LL(.)/*0,,(.&YS&[)&Y f%&Y #v+&	&Y
 3;'&Y f%&Y 
&YT -3LL(.)/*0,,(.(YS&[)(Y f%(Y #v+&	(Y
 3;'(Y f%(Y 
(YT
E3 
E< 
E
Es 
E| 
E
s 
 

C 
O 
5# 5r,   r   N)rl   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r/   r   r   rv   r,   r+   <module>r      sm     L L L 6 6 0 8 : 2 ' !AL' ALHzKo zKz	54 5*a	5< a	5r,   