twilio.rest.serverless.v1.service.build package

Submodules

twilio.rest.serverless.v1.service.build.build_status module

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

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.serverless.v1.service.build.build_status.BuildStatusContext(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.

fetch()[source]

Fetch the BuildStatusInstance

Returns:The fetched BuildStatusInstance
Return type:twilio.rest.serverless.v1.service.build.build_status.BuildStatusInstance
class twilio.rest.serverless.v1.service.build.build_status.BuildStatusInstance(version, payload, service_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.

class Status[source]

Bases: object

BUILDING = 'building'
COMPLETED = 'completed'
FAILED = 'failed'
account_sid
Returns:The SID of the Account that created the Build resource
Return type:unicode
fetch()[source]

Fetch the BuildStatusInstance

Returns:The fetched BuildStatusInstance
Return type:twilio.rest.serverless.v1.service.build.build_status.BuildStatusInstance
service_sid
Returns:The SID of the Service that the Build resource is associated with
Return type:unicode
sid
Returns:The unique string that identifies the Build resource
Return type:unicode
status
Returns:The status of the Build
Return type:BuildStatusInstance.Status
url
Returns:The absolute URL of the Build Status resource
Return type:unicode
class twilio.rest.serverless.v1.service.build.build_status.BuildStatusList(version, service_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 BuildStatusContext

Returns:twilio.rest.serverless.v1.service.build.build_status.BuildStatusContext
Return type:twilio.rest.serverless.v1.service.build.build_status.BuildStatusContext
class twilio.rest.serverless.v1.service.build.build_status.BuildStatusPage(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 BuildStatusInstance

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

Module contents

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

(_)/(_)(_|/| |(/_ v1.0.0 / /
class twilio.rest.serverless.v1.service.build.BuildContext(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.

build_status

Access the build_status

Returns:twilio.rest.serverless.v1.service.build.build_status.BuildStatusList
Return type:twilio.rest.serverless.v1.service.build.build_status.BuildStatusList
delete()[source]

Deletes the BuildInstance

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

Fetch the BuildInstance

Returns:The fetched BuildInstance
Return type:twilio.rest.serverless.v1.service.build.BuildInstance
class twilio.rest.serverless.v1.service.build.BuildInstance(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.

class Runtime[source]

Bases: object

NODE10 = 'node10'
NODE12 = 'node12'
NODE14 = 'node14'
NODE8 = 'node8'
class Status[source]

Bases: object

BUILDING = 'building'
COMPLETED = 'completed'
FAILED = 'failed'
account_sid
Returns:The SID of the Account that created the Build resource
Return type:unicode
asset_versions
Returns:The list of Asset Version resource SIDs that are included in the Build
Return type:list[dict]
build_status

Access the build_status

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

Deletes the BuildInstance

Returns:True if delete succeeds, False otherwise
Return type:bool
dependencies
Returns:A list of objects that describe the Dependencies included in the Build
Return type:list[dict]
fetch()[source]

Fetch the BuildInstance

Returns:The fetched BuildInstance
Return type:twilio.rest.serverless.v1.service.build.BuildInstance
function_versions
Returns:The list of Function Version resource SIDs that are included in the Build
Return type:list[dict]
Returns:The links
Return type:unicode
runtime
Returns:The Runtime version that will be used to run the Build.
Return type:BuildInstance.Runtime
service_sid
Returns:The SID of the Service that the Build resource is associated with
Return type:unicode
sid
Returns:The unique string that identifies the Build resource
Return type:unicode
status
Returns:The status of the Build
Return type:BuildInstance.Status
url
Returns:The absolute URL of the Build resource
Return type:unicode
class twilio.rest.serverless.v1.service.build.BuildList(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(asset_versions=<object object>, function_versions=<object object>, dependencies=<object object>, runtime=<object object>)[source]

Create the BuildInstance

Parameters:
  • asset_versions (list[unicode]) – The list of Asset Version resource SIDs to include in the Build
  • function_versions (list[unicode]) – The list of the Function Version resource SIDs to include in the Build
  • dependencies (unicode) – A list of objects that describe the Dependencies included in the Build
  • runtime (unicode) – The Runtime version that will be used to run the Build.
Returns:

The created BuildInstance

Return type:

twilio.rest.serverless.v1.service.build.BuildInstance

get(sid)[source]

Constructs a BuildContext

Parameters:sid – The SID of the Build resource to fetch
Returns:twilio.rest.serverless.v1.service.build.BuildContext
Return type:twilio.rest.serverless.v1.service.build.BuildContext
get_page(target_url)[source]

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

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

Lists BuildInstance 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.build.BuildInstance]

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

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

Return type:

twilio.rest.serverless.v1.service.build.BuildPage

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

Streams BuildInstance 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.build.BuildInstance]

class twilio.rest.serverless.v1.service.build.BuildPage(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 BuildInstance

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