def _settings(self, opts):
    if (opts.replicator_id is None):
        _exit_if_errors(['--xdcr-replicator is needed to change a replicators settings'])
    if (opts.filter_skip and (opts.filter is None)):
        _exit_if_errors(['--filter-expersion is needed with the --filter-skip-restream option'])
    if ((opts.collection_migration == '1') and (opts.collection_explicit_mappings == '1')):
        _exit_if_errors(['cannot enable both collection migration and explicit mappings'])
    (_, errors) = self.rest.xdcr_replicator_settings(opts.chk_int, opts.worker_batch_size, opts.doc_batch_size, opts.fail_interval, opts.rep_thresh, opts.src_nozzles, opts.dst_nozzles, opts.usage_limit, opts.compression, opts.log_level, opts.stats_interval, opts.replicator_id, opts.filter, opts.filter_skip, opts.priority, opts.reset_expiry, opts.filter_del, opts.filter_exp, opts.collection_explicit_mappings, opts.collection_migration, opts.collection_mapping_rules)
    _exit_if_errors(errors)
    _success('XDCR replicator settings updated')
def _settings(self, opts):
    if (opts.replicator_id is None):
        _exit_if_errors(['--xdcr-replicator is needed to change a replicators settings'])
    if (opts.filter_skip and (opts.filter is None)):
        _exit_if_errors(['--filter-expersion is needed with the --filter-skip-restream option'])
    if ((opts.collection_migration == '1') and (opts.collection_explicit_mappings == '1')):
        _exit_if_errors(['cannot enable both collection migration and explicit mappings'])
    (_, errors) = self.rest.xdcr_replicator_settings(opts.chk_int, opts.worker_batch_size, opts.doc_batch_size, opts.fail_interval, opts.rep_thresh, opts.src_nozzles, opts.dst_nozzles, opts.usage_limit, opts.compression, opts.log_level, opts.stats_interval, opts.replicator_id, opts.filter, opts.filter_skip, opts.priority, opts.reset_expiry, opts.filter_del, opts.filter_exp, opts.collection_explicit_mappings, opts.collection_migration, opts.collection_mapping_rules)
    _exit_if_errors(errors)
    _success('XDCR replicator settings updated')