@rest_initialiser(cluster_init_check=True, version_check=True, enterprise_check=False)
def execute(self, opts):
    if ((opts.max_rollback is None) and (opts.stable_snap is None) and (opts.mem_snap is None) and (opts.storage_mode is None) and (opts.threads is None) and (opts.log_level is None) and (opts.replicas is None) and (opts.optimize_placement is None)):
        _exit_if_errors(['No settings specified to be changed'])
    (settings, errors) = self.rest.index_settings()
    _exit_if_errors(errors)
    default = 'plasma'
    if (((opts.storage_mode == 'default') and (settings['storageMode'] == 'forestdb')) or (not self.enterprise)):
        default = 'forestdb'
    opts.storage_mode = index_storage_mode_to_param(opts.storage_mode, default)
    (_, errors) = self.rest.set_index_settings(opts.storage_mode, opts.max_rollback, opts.stable_snap, opts.mem_snap, opts.threads, opts.log_level, opts.replicas, opts.optimize_placement)
    _exit_if_errors(errors)
    _success('Indexer settings modified')
@rest_initialiser(cluster_init_check=True, version_check=True, enterprise_check=False)
def execute(self, opts):
    if ((opts.max_rollback is None) and (opts.stable_snap is None) and (opts.mem_snap is None) and (opts.storage_mode is None) and (opts.threads is None) and (opts.log_level is None) and (opts.replicas is None) and (opts.optimize_placement is None)):
        _exit_if_errors(['No settings specified to be changed'])
    (settings, errors) = self.rest.index_settings()
    _exit_if_errors(errors)
    default = 'plasma'
    if (((opts.storage_mode == 'default') and (settings['storageMode'] == 'forestdb')) or (not self.enterprise)):
        default = 'forestdb'
    opts.storage_mode = index_storage_mode_to_param(opts.storage_mode, default)
    (_, errors) = self.rest.set_index_settings(opts.storage_mode, opts.max_rollback, opts.stable_snap, opts.mem_snap, opts.threads, opts.log_level, opts.replicas, opts.optimize_placement)
    _exit_if_errors(errors)
    _success('Indexer settings modified')