twilio.rest.serverless.v1.service.environment package¶
Submodules¶
twilio.rest.serverless.v1.service.environment.deployment module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.serverless.v1.service.environment.deployment.
DeploymentContext
(version, service_sid, environment_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 DeploymentInstance
Returns: The fetched DeploymentInstance Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance
-
-
class
twilio.rest.serverless.v1.service.environment.deployment.
DeploymentInstance
(version, payload, service_sid, environment_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 Deployment resource Return type: unicode
-
build_sid
¶ Returns: The SID of the Build for the deployment Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the Deployment resource was created Return type: datetime
-
date_updated
¶ Returns: The ISO 8601 date and time in GMT when the Deployment resource was last updated Return type: datetime
-
environment_sid
¶ Returns: The SID of the Environment for the Deployment Return type: unicode
-
fetch
()[source]¶ Fetch the DeploymentInstance
Returns: The fetched DeploymentInstance Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance
-
service_sid
¶ Returns: The SID of the Service that the Deployment resource is associated with Return type: unicode
-
sid
¶ Returns: The unique string that identifies the Deployment resource Return type: unicode
-
url
¶ Returns: The absolute URL of the Deployment resource Return type: unicode
-
-
class
twilio.rest.serverless.v1.service.environment.deployment.
DeploymentList
(version, service_sid, environment_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
(build_sid=<object object>)[source]¶ Create the DeploymentInstance
Parameters: build_sid (unicode) – The SID of the Build for the Deployment Returns: The created DeploymentInstance Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance
-
get
(sid)[source]¶ Constructs a DeploymentContext
Parameters: sid – The SID that identifies the Deployment resource to fetch Returns: twilio.rest.serverless.v1.service.environment.deployment.DeploymentContext Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of DeploymentInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of DeploymentInstance Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentPage
-
list
(limit=None, page_size=None)[source]¶ Lists DeploymentInstance 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.environment.deployment.DeploymentInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of DeploymentInstance records from the API. Request is executed immediately
Parameters: Returns: Page of DeploymentInstance
Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentPage
-
stream
(limit=None, page_size=None)[source]¶ Streams DeploymentInstance 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.environment.deployment.DeploymentInstance]
-
-
class
twilio.rest.serverless.v1.service.environment.deployment.
DeploymentPage
(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 DeploymentInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentInstance
-
twilio.rest.serverless.v1.service.environment.log module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.serverless.v1.service.environment.log.
LogContext
(version, service_sid, environment_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 LogInstance
Returns: The fetched LogInstance Return type: twilio.rest.serverless.v1.service.environment.log.LogInstance
-
-
class
twilio.rest.serverless.v1.service.environment.log.
LogInstance
(version, payload, service_sid, environment_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 Log resource Return type: unicode
-
build_sid
¶ Returns: The SID of the build that corresponds to the log Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the Log resource was created Return type: datetime
-
deployment_sid
¶ Returns: The SID of the deployment that corresponds to the log Return type: unicode
-
environment_sid
¶ Returns: The SID of the environment in which the log occurred Return type: unicode
-
fetch
()[source]¶ Fetch the LogInstance
Returns: The fetched LogInstance Return type: twilio.rest.serverless.v1.service.environment.log.LogInstance
-
function_sid
¶ Returns: The SID of the function whose invocation produced the log Return type: unicode
-
level
¶ Returns: The log level Return type: LogInstance.Level
-
message
¶ Returns: The log message Return type: unicode
-
request_sid
¶ Returns: The SID of the request associated with the log Return type: unicode
-
service_sid
¶ Returns: The SID of the Service that the Log resource is associated with Return type: unicode
-
sid
¶ Returns: The unique string that identifies the Log resource Return type: unicode
-
url
¶ Returns: The absolute URL of the Log resource Return type: unicode
-
-
class
twilio.rest.serverless.v1.service.environment.log.
LogList
(version, service_sid, environment_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 LogContext
Parameters: sid – The SID that identifies the Log resource to fetch Returns: twilio.rest.serverless.v1.service.environment.log.LogContext Return type: twilio.rest.serverless.v1.service.environment.log.LogContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of LogInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of LogInstance Return type: twilio.rest.serverless.v1.service.environment.log.LogPage
-
list
(function_sid=<object object>, start_date=<object object>, end_date=<object object>, limit=None, page_size=None)[source]¶ Lists LogInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.
Parameters: - function_sid (unicode) – The SID of the function whose invocation produced the Log resources to read
- start_date (datetime) – The date and time after which the Log resources must have been created.
- end_date (datetime) – The date and time before which the Log resource must have been created.
- 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.environment.log.LogInstance]
-
page
(function_sid=<object object>, start_date=<object object>, end_date=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of LogInstance records from the API. Request is executed immediately
Parameters: - function_sid (unicode) – The SID of the function whose invocation produced the Log resources to read
- start_date (datetime) – The date and time after which the Log resources must have been created.
- end_date (datetime) – The date and time before which the Log resource must have been created.
- 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 LogInstance
Return type:
-
stream
(function_sid=<object object>, start_date=<object object>, end_date=<object object>, limit=None, page_size=None)[source]¶ Streams LogInstance 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: - function_sid (unicode) – The SID of the function whose invocation produced the Log resources to read
- start_date (datetime) – The date and time after which the Log resources must have been created.
- end_date (datetime) – The date and time before which the Log resource must have been created.
- 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.environment.log.LogInstance]
-
-
class
twilio.rest.serverless.v1.service.environment.log.
LogPage
(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 LogInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.serverless.v1.service.environment.log.LogInstance Return type: twilio.rest.serverless.v1.service.environment.log.LogInstance
-
twilio.rest.serverless.v1.service.environment.variable module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.serverless.v1.service.environment.variable.
VariableContext
(version, service_sid, environment_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.
-
delete
()[source]¶ Deletes the VariableInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the VariableInstance
Returns: The fetched VariableInstance Return type: twilio.rest.serverless.v1.service.environment.variable.VariableInstance
-
update
(key=<object object>, value=<object object>)[source]¶ Update the VariableInstance
Parameters: - key (unicode) – A string by which the Variable resource can be referenced
- value (unicode) – A string that contains the actual value of the Variable
Returns: The updated VariableInstance
Return type: twilio.rest.serverless.v1.service.environment.variable.VariableInstance
-
-
class
twilio.rest.serverless.v1.service.environment.variable.
VariableInstance
(version, payload, service_sid, environment_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 Variable resource Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the Variable resource was created Return type: datetime
-
date_updated
¶ Returns: The ISO 8601 date and time in GMT when the Variable resource was last updated Return type: datetime
-
delete
()[source]¶ Deletes the VariableInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
environment_sid
¶ Returns: The SID of the Environment in which the Variable exists Return type: unicode
-
fetch
()[source]¶ Fetch the VariableInstance
Returns: The fetched VariableInstance Return type: twilio.rest.serverless.v1.service.environment.variable.VariableInstance
-
key
¶ Returns: A string by which the Variable resource can be referenced Return type: unicode
-
service_sid
¶ Returns: The SID of the Service that the Variable resource is associated with Return type: unicode
-
sid
¶ Returns: The unique string that identifies the Variable resource Return type: unicode
-
update
(key=<object object>, value=<object object>)[source]¶ Update the VariableInstance
Parameters: - key (unicode) – A string by which the Variable resource can be referenced
- value (unicode) – A string that contains the actual value of the Variable
Returns: The updated VariableInstance
Return type: twilio.rest.serverless.v1.service.environment.variable.VariableInstance
-
url
¶ Returns: The absolute URL of the Variable resource Return type: unicode
-
value
¶ Returns: A string that contains the actual value of the Variable Return type: unicode
-
-
class
twilio.rest.serverless.v1.service.environment.variable.
VariableList
(version, service_sid, environment_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
(key, value)[source]¶ Create the VariableInstance
Parameters: - key (unicode) – A string by which the Variable resource can be referenced
- value (unicode) – A string that contains the actual value of the Variable
Returns: The created VariableInstance
Return type: twilio.rest.serverless.v1.service.environment.variable.VariableInstance
-
get
(sid)[source]¶ Constructs a VariableContext
Parameters: sid – The SID of the Variable resource to fetch Returns: twilio.rest.serverless.v1.service.environment.variable.VariableContext Return type: twilio.rest.serverless.v1.service.environment.variable.VariableContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of VariableInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of VariableInstance Return type: twilio.rest.serverless.v1.service.environment.variable.VariablePage
-
list
(limit=None, page_size=None)[source]¶ Lists VariableInstance 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.environment.variable.VariableInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of VariableInstance records from the API. Request is executed immediately
Parameters: Returns: Page of VariableInstance
Return type: twilio.rest.serverless.v1.service.environment.variable.VariablePage
-
stream
(limit=None, page_size=None)[source]¶ Streams VariableInstance 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.environment.variable.VariableInstance]
-
-
class
twilio.rest.serverless.v1.service.environment.variable.
VariablePage
(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 VariableInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.serverless.v1.service.environment.variable.VariableInstance Return type: twilio.rest.serverless.v1.service.environment.variable.VariableInstance
-
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.serverless.v1.service.environment.
EnvironmentContext
(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.
-
delete
()[source]¶ Deletes the EnvironmentInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
deployments
¶ Access the deployments
Returns: twilio.rest.serverless.v1.service.environment.deployment.DeploymentList Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentList
-
fetch
()[source]¶ Fetch the EnvironmentInstance
Returns: The fetched EnvironmentInstance Return type: twilio.rest.serverless.v1.service.environment.EnvironmentInstance
-
logs
¶ Access the logs
Returns: twilio.rest.serverless.v1.service.environment.log.LogList Return type: twilio.rest.serverless.v1.service.environment.log.LogList
-
variables
¶ Access the variables
Returns: twilio.rest.serverless.v1.service.environment.variable.VariableList Return type: twilio.rest.serverless.v1.service.environment.variable.VariableList
-
-
class
twilio.rest.serverless.v1.service.environment.
EnvironmentInstance
(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 Environment resource Return type: unicode
-
build_sid
¶ Returns: The SID of the build deployed in the environment Return type: unicode
-
date_created
¶ Returns: The ISO 8601 date and time in GMT when the Environment resource was created Return type: datetime
-
date_updated
¶ Returns: The ISO 8601 date and time in GMT when the Environment resource was last updated Return type: datetime
-
delete
()[source]¶ Deletes the EnvironmentInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
deployments
¶ Access the deployments
Returns: twilio.rest.serverless.v1.service.environment.deployment.DeploymentList Return type: twilio.rest.serverless.v1.service.environment.deployment.DeploymentList
-
domain_name
¶ Returns: The domain name for all Functions and Assets deployed in the Environment Return type: unicode
-
domain_suffix
¶ Returns: A URL-friendly name that represents the environment Return type: unicode
-
fetch
()[source]¶ Fetch the EnvironmentInstance
Returns: The fetched EnvironmentInstance Return type: twilio.rest.serverless.v1.service.environment.EnvironmentInstance
-
links
¶ Returns: The URLs of the Environment resource’s nested resources Return type: unicode
-
logs
¶ Access the logs
Returns: twilio.rest.serverless.v1.service.environment.log.LogList Return type: twilio.rest.serverless.v1.service.environment.log.LogList
-
service_sid
¶ Returns: The SID of the Service that the Environment resource is associated with Return type: unicode
-
sid
¶ Returns: The unique string that identifies the Environment resource Return type: unicode
-
unique_name
¶ Returns: A user-defined string that uniquely identifies the Environment resource Return type: unicode
-
url
¶ Returns: The absolute URL of the Environment resource Return type: unicode
-
variables
¶ Access the variables
Returns: twilio.rest.serverless.v1.service.environment.variable.VariableList Return type: twilio.rest.serverless.v1.service.environment.variable.VariableList
-
-
class
twilio.rest.serverless.v1.service.environment.
EnvironmentList
(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
(unique_name, domain_suffix=<object object>)[source]¶ Create the EnvironmentInstance
Parameters: - unique_name (unicode) – A user-defined string that uniquely identifies the Environment resource
- domain_suffix (unicode) – A URL-friendly name that represents the environment
Returns: The created EnvironmentInstance
Return type: twilio.rest.serverless.v1.service.environment.EnvironmentInstance
-
get
(sid)[source]¶ Constructs a EnvironmentContext
Parameters: sid – The SID of the Environment resource to fetch Returns: twilio.rest.serverless.v1.service.environment.EnvironmentContext Return type: twilio.rest.serverless.v1.service.environment.EnvironmentContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of EnvironmentInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of EnvironmentInstance Return type: twilio.rest.serverless.v1.service.environment.EnvironmentPage
-
list
(limit=None, page_size=None)[source]¶ Lists EnvironmentInstance 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.environment.EnvironmentInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of EnvironmentInstance records from the API. Request is executed immediately
Parameters: Returns: Page of EnvironmentInstance
Return type: twilio.rest.serverless.v1.service.environment.EnvironmentPage
-
stream
(limit=None, page_size=None)[source]¶ Streams EnvironmentInstance 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.environment.EnvironmentInstance]
-
-
class
twilio.rest.serverless.v1.service.environment.
EnvironmentPage
(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 EnvironmentInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.serverless.v1.service.environment.EnvironmentInstance Return type: twilio.rest.serverless.v1.service.environment.EnvironmentInstance
-