<gh_stars>1-10
# coding: utf-8

"""
    Eclipse Kapua REST API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re  # noqa: F401

# python 2 and python 3 compatibility library
import six

from swagger_client.api_client import ApiClient


class EndpointInfosApi(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client

    def create_endpoint_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Create a EndpointInfo  # noqa: E501

        Creates a new EndpointInfo based on the information provided in EndpointInfoCreator 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.create_endpoint_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to create the EndpointInfo (required)
        :param EndpointInfoCreator body: Provides the information for the new EndpointInfo to be created (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.create_endpoint_info_with_http_info(scope_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.create_endpoint_info_with_http_info(scope_id, body, **kwargs)  # noqa: E501
            return data

    def create_endpoint_info_with_http_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Create a EndpointInfo  # noqa: E501

        Creates a new EndpointInfo based on the information provided in EndpointInfoCreator 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.create_endpoint_info_with_http_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to create the EndpointInfo (required)
        :param EndpointInfoCreator body: Provides the information for the new EndpointInfo to be created (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'body']  # noqa: E501
        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 create_endpoint_info" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `create_endpoint_info`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `create_endpoint_info`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfo',  # noqa: E501
            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)

    def endpoint_info_count(self, scope_id, body, **kwargs):  # noqa: E501
        """Counts the EndpointInfos  # noqa: E501

        Counts the EndpointInfos with the given EndpointInfoQuery parameter returning the number of matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_count(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to count results (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter count results (required)
        :return: CountResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_count_with_http_info(scope_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_count_with_http_info(scope_id, body, **kwargs)  # noqa: E501
            return data

    def endpoint_info_count_with_http_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Counts the EndpointInfos  # noqa: E501

        Counts the EndpointInfos with the given EndpointInfoQuery parameter returning the number of matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_count_with_http_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to count results (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter count results (required)
        :return: CountResult
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'body']  # noqa: E501
        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 endpoint_info_count" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_count`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `endpoint_info_count`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/_count', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='CountResult',  # noqa: E501
            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)

    def endpoint_info_delete(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Delete an EndpointInfo  # noqa: E501

        Deletes the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_delete(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the EndpointInfo to delete. (required)
        :param str endpoint_info_id: The id of the EndpointInfo to be deleted (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
            return data

    def endpoint_info_delete_with_http_info(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Delete an EndpointInfo  # noqa: E501

        Deletes the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the EndpointInfo to delete. (required)
        :param str endpoint_info_id: The id of the EndpointInfo to be deleted (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'endpoint_info_id']  # noqa: E501
        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 endpoint_info_delete" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_delete`")  # noqa: E501
        # verify the required parameter 'endpoint_info_id' is set
        if ('endpoint_info_id' not in params or
                params['endpoint_info_id'] is None):
            raise ValueError("Missing the required parameter `endpoint_info_id` when calling `endpoint_info_delete`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501
        if 'endpoint_info_id' in params:
            path_params['endpointInfoId'] = params['endpoint_info_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/{endpointInfoId}', 'DELETE',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type=None,  # noqa: E501
            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)

    def endpoint_info_find(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Get a EndpointInfo  # noqa: E501

        Returns the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_find(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
            return data

    def endpoint_info_find_with_http_info(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Get a EndpointInfo  # noqa: E501

        Returns the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'endpoint_info_id']  # noqa: E501
        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 endpoint_info_find" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_find`")  # noqa: E501
        # verify the required parameter 'endpoint_info_id' is set
        if ('endpoint_info_id' not in params or
                params['endpoint_info_id'] is None):
            raise ValueError("Missing the required parameter `endpoint_info_id` when calling `endpoint_info_find`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501
        if 'endpoint_info_id' in params:
            path_params['endpointInfoId'] = params['endpoint_info_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json', 'application/xml'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/{endpointInfoId}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfo',  # noqa: E501
            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)

    def endpoint_info_query(self, scope_id, body, **kwargs):  # noqa: E501
        """Queries the EndpointInfos  # noqa: E501

        Queries the EndpointInfos with the given EndpointInfoQuery parameter returning all matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_query(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to search results. (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter results. (required)
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_query_with_http_info(scope_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_query_with_http_info(scope_id, body, **kwargs)  # noqa: E501
            return data

    def endpoint_info_query_with_http_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Queries the EndpointInfos  # noqa: E501

        Queries the EndpointInfos with the given EndpointInfoQuery parameter returning all matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_query_with_http_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to search results. (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter results. (required)
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'body']  # noqa: E501
        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 endpoint_info_query" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_query`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `endpoint_info_query`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/_query', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfoListResult',  # noqa: E501
            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)

    def endpoint_info_simple_query(self, scope_id, **kwargs):  # noqa: E501
        """Gets the EndpointInfo list in the scope  # noqa: E501

        Returns the list of all the endpointInfos 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.endpoint_info_simple_query(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 usage: The endpointInfo usage to filter results.
        :param int offset: The result set offset.
        :param int limit: The result set limit.
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_simple_query_with_http_info(scope_id, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_simple_query_with_http_info(scope_id, **kwargs)  # noqa: E501
            return data

    def endpoint_info_simple_query_with_http_info(self, scope_id, **kwargs):  # noqa: E501
        """Gets the EndpointInfo list in the scope  # noqa: E501

        Returns the list of all the endpointInfos 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.endpoint_info_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 usage: The endpointInfo usage to filter results.
        :param int offset: The result set offset.
        :param int limit: The result set limit.
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'usage', 'offset', 'limit']  # noqa: E501
        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 endpoint_info_simple_query" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_simple_query`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []
        if 'usage' in params:
            query_params.append(('usage', params['usage']))  # noqa: E501
        if 'offset' in params:
            query_params.append(('offset', params['offset']))  # noqa: E501
        if 'limit' in params:
            query_params.append(('limit', params['limit']))  # noqa: E501

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json', 'application/xml'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfoListResult',  # noqa: E501
            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)

    def endpoint_info_update(self, scope_id, endpoint_info_id, body, **kwargs):  # noqa: E501
        """Update a EndpointInfo  # noqa: E501

        Updates a new EndpointInfo based on the information provided in the EndpointInfo 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.endpoint_info_update(scope_id, endpoint_info_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :param EndpointInfo body: The modified EndpointInfo whose attributed need to be updated (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, **kwargs)  # noqa: E501
            return data

    def endpoint_info_update_with_http_info(self, scope_id, endpoint_info_id, body, **kwargs):  # noqa: E501
        """Update a EndpointInfo  # noqa: E501

        Updates a new EndpointInfo based on the information provided in the EndpointInfo 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.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :param EndpointInfo body: The modified EndpointInfo whose attributed need to be updated (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'endpoint_info_id', 'body']  # noqa: E501
        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 endpoint_info_update" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_update`")  # noqa: E501
        # verify the required parameter 'endpoint_info_id' is set
        if ('endpoint_info_id' not in params or
                params['endpoint_info_id'] is None):
            raise ValueError("Missing the required parameter `endpoint_info_id` when calling `endpoint_info_update`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `endpoint_info_update`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501
        if 'endpoint_info_id' in params:
            path_params['endpointInfoId'] = params['endpoint_info_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/{endpointInfoId}', 'PUT',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfo',  # noqa: E501
            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)

# coding: utf-8

"""
    Eclipse Kapua REST API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re  # noqa: F401

# python 2 and python 3 compatibility library
import six

from swagger_client.api_client import ApiClient


class EndpointInfosApi(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client

    def create_endpoint_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Create a EndpointInfo  # noqa: E501

        Creates a new EndpointInfo based on the information provided in EndpointInfoCreator 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.create_endpoint_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to create the EndpointInfo (required)
        :param EndpointInfoCreator body: Provides the information for the new EndpointInfo to be created (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.create_endpoint_info_with_http_info(scope_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.create_endpoint_info_with_http_info(scope_id, body, **kwargs)  # noqa: E501
            return data

    def create_endpoint_info_with_http_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Create a EndpointInfo  # noqa: E501

        Creates a new EndpointInfo based on the information provided in EndpointInfoCreator 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.create_endpoint_info_with_http_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to create the EndpointInfo (required)
        :param EndpointInfoCreator body: Provides the information for the new EndpointInfo to be created (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'body']  # noqa: E501
        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 create_endpoint_info" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `create_endpoint_info`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `create_endpoint_info`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfo',  # noqa: E501
            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)

    def endpoint_info_count(self, scope_id, body, **kwargs):  # noqa: E501
        """Counts the EndpointInfos  # noqa: E501

        Counts the EndpointInfos with the given EndpointInfoQuery parameter returning the number of matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_count(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to count results (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter count results (required)
        :return: CountResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_count_with_http_info(scope_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_count_with_http_info(scope_id, body, **kwargs)  # noqa: E501
            return data

    def endpoint_info_count_with_http_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Counts the EndpointInfos  # noqa: E501

        Counts the EndpointInfos with the given EndpointInfoQuery parameter returning the number of matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_count_with_http_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to count results (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter count results (required)
        :return: CountResult
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'body']  # noqa: E501
        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 endpoint_info_count" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_count`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `endpoint_info_count`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/_count', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='CountResult',  # noqa: E501
            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)

    def endpoint_info_delete(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Delete an EndpointInfo  # noqa: E501

        Deletes the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_delete(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the EndpointInfo to delete. (required)
        :param str endpoint_info_id: The id of the EndpointInfo to be deleted (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
            return data

    def endpoint_info_delete_with_http_info(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Delete an EndpointInfo  # noqa: E501

        Deletes the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the EndpointInfo to delete. (required)
        :param str endpoint_info_id: The id of the EndpointInfo to be deleted (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'endpoint_info_id']  # noqa: E501
        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 endpoint_info_delete" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_delete`")  # noqa: E501
        # verify the required parameter 'endpoint_info_id' is set
        if ('endpoint_info_id' not in params or
                params['endpoint_info_id'] is None):
            raise ValueError("Missing the required parameter `endpoint_info_id` when calling `endpoint_info_delete`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501
        if 'endpoint_info_id' in params:
            path_params['endpointInfoId'] = params['endpoint_info_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/{endpointInfoId}', 'DELETE',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type=None,  # noqa: E501
            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)

    def endpoint_info_find(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Get a EndpointInfo  # noqa: E501

        Returns the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_find(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, **kwargs)  # noqa: E501
            return data

    def endpoint_info_find_with_http_info(self, scope_id, endpoint_info_id, **kwargs):  # noqa: E501
        """Get a EndpointInfo  # noqa: E501

        Returns the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'endpoint_info_id']  # noqa: E501
        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 endpoint_info_find" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_find`")  # noqa: E501
        # verify the required parameter 'endpoint_info_id' is set
        if ('endpoint_info_id' not in params or
                params['endpoint_info_id'] is None):
            raise ValueError("Missing the required parameter `endpoint_info_id` when calling `endpoint_info_find`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501
        if 'endpoint_info_id' in params:
            path_params['endpointInfoId'] = params['endpoint_info_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json', 'application/xml'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/{endpointInfoId}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfo',  # noqa: E501
            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)

    def endpoint_info_query(self, scope_id, body, **kwargs):  # noqa: E501
        """Queries the EndpointInfos  # noqa: E501

        Queries the EndpointInfos with the given EndpointInfoQuery parameter returning all matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_query(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to search results. (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter results. (required)
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_query_with_http_info(scope_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_query_with_http_info(scope_id, body, **kwargs)  # noqa: E501
            return data

    def endpoint_info_query_with_http_info(self, scope_id, body, **kwargs):  # noqa: E501
        """Queries the EndpointInfos  # noqa: E501

        Queries the EndpointInfos with the given EndpointInfoQuery parameter returning all matching EndpointInfos  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.endpoint_info_query_with_http_info(scope_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId in which to search results. (required)
        :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter results. (required)
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'body']  # noqa: E501
        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 endpoint_info_query" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_query`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `endpoint_info_query`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/_query', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfoListResult',  # noqa: E501
            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)

    def endpoint_info_simple_query(self, scope_id, **kwargs):  # noqa: E501
        """Gets the EndpointInfo list in the scope  # noqa: E501

        Returns the list of all the endpointInfos 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.endpoint_info_simple_query(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 usage: The endpointInfo usage to filter results.
        :param int offset: The result set offset.
        :param int limit: The result set limit.
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_simple_query_with_http_info(scope_id, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_simple_query_with_http_info(scope_id, **kwargs)  # noqa: E501
            return data

    def endpoint_info_simple_query_with_http_info(self, scope_id, **kwargs):  # noqa: E501
        """Gets the EndpointInfo list in the scope  # noqa: E501

        Returns the list of all the endpointInfos 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.endpoint_info_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 usage: The endpointInfo usage to filter results.
        :param int offset: The result set offset.
        :param int limit: The result set limit.
        :return: EndpointInfoListResult
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'usage', 'offset', 'limit']  # noqa: E501
        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 endpoint_info_simple_query" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_simple_query`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501

        query_params = []
        if 'usage' in params:
            query_params.append(('usage', params['usage']))  # noqa: E501
        if 'offset' in params:
            query_params.append(('offset', params['offset']))  # noqa: E501
        if 'limit' in params:
            query_params.append(('limit', params['limit']))  # noqa: E501

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/json', 'application/xml'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfoListResult',  # noqa: E501
            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)

    def endpoint_info_update(self, scope_id, endpoint_info_id, body, **kwargs):  # noqa: E501
        """Update a EndpointInfo  # noqa: E501

        Updates a new EndpointInfo based on the information provided in the EndpointInfo 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.endpoint_info_update(scope_id, endpoint_info_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :param EndpointInfo body: The modified EndpointInfo whose attributed need to be updated (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, **kwargs)  # noqa: E501
        else:
            (data) = self.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, **kwargs)  # noqa: E501
            return data

    def endpoint_info_update_with_http_info(self, scope_id, endpoint_info_id, body, **kwargs):  # noqa: E501
        """Update a EndpointInfo  # noqa: E501

        Updates a new EndpointInfo based on the information provided in the EndpointInfo 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.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str scope_id: The ScopeId of the requested EndpointInfo. (required)
        :param str endpoint_info_id: The id of the requested EndpointInfo (required)
        :param EndpointInfo body: The modified EndpointInfo whose attributed need to be updated (required)
        :return: EndpointInfo
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['scope_id', 'endpoint_info_id', 'body']  # noqa: E501
        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 endpoint_info_update" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'scope_id' is set
        if ('scope_id' not in params or
                params['scope_id'] is None):
            raise ValueError("Missing the required parameter `scope_id` when calling `endpoint_info_update`")  # noqa: E501
        # verify the required parameter 'endpoint_info_id' is set
        if ('endpoint_info_id' not in params or
                params['endpoint_info_id'] is None):
            raise ValueError("Missing the required parameter `endpoint_info_id` when calling `endpoint_info_update`")  # noqa: E501
        # verify the required parameter 'body' is set
        if ('body' not in params or
                params['body'] is None):
            raise ValueError("Missing the required parameter `body` when calling `endpoint_info_update`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'scope_id' in params:
            path_params['scopeId'] = params['scope_id']  # noqa: E501
        if 'endpoint_info_id' in params:
            path_params['endpointInfoId'] = params['endpoint_info_id']  # noqa: E501

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'body' in params:
            body_params = params['body']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['application/xml', 'application/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
            ['application/xml', 'application/json'])  # noqa: E501

        # Authentication setting
        auth_settings = ['kapuaAccessToken']  # noqa: E501

        return self.api_client.call_api(
            '/{scopeId}/endpointInfos/{endpointInfoId}', 'PUT',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='EndpointInfo',  # noqa: E501
            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)
# coding: utf-8 Eclipse Kapua REST API      No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501      OpenAPI spec version: 1.0          Generated by: https://github.com/swagger-api/swagger-codegen.git # noqa: F401 # python 2 and python 3 compatibility library NOTE: This class is auto generated by the swagger code generator program.      Do not edit the class manually.     Ref: https://github.com/swagger-api/swagger-codegen # noqa: E501 Create a EndpointInfo  # noqa: E501          Creates a new EndpointInfo based on the information provided in EndpointInfoCreator 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.create_endpoint_info(scope_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId in which to create the EndpointInfo (required)         :param EndpointInfoCreator body: Provides the information for the new EndpointInfo to be created (required)         :return: EndpointInfo                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Create a EndpointInfo  # noqa: E501          Creates a new EndpointInfo based on the information provided in EndpointInfoCreator 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.create_endpoint_info_with_http_info(scope_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId in which to create the EndpointInfo (required)         :param EndpointInfoCreator body: Provides the information for the new EndpointInfo to be created (required)         :return: EndpointInfo                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # verify the required parameter 'body' is set # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # HTTP header `Content-Type` # noqa: E501 # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501 Counts the EndpointInfos  # noqa: E501          Counts the EndpointInfos with the given EndpointInfoQuery parameter returning the number of matching EndpointInfos  # noqa: E501         This method makes a synchronous HTTP request by default. To make an         asynchronous HTTP request, please pass async_req=True         >>> thread = api.endpoint_info_count(scope_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId in which to count results (required)         :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter count results (required)         :return: CountResult                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Counts the EndpointInfos  # noqa: E501          Counts the EndpointInfos with the given EndpointInfoQuery parameter returning the number of matching EndpointInfos  # noqa: E501         This method makes a synchronous HTTP request by default. To make an         asynchronous HTTP request, please pass async_req=True         >>> thread = api.endpoint_info_count_with_http_info(scope_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId in which to count results (required)         :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter count results (required)         :return: CountResult                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # verify the required parameter 'body' is set # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # HTTP header `Content-Type` # noqa: E501 # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501 Delete an EndpointInfo  # noqa: E501          Deletes the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_delete(scope_id, endpoint_info_id, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId of the EndpointInfo to delete. (required)         :param str endpoint_info_id: The id of the EndpointInfo to be deleted (required)         :return: None                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Delete an EndpointInfo  # noqa: E501          Deletes the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_delete_with_http_info(scope_id, endpoint_info_id, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId of the EndpointInfo to delete. (required)         :param str endpoint_info_id: The id of the EndpointInfo to be deleted (required)         :return: None                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # verify the required parameter 'endpoint_info_id' is set # noqa: E501 # noqa: E501 # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501 Get a EndpointInfo  # noqa: E501          Returns the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_find(scope_id, endpoint_info_id, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId of the requested EndpointInfo. (required)         :param str endpoint_info_id: The id of the requested EndpointInfo (required)         :return: EndpointInfo                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Get a EndpointInfo  # noqa: E501          Returns the EndpointInfo specified by the \"endpointInfoId\" path 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.endpoint_info_find_with_http_info(scope_id, endpoint_info_id, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId of the requested EndpointInfo. (required)         :param str endpoint_info_id: The id of the requested EndpointInfo (required)         :return: EndpointInfo                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # verify the required parameter 'endpoint_info_id' is set # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501 Queries the EndpointInfos  # noqa: E501          Queries the EndpointInfos with the given EndpointInfoQuery parameter returning all matching EndpointInfos  # noqa: E501         This method makes a synchronous HTTP request by default. To make an         asynchronous HTTP request, please pass async_req=True         >>> thread = api.endpoint_info_query(scope_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId in which to search results. (required)         :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter results. (required)         :return: EndpointInfoListResult                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Queries the EndpointInfos  # noqa: E501          Queries the EndpointInfos with the given EndpointInfoQuery parameter returning all matching EndpointInfos  # noqa: E501         This method makes a synchronous HTTP request by default. To make an         asynchronous HTTP request, please pass async_req=True         >>> thread = api.endpoint_info_query_with_http_info(scope_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId in which to search results. (required)         :param EndpointInfoQuery body: The EndpointInfoQuery to use to filter results. (required)         :return: EndpointInfoListResult                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # verify the required parameter 'body' is set # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # HTTP header `Content-Type` # noqa: E501 # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501 Gets the EndpointInfo list in the scope  # noqa: E501          Returns the list of all the endpointInfos 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.endpoint_info_simple_query(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 usage: The endpointInfo usage to filter results.         :param int offset: The result set offset.         :param int limit: The result set limit.         :return: EndpointInfoListResult                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Gets the EndpointInfo list in the scope  # noqa: E501          Returns the list of all the endpointInfos 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.endpoint_info_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 usage: The endpointInfo usage to filter results.         :param int offset: The result set offset.         :param int limit: The result set limit.         :return: EndpointInfoListResult                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501 # noqa: E501 Update a EndpointInfo  # noqa: E501          Updates a new EndpointInfo based on the information provided in the EndpointInfo 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.endpoint_info_update(scope_id, endpoint_info_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId of the requested EndpointInfo. (required)         :param str endpoint_info_id: The id of the requested EndpointInfo (required)         :param EndpointInfo body: The modified EndpointInfo whose attributed need to be updated (required)         :return: EndpointInfo                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # noqa: E501 # noqa: E501 Update a EndpointInfo  # noqa: E501          Updates a new EndpointInfo based on the information provided in the EndpointInfo 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.endpoint_info_update_with_http_info(scope_id, endpoint_info_id, body, async_req=True)         >>> result = thread.get()          :param async_req bool         :param str scope_id: The ScopeId of the requested EndpointInfo. (required)         :param str endpoint_info_id: The id of the requested EndpointInfo (required)         :param EndpointInfo body: The modified EndpointInfo whose attributed need to be updated (required)         :return: EndpointInfo                  If the method is called asynchronously,                  returns the request thread. # noqa: E501 # verify the required parameter 'scope_id' is set # noqa: E501 # verify the required parameter 'endpoint_info_id' is set # noqa: E501 # verify the required parameter 'body' is set # noqa: E501 # noqa: E501 # noqa: E501 # HTTP header `Accept` # noqa: E501 # HTTP header `Content-Type` # noqa: E501 # noqa: E501 # Authentication setting # noqa: E501 # noqa: E501