twilio.rest.preview.sync.service package¶
Subpackages¶
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.preview.sync.service.
ServiceContext
(version, sid)[source]¶ Bases:
twilio.base.instance_context.InstanceContext
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
-
delete
()[source]¶ Deletes the ServiceInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
documents
¶ Access the documents
Returns: twilio.rest.preview.sync.service.document.DocumentList Return type: twilio.rest.preview.sync.service.document.DocumentList
-
fetch
()[source]¶ Fetch the ServiceInstance
Returns: The fetched ServiceInstance Return type: twilio.rest.preview.sync.service.ServiceInstance
-
sync_lists
¶ Access the sync_lists
Returns: twilio.rest.preview.sync.service.sync_list.SyncListList Return type: twilio.rest.preview.sync.service.sync_list.SyncListList
-
sync_maps
¶ Access the sync_maps
Returns: twilio.rest.preview.sync.service.sync_map.SyncMapList Return type: twilio.rest.preview.sync.service.sync_map.SyncMapList
-
-
class
twilio.rest.preview.sync.service.
ServiceInstance
(version, payload, sid=None)[source]¶ Bases:
twilio.base.instance_resource.InstanceResource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
-
account_sid
¶ Returns: The account_sid Return type: unicode
-
date_created
¶ Returns: The date_created Return type: datetime
-
date_updated
¶ Returns: The date_updated Return type: datetime
-
delete
()[source]¶ Deletes the ServiceInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
documents
¶ Access the documents
Returns: twilio.rest.preview.sync.service.document.DocumentList Return type: twilio.rest.preview.sync.service.document.DocumentList
-
fetch
()[source]¶ Fetch the ServiceInstance
Returns: The fetched ServiceInstance Return type: twilio.rest.preview.sync.service.ServiceInstance
-
friendly_name
¶ Returns: The friendly_name Return type: unicode
-
links
¶ Returns: The links Return type: unicode
-
sid
¶ Returns: The sid Return type: unicode
-
sync_lists
¶ Access the sync_lists
Returns: twilio.rest.preview.sync.service.sync_list.SyncListList Return type: twilio.rest.preview.sync.service.sync_list.SyncListList
-
sync_maps
¶ Access the sync_maps
Returns: twilio.rest.preview.sync.service.sync_map.SyncMapList Return type: twilio.rest.preview.sync.service.sync_map.SyncMapList
-
update
(webhook_url=<object object>, friendly_name=<object object>, reachability_webhooks_enabled=<object object>, acl_enabled=<object object>)[source]¶ Update the ServiceInstance
Parameters: Returns: The updated ServiceInstance
Return type:
-
url
¶ Returns: The url Return type: unicode
-
webhook_url
¶ Returns: The webhook_url Return type: unicode
-
-
class
twilio.rest.preview.sync.service.
ServiceList
(version)[source]¶ Bases:
twilio.base.list_resource.ListResource
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
-
create
(friendly_name=<object object>, webhook_url=<object object>, reachability_webhooks_enabled=<object object>, acl_enabled=<object object>)[source]¶ Create the ServiceInstance
Parameters: Returns: The created ServiceInstance
Return type:
-
get
(sid)[source]¶ Constructs a ServiceContext
Parameters: sid – The sid Returns: twilio.rest.preview.sync.service.ServiceContext Return type: twilio.rest.preview.sync.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.preview.sync.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.preview.sync.service.
ServicePage
(version, response, solution)[source]¶ Bases:
twilio.base.page.Page
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
-
get_instance
(payload)[source]¶ Build an instance of ServiceInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.preview.sync.service.ServiceInstance Return type: twilio.rest.preview.sync.service.ServiceInstance
-