twilio.rest.autopilot.v1.assistant.task package

Submodules

twilio.rest.autopilot.v1.assistant.task.field module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.autopilot.v1.assistant.task.field.FieldContext(version, assistant_sid, task_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

delete()[source]

Deletes the FieldInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the FieldInstance

Returns:The fetched FieldInstance
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldInstance
class twilio.rest.autopilot.v1.assistant.task.field.FieldInstance(version, payload, assistant_sid, task_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
assistant_sid
Returns:The SID of the Assistant that is the parent of the Task associated with the resource
Return type:unicode
date_created
Returns:The RFC 2822 date and time in GMT when the resource was created
Return type:datetime
date_updated
Returns:The RFC 2822 date and time in GMT when the resource was last updated
Return type:datetime
delete()[source]

Deletes the FieldInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the FieldInstance

Returns:The fetched FieldInstance
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldInstance
field_type
Returns:The Field Type of the field
Return type:unicode
sid
Returns:The unique string that identifies the resource
Return type:unicode
task_sid
Returns:The SID of the Task resource associated with this Field
Return type:unicode
unique_name
Returns:An application-defined string that uniquely identifies the resource
Return type:unicode
url
Returns:The absolute URL of the Field resource
Return type:unicode
class twilio.rest.autopilot.v1.assistant.task.field.FieldList(version, assistant_sid, task_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

create(field_type, unique_name)[source]

Create the FieldInstance

Parameters:
  • field_type (unicode) – The Field Type of this field
  • unique_name (unicode) – An application-defined string that uniquely identifies the new resource
Returns:

The created FieldInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.field.FieldInstance

get(sid)[source]

Constructs a FieldContext

Parameters:sid – The unique string that identifies the resource
Returns:twilio.rest.autopilot.v1.assistant.task.field.FieldContext
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldContext
get_page(target_url)[source]

Retrieve a specific page of FieldInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of FieldInstance
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldPage
list(limit=None, page_size=None)[source]

Lists FieldInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
  • page_size (int) – 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:

Generator that will yield up to limit results

Return type:

list[twilio.rest.autopilot.v1.assistant.task.field.FieldInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of FieldInstance records from the API. Request is executed immediately

Parameters:
  • page_token (str) – PageToken provided by the API
  • page_number (int) – Page Number, this value is simply for client state
  • page_size (int) – Number of records to return, defaults to 50
Returns:

Page of FieldInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.field.FieldPage

stream(limit=None, page_size=None)[source]

Streams FieldInstance 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.

Parameters:
  • limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
  • page_size (int) – 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

Return type:

list[twilio.rest.autopilot.v1.assistant.task.field.FieldInstance]

class twilio.rest.autopilot.v1.assistant.task.field.FieldPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of FieldInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.autopilot.v1.assistant.task.field.FieldInstance
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldInstance

twilio.rest.autopilot.v1.assistant.task.sample module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.autopilot.v1.assistant.task.sample.SampleContext(version, assistant_sid, task_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

delete()[source]

Deletes the SampleInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the SampleInstance

Returns:The fetched SampleInstance
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance
update(language=<object object>, tagged_text=<object object>, source_channel=<object object>)[source]

Update the SampleInstance

Parameters:
  • language (unicode) – The ISO language-country string that specifies the language used for the sample
  • tagged_text (unicode) – The text example of how end users might express the task
  • source_channel (unicode) – The communication channel from which the sample was captured
Returns:

The updated SampleInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance

class twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance(version, payload, assistant_sid, task_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
assistant_sid
Returns:The SID of the Assistant that is the parent of the Task associated with the resource
Return type:unicode
date_created
Returns:The RFC 2822 date and time in GMT when the resource was created
Return type:datetime
date_updated
Returns:The RFC 2822 date and time in GMT when the resource was last updated
Return type:datetime
delete()[source]

Deletes the SampleInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the SampleInstance

Returns:The fetched SampleInstance
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance
language
Returns:An ISO language-country string that specifies the language used for the sample
Return type:unicode
sid
Returns:The unique string that identifies the resource
Return type:unicode
source_channel
Returns:The communication channel from which the sample was captured
Return type:unicode
tagged_text
Returns:The text example of how end users might express the task
Return type:unicode
task_sid
Returns:The SID of the Task associated with the resource
Return type:unicode
update(language=<object object>, tagged_text=<object object>, source_channel=<object object>)[source]

Update the SampleInstance

Parameters:
  • language (unicode) – The ISO language-country string that specifies the language used for the sample
  • tagged_text (unicode) – The text example of how end users might express the task
  • source_channel (unicode) – The communication channel from which the sample was captured
Returns:

The updated SampleInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance

url
Returns:The absolute URL of the Sample resource
Return type:unicode
class twilio.rest.autopilot.v1.assistant.task.sample.SampleList(version, assistant_sid, task_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

create(language, tagged_text, source_channel=<object object>)[source]

Create the SampleInstance

Parameters:
  • language (unicode) – The ISO language-country string that specifies the language used for the new sample
  • tagged_text (unicode) – The text example of how end users might express the task
  • source_channel (unicode) – The communication channel from which the new sample was captured
Returns:

The created SampleInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance

get(sid)[source]

Constructs a SampleContext

Parameters:sid – The unique string that identifies the resource
Returns:twilio.rest.autopilot.v1.assistant.task.sample.SampleContext
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SampleContext
get_page(target_url)[source]

Retrieve a specific page of SampleInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of SampleInstance
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SamplePage
list(language=<object object>, limit=None, page_size=None)[source]

Lists SampleInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • language (unicode) – The ISO language-country string that specifies the language used for the sample
  • limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
  • page_size (int) – 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:

Generator that will yield up to limit results

Return type:

list[twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance]

page(language=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of SampleInstance records from the API. Request is executed immediately

Parameters:
  • language (unicode) – The ISO language-country string that specifies the language used for the sample
  • page_token (str) – PageToken provided by the API
  • page_number (int) – Page Number, this value is simply for client state
  • page_size (int) – Number of records to return, defaults to 50
Returns:

Page of SampleInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.sample.SamplePage

stream(language=<object object>, limit=None, page_size=None)[source]

Streams SampleInstance 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.

Parameters:
  • language (unicode) – The ISO language-country string that specifies the language used for the sample
  • limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
  • page_size (int) – 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

Return type:

list[twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance]

class twilio.rest.autopilot.v1.assistant.task.sample.SamplePage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of SampleInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SampleInstance

twilio.rest.autopilot.v1.assistant.task.task_actions module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsContext(version, assistant_sid, task_sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

fetch()[source]

Fetch the TaskActionsInstance

Returns:The fetched TaskActionsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance
update(actions=<object object>)[source]

Update the TaskActionsInstance

Parameters:actions (dict) – The JSON string that specifies the actions that instruct the Assistant on how to perform the task
Returns:The updated TaskActionsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance
class twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance(version, payload, assistant_sid, task_sid)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
assistant_sid
Returns:The SID of the Assistant that is the parent of the Task associated with the resource
Return type:unicode
data
Returns:The JSON string that specifies the actions that instruct the Assistant on how to perform the task
Return type:dict
fetch()[source]

Fetch the TaskActionsInstance

Returns:The fetched TaskActionsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance
task_sid
Returns:The SID of the Task associated with the resource
Return type:unicode
update(actions=<object object>)[source]

Update the TaskActionsInstance

Parameters:actions (dict) – The JSON string that specifies the actions that instruct the Assistant on how to perform the task
Returns:The updated TaskActionsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance
url
Returns:The absolute URL of the TaskActions resource
Return type:unicode
class twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsList(version, assistant_sid, task_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get()[source]

Constructs a TaskActionsContext

Returns:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsContext
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsContext
class twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of TaskActionsInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsInstance

twilio.rest.autopilot.v1.assistant.task.task_statistics module

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsContext(version, assistant_sid, task_sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

fetch()[source]

Fetch the TaskStatisticsInstance

Returns:The fetched TaskStatisticsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsInstance
class twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsInstance(version, payload, assistant_sid, task_sid)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
assistant_sid
Returns:The SID of the Assistant that is the parent of the Task associated with the resource
Return type:unicode
fetch()[source]

Fetch the TaskStatisticsInstance

Returns:The fetched TaskStatisticsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsInstance
fields_count
Returns:The total number of Fields associated with the Task
Return type:unicode
samples_count
Returns:The total number of Samples associated with the Task
Return type:unicode
task_sid
Returns:The SID of the Task for which the statistics were collected
Return type:unicode
url
Returns:The absolute URL of the TaskStatistics resource
Return type:unicode
class twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsList(version, assistant_sid, task_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get()[source]

Constructs a TaskStatisticsContext

Returns:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsContext
Return type:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsContext
class twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of TaskStatisticsInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsInstance
Return type:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsInstance

Module contents

This code was generated by / _ _ _| _ _

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.autopilot.v1.assistant.task.TaskContext(version, assistant_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

delete()[source]

Deletes the TaskInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the TaskInstance

Returns:The fetched TaskInstance
Return type:twilio.rest.autopilot.v1.assistant.task.TaskInstance
fields

Access the fields

Returns:twilio.rest.autopilot.v1.assistant.task.field.FieldList
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldList
samples

Access the samples

Returns:twilio.rest.autopilot.v1.assistant.task.sample.SampleList
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SampleList
statistics

Access the statistics

Returns:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsList
Return type:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsList
task_actions

Access the task_actions

Returns:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsList
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsList
update(friendly_name=<object object>, unique_name=<object object>, actions=<object object>, actions_url=<object object>)[source]

Update the TaskInstance

Parameters:
  • friendly_name (unicode) – A string to describe the resource
  • unique_name (unicode) – An application-defined string that uniquely identifies the resource
  • actions (dict) – The JSON string that specifies the actions that instruct the Assistant on how to perform the task
  • actions_url (unicode) – The URL from which the Assistant can fetch actions
Returns:

The updated TaskInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.TaskInstance

class twilio.rest.autopilot.v1.assistant.task.TaskInstance(version, payload, assistant_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

account_sid
Returns:The SID of the Account that created the resource
Return type:unicode
actions_url
Returns:The URL from which the Assistant can fetch actions
Return type:unicode
assistant_sid
Returns:The SID of the Assistant that is the parent of the resource
Return type:unicode
date_created
Returns:The RFC 2822 date and time in GMT when the resource was created
Return type:datetime
date_updated
Returns:The RFC 2822 date and time in GMT when the resource was last updated
Return type:datetime
delete()[source]

Deletes the TaskInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
fetch()[source]

Fetch the TaskInstance

Returns:The fetched TaskInstance
Return type:twilio.rest.autopilot.v1.assistant.task.TaskInstance
fields

Access the fields

Returns:twilio.rest.autopilot.v1.assistant.task.field.FieldList
Return type:twilio.rest.autopilot.v1.assistant.task.field.FieldList
friendly_name
Returns:The string that you assigned to describe the resource
Return type:unicode
Returns:A list of the URLs of related resources
Return type:unicode
samples

Access the samples

Returns:twilio.rest.autopilot.v1.assistant.task.sample.SampleList
Return type:twilio.rest.autopilot.v1.assistant.task.sample.SampleList
sid
Returns:The unique string that identifies the resource
Return type:unicode
statistics

Access the statistics

Returns:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsList
Return type:twilio.rest.autopilot.v1.assistant.task.task_statistics.TaskStatisticsList
task_actions

Access the task_actions

Returns:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsList
Return type:twilio.rest.autopilot.v1.assistant.task.task_actions.TaskActionsList
unique_name
Returns:An application-defined string that uniquely identifies the resource
Return type:unicode
update(friendly_name=<object object>, unique_name=<object object>, actions=<object object>, actions_url=<object object>)[source]

Update the TaskInstance

Parameters:
  • friendly_name (unicode) – A string to describe the resource
  • unique_name (unicode) – An application-defined string that uniquely identifies the resource
  • actions (dict) – The JSON string that specifies the actions that instruct the Assistant on how to perform the task
  • actions_url (unicode) – The URL from which the Assistant can fetch actions
Returns:

The updated TaskInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.TaskInstance

url
Returns:The absolute URL of the Task resource
Return type:unicode
class twilio.rest.autopilot.v1.assistant.task.TaskList(version, assistant_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

create(unique_name, friendly_name=<object object>, actions=<object object>, actions_url=<object object>)[source]

Create the TaskInstance

Parameters:
  • unique_name (unicode) – An application-defined string that uniquely identifies the resource
  • friendly_name (unicode) – descriptive string that you create to describe the new resource
  • actions (dict) – The JSON string that specifies the actions that instruct the Assistant on how to perform the task
  • actions_url (unicode) – The URL from which the Assistant can fetch actions
Returns:

The created TaskInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.TaskInstance

get(sid)[source]

Constructs a TaskContext

Parameters:sid – The unique string that identifies the resource to fetch
Returns:twilio.rest.autopilot.v1.assistant.task.TaskContext
Return type:twilio.rest.autopilot.v1.assistant.task.TaskContext
get_page(target_url)[source]

Retrieve a specific page of TaskInstance records from the API. Request is executed immediately

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of TaskInstance
Return type:twilio.rest.autopilot.v1.assistant.task.TaskPage
list(limit=None, page_size=None)[source]

Lists TaskInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.

Parameters:
  • limit (int) – Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit
  • page_size (int) – 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:

Generator that will yield up to limit results

Return type:

list[twilio.rest.autopilot.v1.assistant.task.TaskInstance]

page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]

Retrieve a single page of TaskInstance records from the API. Request is executed immediately

Parameters:
  • page_token (str) – PageToken provided by the API
  • page_number (int) – Page Number, this value is simply for client state
  • page_size (int) – Number of records to return, defaults to 50
Returns:

Page of TaskInstance

Return type:

twilio.rest.autopilot.v1.assistant.task.TaskPage

stream(limit=None, page_size=None)[source]

Streams TaskInstance 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.

Parameters:
  • limit (int) – Upper limit for the number of records to return. stream() guarantees to never return more than limit. Default is no limit
  • page_size (int) – 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

Return type:

list[twilio.rest.autopilot.v1.assistant.task.TaskInstance]

class twilio.rest.autopilot.v1.assistant.task.TaskPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.

get_instance(payload)[source]

Build an instance of TaskInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.autopilot.v1.assistant.task.TaskInstance
Return type:twilio.rest.autopilot.v1.assistant.task.TaskInstance