twilio.rest.serverless.v1.service.asset package

Submodules

twilio.rest.serverless.v1.service.asset.asset_version module

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

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

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

Inline substitution_reference start-string without end-string.
class twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionContext(version, service_sid, asset_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 AssetVersionInstance

Returns:The fetched AssetVersionInstance
Return type:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionInstance
class twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionInstance(version, payload, service_sid, asset_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 Asset Version resource
Return type:unicode
asset_sid
Returns:The SID of the Asset resource that is the parent of the Asset Version
Return type:unicode
date_created
Returns:The ISO 8601 date and time in GMT when the Asset Version resource was created
Return type:datetime
fetch()[source]

Fetch the AssetVersionInstance

Returns:The fetched AssetVersionInstance
Return type:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionInstance
path
Returns:The URL-friendly string by which the Asset Version can be referenced
Return type:unicode
service_sid
Returns:The SID of the Service that the Asset Version resource is associated with
Return type:unicode
sid
Returns:The unique string that identifies the Asset Version resource
Return type:unicode
url
Returns:The absolute URL of the Asset Version resource
Return type:unicode
visibility
Returns:The access control that determines how the Asset Version can be accessed
Return type:AssetVersionInstance.Visibility
class twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionList(version, service_sid, asset_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 AssetVersionContext

Parameters:sid – The SID that identifies the Asset Version resource to fetch
Returns:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionContext
Return type:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionContext
get_page(target_url)[source]

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

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

Lists AssetVersionInstance 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.asset.asset_version.AssetVersionInstance]

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

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

Return type:

twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionPage

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

Streams AssetVersionInstance 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.asset.asset_version.AssetVersionInstance]

class twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionPage(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 AssetVersionInstance

Parameters:payload (dict) – Payload response from the API
Returns:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionInstance
Return type:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionInstance

Module contents

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

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

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

Inline substitution_reference start-string without end-string.
class twilio.rest.serverless.v1.service.asset.AssetContext(version, service_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.

asset_versions

Access the asset_versions

Returns:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionList
Return type:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionList
delete()[source]

Deletes the AssetInstance

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

Fetch the AssetInstance

Returns:The fetched AssetInstance
Return type:twilio.rest.serverless.v1.service.asset.AssetInstance
update(friendly_name)[source]

Update the AssetInstance

Parameters:friendly_name (unicode) – A string to describe the Asset resource
Returns:The updated AssetInstance
Return type:twilio.rest.serverless.v1.service.asset.AssetInstance
class twilio.rest.serverless.v1.service.asset.AssetInstance(version, payload, service_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.

account_sid
Returns:The SID of the Account that created the Asset resource
Return type:unicode
asset_versions

Access the asset_versions

Returns:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionList
Return type:twilio.rest.serverless.v1.service.asset.asset_version.AssetVersionList
date_created
Returns:The ISO 8601 date and time in GMT when the Asset resource was created
Return type:datetime
date_updated
Returns:The ISO 8601 date and time in GMT when the Asset resource was last updated
Return type:datetime
delete()[source]

Deletes the AssetInstance

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

Fetch the AssetInstance

Returns:The fetched AssetInstance
Return type:twilio.rest.serverless.v1.service.asset.AssetInstance
friendly_name
Returns:The string that you assigned to describe the Asset resource
Return type:unicode
Returns:The URLs of the Asset resource’s nested resources
Return type:unicode
service_sid
Returns:The SID of the Service that the Asset resource is associated with
Return type:unicode
sid
Returns:The unique string that identifies the Asset resource
Return type:unicode
update(friendly_name)[source]

Update the AssetInstance

Parameters:friendly_name (unicode) – A string to describe the Asset resource
Returns:The updated AssetInstance
Return type:twilio.rest.serverless.v1.service.asset.AssetInstance
url
Returns:The absolute URL of the Asset resource
Return type:unicode
class twilio.rest.serverless.v1.service.asset.AssetList(version, service_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.

create(friendly_name)[source]

Create the AssetInstance

Parameters:friendly_name (unicode) – A string to describe the Asset resource
Returns:The created AssetInstance
Return type:twilio.rest.serverless.v1.service.asset.AssetInstance
get(sid)[source]

Constructs a AssetContext

Parameters:sid – The SID that identifies the Asset resource to fetch
Returns:twilio.rest.serverless.v1.service.asset.AssetContext
Return type:twilio.rest.serverless.v1.service.asset.AssetContext
get_page(target_url)[source]

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

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

Lists AssetInstance 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.asset.AssetInstance]

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

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

Return type:

twilio.rest.serverless.v1.service.asset.AssetPage

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

Streams AssetInstance 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.asset.AssetInstance]

class twilio.rest.serverless.v1.service.asset.AssetPage(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 AssetInstance

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