def device_update(self, scope_id, device_id, body, **kwargs):
    'Update a Device  # noqa: E501\n\n        Updates a new Device based on the information provided in the Device parameter.  # noqa: E501\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.device_update(scope_id, device_id, body, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str scope_id: The ScopeId of the requested Device. (required)\n        :param str device_id: The id of the requested Device (required)\n        :param Device body: The modified Device whose attributed need to be updated (required)\n        :return: Device\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    kwargs['_return_http_data_only'] = True
    if kwargs.get('async_req'):
        return self.device_update_with_http_info(scope_id, device_id, body, **kwargs)
    else:
        data = self.device_update_with_http_info(scope_id, device_id, body, **kwargs)
        return data
Update a Device  # noqa: E501

Updates a new Device based on the information provided in the Device parameter.  # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.device_update(scope_id, device_id, body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str scope_id: The ScopeId of the requested Device. (required)
:param str device_id: The id of the requested Device (required)
:param Device body: The modified Device whose attributed need to be updated (required)
:return: Device
         If the method is called asynchronously,
         returns the request thread.
def device_update(self, scope_id, device_id, body, **kwargs):
    'Update a Device  # noqa: E501\n\n        Updates a new Device based on the information provided in the Device parameter.  # noqa: E501\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.device_update(scope_id, device_id, body, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str scope_id: The ScopeId of the requested Device. (required)\n        :param str device_id: The id of the requested Device (required)\n        :param Device body: The modified Device whose attributed need to be updated (required)\n        :return: Device\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    kwargs['_return_http_data_only'] = True
    if kwargs.get('async_req'):
        return self.device_update_with_http_info(scope_id, device_id, body, **kwargs)
    else:
        data = self.device_update_with_http_info(scope_id, device_id, body, **kwargs)
        return data