repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_documentation_string
stringlengths
1
47.2k
func_code_url
stringlengths
85
339
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/models/service_package_quota_history_response.py
ServicePackageQuotaHistoryResponse.object
def object(self, object): """ Sets the object of this ServicePackageQuotaHistoryResponse. Always set to 'service-package-quota-history'. :param object: The object of this ServicePackageQuotaHistoryResponse. :type: str """ if object is None: raise Valu...
python
def object(self, object): """ Sets the object of this ServicePackageQuotaHistoryResponse. Always set to 'service-package-quota-history'. :param object: The object of this ServicePackageQuotaHistoryResponse. :type: str """ if object is None: raise Valu...
Sets the object of this ServicePackageQuotaHistoryResponse. Always set to 'service-package-quota-history'. :param object: The object of this ServicePackageQuotaHistoryResponse. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/models/service_package_quota_history_response.py#L182-L199
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/models/service_package_quota_history_response.py
ServicePackageQuotaHistoryResponse.total_count
def total_count(self, total_count): """ Sets the total_count of this ServicePackageQuotaHistoryResponse. Sum of all quota history entries that should be returned :param total_count: The total_count of this ServicePackageQuotaHistoryResponse. :type: int """ if tot...
python
def total_count(self, total_count): """ Sets the total_count of this ServicePackageQuotaHistoryResponse. Sum of all quota history entries that should be returned :param total_count: The total_count of this ServicePackageQuotaHistoryResponse. :type: int """ if tot...
Sets the total_count of this ServicePackageQuotaHistoryResponse. Sum of all quota history entries that should be returned :param total_count: The total_count of this ServicePackageQuotaHistoryResponse. :type: int
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/models/service_package_quota_history_response.py#L213-L226
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/external_ca/models/certificate_issuer_info.py
CertificateIssuerInfo.issuer_type
def issuer_type(self, issuer_type): """ Sets the issuer_type of this CertificateIssuerInfo. The type of the certificate issuer. - GLOBAL_SIGN: Certificates are issued by GlobalSign service. The users must provide their own GlobalSign account credentials. - CFSSL_AUTH: Certificates are issued...
python
def issuer_type(self, issuer_type): """ Sets the issuer_type of this CertificateIssuerInfo. The type of the certificate issuer. - GLOBAL_SIGN: Certificates are issued by GlobalSign service. The users must provide their own GlobalSign account credentials. - CFSSL_AUTH: Certificates are issued...
Sets the issuer_type of this CertificateIssuerInfo. The type of the certificate issuer. - GLOBAL_SIGN: Certificates are issued by GlobalSign service. The users must provide their own GlobalSign account credentials. - CFSSL_AUTH: Certificates are issued by CFSSL authenticated signing service. The users mus...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/external_ca/models/certificate_issuer_info.py#L199-L216
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/enrollment/models/error_response.py
ErrorResponse.code
def code(self, code): """ Sets the code of this ErrorResponse. Response code. :param code: The code of this ErrorResponse. :type: int """ allowed_values = [400, 401, 404] if code not in allowed_values: raise ValueError( "Invali...
python
def code(self, code): """ Sets the code of this ErrorResponse. Response code. :param code: The code of this ErrorResponse. :type: int """ allowed_values = [400, 401, 404] if code not in allowed_values: raise ValueError( "Invali...
Sets the code of this ErrorResponse. Response code. :param code: The code of this ErrorResponse. :type: int
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/enrollment/models/error_response.py#L76-L91
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/enrollment/models/error_response.py
ErrorResponse.request_id
def request_id(self, request_id): """ Sets the request_id of this ErrorResponse. Request ID. :param request_id: The request_id of this ErrorResponse. :type: str """ if request_id is not None and not re.search('^[A-Za-z0-9]{32}', request_id): raise Val...
python
def request_id(self, request_id): """ Sets the request_id of this ErrorResponse. Request ID. :param request_id: The request_id of this ErrorResponse. :type: str """ if request_id is not None and not re.search('^[A-Za-z0-9]{32}', request_id): raise Val...
Sets the request_id of this ErrorResponse. Request ID. :param request_id: The request_id of this ErrorResponse. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/enrollment/models/error_response.py#L180-L191
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.start_notifications
def start_notifications(self): """Start the notifications thread. If an external callback is not set up (using `update_webhook`) then calling this function is mandatory to get or set resource. .. code-block:: python >>> api.start_notifications() >>> print(api.g...
python
def start_notifications(self): """Start the notifications thread. If an external callback is not set up (using `update_webhook`) then calling this function is mandatory to get or set resource. .. code-block:: python >>> api.start_notifications() >>> print(api.g...
Start the notifications thread. If an external callback is not set up (using `update_webhook`) then calling this function is mandatory to get or set resource. .. code-block:: python >>> api.start_notifications() >>> print(api.get_resource_value(device, path)) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L111-L138
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.stop_notifications
def stop_notifications(self): """Stop the notifications thread. :returns: """ with self._notifications_lock: if not self.has_active_notification_thread: return thread = self._notifications_thread self._notifications_thread = None ...
python
def stop_notifications(self): """Stop the notifications thread. :returns: """ with self._notifications_lock: if not self.has_active_notification_thread: return thread = self._notifications_thread self._notifications_thread = None ...
Stop the notifications thread. :returns:
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L140-L153
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.list_connected_devices
def list_connected_devices(self, **kwargs): """List connected devices. Example usage, listing all registered devices in the catalog: .. code-block:: python filters = { 'created_at': {'$gte': datetime.datetime(2017,01,01), '$lte': date...
python
def list_connected_devices(self, **kwargs): """List connected devices. Example usage, listing all registered devices in the catalog: .. code-block:: python filters = { 'created_at': {'$gte': datetime.datetime(2017,01,01), '$lte': date...
List connected devices. Example usage, listing all registered devices in the catalog: .. code-block:: python filters = { 'created_at': {'$gte': datetime.datetime(2017,01,01), '$lte': datetime.datetime(2017,12,31) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L156-L205
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.list_resources
def list_resources(self, device_id): """List all resources registered to a connected device. .. code-block:: python >>> for r in api.list_resources(device_id): print(r.name, r.observable, r.uri) None,True,/3/0/1 Update,False,/5/0/3 .....
python
def list_resources(self, device_id): """List all resources registered to a connected device. .. code-block:: python >>> for r in api.list_resources(device_id): print(r.name, r.observable, r.uri) None,True,/3/0/1 Update,False,/5/0/3 .....
List all resources registered to a connected device. .. code-block:: python >>> for r in api.list_resources(device_id): print(r.name, r.observable, r.uri) None,True,/3/0/1 Update,False,/5/0/3 ... :param str device_id: The ID of the d...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L208-L224
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.get_resource
def get_resource(self, device_id, resource_path): """Get a resource. :param str device_id: ID of the device (Required) :param str path: Path of the resource to get (Required) :returns: Device resource :rtype Resource """ resources = self.list_resources(device_id...
python
def get_resource(self, device_id, resource_path): """Get a resource. :param str device_id: ID of the device (Required) :param str path: Path of the resource to get (Required) :returns: Device resource :rtype Resource """ resources = self.list_resources(device_id...
Get a resource. :param str device_id: ID of the device (Required) :param str path: Path of the resource to get (Required) :returns: Device resource :rtype Resource
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L227-L240
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI._mds_rpc_post
def _mds_rpc_post(self, device_id, _wrap_with_consumer=True, async_id=None, **params): """Helper for using RPC endpoint""" self.ensure_notifications_thread() api = self._get_api(mds.DeviceRequestsApi) async_id = async_id or utils.new_async_id() device_request = mds.DeviceRequest(...
python
def _mds_rpc_post(self, device_id, _wrap_with_consumer=True, async_id=None, **params): """Helper for using RPC endpoint""" self.ensure_notifications_thread() api = self._get_api(mds.DeviceRequestsApi) async_id = async_id or utils.new_async_id() device_request = mds.DeviceRequest(...
Helper for using RPC endpoint
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L242-L253
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.get_resource_value_async
def get_resource_value_async(self, device_id, resource_path, fix_path=True): """Get a resource value for a given device and resource path. Will not block, but instead return an AsyncConsumer. Example usage: .. code-block:: python a = api.get_resource_value_async(device, path) ...
python
def get_resource_value_async(self, device_id, resource_path, fix_path=True): """Get a resource value for a given device and resource path. Will not block, but instead return an AsyncConsumer. Example usage: .. code-block:: python a = api.get_resource_value_async(device, path) ...
Get a resource value for a given device and resource path. Will not block, but instead return an AsyncConsumer. Example usage: .. code-block:: python a = api.get_resource_value_async(device, path) while not a.is_done: time.sleep(0.1) if a.error: ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L256-L276
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.get_resource_value
def get_resource_value(self, device_id, resource_path, fix_path=True, timeout=None): """Get a resource value for a given device and resource path by blocking thread. Example usage: .. code-block:: python try: v = api.get_resource_value(device_id, path) ...
python
def get_resource_value(self, device_id, resource_path, fix_path=True, timeout=None): """Get a resource value for a given device and resource path by blocking thread. Example usage: .. code-block:: python try: v = api.get_resource_value(device_id, path) ...
Get a resource value for a given device and resource path by blocking thread. Example usage: .. code-block:: python try: v = api.get_resource_value(device_id, path) print("Current value", v) except CloudAsyncError, e: print("Erro...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L279-L302
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.set_resource_value
def set_resource_value(self, device_id, resource_path, resource_value, fix_path=True, timeout=None): """Set resource value for given resource path, on device. Will block and wait for response to come through. Usage: .. code-block:: python try: ...
python
def set_resource_value(self, device_id, resource_path, resource_value, fix_path=True, timeout=None): """Set resource value for given resource path, on device. Will block and wait for response to come through. Usage: .. code-block:: python try: ...
Set resource value for given resource path, on device. Will block and wait for response to come through. Usage: .. code-block:: python try: v = api.set_resource_value(device, path, value) print("Success, new value:", v) except AsyncError, e: ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L305-L331
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.set_resource_value_async
def set_resource_value_async(self, device_id, resource_path, resource_value=None, fix_path=True): """Set resource value for given resource path, on device. Will not block. Returns immediately. Usage: .. code-block:: python a = api.set_resource_valu...
python
def set_resource_value_async(self, device_id, resource_path, resource_value=None, fix_path=True): """Set resource value for given resource path, on device. Will not block. Returns immediately. Usage: .. code-block:: python a = api.set_resource_valu...
Set resource value for given resource path, on device. Will not block. Returns immediately. Usage: .. code-block:: python a = api.set_resource_value_async(device, path, value) while not a.is_done: time.sleep(0.1) if a.error: print("E...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L345-L378
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.execute_resource
def execute_resource(self, device_id, resource_path, fix_path=True, timeout=None): """Execute a function on a resource. Will block and wait for response to come through. Usage: .. code-block:: python try: v = api.execute_resource(device, path) print...
python
def execute_resource(self, device_id, resource_path, fix_path=True, timeout=None): """Execute a function on a resource. Will block and wait for response to come through. Usage: .. code-block:: python try: v = api.execute_resource(device, path) print...
Execute a function on a resource. Will block and wait for response to come through. Usage: .. code-block:: python try: v = api.execute_resource(device, path) print("Success, returned value:", v) except AsyncError, e: print("Error...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L381-L404
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.execute_resource_async
def execute_resource_async(self, device_id, resource_path, fix_path=True): """Execute a function on a resource. Will not block. Returns immediately. Usage: .. code-block:: python a = api.execute_resource_async(device, path) while not a.is_done: time.sle...
python
def execute_resource_async(self, device_id, resource_path, fix_path=True): """Execute a function on a resource. Will not block. Returns immediately. Usage: .. code-block:: python a = api.execute_resource_async(device, path) while not a.is_done: time.sle...
Execute a function on a resource. Will not block. Returns immediately. Usage: .. code-block:: python a = api.execute_resource_async(device, path) while not a.is_done: time.sleep(0.1) if a.error: print("Error", a.error) pr...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L407-L430
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.add_resource_subscription
def add_resource_subscription(self, device_id, resource_path, fix_path=True, queue_size=5): """Subscribe to resource updates. When called on a valid device and resource path a subscription is setup so that any update on the resource path value triggers a new element on the FIFO queue. T...
python
def add_resource_subscription(self, device_id, resource_path, fix_path=True, queue_size=5): """Subscribe to resource updates. When called on a valid device and resource path a subscription is setup so that any update on the resource path value triggers a new element on the FIFO queue. T...
Subscribe to resource updates. When called on a valid device and resource path a subscription is setup so that any update on the resource path value triggers a new element on the FIFO queue. The returned object is a native Python Queue object. :param device_id: Name of device to subscr...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L438-L468
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.add_resource_subscription_async
def add_resource_subscription_async(self, device_id, resource_path, callback_fn, fix_path=True, queue_size=5): """Subscribe to resource updates with callback function. When called on a valid device and resource path a subscription is setup so that any upd...
python
def add_resource_subscription_async(self, device_id, resource_path, callback_fn, fix_path=True, queue_size=5): """Subscribe to resource updates with callback function. When called on a valid device and resource path a subscription is setup so that any upd...
Subscribe to resource updates with callback function. When called on a valid device and resource path a subscription is setup so that any update on the resource path value triggers an update on the callback function. :param device_id: Name of device to set the subscription on (Required) ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L471-L491
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.get_resource_subscription
def get_resource_subscription(self, device_id, resource_path, fix_path=True): """Read subscription status. :param device_id: Name of device to set the subscription on (Required) :param resource_path: The resource path on device to observe (Required) :param fix_path: Removes leading / on...
python
def get_resource_subscription(self, device_id, resource_path, fix_path=True): """Read subscription status. :param device_id: Name of device to set the subscription on (Required) :param resource_path: The resource path on device to observe (Required) :param fix_path: Removes leading / on...
Read subscription status. :param device_id: Name of device to set the subscription on (Required) :param resource_path: The resource path on device to observe (Required) :param fix_path: Removes leading / on resource_path if found :returns: status of subscription
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L494-L515
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.update_presubscriptions
def update_presubscriptions(self, presubscriptions): """Update pre-subscription data. Pre-subscription data will be removed for empty list. :param presubscriptions: list of `Presubscription` objects (Required) :returns: None """ api = self._get_api(mds.SubscriptionsApi) ...
python
def update_presubscriptions(self, presubscriptions): """Update pre-subscription data. Pre-subscription data will be removed for empty list. :param presubscriptions: list of `Presubscription` objects (Required) :returns: None """ api = self._get_api(mds.SubscriptionsApi) ...
Update pre-subscription data. Pre-subscription data will be removed for empty list. :param presubscriptions: list of `Presubscription` objects (Required) :returns: None
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L518-L535
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.delete_subscriptions
def delete_subscriptions(self): """Remove all subscriptions. Warning: This could be slow for large numbers of connected devices. If possible, explicitly delete subscriptions known to have been created. :returns: None """ warnings.warn('This could be slow for large numbe...
python
def delete_subscriptions(self): """Remove all subscriptions. Warning: This could be slow for large numbers of connected devices. If possible, explicitly delete subscriptions known to have been created. :returns: None """ warnings.warn('This could be slow for large numbe...
Remove all subscriptions. Warning: This could be slow for large numbers of connected devices. If possible, explicitly delete subscriptions known to have been created. :returns: None
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L547-L562
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.list_presubscriptions
def list_presubscriptions(self, **kwargs): """Get a list of pre-subscription data :returns: a list of `Presubscription` objects :rtype: list of mbed_cloud.presubscription.Presubscription """ api = self._get_api(mds.SubscriptionsApi) resp = api.get_pre_subscriptions(**kwa...
python
def list_presubscriptions(self, **kwargs): """Get a list of pre-subscription data :returns: a list of `Presubscription` objects :rtype: list of mbed_cloud.presubscription.Presubscription """ api = self._get_api(mds.SubscriptionsApi) resp = api.get_pre_subscriptions(**kwa...
Get a list of pre-subscription data :returns: a list of `Presubscription` objects :rtype: list of mbed_cloud.presubscription.Presubscription
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L565-L573
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.list_device_subscriptions
def list_device_subscriptions(self, device_id, **kwargs): """Lists all subscribed resources from a single device :param device_id: ID of the device (Required) :returns: a list of subscribed resources :rtype: list of str """ api = self._get_api(mds.SubscriptionsApi) ...
python
def list_device_subscriptions(self, device_id, **kwargs): """Lists all subscribed resources from a single device :param device_id: ID of the device (Required) :returns: a list of subscribed resources :rtype: list of str """ api = self._get_api(mds.SubscriptionsApi) ...
Lists all subscribed resources from a single device :param device_id: ID of the device (Required) :returns: a list of subscribed resources :rtype: list of str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L576-L585
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.delete_device_subscriptions
def delete_device_subscriptions(self, device_id): """Removes a device's subscriptions :param device_id: ID of the device (Required) :returns: None """ api = self._get_api(mds.SubscriptionsApi) return api.delete_endpoint_subscriptions(device_id)
python
def delete_device_subscriptions(self, device_id): """Removes a device's subscriptions :param device_id: ID of the device (Required) :returns: None """ api = self._get_api(mds.SubscriptionsApi) return api.delete_endpoint_subscriptions(device_id)
Removes a device's subscriptions :param device_id: ID of the device (Required) :returns: None
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L588-L595
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.delete_resource_subscription
def delete_resource_subscription(self, device_id=None, resource_path=None, fix_path=True): """Unsubscribe from device and/or resource_path updates. If device_id or resource_path is None, or this method is called without arguments, all subscriptions are removed. Calling it with only devi...
python
def delete_resource_subscription(self, device_id=None, resource_path=None, fix_path=True): """Unsubscribe from device and/or resource_path updates. If device_id or resource_path is None, or this method is called without arguments, all subscriptions are removed. Calling it with only devi...
Unsubscribe from device and/or resource_path updates. If device_id or resource_path is None, or this method is called without arguments, all subscriptions are removed. Calling it with only device_id removes subscriptions for all resources on the given device. :param device_id: ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L603-L640
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.notify_webhook_received
def notify_webhook_received(self, payload): """Callback function for triggering notification channel handlers. Use this in conjunction with a webserver to complete the loop when using webhooks as the notification channel. :param str payload: the encoded payload, as sent by the notifica...
python
def notify_webhook_received(self, payload): """Callback function for triggering notification channel handlers. Use this in conjunction with a webserver to complete the loop when using webhooks as the notification channel. :param str payload: the encoded payload, as sent by the notifica...
Callback function for triggering notification channel handlers. Use this in conjunction with a webserver to complete the loop when using webhooks as the notification channel. :param str payload: the encoded payload, as sent by the notification channel
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L642-L662
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.get_webhook
def get_webhook(self): """Get the current callback URL if it exists. :return: The currently set webhook """ api = self._get_api(mds.NotificationsApi) return Webhook(api.get_webhook())
python
def get_webhook(self): """Get the current callback URL if it exists. :return: The currently set webhook """ api = self._get_api(mds.NotificationsApi) return Webhook(api.get_webhook())
Get the current callback URL if it exists. :return: The currently set webhook
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L665-L671
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.update_webhook
def update_webhook(self, url, headers=None): """Register new webhook for incoming subscriptions. If a webhook is already set, this will do an overwrite. :param str url: the URL with listening webhook (Required) :param dict headers: K/V dict with additional headers to send with request ...
python
def update_webhook(self, url, headers=None): """Register new webhook for incoming subscriptions. If a webhook is already set, this will do an overwrite. :param str url: the URL with listening webhook (Required) :param dict headers: K/V dict with additional headers to send with request ...
Register new webhook for incoming subscriptions. If a webhook is already set, this will do an overwrite. :param str url: the URL with listening webhook (Required) :param dict headers: K/V dict with additional headers to send with request :return: void
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L674-L692
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.delete_webhook
def delete_webhook(self): """Delete/remove registered webhook. If no webhook is registered, an exception (404) will be raised. Note that every registered subscription will be deleted as part of deregistering a webhook. :return: void """ api = self._get_api(mds....
python
def delete_webhook(self): """Delete/remove registered webhook. If no webhook is registered, an exception (404) will be raised. Note that every registered subscription will be deleted as part of deregistering a webhook. :return: void """ api = self._get_api(mds....
Delete/remove registered webhook. If no webhook is registered, an exception (404) will be raised. Note that every registered subscription will be deleted as part of deregistering a webhook. :return: void
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L695-L710
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/connect/connect.py
ConnectAPI.list_metrics
def list_metrics(self, include=None, interval="1d", **kwargs): """Get statistics. :param list[str] include: List of fields included in response. None, or an empty list will return all fields. Fields: transactions, successful_api_calls, failed_api_calls, successful_handshakes, ...
python
def list_metrics(self, include=None, interval="1d", **kwargs): """Get statistics. :param list[str] include: List of fields included in response. None, or an empty list will return all fields. Fields: transactions, successful_api_calls, failed_api_calls, successful_handshakes, ...
Get statistics. :param list[str] include: List of fields included in response. None, or an empty list will return all fields. Fields: transactions, successful_api_calls, failed_api_calls, successful_handshakes, pending_bootstraps, successful_bootstraps, failed_bootstraps, re...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/connect/connect.py#L713-L740
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/enrollment/models/enrollment_id.py
EnrollmentId.enrollment_identity
def enrollment_identity(self, enrollment_identity): """ Sets the enrollment_identity of this EnrollmentId. Enrollment identity. :param enrollment_identity: The enrollment_identity of this EnrollmentId. :type: str """ if enrollment_identity is None: ra...
python
def enrollment_identity(self, enrollment_identity): """ Sets the enrollment_identity of this EnrollmentId. Enrollment identity. :param enrollment_identity: The enrollment_identity of this EnrollmentId. :type: str """ if enrollment_identity is None: ra...
Sets the enrollment_identity of this EnrollmentId. Enrollment identity. :param enrollment_identity: The enrollment_identity of this EnrollmentId. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/enrollment/models/enrollment_id.py#L61-L74
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/channel.py
ChannelSubscription._filter_optional_keys
def _filter_optional_keys(self, data): """Filtering for this channel, based on key-value matching""" for filter_key, filter_value in (self._optional_filters or {}).items(): data_value = data.get(filter_key) LOG.debug( 'optional keys filter %s: %s (%s)', ...
python
def _filter_optional_keys(self, data): """Filtering for this channel, based on key-value matching""" for filter_key, filter_value in (self._optional_filters or {}).items(): data_value = data.get(filter_key) LOG.debug( 'optional keys filter %s: %s (%s)', ...
Filtering for this channel, based on key-value matching
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/channel.py#L109-L123
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/channel.py
ChannelSubscription.notify
def notify(self, data): """Notify this channel of inbound data""" for filter_function in self._filters: if not filter_function(data): return False self._notify(data) return True
python
def notify(self, data): """Notify this channel of inbound data""" for filter_function in self._filters: if not filter_function(data): return False self._notify(data) return True
Notify this channel of inbound data
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/channel.py#L128-L134
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/channel.py
ChannelSubscription._configure
def _configure(self, manager, connect_api_instance, observer_params): """Configure behind-the-scenes settings for the channel These are required in addition to the parameters provided on instantiation """ self._manager = manager self._api = connect_api_instance s...
python
def _configure(self, manager, connect_api_instance, observer_params): """Configure behind-the-scenes settings for the channel These are required in addition to the parameters provided on instantiation """ self._manager = manager self._api = connect_api_instance s...
Configure behind-the-scenes settings for the channel These are required in addition to the parameters provided on instantiation
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/channel.py#L156-L165
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/channel.py
ChannelSubscription.ensure_started
def ensure_started(self): """Idempotent channel start""" if self.active: return self self._observer = self._observer_class(**self._observer_params) self.start() self._active = True return self
python
def ensure_started(self): """Idempotent channel start""" if self.active: return self self._observer = self._observer_class(**self._observer_params) self.start() self._active = True return self
Idempotent channel start
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/channel.py#L167-L174
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/channel.py
ChannelSubscription.ensure_stopped
def ensure_stopped(self): """Idempotent channel stop""" if not self.active: return self self.stop() self.observer.cancel() self._manager.remove_routes(self, self.get_routing_keys()) self._active = False return self
python
def ensure_stopped(self): """Idempotent channel stop""" if not self.active: return self self.stop() self.observer.cancel() self._manager.remove_routes(self, self.get_routing_keys()) self._active = False return self
Idempotent channel stop
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/channel.py#L176-L184
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/resources_api.py
ResourcesApi.delete_resource_path
def delete_resource_path(self, device_id, _resource_path, **kwargs): # noqa: E501 """Delete a resource path # noqa: E501 A request to delete a resource path must be handled by both Device Management Client and Device Management Connect. All resource APIs are asynchronous. These APIs respond only if ...
python
def delete_resource_path(self, device_id, _resource_path, **kwargs): # noqa: E501 """Delete a resource path # noqa: E501 A request to delete a resource path must be handled by both Device Management Client and Device Management Connect. All resource APIs are asynchronous. These APIs respond only if ...
Delete a resource path # noqa: E501 A request to delete a resource path must be handled by both Device Management Client and Device Management Connect. All resource APIs are asynchronous. These APIs respond only if the device is turned on and connected to Device Management Connect and there is an active noti...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/resources_api.py#L36-L58
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/resources_api.py
ResourcesApi.execute_or_create_resource
def execute_or_create_resource(self, device_id, _resource_path, **kwargs): # noqa: E501 """Execute a function on a Resource or create new Object instance # noqa: E501 With this API, you can [execute a function](/docs/current/connecting/handle-resource-webapp.html#the-execute-operation) on an existing...
python
def execute_or_create_resource(self, device_id, _resource_path, **kwargs): # noqa: E501 """Execute a function on a Resource or create new Object instance # noqa: E501 With this API, you can [execute a function](/docs/current/connecting/handle-resource-webapp.html#the-execute-operation) on an existing...
Execute a function on a Resource or create new Object instance # noqa: E501 With this API, you can [execute a function](/docs/current/connecting/handle-resource-webapp.html#the-execute-operation) on an existing resource and create new Object instance to the device. The resource-path does not have to exist - i...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/resources_api.py#L139-L162
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/resources_api.py
ResourcesApi.get_resource_value
def get_resource_value(self, device_id, _resource_path, **kwargs): # noqa: E501 """Read from a resource # noqa: E501 Requests the resource value and when the response is available, an `AsyncIDResponse` json object is received in the notification channel. The preferred way to get resource values is to...
python
def get_resource_value(self, device_id, _resource_path, **kwargs): # noqa: E501 """Read from a resource # noqa: E501 Requests the resource value and when the response is available, an `AsyncIDResponse` json object is received in the notification channel. The preferred way to get resource values is to...
Read from a resource # noqa: E501 Requests the resource value and when the response is available, an `AsyncIDResponse` json object is received in the notification channel. The preferred way to get resource values is to use the **subscribe** and **callback** methods. All resource APIs are asynchronous. These ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/resources_api.py#L250-L273
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/resources_api.py
ResourcesApi.update_resource_value
def update_resource_value(self, device_id, _resource_path, resource_value, **kwargs): # noqa: E501 """Write to a resource or use write-attributes for a resource # noqa: E501 With this API, you can [write a new value to existing resources](/docs/current/connecting/handle-resource-webapp.html) or [use ...
python
def update_resource_value(self, device_id, _resource_path, resource_value, **kwargs): # noqa: E501 """Write to a resource or use write-attributes for a resource # noqa: E501 With this API, you can [write a new value to existing resources](/docs/current/connecting/handle-resource-webapp.html) or [use ...
Write to a resource or use write-attributes for a resource # noqa: E501 With this API, you can [write a new value to existing resources](/docs/current/connecting/handle-resource-webapp.html) or [use the write-attributes](/docs/current/connecting/resource-change-webapp.html) for a resource. This API can also ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/resources_api.py#L357-L380
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI.get_quota_remaining
def get_quota_remaining(self): """Get the remaining value""" api = self._get_api(billing.DefaultApi) quota = api.get_service_package_quota() return None if quota is None else int(quota.quota)
python
def get_quota_remaining(self): """Get the remaining value""" api = self._get_api(billing.DefaultApi) quota = api.get_service_package_quota() return None if quota is None else int(quota.quota)
Get the remaining value
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L50-L54
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI.get_quota_history
def get_quota_history(self, **kwargs): """Get quota usage history""" kwargs = self._verify_sort_options(kwargs) kwargs = self._verify_filters(kwargs, ServicePackage) api = self._get_api(billing.DefaultApi) return PaginatedResponse( api.get_service_package_quota_histor...
python
def get_quota_history(self, **kwargs): """Get quota usage history""" kwargs = self._verify_sort_options(kwargs) kwargs = self._verify_filters(kwargs, ServicePackage) api = self._get_api(billing.DefaultApi) return PaginatedResponse( api.get_service_package_quota_histor...
Get quota usage history
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L57-L66
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI.get_service_packages
def get_service_packages(self): """Get all service packages""" api = self._get_api(billing.DefaultApi) package_response = api.get_service_packages() packages = [] for state in PACKAGE_STATES: # iterate states in order items = getattr(package_response, stat...
python
def get_service_packages(self): """Get all service packages""" api = self._get_api(billing.DefaultApi) package_response = api.get_service_packages() packages = [] for state in PACKAGE_STATES: # iterate states in order items = getattr(package_response, stat...
Get all service packages
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L69-L81
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI._month_converter
def _month_converter(self, date_time): """Returns Billing API format YYYY-DD""" if not date_time: date_time = datetime.datetime.utcnow() if isinstance(date_time, datetime.datetime): date_time = '%s-%02d' % (date_time.year, date_time.month) return date_time
python
def _month_converter(self, date_time): """Returns Billing API format YYYY-DD""" if not date_time: date_time = datetime.datetime.utcnow() if isinstance(date_time, datetime.datetime): date_time = '%s-%02d' % (date_time.year, date_time.month) return date_time
Returns Billing API format YYYY-DD
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L83-L89
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI._filepath_converter
def _filepath_converter(self, user_path, file_name): """Logic for obtaining a file path :param user_path: a path as provided by the user. perhaps a file or directory? :param file_name: the name of the remote file :return: """ path = user_path or os.path.join(os.getcwd(),...
python
def _filepath_converter(self, user_path, file_name): """Logic for obtaining a file path :param user_path: a path as provided by the user. perhaps a file or directory? :param file_name: the name of the remote file :return: """ path = user_path or os.path.join(os.getcwd(),...
Logic for obtaining a file path :param user_path: a path as provided by the user. perhaps a file or directory? :param file_name: the name of the remote file :return:
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L91-L111
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI.get_report_overview
def get_report_overview(self, month, file_path): """Downloads a report overview :param month: month as datetime instance, or string in YYYY-MM format :type month: str or datetime :param str file_path: location to store output file :return: outcome :rtype: True or None ...
python
def get_report_overview(self, month, file_path): """Downloads a report overview :param month: month as datetime instance, or string in YYYY-MM format :type month: str or datetime :param str file_path: location to store output file :return: outcome :rtype: True or None ...
Downloads a report overview :param month: month as datetime instance, or string in YYYY-MM format :type month: str or datetime :param str file_path: location to store output file :return: outcome :rtype: True or None
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L114-L136
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/billing/billing.py
BillingAPI.get_report_firmware_updates
def get_report_firmware_updates(self, month=None, file_path=None): """Downloads a report of the firmware updates :param str file_path: [optional] location to store output file :param month: [default: utcnow] month as datetime instance, or string in YYYY-MM format :type month: str or dat...
python
def get_report_firmware_updates(self, month=None, file_path=None): """Downloads a report of the firmware updates :param str file_path: [optional] location to store output file :param month: [default: utcnow] month as datetime instance, or string in YYYY-MM format :type month: str or dat...
Downloads a report of the firmware updates :param str file_path: [optional] location to store output file :param month: [default: utcnow] month as datetime instance, or string in YYYY-MM format :type month: str or datetime :return: The report structure :rtype: dict
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/billing/billing.py#L159-L176
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/notifications_api.py
NotificationsApi.delete_long_poll_channel
def delete_long_poll_channel(self, **kwargs): # noqa: E501 """Delete notification Long Poll channel # noqa: E501 To delete a notification Long Poll channel. This is required to change the channel from Long Poll to a callback. You should not make a GET `/v2/notification/pull` call for 2 minutes after ...
python
def delete_long_poll_channel(self, **kwargs): # noqa: E501 """Delete notification Long Poll channel # noqa: E501 To delete a notification Long Poll channel. This is required to change the channel from Long Poll to a callback. You should not make a GET `/v2/notification/pull` call for 2 minutes after ...
Delete notification Long Poll channel # noqa: E501 To delete a notification Long Poll channel. This is required to change the channel from Long Poll to a callback. You should not make a GET `/v2/notification/pull` call for 2 minutes after channel was deleted, because it can implicitly recreate the pull channe...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/notifications_api.py#L36-L55
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/notifications_api.py
NotificationsApi.deregister_webhook
def deregister_webhook(self, **kwargs): # noqa: E501 """Delete callback URL # noqa: E501 Deletes the callback URL. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes a synch...
python
def deregister_webhook(self, **kwargs): # noqa: E501 """Delete callback URL # noqa: E501 Deletes the callback URL. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes a synch...
Delete callback URL # noqa: E501 Deletes the callback URL. **Example usage:** curl -X DELETE https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous H...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/notifications_api.py#L119-L138
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/notifications_api.py
NotificationsApi.get_webhook
def get_webhook(self, **kwargs): # noqa: E501 """Check callback URL # noqa: E501 Shows the current callback URL if it exists. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes...
python
def get_webhook(self, **kwargs): # noqa: E501 """Check callback URL # noqa: E501 Shows the current callback URL if it exists. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes...
Check callback URL # noqa: E501 Shows the current callback URL if it exists. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v2/notification/callback -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes a synchronous HTTP request by default. To make an ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/notifications_api.py#L202-L221
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/notifications_api.py
NotificationsApi.long_poll_notifications
def long_poll_notifications(self, **kwargs): # noqa: E501 """Get notifications using Long Poll # noqa: E501 In this case, notifications are delivered through HTTP long poll requests. The HTTP request is kept open until an event notification or a batch of event notifications are delivered to the clien...
python
def long_poll_notifications(self, **kwargs): # noqa: E501 """Get notifications using Long Poll # noqa: E501 In this case, notifications are delivered through HTTP long poll requests. The HTTP request is kept open until an event notification or a batch of event notifications are delivered to the clien...
Get notifications using Long Poll # noqa: E501 In this case, notifications are delivered through HTTP long poll requests. The HTTP request is kept open until an event notification or a batch of event notifications are delivered to the client or the request times out (response code 204). In both cases, the cli...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/notifications_api.py#L289-L308
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/mds/apis/notifications_api.py
NotificationsApi.register_webhook
def register_webhook(self, webhook, **kwargs): # noqa: E501 """Register a callback URL # noqa: E501 Register a URL to which the server should deliver notifications of the subscribed resource changes. To get notifications pushed, you also need to place the subscriptions. The maximum length of the URL,...
python
def register_webhook(self, webhook, **kwargs): # noqa: E501 """Register a callback URL # noqa: E501 Register a URL to which the server should deliver notifications of the subscribed resource changes. To get notifications pushed, you also need to place the subscriptions. The maximum length of the URL,...
Register a callback URL # noqa: E501 Register a URL to which the server should deliver notifications of the subscribed resource changes. To get notifications pushed, you also need to place the subscriptions. The maximum length of the URL, header keys and values, all combined, is 400 characters. Notifications ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/mds/apis/notifications_api.py#L376-L396
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/device_directory/models/device_event_data.py
DeviceEventData.event_type
def event_type(self, event_type): """ Sets the event_type of this DeviceEventData. Event code :param event_type: The event_type of this DeviceEventData. :type: str """ if event_type is not None and len(event_type) > 100: raise ValueError("Invalid valu...
python
def event_type(self, event_type): """ Sets the event_type of this DeviceEventData. Event code :param event_type: The event_type of this DeviceEventData. :type: str """ if event_type is not None and len(event_type) > 100: raise ValueError("Invalid valu...
Sets the event_type of this DeviceEventData. Event code :param event_type: The event_type of this DeviceEventData. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/device_directory/models/device_event_data.py#L248-L259
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.add_my_api_key_to_groups
def add_my_api_key_to_groups(self, body, **kwargs): # noqa: E501 """Add API key to a list of groups. # noqa: E501 An endpoint for adding API key to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586...
python
def add_my_api_key_to_groups(self, body, **kwargs): # noqa: E501 """Add API key to a list of groups. # noqa: E501 An endpoint for adding API key to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586...
Add API key to a list of groups. # noqa: E501 An endpoint for adding API key to groups. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Authorization: B...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L36-L56
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.create_api_key
def create_api_key(self, body, **kwargs): # noqa: E501 """Create a new API key. # noqa: E501 An endpoint for creating a new API key. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys -d '{\"name\": \"MyKey1\"}' -H 'content-type: application/json' -H 'Authorization: Be...
python
def create_api_key(self, body, **kwargs): # noqa: E501 """Create a new API key. # noqa: E501 An endpoint for creating a new API key. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys -d '{\"name\": \"MyKey1\"}' -H 'content-type: application/json' -H 'Authorization: Be...
Create a new API key. # noqa: E501 An endpoint for creating a new API key. **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/api-keys -d '{\"name\": \"MyKey1\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronou...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L135-L155
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.delete_api_key
def delete_api_key(self, api_key, **kwargs): # noqa: E501 """Delete API key. # noqa: E501 An endpoint for deleting the API key. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes ...
python
def delete_api_key(self, api_key, **kwargs): # noqa: E501 """Delete API key. # noqa: E501 An endpoint for deleting the API key. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes ...
Delete API key. # noqa: E501 An endpoint for deleting the API key. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L234-L254
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.delete_certificate
def delete_certificate(self, cert_id, **kwargs): # noqa: E501 """Delete a trusted certificate by ID. # noqa: E501 An endpoint for deleting a trusted certificate. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -H 'Authorization: Bearer API_KE...
python
def delete_certificate(self, cert_id, **kwargs): # noqa: E501 """Delete a trusted certificate by ID. # noqa: E501 An endpoint for deleting a trusted certificate. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -H 'Authorization: Bearer API_KE...
Delete a trusted certificate by ID. # noqa: E501 An endpoint for deleting a trusted certificate. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L329-L349
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_all_api_keys
def get_all_api_keys(self, **kwargs): # noqa: E501 """Get all API keys # noqa: E501 An endpoint for retrieving API keys in an array, optionally filtered by the owner. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys -H 'Authorization: Bearer API_KEY'` # noqa: E501 T...
python
def get_all_api_keys(self, **kwargs): # noqa: E501 """Get all API keys # noqa: E501 An endpoint for retrieving API keys in an array, optionally filtered by the owner. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys -H 'Authorization: Bearer API_KEY'` # noqa: E501 T...
Get all API keys # noqa: E501 An endpoint for retrieving API keys in an array, optionally filtered by the owner. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L424-L449
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_all_certificates
def get_all_certificates(self, **kwargs): # noqa: E501 """Get all trusted certificates. # noqa: E501 An endpoint for retrieving trusted certificates in an array. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/trusted-certificates -H 'Authorization: Bearer API_KEY'` # noqa: E501 ...
python
def get_all_certificates(self, **kwargs): # noqa: E501 """Get all trusted certificates. # noqa: E501 An endpoint for retrieving trusted certificates in an array. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/trusted-certificates -H 'Authorization: Bearer API_KEY'` # noqa: E501 ...
Get all trusted certificates. # noqa: E501 An endpoint for retrieving trusted certificates in an array. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/trusted-certificates -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To m...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L535-L567
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_all_groups
def get_all_groups(self, **kwargs): # noqa: E501 """Get all group information. # noqa: E501 An endpoint for retrieving all group information. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a s...
python
def get_all_groups(self, **kwargs): # noqa: E501 """Get all group information. # noqa: E501 An endpoint for retrieving all group information. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a s...
Get all group information. # noqa: E501 An endpoint for retrieving all group information. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynch...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L674-L698
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_api_key
def get_api_key(self, api_key, **kwargs): # noqa: E501 """Get API key details. # noqa: E501 An endpoint for retrieving API key details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a ...
python
def get_api_key(self, api_key, **kwargs): # noqa: E501 """Get API key details. # noqa: E501 An endpoint for retrieving API key details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a ...
Get API key details. # noqa: E501 An endpoint for retrieving API key details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronou...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L781-L801
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_api_keys_of_group
def get_api_keys_of_group(self, group_id, **kwargs): # noqa: E501 """Get the API keys of a group. # noqa: E501 An endpoint for listing the API keys of the group with details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/api-keys -H 'Authorization: Bearer ...
python
def get_api_keys_of_group(self, group_id, **kwargs): # noqa: E501 """Get the API keys of a group. # noqa: E501 An endpoint for listing the API keys of the group with details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/api-keys -H 'Authorization: Bearer ...
Get the API keys of a group. # noqa: E501 An endpoint for listing the API keys of the group with details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/api-keys -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request b...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L876-L900
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_certificate
def get_certificate(self, cert_id, **kwargs): # noqa: E501 """Get trusted certificate by ID. # noqa: E501 An endpoint for retrieving a trusted certificate by ID. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -H 'Authorization: Bearer API_KEY'` # noq...
python
def get_certificate(self, cert_id, **kwargs): # noqa: E501 """Get trusted certificate by ID. # noqa: E501 An endpoint for retrieving a trusted certificate by ID. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -H 'Authorization: Bearer API_KEY'` # noq...
Get trusted certificate by ID. # noqa: E501 An endpoint for retrieving a trusted certificate by ID. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L987-L1007
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_group_summary
def get_group_summary(self, group_id, **kwargs): # noqa: E501 """Get group information. # noqa: E501 An endpoint for getting general information about the group. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -H 'Authorization: Bearer API_KEY'` # noqa: E50...
python
def get_group_summary(self, group_id, **kwargs): # noqa: E501 """Get group information. # noqa: E501 An endpoint for getting general information about the group. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -H 'Authorization: Bearer API_KEY'` # noqa: E50...
Get group information. # noqa: E501 An endpoint for getting general information about the group. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id} -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1082-L1102
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_groups_of_my_api_key
def get_groups_of_my_api_key(self, **kwargs): # noqa: E501 """Get groups of the API key. # noqa: E501 An endpoint for retrieving groups of the API key. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This m...
python
def get_groups_of_my_api_key(self, **kwargs): # noqa: E501 """Get groups of the API key. # noqa: E501 An endpoint for retrieving groups of the API key. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This m...
Get groups of the API key. # noqa: E501 An endpoint for retrieving groups of the API key. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an a...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1177-L1200
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_my_account_info
def get_my_account_info(self, **kwargs): # noqa: E501 """Get account info. # noqa: E501 Returns detailed information about the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/accounts/me?include=policies -H 'Authorization: Bearer API_KEY'`. # noqa: E501 This method...
python
def get_my_account_info(self, **kwargs): # noqa: E501 """Get account info. # noqa: E501 Returns detailed information about the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/accounts/me?include=policies -H 'Authorization: Bearer API_KEY'`. # noqa: E501 This method...
Get account info. # noqa: E501 Returns detailed information about the account. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/accounts/me?include=policies -H 'Authorization: Bearer API_KEY'`. # noqa: E501 This method makes a synchronous HTTP request by default. To make an a...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1280-L1301
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.get_my_api_key
def get_my_api_key(self, **kwargs): # noqa: E501 """Get API key details. # noqa: E501 An endpoint for retrieving API key details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/me -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTT...
python
def get_my_api_key(self, **kwargs): # noqa: E501 """Get API key details. # noqa: E501 An endpoint for retrieving API key details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/me -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTT...
Get API key details. # noqa: E501 An endpoint for retrieving API key details. **Example usage:** `curl https://api.us-east-1.mbedcloud.com/v3/api-keys/me -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP re...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1375-L1394
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.remove_api_keys_from_group
def remove_api_keys_from_group(self, group_id, body, **kwargs): # noqa: E501 """Remove API keys from a group. # noqa: E501 An endpoint for removing API keys from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/api-keys -d '[0162056a9a1586f3...
python
def remove_api_keys_from_group(self, group_id, body, **kwargs): # noqa: E501 """Remove API keys from a group. # noqa: E501 An endpoint for removing API keys from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/api-keys -d '[0162056a9a1586f3...
Remove API keys from a group. # noqa: E501 An endpoint for removing API keys from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/policy-groups/{group-id}/api-keys -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1462-L1483
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.remove_my_api_key_from_groups
def remove_my_api_key_from_groups(self, body, **kwargs): # noqa: E501 """Remove API key from groups. # noqa: E501 An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -d '[0162056a9a1586f30242590700000000,0117056a...
python
def remove_my_api_key_from_groups(self, body, **kwargs): # noqa: E501 """Remove API key from groups. # noqa: E501 An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -d '[0162056a9a1586f30242590700000000,0117056a...
Remove API key from groups. # noqa: E501 An endpoint for removing API key from groups. **Example usage:** `curl -X DELETE https://api.us-east-1.mbedcloud.com/v3/api-keys/me/groups -d '[0162056a9a1586f30242590700000000,0117056a9a1586f30242590700000000]' -H 'content-type: application/json' -H 'Authorization: ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1569-L1589
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.update_api_key
def update_api_key(self, api_key, body, **kwargs): # noqa: E501 """Update API key details. # noqa: E501 An endpoint for updating API key details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -d '{\"name\": \"TestApiKey25\"}' -H 'content-type: applicati...
python
def update_api_key(self, api_key, body, **kwargs): # noqa: E501 """Update API key details. # noqa: E501 An endpoint for updating API key details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -d '{\"name\": \"TestApiKey25\"}' -H 'content-type: applicati...
Update API key details. # noqa: E501 An endpoint for updating API key details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/api-keys/{apikey-id} -d '{\"name\": \"TestApiKey25\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This meth...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1668-L1689
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.update_certificate
def update_certificate(self, cert_id, body, **kwargs): # noqa: E501 """Update trusted certificate. # noqa: E501 An endpoint for updating existing trusted certificates. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -d {\"description\": \"very i...
python
def update_certificate(self, cert_id, body, **kwargs): # noqa: E501 """Update trusted certificate. # noqa: E501 An endpoint for updating existing trusted certificates. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -d {\"description\": \"very i...
Update trusted certificate. # noqa: E501 An endpoint for updating existing trusted certificates. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/trusted-certificates/{cert-id} -d {\"description\": \"very important cert\"} -H 'content-type: application/json' -H 'Authorization: Bearer A...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1771-L1792
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/iam/apis/developer_api.py
DeveloperApi.update_my_api_key
def update_my_api_key(self, body, **kwargs): # noqa: E501 """Update API key details. # noqa: E501 An endpoint for updating API key details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/api-keys/me -d '{\"name\": \"TestApiKey25\"}' -H 'content-type: application/json' -H 'Au...
python
def update_my_api_key(self, body, **kwargs): # noqa: E501 """Update API key details. # noqa: E501 An endpoint for updating API key details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/api-keys/me -d '{\"name\": \"TestApiKey25\"}' -H 'content-type: application/json' -H 'Au...
Update API key details. # noqa: E501 An endpoint for updating API key details. **Example usage:** `curl -X PUT https://api.us-east-1.mbedcloud.com/v3/api-keys/me -d '{\"name\": \"TestApiKey25\"}' -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'` # noqa: E501 This method makes ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/iam/apis/developer_api.py#L1878-L1898
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/resource_values.py
ResourceValues._pattern_match
def _pattern_match(self, item, pattern): """Determine whether the item supplied is matched by the pattern.""" if pattern.endswith('*'): return item.startswith(pattern[:-1]) else: return item == pattern
python
def _pattern_match(self, item, pattern): """Determine whether the item supplied is matched by the pattern.""" if pattern.endswith('*'): return item.startswith(pattern[:-1]) else: return item == pattern
Determine whether the item supplied is matched by the pattern.
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/resource_values.py#L140-L145
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/resource_values.py
ResourceValues.start
def start(self): """Start the channel""" super(ResourceValues, self).start() self._api.ensure_notifications_thread() self._presubs.add(self._sdk_presub_params) if self._immediacy == FirstValue.on_value_update: self._subscribe_all_matching()
python
def start(self): """Start the channel""" super(ResourceValues, self).start() self._api.ensure_notifications_thread() self._presubs.add(self._sdk_presub_params) if self._immediacy == FirstValue.on_value_update: self._subscribe_all_matching()
Start the channel
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/resource_values.py#L198-L204
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/resource_values.py
ResourceValues.stop
def stop(self): """Stop the channel""" self._presubs.remove(self._sdk_presub_params) if self._immediacy == FirstValue.on_value_update: self._unsubscribe_all_matching() super(ResourceValues, self).stop()
python
def stop(self): """Stop the channel""" self._presubs.remove(self._sdk_presub_params) if self._immediacy == FirstValue.on_value_update: self._unsubscribe_all_matching() super(ResourceValues, self).stop()
Stop the channel
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/resource_values.py#L219-L224
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/resource_values.py
PreSubscriptionRegistry.load_from_cloud
def load_from_cloud(self): """Sync - read""" self.current = [ {k: v for k, v in p.to_dict().items() if v is not None} for p in self.api.list_presubscriptions() ]
python
def load_from_cloud(self): """Sync - read""" self.current = [ {k: v for k, v in p.to_dict().items() if v is not None} for p in self.api.list_presubscriptions() ]
Sync - read
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/resource_values.py#L235-L240
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/resource_values.py
PreSubscriptionRegistry.add
def add(self, items): """Add entry to global presubs list""" with _presub_lock: self.load_from_cloud() for entry in utils.ensure_listable(items): # add new entries, but only if they're unique if entry not in self.current: self.c...
python
def add(self, items): """Add entry to global presubs list""" with _presub_lock: self.load_from_cloud() for entry in utils.ensure_listable(items): # add new entries, but only if they're unique if entry not in self.current: self.c...
Add entry to global presubs list
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/resource_values.py#L246-L254
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/subscribe/channels/resource_values.py
PreSubscriptionRegistry.remove
def remove(self, items): """Remove entry from global presubs list""" with _presub_lock: self.load_from_cloud() for entry in utils.ensure_listable(items): # remove all matching entries while entry in self.current: self.current.re...
python
def remove(self, items): """Remove entry from global presubs list""" with _presub_lock: self.load_from_cloud() for entry in utils.ensure_listable(items): # remove all matching entries while entry in self.current: self.current.re...
Remove entry from global presubs list
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/subscribe/channels/resource_values.py#L256-L264
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/utils.py
force_utc
def force_utc(time, name='field', precision=6): """Appending 'Z' to isoformatted time - explicit timezone is required for most APIs""" if not isinstance(time, datetime.datetime): raise CloudValueError("%s should be of type datetime" % (name,)) clip = 6 - precision timestring = time.isoformat() ...
python
def force_utc(time, name='field', precision=6): """Appending 'Z' to isoformatted time - explicit timezone is required for most APIs""" if not isinstance(time, datetime.datetime): raise CloudValueError("%s should be of type datetime" % (name,)) clip = 6 - precision timestring = time.isoformat() ...
Appending 'Z' to isoformatted time - explicit timezone is required for most APIs
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/utils.py#L39-L47
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/apis/default_api.py
DefaultApi.get_billing_report
def get_billing_report(self, month, **kwargs): # noqa: E501 """Get billing report. # noqa: E501 Fetch the billing report generated for the currently authenticated commercial non-subtenant account. Billing reports for subtenant accounts are included in their aggregator's billing report response. **Ex...
python
def get_billing_report(self, month, **kwargs): # noqa: E501 """Get billing report. # noqa: E501 Fetch the billing report generated for the currently authenticated commercial non-subtenant account. Billing reports for subtenant accounts are included in their aggregator's billing report response. **Ex...
Get billing report. # noqa: E501 Fetch the billing report generated for the currently authenticated commercial non-subtenant account. Billing reports for subtenant accounts are included in their aggregator's billing report response. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v3/b...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/apis/default_api.py#L36-L56
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/apis/default_api.py
DefaultApi.get_billing_report_active_devices
def get_billing_report_active_devices(self, month, **kwargs): # noqa: E501 """Get raw billing data of the active devices for the month. # noqa: E501 Fetch the raw billing data of the active devices for the currently authenticated commercial non-subtenant account. This is supplementary data for the bi...
python
def get_billing_report_active_devices(self, month, **kwargs): # noqa: E501 """Get raw billing data of the active devices for the month. # noqa: E501 Fetch the raw billing data of the active devices for the currently authenticated commercial non-subtenant account. This is supplementary data for the bi...
Get raw billing data of the active devices for the month. # noqa: E501 Fetch the raw billing data of the active devices for the currently authenticated commercial non-subtenant account. This is supplementary data for the billing report. The raw billing data of the active devices for subtenant accounts are inc...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/apis/default_api.py#L133-L153
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/apis/default_api.py
DefaultApi.get_billing_report_firmware_updates
def get_billing_report_firmware_updates(self, month, **kwargs): # noqa: E501 """Get raw billing data of the firmware updates for the month. # noqa: E501 Fetch raw billing data of the firmware updates for the currently authenticated commercial non-subtenant account. This is supplementary data for the ...
python
def get_billing_report_firmware_updates(self, month, **kwargs): # noqa: E501 """Get raw billing data of the firmware updates for the month. # noqa: E501 Fetch raw billing data of the firmware updates for the currently authenticated commercial non-subtenant account. This is supplementary data for the ...
Get raw billing data of the firmware updates for the month. # noqa: E501 Fetch raw billing data of the firmware updates for the currently authenticated commercial non-subtenant account. This is supplementary data for the billing report. The raw billing data of the firmware updates for subtenant accounts are i...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/apis/default_api.py#L230-L250
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/apis/default_api.py
DefaultApi.get_service_package_quota
def get_service_package_quota(self, **kwargs): # noqa: E501 """Service package quota. # noqa: E501 Get the available firmware update quota for the currently authenticated commercial account. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v3/service-packages-quota -H 'authori...
python
def get_service_package_quota(self, **kwargs): # noqa: E501 """Service package quota. # noqa: E501 Get the available firmware update quota for the currently authenticated commercial account. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v3/service-packages-quota -H 'authori...
Service package quota. # noqa: E501 Get the available firmware update quota for the currently authenticated commercial account. **Example usage:** curl -X GET https://api.us-east-1.mbedcloud.com/v3/service-packages-quota -H 'authorization: Bearer {api-key}' # noqa: E501 This method makes a syn...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/apis/default_api.py#L327-L346
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/apis/default_api.py
DefaultApi.get_service_package_quota_history
def get_service_package_quota_history(self, **kwargs): # noqa: E501 """Service package quota history. # noqa: E501 Get your quota usage history. This API is available for commercial accounts. Aggregator accounts can see own and subtenant quota usage data. History data is ordered in ascending order ba...
python
def get_service_package_quota_history(self, **kwargs): # noqa: E501 """Service package quota history. # noqa: E501 Get your quota usage history. This API is available for commercial accounts. Aggregator accounts can see own and subtenant quota usage data. History data is ordered in ascending order ba...
Service package quota history. # noqa: E501 Get your quota usage history. This API is available for commercial accounts. Aggregator accounts can see own and subtenant quota usage data. History data is ordered in ascending order based on the added timestamp. **Example usage:** curl -X GET https://api.us-...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/apis/default_api.py#L414-L435
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/billing/apis/default_api.py
DefaultApi.get_service_packages
def get_service_packages(self, **kwargs): # noqa: E501 """Get all service packages. # noqa: E501 Get information of all service packages for the currently authenticated commercial account. The response is returned in descending order by service package created timestamp, listing first the pending ser...
python
def get_service_packages(self, **kwargs): # noqa: E501 """Get all service packages. # noqa: E501 Get information of all service packages for the currently authenticated commercial account. The response is returned in descending order by service package created timestamp, listing first the pending ser...
Get all service packages. # noqa: E501 Get information of all service packages for the currently authenticated commercial account. The response is returned in descending order by service package created timestamp, listing first the pending service package, then the active service package and finally the previ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/billing/apis/default_api.py#L519-L538
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/decorators.py
catch_exceptions
def catch_exceptions(*exceptions): """Catch all exceptions provided as arguments, and raise CloudApiException instead.""" def wrap(fn): @functools.wraps(fn) def wrapped_f(*args, **kwargs): try: return fn(*args, **kwargs) except exceptions: ...
python
def catch_exceptions(*exceptions): """Catch all exceptions provided as arguments, and raise CloudApiException instead.""" def wrap(fn): @functools.wraps(fn) def wrapped_f(*args, **kwargs): try: return fn(*args, **kwargs) except exceptions: ...
Catch all exceptions provided as arguments, and raise CloudApiException instead.
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/decorators.py#L27-L42
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py
DeviceDataPostRequest.endpoint_name
def endpoint_name(self, endpoint_name): """ Sets the endpoint_name of this DeviceDataPostRequest. The endpoint name given to the device. :param endpoint_name: The endpoint_name of this DeviceDataPostRequest. :type: str """ if endpoint_name is not None and len(end...
python
def endpoint_name(self, endpoint_name): """ Sets the endpoint_name of this DeviceDataPostRequest. The endpoint name given to the device. :param endpoint_name: The endpoint_name of this DeviceDataPostRequest. :type: str """ if endpoint_name is not None and len(end...
Sets the endpoint_name of this DeviceDataPostRequest. The endpoint name given to the device. :param endpoint_name: The endpoint_name of this DeviceDataPostRequest. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py#L391-L402
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py
DeviceDataPostRequest.firmware_checksum
def firmware_checksum(self, firmware_checksum): """ Sets the firmware_checksum of this DeviceDataPostRequest. The SHA256 checksum of the current firmware image. :param firmware_checksum: The firmware_checksum of this DeviceDataPostRequest. :type: str """ if firmw...
python
def firmware_checksum(self, firmware_checksum): """ Sets the firmware_checksum of this DeviceDataPostRequest. The SHA256 checksum of the current firmware image. :param firmware_checksum: The firmware_checksum of this DeviceDataPostRequest. :type: str """ if firmw...
Sets the firmware_checksum of this DeviceDataPostRequest. The SHA256 checksum of the current firmware image. :param firmware_checksum: The firmware_checksum of this DeviceDataPostRequest. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py#L441-L452
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py
DeviceDataPostRequest.serial_number
def serial_number(self, serial_number): """ Sets the serial_number of this DeviceDataPostRequest. The serial number of the device. :param serial_number: The serial_number of this DeviceDataPostRequest. :type: str """ if serial_number is not None and len(serial_nu...
python
def serial_number(self, serial_number): """ Sets the serial_number of this DeviceDataPostRequest. The serial number of the device. :param serial_number: The serial_number of this DeviceDataPostRequest. :type: str """ if serial_number is not None and len(serial_nu...
Sets the serial_number of this DeviceDataPostRequest. The serial number of the device. :param serial_number: The serial_number of this DeviceDataPostRequest. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py#L635-L646
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py
DeviceDataPostRequest.vendor_id
def vendor_id(self, vendor_id): """ Sets the vendor_id of this DeviceDataPostRequest. The device vendor ID. :param vendor_id: The vendor_id of this DeviceDataPostRequest. :type: str """ if vendor_id is not None and len(vendor_id) > 255: raise ValueErr...
python
def vendor_id(self, vendor_id): """ Sets the vendor_id of this DeviceDataPostRequest. The device vendor ID. :param vendor_id: The vendor_id of this DeviceDataPostRequest. :type: str """ if vendor_id is not None and len(vendor_id) > 255: raise ValueErr...
Sets the vendor_id of this DeviceDataPostRequest. The device vendor ID. :param vendor_id: The vendor_id of this DeviceDataPostRequest. :type: str
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/_backends/device_directory/models/device_data_post_request.py#L689-L700
ARMmbed/mbed-cloud-sdk-python
scripts/ci_summary.py
main
def main(): """Collects results from CI run""" source_files = ( ('integration', r'results/results.xml'), ('unittests', r'results/unittests.xml'), ('coverage', r'results/coverage.xml') ) parsed = {k: ElementTree.parse(v).getroot().attrib for k, v in source_files} with open(r...
python
def main(): """Collects results from CI run""" source_files = ( ('integration', r'results/results.xml'), ('unittests', r'results/unittests.xml'), ('coverage', r'results/coverage.xml') ) parsed = {k: ElementTree.parse(v).getroot().attrib for k, v in source_files} with open(r...
Collects results from CI run
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/scripts/ci_summary.py#L24-L35
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.list_devices
def list_devices(self, **kwargs): """List devices in the device catalog. Example usage, listing all registered devices in the catalog: .. code-block:: python filters = { 'state': {'$eq': 'registered' } } devices = api.list_devices(order='asc', filters=filters) ...
python
def list_devices(self, **kwargs): """List devices in the device catalog. Example usage, listing all registered devices in the catalog: .. code-block:: python filters = { 'state': {'$eq': 'registered' } } devices = api.list_devices(order='asc', filters=filters) ...
List devices in the device catalog. Example usage, listing all registered devices in the catalog: .. code-block:: python filters = { 'state': {'$eq': 'registered' } } devices = api.list_devices(order='asc', filters=filters) for idx, d in enumerate(devices): ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L54-L77
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.get_device
def get_device(self, device_id): """Get device details from catalog. :param str device_id: the ID of the device to retrieve (Required) :returns: device object matching the `device_id`. :rtype: Device """ api = self._get_api(device_directory.DefaultApi) return Dev...
python
def get_device(self, device_id): """Get device details from catalog. :param str device_id: the ID of the device to retrieve (Required) :returns: device object matching the `device_id`. :rtype: Device """ api = self._get_api(device_directory.DefaultApi) return Dev...
Get device details from catalog. :param str device_id: the ID of the device to retrieve (Required) :returns: device object matching the `device_id`. :rtype: Device
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L80-L88
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.update_device
def update_device(self, device_id, **kwargs): """Update existing device in catalog. .. code-block:: python existing_device = api.get_device(...) updated_device = api.update_device( existing_device.id, certificate_fingerprint = "something new" ...
python
def update_device(self, device_id, **kwargs): """Update existing device in catalog. .. code-block:: python existing_device = api.get_device(...) updated_device = api.update_device( existing_device.id, certificate_fingerprint = "something new" ...
Update existing device in catalog. .. code-block:: python existing_device = api.get_device(...) updated_device = api.update_device( existing_device.id, certificate_fingerprint = "something new" ) :param str device_id: The ID of the d...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L91-L117
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.add_device
def add_device(self, **kwargs): """Add a new device to catalog. .. code-block:: python device = { "mechanism": "connector", "certificate_fingerprint": "<certificate>", "name": "New device name", "certificate_issuer_id": "<id>"...
python
def add_device(self, **kwargs): """Add a new device to catalog. .. code-block:: python device = { "mechanism": "connector", "certificate_fingerprint": "<certificate>", "name": "New device name", "certificate_issuer_id": "<id>"...
Add a new device to catalog. .. code-block:: python device = { "mechanism": "connector", "certificate_fingerprint": "<certificate>", "name": "New device name", "certificate_issuer_id": "<id>" } resp = api.add_d...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L120-L164
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.delete_device
def delete_device(self, device_id): """Delete device from catalog. :param str device_id: ID of device in catalog to delete (Required) :return: void """ api = self._get_api(device_directory.DefaultApi) return api.device_destroy(id=device_id)
python
def delete_device(self, device_id): """Delete device from catalog. :param str device_id: ID of device in catalog to delete (Required) :return: void """ api = self._get_api(device_directory.DefaultApi) return api.device_destroy(id=device_id)
Delete device from catalog. :param str device_id: ID of device in catalog to delete (Required) :return: void
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L167-L174
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.list_queries
def list_queries(self, **kwargs): """List queries in device query service. :param int limit: The number of devices to retrieve. :param str order: The ordering direction, ascending (asc) or descending (desc) :param str after: Get devices after/starting at given `device_id` ...
python
def list_queries(self, **kwargs): """List queries in device query service. :param int limit: The number of devices to retrieve. :param str order: The ordering direction, ascending (asc) or descending (desc) :param str after: Get devices after/starting at given `device_id` ...
List queries in device query service. :param int limit: The number of devices to retrieve. :param str order: The ordering direction, ascending (asc) or descending (desc) :param str after: Get devices after/starting at given `device_id` :param filters: Dictionary of filters t...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L177-L191
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.add_query
def add_query(self, name, filter, **kwargs): """Add a new query to device query service. .. code-block:: python f = api.add_query( name = "Query name", filter = { "device_id": {"$eq": "01234"}, custom_attributes = { ...
python
def add_query(self, name, filter, **kwargs): """Add a new query to device query service. .. code-block:: python f = api.add_query( name = "Query name", filter = { "device_id": {"$eq": "01234"}, custom_attributes = { ...
Add a new query to device query service. .. code-block:: python f = api.add_query( name = "Query name", filter = { "device_id": {"$eq": "01234"}, custom_attributes = { "foo": {"$eq": "bar"} ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L194-L225
ARMmbed/mbed-cloud-sdk-python
src/mbed_cloud/device_directory/device_directory.py
DeviceDirectoryAPI.update_query
def update_query(self, query_id, name=None, filter=None, **kwargs): """Update existing query in device query service. .. code-block:: python q = api.get_query(...) q.filter["custom_attributes"]["foo"] = { "$eq": "bar" } new_q = api.update...
python
def update_query(self, query_id, name=None, filter=None, **kwargs): """Update existing query in device query service. .. code-block:: python q = api.get_query(...) q.filter["custom_attributes"]["foo"] = { "$eq": "bar" } new_q = api.update...
Update existing query in device query service. .. code-block:: python q = api.get_query(...) q.filter["custom_attributes"]["foo"] = { "$eq": "bar" } new_q = api.update_query( query_id = q.id, name = "new name", ...
https://github.com/ARMmbed/mbed-cloud-sdk-python/blob/c0af86fb2cdd4dc7ed26f236139241067d293509/src/mbed_cloud/device_directory/device_directory.py#L228-L265