def device_simple_query_with_http_info(self, scope_id, **kwargs):
    'Gets the Device list in the scope  # noqa: E501\n\n        Returns the list of all the devices associated to the current selected scope.  # 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_simple_query_with_http_info(scope_id, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str scope_id: The ScopeId in which to search results. (required)\n        :param str tag_id: The tag id to filter results.\n        :param str client_id: The client id to filter results.\n        :param str status: The connection status to filter results.\n        :param list[str] fetch_attributes: Additional attributes to be returned. Allowed values: connection, lastEvent\n        :param int offset: The result set offset.\n        :param int limit: The result set limit.\n        :return: DeviceListResult\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    all_params = ['scope_id', 'tag_id', 'client_id', 'status', 'fetch_attributes', 'offset', 'limit']
    all_params.append('async_req')
    all_params.append('_return_http_data_only')
    all_params.append('_preload_content')
    all_params.append('_request_timeout')
    params = locals()
    for (key, val) in six.iteritems(params['kwargs']):
        if (key not in all_params):
            raise TypeError(("Got an unexpected keyword argument '%s' to method device_simple_query" % key))
        params[key] = val
    del params['kwargs']
    if (('scope_id' not in params) or (params['scope_id'] is None)):
        raise ValueError('Missing the required parameter `scope_id` when calling `device_simple_query`')
    collection_formats = {}
    path_params = {}
    if ('scope_id' in params):
        path_params['scopeId'] = params['scope_id']
    query_params = []
    if ('tag_id' in params):
        query_params.append(('tagId', params['tag_id']))
    if ('client_id' in params):
        query_params.append(('clientId', params['client_id']))
    if ('status' in params):
        query_params.append(('status', params['status']))
    if ('fetch_attributes' in params):
        query_params.append(('fetchAttributes', params['fetch_attributes']))
        collection_formats['fetchAttributes'] = 'multi'
    if ('offset' in params):
        query_params.append(('offset', params['offset']))
    if ('limit' in params):
        query_params.append(('limit', params['limit']))
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml'])
    auth_settings = ['kapuaAccessToken']
    return self.api_client.call_api('/{scopeId}/devices', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DeviceListResult', auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
Gets the Device list in the scope  # noqa: E501

Returns the list of all the devices associated to the current selected scope.  # 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_simple_query_with_http_info(scope_id, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str scope_id: The ScopeId in which to search results. (required)
:param str tag_id: The tag id to filter results.
:param str client_id: The client id to filter results.
:param str status: The connection status to filter results.
:param list[str] fetch_attributes: Additional attributes to be returned. Allowed values: connection, lastEvent
:param int offset: The result set offset.
:param int limit: The result set limit.
:return: DeviceListResult
         If the method is called asynchronously,
         returns the request thread.
def device_simple_query_with_http_info(self, scope_id, **kwargs):
    'Gets the Device list in the scope  # noqa: E501\n\n        Returns the list of all the devices associated to the current selected scope.  # 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_simple_query_with_http_info(scope_id, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str scope_id: The ScopeId in which to search results. (required)\n        :param str tag_id: The tag id to filter results.\n        :param str client_id: The client id to filter results.\n        :param str status: The connection status to filter results.\n        :param list[str] fetch_attributes: Additional attributes to be returned. Allowed values: connection, lastEvent\n        :param int offset: The result set offset.\n        :param int limit: The result set limit.\n        :return: DeviceListResult\n                 If the method is called asynchronously,\n                 returns the request thread.\n        '
    all_params = ['scope_id', 'tag_id', 'client_id', 'status', 'fetch_attributes', 'offset', 'limit']
    all_params.append('async_req')
    all_params.append('_return_http_data_only')
    all_params.append('_preload_content')
    all_params.append('_request_timeout')
    params = locals()
    for (key, val) in six.iteritems(params['kwargs']):
        if (key not in all_params):
            raise TypeError(("Got an unexpected keyword argument '%s' to method device_simple_query" % key))
        params[key] = val
    del params['kwargs']
    if (('scope_id' not in params) or (params['scope_id'] is None)):
        raise ValueError('Missing the required parameter `scope_id` when calling `device_simple_query`')
    collection_formats = {}
    path_params = {}
    if ('scope_id' in params):
        path_params['scopeId'] = params['scope_id']
    query_params = []
    if ('tag_id' in params):
        query_params.append(('tagId', params['tag_id']))
    if ('client_id' in params):
        query_params.append(('clientId', params['client_id']))
    if ('status' in params):
        query_params.append(('status', params['status']))
    if ('fetch_attributes' in params):
        query_params.append(('fetchAttributes', params['fetch_attributes']))
        collection_formats['fetchAttributes'] = 'multi'
    if ('offset' in params):
        query_params.append(('offset', params['offset']))
    if ('limit' in params):
        query_params.append(('limit', params['limit']))
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    header_params['Accept'] = self.api_client.select_header_accept(['application/json', 'application/xml'])
    auth_settings = ['kapuaAccessToken']
    return self.api_client.call_api('/{scopeId}/devices', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='DeviceListResult', auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)