twilio.rest.serverless.v1.service package¶
Subpackages¶
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.serverless.v1.service.ServiceContext(version, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContextPLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
-
assets¶ Access the assets
Returns: twilio.rest.serverless.v1.service.asset.AssetList Return type: twilio.rest.serverless.v1.service.asset.AssetList
-
builds¶ Access the builds
Returns: twilio.rest.serverless.v1.service.build.BuildList Return type: twilio.rest.serverless.v1.service.build.BuildList
-
delete()[source]¶ Deletes the ServiceInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
environments¶ Access the environments
Returns: twilio.rest.serverless.v1.service.environment.EnvironmentList Return type: twilio.rest.serverless.v1.service.environment.EnvironmentList
-
fetch()[source]¶ Fetch the ServiceInstance
Returns: The fetched ServiceInstance Return type: twilio.rest.serverless.v1.service.ServiceInstance
-
functions¶ Access the functions
Returns: twilio.rest.serverless.v1.service.function.FunctionList Return type: twilio.rest.serverless.v1.service.function.FunctionList
-
-
class
twilio.rest.serverless.v1.service.ServiceInstance(version, payload, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResourcePLEASE 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 Service resource Return type: unicode
-
assets¶ Access the assets
Returns: twilio.rest.serverless.v1.service.asset.AssetList Return type: twilio.rest.serverless.v1.service.asset.AssetList
-
builds¶ Access the builds
Returns: twilio.rest.serverless.v1.service.build.BuildList Return type: twilio.rest.serverless.v1.service.build.BuildList
-
date_created¶ Returns: The ISO 8601 date and time in GMT when the Service resource was created Return type: datetime
-
date_updated¶ Returns: The ISO 8601 date and time in GMT when the Service resource was last updated Return type: datetime
-
delete()[source]¶ Deletes the ServiceInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
environments¶ Access the environments
Returns: twilio.rest.serverless.v1.service.environment.EnvironmentList Return type: twilio.rest.serverless.v1.service.environment.EnvironmentList
-
fetch()[source]¶ Fetch the ServiceInstance
Returns: The fetched ServiceInstance Return type: twilio.rest.serverless.v1.service.ServiceInstance
-
friendly_name¶ Returns: The string that you assigned to describe the Service resource Return type: unicode
-
functions¶ Access the functions
Returns: twilio.rest.serverless.v1.service.function.FunctionList Return type: twilio.rest.serverless.v1.service.function.FunctionList
-
include_credentials¶ Returns: Whether to inject Account credentials into a function invocation context Return type: bool
-
links¶ Returns: The URLs of the Service’s nested resources Return type: unicode
-
sid¶ Returns: The unique string that identifies the Service resource Return type: unicode
-
ui_editable¶ Returns: Whether the Service resource’s properties and subresources can be edited via the UI Return type: bool
-
unique_name¶ Returns: A user-defined string that uniquely identifies the Service resource Return type: unicode
-
update(include_credentials=<object object>, friendly_name=<object object>, ui_editable=<object object>)[source]¶ Update the ServiceInstance
Parameters: Returns: The updated ServiceInstance
Return type:
-
url¶ Returns: The absolute URL of the Service resource Return type: unicode
-
-
class
twilio.rest.serverless.v1.service.ServiceList(version)[source]¶ Bases:
twilio.base.list_resource.ListResourcePLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
-
create(unique_name, friendly_name, include_credentials=<object object>, ui_editable=<object object>)[source]¶ Create the ServiceInstance
Parameters: - unique_name (unicode) – A user-defined string that uniquely identifies the Service resource
- friendly_name (unicode) – A string to describe the Service resource
- include_credentials (bool) – Whether to inject Account credentials into a function invocation context
- ui_editable (bool) – Whether the Service’s properties and subresources can be edited via the UI
Returns: The created ServiceInstance
Return type:
-
get(sid)[source]¶ Constructs a ServiceContext
Parameters: sid – The SID of the Service resource to fetch Returns: twilio.rest.serverless.v1.service.ServiceContext Return type: twilio.rest.serverless.v1.service.ServiceContext
-
get_page(target_url)[source]¶ Retrieve a specific page of ServiceInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of ServiceInstance Return type: twilio.rest.serverless.v1.service.ServicePage
-
list(limit=None, page_size=None)[source]¶ Lists ServiceInstance 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:
-
page(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of ServiceInstance records from the API. Request is executed immediately
Parameters: Returns: Page of ServiceInstance
Return type:
-
stream(limit=None, page_size=None)[source]¶ Streams ServiceInstance 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:
-
-
class
twilio.rest.serverless.v1.service.ServicePage(version, response, solution)[source]¶ Bases:
twilio.base.page.PagePLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
-
get_instance(payload)[source]¶ Build an instance of ServiceInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.serverless.v1.service.ServiceInstance Return type: twilio.rest.serverless.v1.service.ServiceInstance
-