twilio.rest.preview.sync.service.sync_map package¶
Submodules¶
twilio.rest.preview.sync.service.sync_map.sync_map_item module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_item.
SyncMapItemContext
(version, service_sid, map_sid, key)[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
(if_match=<object object>)[source]¶ Deletes the SyncMapItemInstance
Parameters: if_match (unicode) – The If-Match HTTP request header Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the SyncMapItemInstance
Returns: The fetched SyncMapItemInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
-
update
(data, if_match=<object object>)[source]¶ Update the SyncMapItemInstance
Parameters: - data (dict) – The data
- if_match (unicode) – The If-Match HTTP request header
Returns: The updated SyncMapItemInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
-
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_item.
SyncMapItemInstance
(version, payload, service_sid, map_sid, key=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
-
created_by
¶ Returns: The created_by Return type: unicode
-
date_created
¶ Returns: The date_created Return type: datetime
-
date_updated
¶ Returns: The date_updated Return type: datetime
-
delete
(if_match=<object object>)[source]¶ Deletes the SyncMapItemInstance
Parameters: if_match (unicode) – The If-Match HTTP request header Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the SyncMapItemInstance
Returns: The fetched SyncMapItemInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
-
key
¶ Returns: The key Return type: unicode
-
map_sid
¶ Returns: The map_sid Return type: unicode
-
revision
¶ Returns: The revision Return type: unicode
-
service_sid
¶ Returns: The service_sid Return type: unicode
-
update
(data, if_match=<object object>)[source]¶ Update the SyncMapItemInstance
Parameters: - data (dict) – The data
- if_match (unicode) – The If-Match HTTP request header
Returns: The updated SyncMapItemInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
-
url
¶ Returns: The url Return type: unicode
-
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_item.
SyncMapItemList
(version, service_sid, map_sid)[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
(key, data)[source]¶ Create the SyncMapItemInstance
Parameters: - key (unicode) – The key
- data (dict) – The data
Returns: The created SyncMapItemInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
-
get
(key)[source]¶ Constructs a SyncMapItemContext
Parameters: key – The key Returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemContext Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of SyncMapItemInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of SyncMapItemInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemPage
-
list
(order=<object object>, from_=<object object>, bounds=<object object>, limit=None, page_size=None)[source]¶ Lists SyncMapItemInstance records from the API as a list. Unlike stream(), this operation is eager and will load limit records into memory before returning.
Parameters: - order (SyncMapItemInstance.QueryResultOrder) – The order
- from (unicode) – The from
- bounds (SyncMapItemInstance.QueryFromBoundType) – The bounds
- 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.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance]
-
page
(order=<object object>, from_=<object object>, bounds=<object object>, page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of SyncMapItemInstance records from the API. Request is executed immediately
Parameters: - order (SyncMapItemInstance.QueryResultOrder) – The order
- from (unicode) – The from
- bounds (SyncMapItemInstance.QueryFromBoundType) – The bounds
- 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 SyncMapItemInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemPage
-
stream
(order=<object object>, from_=<object object>, bounds=<object object>, limit=None, page_size=None)[source]¶ Streams SyncMapItemInstance 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: - order (SyncMapItemInstance.QueryResultOrder) – The order
- from (unicode) – The from
- bounds (SyncMapItemInstance.QueryFromBoundType) – The bounds
- 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.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance]
-
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_item.
SyncMapItemPage
(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 SyncMapItemInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemInstance
-
twilio.rest.preview.sync.service.sync_map.sync_map_permission module¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_permission.
SyncMapPermissionContext
(version, service_sid, map_sid, identity)[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 SyncMapPermissionInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the SyncMapPermissionInstance
Returns: The fetched SyncMapPermissionInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance
-
update
(read, write, manage)[source]¶ Update the SyncMapPermissionInstance
Parameters: Returns: The updated SyncMapPermissionInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance
-
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_permission.
SyncMapPermissionInstance
(version, payload, service_sid, map_sid, identity=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: Twilio Account SID. Return type: unicode
-
delete
()[source]¶ Deletes the SyncMapPermissionInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the SyncMapPermissionInstance
Returns: The fetched SyncMapPermissionInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance
-
identity
¶ Returns: Identity of the user to whom the Sync Map Permission applies. Return type: unicode
-
map_sid
¶ Returns: Sync Map SID. Return type: unicode
-
service_sid
¶ Returns: Sync Service Instance SID. Return type: unicode
-
update
(read, write, manage)[source]¶ Update the SyncMapPermissionInstance
Parameters: Returns: The updated SyncMapPermissionInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance
-
url
¶ Returns: URL of this Sync Map Permission. Return type: unicode
-
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_permission.
SyncMapPermissionList
(version, service_sid, map_sid)[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.
-
get
(identity)[source]¶ Constructs a SyncMapPermissionContext
Parameters: identity – Identity of the user to whom the Sync Map Permission applies. Returns: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionContext Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of SyncMapPermissionInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of SyncMapPermissionInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionPage
-
list
(limit=None, page_size=None)[source]¶ Lists SyncMapPermissionInstance 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.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of SyncMapPermissionInstance records from the API. Request is executed immediately
Parameters: Returns: Page of SyncMapPermissionInstance
Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionPage
-
stream
(limit=None, page_size=None)[source]¶ Streams SyncMapPermissionInstance 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.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance]
-
-
class
twilio.rest.preview.sync.service.sync_map.sync_map_permission.
SyncMapPermissionPage
(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 SyncMapPermissionInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionInstance
-
Module contents¶
This code was generated by / _ _ _| _ _
(_)/(_)(_|/| |(/_ v1.0.0 / /
-
class
twilio.rest.preview.sync.service.sync_map.
SyncMapContext
(version, service_sid, 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 SyncMapInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the SyncMapInstance
Returns: The fetched SyncMapInstance Return type: twilio.rest.preview.sync.service.sync_map.SyncMapInstance
-
sync_map_items
¶ Access the sync_map_items
Returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemList Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemList
-
sync_map_permissions
¶ Access the sync_map_permissions
Returns: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionList Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionList
-
-
class
twilio.rest.preview.sync.service.sync_map.
SyncMapInstance
(version, payload, service_sid, 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
-
created_by
¶ Returns: The created_by 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 SyncMapInstance
Returns: True if delete succeeds, False otherwise Return type: bool
-
fetch
()[source]¶ Fetch the SyncMapInstance
Returns: The fetched SyncMapInstance Return type: twilio.rest.preview.sync.service.sync_map.SyncMapInstance
-
links
¶ Returns: The links Return type: unicode
-
revision
¶ Returns: The revision Return type: unicode
-
service_sid
¶ Returns: The service_sid Return type: unicode
-
sid
¶ Returns: The sid Return type: unicode
-
sync_map_items
¶ Access the sync_map_items
Returns: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemList Return type: twilio.rest.preview.sync.service.sync_map.sync_map_item.SyncMapItemList
-
sync_map_permissions
¶ Access the sync_map_permissions
Returns: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionList Return type: twilio.rest.preview.sync.service.sync_map.sync_map_permission.SyncMapPermissionList
-
unique_name
¶ Returns: The unique_name Return type: unicode
-
url
¶ Returns: The url Return type: unicode
-
-
class
twilio.rest.preview.sync.service.sync_map.
SyncMapList
(version, service_sid)[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
(unique_name=<object object>)[source]¶ Create the SyncMapInstance
Parameters: unique_name (unicode) – The unique_name Returns: The created SyncMapInstance Return type: twilio.rest.preview.sync.service.sync_map.SyncMapInstance
-
get
(sid)[source]¶ Constructs a SyncMapContext
Parameters: sid – The sid Returns: twilio.rest.preview.sync.service.sync_map.SyncMapContext Return type: twilio.rest.preview.sync.service.sync_map.SyncMapContext
-
get_page
(target_url)[source]¶ Retrieve a specific page of SyncMapInstance records from the API. Request is executed immediately
Parameters: target_url (str) – API-generated URL for the requested results page Returns: Page of SyncMapInstance Return type: twilio.rest.preview.sync.service.sync_map.SyncMapPage
-
list
(limit=None, page_size=None)[source]¶ Lists SyncMapInstance 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.preview.sync.service.sync_map.SyncMapInstance]
-
page
(page_token=<object object>, page_number=<object object>, page_size=<object object>)[source]¶ Retrieve a single page of SyncMapInstance records from the API. Request is executed immediately
Parameters: Returns: Page of SyncMapInstance
Return type:
-
stream
(limit=None, page_size=None)[source]¶ Streams SyncMapInstance 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.preview.sync.service.sync_map.SyncMapInstance]
-
-
class
twilio.rest.preview.sync.service.sync_map.
SyncMapPage
(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 SyncMapInstance
Parameters: payload (dict) – Payload response from the API Returns: twilio.rest.preview.sync.service.sync_map.SyncMapInstance Return type: twilio.rest.preview.sync.service.sync_map.SyncMapInstance
-