# coding: utf-8

"""
    Fates List

                 Current API: v2 beta 3             Default API: v2             API Docs: https://apidocs.fateslist.xyz             Enum Reference: https://apidocs.fateslist.xyz/structures/enums.autogen           # noqa: E501

    OpenAPI spec version: 0.3.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 APIV2ULAApi(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 delete_endpoint_api_v2_ula_user_id_list_url_endpoint_feature_delete(self, url, feature, user_id, **kwargs):  # noqa: E501
        """Delete Endpoint  # noqa: E501

        Deletes an existing enfpoint based on its feature  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_endpoint_api_v2_ula_user_id_list_url_endpoint_feature_delete(url, feature, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str url: (required)
        :param ULAFeature feature: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.delete_endpoint_api_v2_ula_user_id_list_url_endpoint_feature_delete_with_http_info(url, feature, user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.delete_endpoint_api_v2_ula_user_id_list_url_endpoint_feature_delete_with_http_info(url, feature, user_id, **kwargs)  # noqa: E501
            return data

    def delete_endpoint_api_v2_ula_user_id_list_url_endpoint_feature_delete_with_http_info(self, url, feature, user_id, **kwargs):  # noqa: E501
        """Delete Endpoint  # noqa: E501

        Deletes an existing enfpoint based on its feature  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_endpoint_api_v2_ula_user_id_list_url_endpoint_feature_delete_with_http_info(url, feature, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str url: (required)
        :param ULAFeature feature: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'url' in params:
            path_params['url'] = params['url']  # noqa: E501
        if 'feature' in params:
            path_params['feature'] = params['feature']  # noqa: E501
        if 'user_id' in params:
            path_params['user_id'] = params['user_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'])  # noqa: E501

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

        return self.api_client.call_api(
            '/api/v2/ula/{user_id}/list/{url}/endpoint/{feature}', 'DELETE',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 delete_list_api_v2_ula_user_id_list_url_delete(self, url, user_id, **kwargs):  # noqa: E501
        """Delete List  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_list_api_v2_ula_user_id_list_url_delete(url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.delete_list_api_v2_ula_user_id_list_url_delete_with_http_info(url, user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.delete_list_api_v2_ula_user_id_list_url_delete_with_http_info(url, user_id, **kwargs)  # noqa: E501
            return data

    def delete_list_api_v2_ula_user_id_list_url_delete_with_http_info(self, url, user_id, **kwargs):  # noqa: E501
        """Delete List  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_list_api_v2_ula_user_id_list_url_delete_with_http_info(url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'url' in params:
            path_params['url'] = params['url']  # noqa: E501
        if 'user_id' in params:
            path_params['user_id'] = params['user_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'])  # noqa: E501

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

        return self.api_client.call_api(
            '/api/v2/ula/{user_id}/list/{url}', 'DELETE',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 edit_endpoint_api_v2_ula_user_id_list_url_endpoints_patch(self, body, url, user_id, **kwargs):  # noqa: E501
        """Edit Endpoint  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_endpoint_api_v2_ula_user_id_list_url_endpoints_patch(body, url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Endpoint body: (required)
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.edit_endpoint_api_v2_ula_user_id_list_url_endpoints_patch_with_http_info(body, url, user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.edit_endpoint_api_v2_ula_user_id_list_url_endpoints_patch_with_http_info(body, url, user_id, **kwargs)  # noqa: E501
            return data

    def edit_endpoint_api_v2_ula_user_id_list_url_endpoints_patch_with_http_info(self, body, url, user_id, **kwargs):  # noqa: E501
        """Edit Endpoint  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_endpoint_api_v2_ula_user_id_list_url_endpoints_patch_with_http_info(body, url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Endpoint body: (required)
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'url' in params:
            path_params['url'] = params['url']  # noqa: E501
        if 'user_id' in params:
            path_params['user_id'] = params['user_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/json'])  # noqa: E501

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

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

        return self.api_client.call_api(
            '/api/v2/ula/{user_id}/list/{url}/endpoints', 'PATCH',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 edit_list_api_v2_ula_user_id_list_url_patch(self, body, url, user_id, **kwargs):  # noqa: E501
        """Edit List  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_list_api_v2_ula_user_id_list_url_patch(body, url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BList body: (required)
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.edit_list_api_v2_ula_user_id_list_url_patch_with_http_info(body, url, user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.edit_list_api_v2_ula_user_id_list_url_patch_with_http_info(body, url, user_id, **kwargs)  # noqa: E501
            return data

    def edit_list_api_v2_ula_user_id_list_url_patch_with_http_info(self, body, url, user_id, **kwargs):  # noqa: E501
        """Edit List  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.edit_list_api_v2_ula_user_id_list_url_patch_with_http_info(body, url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BList body: (required)
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'url' in params:
            path_params['url'] = params['url']  # noqa: E501
        if 'user_id' in params:
            path_params['user_id'] = params['user_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/json'])  # noqa: E501

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

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

        return self.api_client.call_api(
            '/api/v2/ula/{user_id}/list/{url}', 'PATCH',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 get_all_lists_api_v2_ula_lists_get(self, **kwargs):  # noqa: E501
        """Get All Lists  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_all_lists_api_v2_ula_lists_get(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_all_lists_api_v2_ula_lists_get_with_http_info(**kwargs)  # noqa: E501
        else:
            (data) = self.get_all_lists_api_v2_ula_lists_get_with_http_info(**kwargs)  # noqa: E501
            return data

    def get_all_lists_api_v2_ula_lists_get_with_http_info(self, **kwargs):  # noqa: E501
        """Get All Lists  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_all_lists_api_v2_ula_lists_get_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = []  # 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 get_all_lists_api_v2_ula_lists_get" % key
                )
            params[key] = val
        del params['kwargs']

        collection_formats = {}

        path_params = {}

        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'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/lists', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 get_bot_api_v2_ula_bots_bot_id_get(self, bot_id, **kwargs):  # noqa: E501
        """Get Bot  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_bot_api_v2_ula_bots_bot_id_get(bot_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int bot_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_bot_api_v2_ula_bots_bot_id_get_with_http_info(bot_id, **kwargs)  # noqa: E501
        else:
            (data) = self.get_bot_api_v2_ula_bots_bot_id_get_with_http_info(bot_id, **kwargs)  # noqa: E501
            return data

    def get_bot_api_v2_ula_bots_bot_id_get_with_http_info(self, bot_id, **kwargs):  # noqa: E501
        """Get Bot  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_bot_api_v2_ula_bots_bot_id_get_with_http_info(bot_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int bot_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'bot_id' in params:
            path_params['bot_id'] = params['bot_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'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/bots/{bot_id}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 get_feature_by_id_api_v2_ula_feature_id_id_get(self, id, **kwargs):  # noqa: E501
        """Get Feature By Id  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_feature_by_id_api_v2_ula_feature_id_id_get(id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_feature_by_id_api_v2_ula_feature_id_id_get_with_http_info(id, **kwargs)  # noqa: E501
        else:
            (data) = self.get_feature_by_id_api_v2_ula_feature_id_id_get_with_http_info(id, **kwargs)  # noqa: E501
            return data

    def get_feature_by_id_api_v2_ula_feature_id_id_get_with_http_info(self, id, **kwargs):  # noqa: E501
        """Get Feature By Id  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_feature_by_id_api_v2_ula_feature_id_id_get_with_http_info(id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'id' in params:
            path_params['id'] = params['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'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/feature/{id}/id', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 get_feature_by_internal_name_api_v2_ula_feature_iname_iname_get(self, iname, **kwargs):  # noqa: E501
        """Get Feature By Internal Name  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_feature_by_internal_name_api_v2_ula_feature_iname_iname_get(iname, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str iname: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_feature_by_internal_name_api_v2_ula_feature_iname_iname_get_with_http_info(iname, **kwargs)  # noqa: E501
        else:
            (data) = self.get_feature_by_internal_name_api_v2_ula_feature_iname_iname_get_with_http_info(iname, **kwargs)  # noqa: E501
            return data

    def get_feature_by_internal_name_api_v2_ula_feature_iname_iname_get_with_http_info(self, iname, **kwargs):  # noqa: E501
        """Get Feature By Internal Name  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_feature_by_internal_name_api_v2_ula_feature_iname_iname_get_with_http_info(iname, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str iname: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'iname' in params:
            path_params['iname'] = params['iname']  # 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'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/feature/{iname}/iname', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 get_list_api_v2_ula_list_url_get(self, url, **kwargs):  # noqa: E501
        """Get List  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_list_api_v2_ula_list_url_get(url, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str url: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_list_api_v2_ula_list_url_get_with_http_info(url, **kwargs)  # noqa: E501
        else:
            (data) = self.get_list_api_v2_ula_list_url_get_with_http_info(url, **kwargs)  # noqa: E501
            return data

    def get_list_api_v2_ula_list_url_get_with_http_info(self, url, **kwargs):  # noqa: E501
        """Get List  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_list_api_v2_ula_list_url_get_with_http_info(url, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str url: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'url' in params:
            path_params['url'] = params['url']  # 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'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/list/{url}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 get_user_voted_api_v2_ula_bots_bot_id_votes_check_post(self, body, user_id, bot_id, **kwargs):  # noqa: E501
        """Get User Voted  # noqa: E501

        Gets whether a user has voted for your bot  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_user_voted_api_v2_ula_bots_bot_id_votes_check_post(body, user_id, bot_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Lists body: (required)
        :param int user_id: (required)
        :param int bot_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_user_voted_api_v2_ula_bots_bot_id_votes_check_post_with_http_info(body, user_id, bot_id, **kwargs)  # noqa: E501
        else:
            (data) = self.get_user_voted_api_v2_ula_bots_bot_id_votes_check_post_with_http_info(body, user_id, bot_id, **kwargs)  # noqa: E501
            return data

    def get_user_voted_api_v2_ula_bots_bot_id_votes_check_post_with_http_info(self, body, user_id, bot_id, **kwargs):  # noqa: E501
        """Get User Voted  # noqa: E501

        Gets whether a user has voted for your bot  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_user_voted_api_v2_ula_bots_bot_id_votes_check_post_with_http_info(body, user_id, bot_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Lists body: (required)
        :param int user_id: (required)
        :param int bot_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

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

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

        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/json'])  # noqa: E501

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

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/bots/{bot_id}/votes/check', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 new_endpoint_api_v2_ula_user_id_list_url_endpoints_put(self, body, url, user_id, **kwargs):  # noqa: E501
        """New Endpoint  # noqa: E501

        Make a new endpoint  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.new_endpoint_api_v2_ula_user_id_list_url_endpoints_put(body, url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Endpoint body: (required)
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.new_endpoint_api_v2_ula_user_id_list_url_endpoints_put_with_http_info(body, url, user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.new_endpoint_api_v2_ula_user_id_list_url_endpoints_put_with_http_info(body, url, user_id, **kwargs)  # noqa: E501
            return data

    def new_endpoint_api_v2_ula_user_id_list_url_endpoints_put_with_http_info(self, body, url, user_id, **kwargs):  # noqa: E501
        """New Endpoint  # noqa: E501

        Make a new endpoint  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.new_endpoint_api_v2_ula_user_id_list_url_endpoints_put_with_http_info(body, url, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Endpoint body: (required)
        :param str url: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'url' in params:
            path_params['url'] = params['url']  # noqa: E501
        if 'user_id' in params:
            path_params['user_id'] = params['user_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/json'])  # noqa: E501

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

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

        return self.api_client.call_api(
            '/api/v2/ula/{user_id}/list/{url}/endpoints', 'PUT',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 new_list_api_v2_ula_user_id_lists_put(self, body, user_id, **kwargs):  # noqa: E501
        """New List  # noqa: E501

        Adds a new list if it exists. Your user id associated with your api token must be in owners array  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.new_list_api_v2_ula_user_id_lists_put(body, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BList body: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.new_list_api_v2_ula_user_id_lists_put_with_http_info(body, user_id, **kwargs)  # noqa: E501
        else:
            (data) = self.new_list_api_v2_ula_user_id_lists_put_with_http_info(body, user_id, **kwargs)  # noqa: E501
            return data

    def new_list_api_v2_ula_user_id_lists_put_with_http_info(self, body, user_id, **kwargs):  # noqa: E501
        """New List  # noqa: E501

        Adds a new list if it exists. Your user id associated with your api token must be in owners array  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.new_list_api_v2_ula_user_id_lists_put_with_http_info(body, user_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BList body: (required)
        :param int user_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'user_id' in params:
            path_params['user_id'] = params['user_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/json'])  # noqa: E501

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

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

        return self.api_client.call_api(
            '/api/v2/ula/{user_id}/lists', 'PUT',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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 post_stats_api_v2_ula_bots_bot_id_stats_post(self, body, bot_id, **kwargs):  # noqa: E501
        """Post Stats  # noqa: E501

        Post stats to all lists, takes a LIST_URL: LIST_API_TOKEN in the lists object in request body.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.post_stats_api_v2_ula_bots_bot_id_stats_post(body, bot_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Stats body: (required)
        :param int bot_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.post_stats_api_v2_ula_bots_bot_id_stats_post_with_http_info(body, bot_id, **kwargs)  # noqa: E501
        else:
            (data) = self.post_stats_api_v2_ula_bots_bot_id_stats_post_with_http_info(body, bot_id, **kwargs)  # noqa: E501
            return data

    def post_stats_api_v2_ula_bots_bot_id_stats_post_with_http_info(self, body, bot_id, **kwargs):  # noqa: E501
        """Post Stats  # noqa: E501

        Post stats to all lists, takes a LIST_URL: LIST_API_TOKEN in the lists object in request body.  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.post_stats_api_v2_ula_bots_bot_id_stats_post_with_http_info(body, bot_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param Stats body: (required)
        :param int bot_id: (required)
        :return: Object
                 If the method is called asynchronously,
                 returns the request thread.
        """

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

        collection_formats = {}

        path_params = {}
        if 'bot_id' in params:
            path_params['bot_id'] = params['bot_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/json'])  # noqa: E501

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

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self.api_client.call_api(
            '/api/v2/ula/bots/{bot_id}/stats', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Object',  # 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)
