@rest_initialiser(version_check=True, cluster_init_check=True, enterprise_check=False)
def execute(self, opts):
    if ((not self.enterprise) and opts.compression):
        _exit_if_errors(['--enable-compression can only be configured on enterprise edition'])
    if (opts.compression == '0'):
        opts.compression = 'None'
    elif (opts.compression == '1'):
        opts.compression = 'Auto'
    (_, errors) = self.rest.xdcr_global_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.max_proc)
    _exit_if_errors(errors)
    _success('Global XDCR settings updated')
@rest_initialiser(version_check=True, cluster_init_check=True, enterprise_check=False)
def execute(self, opts):
    if ((not self.enterprise) and opts.compression):
        _exit_if_errors(['--enable-compression can only be configured on enterprise edition'])
    if (opts.compression == '0'):
        opts.compression = 'None'
    elif (opts.compression == '1'):
        opts.compression = 'Auto'
    (_, errors) = self.rest.xdcr_global_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.max_proc)
    _exit_if_errors(errors)
    _success('Global XDCR settings updated')