twilio.rest.serverless.v1.service.function.function_version package

Submodules

twilio.rest.serverless.v1.service.function.function_version.function_version_content module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/serverless/v1/service/function/function_version/function_version_content.py:docstring of twilio.rest.serverless.v1.service.function.function_version.function_version_content, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentContext(version, service_sid, function_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

fetch()[source]

Fetch the FunctionVersionContentInstance

Returns:The fetched FunctionVersionContentInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentInstance
class twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentInstance(version, payload, service_sid, function_sid, sid)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

account_sid
Returns:The SID of the Account that created the Function Version resource
Return type:unicode
content
Returns:The content of the Function Version resource
Return type:unicode
fetch()[source]

Fetch the FunctionVersionContentInstance

Returns:The fetched FunctionVersionContentInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentInstance
function_sid
Returns:The SID of the Function that is the parent of the Function Version
Return type:unicode
service_sid
Returns:The SID of the Service that the Function Version resource is associated with
Return type:unicode
sid
Returns:The unique string that identifies the Function Version resource
Return type:unicode
url
Returns:The url
Return type:unicode
class twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentList(version, service_sid, function_sid, sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

get()[source]

Constructs a FunctionVersionContentContext

Returns:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentContext
Return type:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentContext
class twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

get_instance(payload)[source]

Build an instance of FunctionVersionContentInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentInstance

Module contents

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

(_)/(_)(_|/| |(/_ v1.0.0 / /

System Message: WARNING/2 (/twilio/repos/twilio-python/twilio/rest/serverless/v1/service/function/function_version/__init__.py:docstring of twilio.rest.serverless.v1.service.function.function_version, line 3); backlink

Inline substitution_reference start-string without end-string.
class twilio.rest.serverless.v1.service.function.function_version.FunctionVersionContext(version, service_sid, function_sid, sid)[source]

Bases: twilio.base.instance_context.InstanceContext

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

fetch()[source]

Fetch the FunctionVersionInstance

Returns:The fetched FunctionVersionInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance
function_version_content

Access the function_version_content

Returns:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentList
Return type:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentList
class twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance(version, payload, service_sid, function_sid, sid=None)[source]

Bases: twilio.base.instance_resource.InstanceResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

class Visibility[source]

Bases: object

PRIVATE = 'private'
PROTECTED = 'protected'
PUBLIC = 'public'
account_sid
Returns:The SID of the Account that created the Function Version resource
Return type:unicode
date_created
Returns:The ISO 8601 date and time in GMT when the Function Version resource was created
Return type:datetime
fetch()[source]

Fetch the FunctionVersionInstance

Returns:The fetched FunctionVersionInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance
function_sid
Returns:The SID of the Function resource that is the parent of the Function Version resource
Return type:unicode
function_version_content

Access the function_version_content

Returns:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentList
Return type:twilio.rest.serverless.v1.service.function.function_version.function_version_content.FunctionVersionContentList
Returns:The links
Return type:unicode
path
Returns:The URL-friendly string by which the Function Version resource can be referenced
Return type:unicode
service_sid
Returns:The SID of the Service that the Function Version resource is associated with
Return type:unicode
sid
Returns:The unique string that identifies the Function Version resource
Return type:unicode
url
Returns:The absolute URL of the Function Version resource
Return type:unicode
visibility
Returns:The access control that determines how the Function Version resource can be accessed
Return type:FunctionVersionInstance.Visibility
class twilio.rest.serverless.v1.service.function.function_version.FunctionVersionList(version, service_sid, function_sid)[source]

Bases: twilio.base.list_resource.ListResource

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

get(sid)[source]

Constructs a FunctionVersionContext

Parameters:sid – The SID that identifies the Function Version resource to fetch
Returns:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionContext
Return type:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionContext
get_page(target_url)[source]

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

Parameters:target_url (str) – API-generated URL for the requested results page
Returns:Page of FunctionVersionInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionPage
list(limit=None, page_size=None)[source]

Lists FunctionVersionInstance 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.serverless.v1.service.function.function_version.FunctionVersionInstance]

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

Retrieve a single page of FunctionVersionInstance 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 FunctionVersionInstance

Return type:

twilio.rest.serverless.v1.service.function.function_version.FunctionVersionPage

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

Streams FunctionVersionInstance 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.serverless.v1.service.function.function_version.FunctionVersionInstance]

class twilio.rest.serverless.v1.service.function.function_version.FunctionVersionPage(version, response, solution)[source]

Bases: twilio.base.page.Page

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

get_instance(payload)[source]

Build an instance of FunctionVersionInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance
Return type:twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance