U
    ^g%i4                     @   s   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 G d
d deZG dd deZG dd deZG dd deZdS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Flex
    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                       s  e Zd ZG dd deZG dd deZdeeee	f e
e d fddZed	d
ddZed
ddZed
ddZd d
ddZd d
ddZejejejejejejejejejejejejejejejejejfeeef eeef edef eeef eeef edef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef d dddZejejejejejejejejejejejejejejejejejfeeef eeef edef eeef eeef edef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef d dddZed
ddZ  ZS )FlexFlowInstancec                   @   s$   e Zd ZdZdZdZdZdZdZdS )FlexFlowInstance.ChannelTypeZwebZsmsZfacebookZwhatsapplineZcustomN)	__name__
__module____qualname__ZWEBZSMSZFACEBOOKZWHATSAPPZLINEZCUSTOM r   r   `/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/flex_api/v1/flex_flow.pyChannelType   s   r   c                   @   s   e Zd ZdZdZdZdS ) FlexFlowInstance.IntegrationTypeZstudioZexternaltaskN)r   r   r   ZSTUDIOZEXTERNALZTASKr   r   r   r   IntegrationType#   s   r   N)versionpayloadsidc                    s   t  | |d| _t|d| _t|d| _|d| _|d| _	|d| _
|d| _|d| _|d	| _|d
| _|d| _|d| _|d| _|d| _d|p| ji| _d | _d S )Naccount_siddate_createddate_updatedr    friendly_namechat_service_sidchannel_typecontact_identityenabledintegration_typeintegration
long_livedjanitor_enabledurl)super__init__getr!   r
   Ziso8601_datetimer"   r#   r    r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   	_solution_context)selfr   r   r    	__class__r   r   r/   9   s4     zFlexFlowInstance.__init__FlexFlowContextreturnc                 C   s&   | j dkr t| j| jd 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: FlexFlowContext for this FlexFlowInstance
        Nr    r    )r2   r6   _versionr1   r3   r   r   r   _proxyZ   s    
zFlexFlowInstance._proxyc                 C   s
   | j  S )k
        Deletes the FlexFlowInstance


        :returns: True if delete succeeds, False otherwise
        )r<   deleter;   r   r   r   r>   i   s    zFlexFlowInstance.deletec                    s   | j  I dH S )
        Asynchronous coroutine that deletes the FlexFlowInstance


        :returns: True if delete succeeds, False otherwise
        N)r<   delete_asyncr;   r   r   r   r@   r   s    zFlexFlowInstance.delete_asyncc                 C   s
   | j  S )]
        Fetch the FlexFlowInstance


        :returns: The fetched FlexFlowInstance
        )r<   fetchr;   r   r   r   rB   {   s    zFlexFlowInstance.fetchc                    s   | j  I dH S )w
        Asynchronous coroutine to fetch the FlexFlowInstance


        :returns: The fetched FlexFlowInstance
        N)r<   fetch_asyncr;   r   r   r   rD      s    zFlexFlowInstance.fetch_asyncr   r   r$   r%   r&   r'   r(   r)   integration_flow_sidintegration_urlintegration_workspace_sidintegration_workflow_sidintegration_channelintegration_timeoutintegration_priorityintegration_creation_on_messager+   r,   integration_retry_countr8   c                 C   s.   | j j|||||||||	|
|||||||dS )	  
        Update the FlexFlowInstance

        :param friendly_name: A descriptive string that you create to describe the Flex Flow resource.
        :param chat_service_sid: The SID of the chat service.
        :param channel_type:
        :param contact_identity: The channel contact's Identity.
        :param enabled: Whether the new Flex Flow is enabled.
        :param integration_type:
        :param integration_flow_sid: The SID of the Studio Flow. Required when `integrationType` is `studio`.
        :param integration_url: The URL of the external webhook. Required when `integrationType` is `external`.
        :param integration_workspace_sid: The Workspace SID for a new Task. Required when `integrationType` is `task`.
        :param integration_workflow_sid: The Workflow SID for a new Task. Required when `integrationType` is `task`.
        :param integration_channel: The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the Task that will be created. Applicable and required when `integrationType` is `task`. The default value is `default`.
        :param integration_timeout: The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_priority: The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_creation_on_message: In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging.
        :param long_lived: When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`.
        :param janitor_enabled: When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`.
        :param integration_retry_count: The number of times to retry the Studio Flow or webhook in case of failure. Takes integer values from 0 to 3 with the default being 3. Optional when `integrationType` is `studio` or `external`, not applicable otherwise.

        :returns: The updated FlexFlowInstance
        r$   r%   r&   r'   r(   r)   rF   rG   rH   rI   rJ   rK   rL   rM   r+   r,   rN   )r<   updater3   r$   r%   r&   r'   r(   r)   rF   rG   rH   rI   rJ   rK   rL   rM   r+   r,   rN   r   r   r   rQ      s&    -zFlexFlowInstance.updatec                    s4   | j j|||||||||	|
|||||||dI dH S )	  
        Asynchronous coroutine to update the FlexFlowInstance

        :param friendly_name: A descriptive string that you create to describe the Flex Flow resource.
        :param chat_service_sid: The SID of the chat service.
        :param channel_type:
        :param contact_identity: The channel contact's Identity.
        :param enabled: Whether the new Flex Flow is enabled.
        :param integration_type:
        :param integration_flow_sid: The SID of the Studio Flow. Required when `integrationType` is `studio`.
        :param integration_url: The URL of the external webhook. Required when `integrationType` is `external`.
        :param integration_workspace_sid: The Workspace SID for a new Task. Required when `integrationType` is `task`.
        :param integration_workflow_sid: The Workflow SID for a new Task. Required when `integrationType` is `task`.
        :param integration_channel: The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the Task that will be created. Applicable and required when `integrationType` is `task`. The default value is `default`.
        :param integration_timeout: The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_priority: The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_creation_on_message: In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging.
        :param long_lived: When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`.
        :param janitor_enabled: When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`.
        :param integration_retry_count: The number of times to retry the Studio Flow or webhook in case of failure. Takes integer values from 0 to 3 with the default being 3. Optional when `integrationType` is `studio` or `external`, not applicable otherwise.

        :returns: The updated FlexFlowInstance
        rP   N)r<   update_asyncrR   r   r   r   rT      s&    -zFlexFlowInstance.update_asyncc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s   | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>  s     z,FlexFlowInstance.__repr__.<locals>.<genexpr>z'<Twilio.FlexApi.V1.FlexFlowInstance {}>joinr1   itemsrY   r3   contextr   r   r   __repr__  s    zFlexFlowInstance.__repr__)N)r   r   r   objectr   r   r   r   strr   r   r/   propertyr<   boolr>   r@   rB   rD   r   unsetr   intrQ   rT   rd   __classcell__r   r   r4   r   r      s     
 !			















C















Ar   c                       sf  e Zd Zeed fddZedddZedddZe	dd	d
Z
e	dddZejejejejejejejejejejejejejejejejejfeeef eeef edef eeef eeef edef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef e	dddZejejejejejejejejejejejejejejejejejfeeef eeef edef eeef eeef edef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef eeef e	dddZedddZ  ZS )r6   )r   r    c                    s*   t  | d|i| _djf | j| _dS )z
        Initialize the FlexFlowContext

        :param version: Version that contains the resource
        :param sid: The SID of the Flex Flow resource to update.
        r    z/FlexFlows/{sid}N)r.   r/   r1   rY   _uri)r3   r   r    r4   r   r   r/     s
     zFlexFlowContext.__init__r7   c                 C   s   t i }| jjd| j|dS )r=   DELETEmethoduriheaders)r   ofr:   r>   rl   r3   rq   r   r   r   r>   *  s    
zFlexFlowContext.deletec                    s$   t i }| jjd| j|dI dH S )r?   rm   rn   N)r   rr   r:   r@   rl   rs   r   r   r   r@   6  s    
  zFlexFlowContext.delete_asyncc                 C   s<   t i }d|d< | jjd| j|d}t| j|| jd dS )rA   application/jsonAcceptGETrn   r    r9   )r   rr   r:   rB   rl   r   r1   r3   rq   r   r   r   r   rB   D  s    
zFlexFlowContext.fetchc                    sB   t i }d|d< | jjd| j|dI dH }t| j|| jd dS )rC   rt   ru   rv   rn   Nr    r9   )r   rr   r:   rD   rl   r   r1   rw   r   r   r   rD   X  s    
  zFlexFlowContext.fetch_asyncr   r   rE   c                 C   s   t ||||t|||||	|
|||t|t|t||d}t i }d|d< d|d< | jjd| j||d}t| j|| jd d	S )
rO   FriendlyNameZChatServiceSidr   ZContactIdentityZEnabledr   zIntegration.FlowSidzIntegration.UrlzIntegration.WorkspaceSidzIntegration.WorkflowSidzIntegration.ChannelzIntegration.TimeoutzIntegration.PriorityzIntegration.CreationOnMessageZ	LongLivedZJanitorEnabledzIntegration.RetryCount!application/x-www-form-urlencodedContent-Typert   ru   POSTro   rp   datarq   r    r9   )	r   rr   r   boolean_to_stringr:   rQ   rl   r   r1   r3   r$   r%   r&   r'   r(   r)   rF   rG   rH   rI   rJ   rK   rL   rM   r+   r,   rN   r~   rq   r   r   r   r   rQ   n  s@    .
   zFlexFlowContext.updatec                    s   t ||||t|||||	|
|||t|t|t||d}t i }d|d< d|d< | jjd| j||dI dH }t| j|| jd	 d
S )rS   rx   rz   r{   rt   ru   r|   r}   Nr    r9   )	r   rr   r   r   r:   rT   rl   r   r1   r   r   r   r   rT     s@    .
   zFlexFlowContext.update_asyncc                 C   s$   d dd | j D }d|S )rU   rV   c                 s   s   | ]\}}d  ||V  qdS rW   rX   rZ   r   r   r   r^     s     z+FlexFlowContext.__repr__.<locals>.<genexpr>z&<Twilio.FlexApi.V1.FlexFlowContext {}>r_   rb   r   r   r   rd     s    zFlexFlowContext.__repr__)r   r   r   r   rf   r/   rh   r>   r@   r   rB   rD   r   ri   r   re   rj   rQ   rT   rd   rk   r   r   r4   r   r6     s   















S















Qr6   c                   @   s2   e Zd Zeeef edddZedddZdS )FlexFlowPage)r   r8   c                 C   s   t | j|S )zn
        Build an instance of FlexFlowInstance

        :param payload: Payload response from the API
        )r   r:   )r3   r   r   r   r   get_instance  s    zFlexFlowPage.get_instancer7   c                 C   s   dS )rU   z <Twilio.FlexApi.V1.FlexFlowPage>r   r;   r   r   r   rd   $  s    zFlexFlowPage.__repr__N)	r   r   r   r   rf   r   r   r   rd   r   r   r   r   r     s   r   c                       s|  e Zd Zed fddZejejejejejejejejejejejejejejfeedeee	f ee
e	f ede	f eee	f eee	f eee	f eee	f eee	f eee	f eee	f ee
e	f ee
e	f ee
e	f eee	f edddZejejejejejejejejejejejejejejfeedeee	f ee
e	f ede	f eee	f eee	f eee	f eee	f eee	f eee	f eee	f ee
e	f ee
e	f ee
e	f eee	f edd	d
Zejddfeee	f ee ee ee dddZejddfeee	f ee ee ee dddZejddfeee	f ee ee ee dddZejddfeee	f ee ee ee dddZejejejejfeee	f eee	f eee	f eee	f edddZejejejejfeee	f eee	f eee	f eee	f edddZeedddZeedddZeedd d!Zeedd"d#Zed$d%d&Z  Z S )'FlexFlowList)r   c                    s   t  | d| _dS )zj
        Initialize the FlexFlowList

        :param version: Version that contains the resource

        z
/FlexFlowsN)r.   r/   rl   )r3   r   r4   r   r   r/   /  s    zFlexFlowList.__init__r   r   rE   c                 C   s   t ||||t|||||	|
|||t|t|t||d}t ddi}d|d< d|d< | jjd| j||d}t| j|S )a	  
        Create the FlexFlowInstance

        :param friendly_name: A descriptive string that you create to describe the Flex Flow resource.
        :param chat_service_sid: The SID of the chat service.
        :param channel_type:
        :param contact_identity: The channel contact's Identity.
        :param enabled: Whether the new Flex Flow is enabled.
        :param integration_type:
        :param integration_flow_sid: The SID of the Studio Flow. Required when `integrationType` is `studio`.
        :param integration_url: The URL of the external webhook. Required when `integrationType` is `external`.
        :param integration_workspace_sid: The Workspace SID for a new Task. Required when `integrationType` is `task`.
        :param integration_workflow_sid: The Workflow SID for a new Task. Required when `integrationType` is `task`.
        :param integration_channel: The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the Task that will be created. Applicable and required when `integrationType` is `task`. The default value is `default`.
        :param integration_timeout: The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_priority: The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_creation_on_message: In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging.
        :param long_lived: When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`.
        :param janitor_enabled: When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`.
        :param integration_retry_count: The number of times to retry the Studio Flow or webhook in case of failure. Takes integer values from 0 to 3 with the default being 3. Optional when `integrationType` is `studio` or `external`, not applicable otherwise.

        :returns: The created FlexFlowInstance
        rx   r{   rz   rt   ru   r|   r}   )r   rr   r   r   r:   createrl   r   r   r   r   r   r   :  s@    .   zFlexFlowList.createc                    s   t ||||t|||||	|
|||t|t|t||d}t ddi}d|d< d|d< | jjd| j||dI dH }t| j|S )	a	  
        Asynchronously create the FlexFlowInstance

        :param friendly_name: A descriptive string that you create to describe the Flex Flow resource.
        :param chat_service_sid: The SID of the chat service.
        :param channel_type:
        :param contact_identity: The channel contact's Identity.
        :param enabled: Whether the new Flex Flow is enabled.
        :param integration_type:
        :param integration_flow_sid: The SID of the Studio Flow. Required when `integrationType` is `studio`.
        :param integration_url: The URL of the external webhook. Required when `integrationType` is `external`.
        :param integration_workspace_sid: The Workspace SID for a new Task. Required when `integrationType` is `task`.
        :param integration_workflow_sid: The Workflow SID for a new Task. Required when `integrationType` is `task`.
        :param integration_channel: The Task Channel SID (TCXXXX) or unique name (e.g., `sms`) to use for the Task that will be created. Applicable and required when `integrationType` is `task`. The default value is `default`.
        :param integration_timeout: The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_priority: The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise.
        :param integration_creation_on_message: In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging.
        :param long_lived: When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`.
        :param janitor_enabled: When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`.
        :param integration_retry_count: The number of times to retry the Studio Flow or webhook in case of failure. Takes integer values from 0 to 3 with the default being 3. Optional when `integrationType` is `studio` or `external`, not applicable otherwise.

        :returns: The created FlexFlowInstance
        rx   r{   rz   rt   ru   r|   r}   N)r   rr   r   r   r:   create_asyncrl   r   r   r   r   r   r     s@    .   zFlexFlowList.create_asyncN)r$   limit	page_sizer8   c                 C   s2   | j ||}| j||d d}| j ||d S )a  
        Streams FlexFlowInstance 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 Flex Flow resources to read.
        :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:   read_limitspagestreamr3   r$   r   r   Zlimitsr   r   r   r   r     s    zFlexFlowList.streamc                    s8   | j ||}| j||d dI dH }| j ||d S )a  
        Asynchronously streams FlexFlowInstance 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 Flex Flow resources to read.
        :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   )r:   r   
page_asyncstream_asyncr   r   r   r   r     s     zFlexFlowList.stream_asyncc                 C   s   t | j|||dS )aU  
        Lists FlexFlowInstance 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 Flex Flow resources to read.
        :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   )listr   r3   r$   r   r   r   r   r   r     s    zFlexFlowList.listc                    s&   dd | j |||dI dH 2 I dH S )ad  
        Asynchronously lists FlexFlowInstance 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 Flex Flow resources to read.
        :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
        c                    s   g | z3 d H W }|q6 S )Nr   )r[   recordr   r   r   
<listcomp>F  s   z+FlexFlowList.list_async.<locals>.<listcomp>r   N)r   r   r   r   r   
list_async1  s    
zFlexFlowList.list_async)r$   
page_tokenpage_numberr   r8   c                 C   sL   t ||||d}t ddi}d|d< | jjd| j||d}t| j|S )a  
        Retrieve a single page of FlexFlowInstance records from the API.
        Request is executed immediately

        :param friendly_name: The `friendly_name` of the Flex Flow resources to read.
        :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 FlexFlowInstance
        ry   Z	PageTokenr   ZPageSizer{   rz   rt   ru   rv   ro   rp   paramsrq   )r   rr   r:   r   rl   r   r3   r$   r   r   r   r~   rq   responser   r   r   r   O  s     	   zFlexFlowList.pagec                    sR   t ||||d}t ddi}d|d< | jjd| j||dI dH }t| j|S )	a  
        Asynchronously retrieve a single page of FlexFlowInstance records from the API.
        Request is executed immediately

        :param friendly_name: The `friendly_name` of the Flex Flow resources to read.
        :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 FlexFlowInstance
        r   r{   rz   rt   ru   rv   r   N)r   rr   r:   r   rl   r   r   r   r   r   r   s  s     	   zFlexFlowList.page_async)
target_urlr8   c                 C   s   | j jjd|}t| j |S )z
        Retrieve a specific page of FlexFlowInstance records from the API.
        Request is executed immediately

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

        :returns: Page of FlexFlowInstance
        rv   )r:   domaintwiliorequestr   r3   r   r   r   r   r   get_page  s    	zFlexFlowList.get_pagec                    s$   | j jjd|I dH }t| j |S )a  
        Asynchronously retrieve a specific page of FlexFlowInstance records from the API.
        Request is executed immediately

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

        :returns: Page of FlexFlowInstance
        rv   N)r:   r   r   Zrequest_asyncr   r   r   r   r   get_page_async  s    	zFlexFlowList.get_page_async)r    r8   c                 C   s   t | j|dS zp
        Constructs a FlexFlowContext

        :param sid: The SID of the Flex Flow resource to update.
        r9   r6   r:   r3   r    r   r   r   r0     s    zFlexFlowList.getc                 C   s   t | j|dS r   r   r   r   r   r   __call__  s    zFlexFlowList.__call__r7   c                 C   s   dS )rU   z <Twilio.FlexApi.V1.FlexFlowList>r   r;   r   r   r   rd     s    zFlexFlowList.__repr__)!r   r   r   r   r/   r   ri   rf   r   re   rh   rj   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r6   r0   r   rd   rk   r   r   r4   r   r   -  s  












V












S



 



&



$r   N)__doc__r   typingr   r   r   r   r   r   r	   Ztwilio.baser
   r   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   Ztwilio.base.pager   r   r6   r   r   r   r   r   r   <module>   s    $    