@rest_initialiser(version_check=True)
def execute(self, opts):
    if (sum([opts.get, opts.set]) != 1):
        _exit_if_errors(['Please provide --set or --get, both can not be provided at the same time'])
    if opts.get:
        (settings, err) = self.rest.get_query_settings()
        _exit_if_errors(err)
        print(json.dumps(settings))
    if opts.set:
        access_list = self._post_query_access_list(opts)
        self._post_query_settings(opts, access_list)
        _success('Updated the query settings')
@rest_initialiser(version_check=True)
def execute(self, opts):
    if (sum([opts.get, opts.set]) != 1):
        _exit_if_errors(['Please provide --set or --get, both can not be provided at the same time'])
    if opts.get:
        (settings, err) = self.rest.get_query_settings()
        _exit_if_errors(err)
        print(json.dumps(settings))
    if opts.set:
        access_list = self._post_query_access_list(opts)
        self._post_query_settings(opts, access_list)
        _success('Updated the query settings')