@rest_initialiser(cluster_init_check=True, version_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 ((not self.enterprise) and (opts.collection_migration or (opts.collection_explicit_mappings is not None) or (opts.collection_mapping_rules is not None))):
        _exit_if_errors(['[--collection-migration, --collection-explicit-mappings, --collection-mapping-rules] can only be configured on enterprise edition'])
    if (opts.compression == '0'):
        opts.compression = 'None'
    elif (opts.compression == '1'):
        opts.compression = 'Auto'
    actions = sum([opts.create, opts.delete, opts.pause, opts.list, opts.resume, opts.settings, opts.get])
    if (actions == 0):
        _exit_if_errors(['Must specify one of --create, --delete, --pause, --list, --resume, --settings, --get'])
    elif (actions > 1):
        _exit_if_errors(['The --create, --delete, --pause, --list, --resume, --settings, --get flags may not be specified at the same time'])
    elif opts.create:
        self._create(opts)
    elif opts.delete:
        self._delete(opts)
    elif (opts.pause or opts.resume):
        self._pause_resume(opts)
    elif opts.list:
        self._list()
    elif opts.settings:
        self._settings(opts)
    elif opts.get:
        self._get(opts)
@rest_initialiser(cluster_init_check=True, version_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 ((not self.enterprise) and (opts.collection_migration or (opts.collection_explicit_mappings is not None) or (opts.collection_mapping_rules is not None))):
        _exit_if_errors(['[--collection-migration, --collection-explicit-mappings, --collection-mapping-rules] can only be configured on enterprise edition'])
    if (opts.compression == '0'):
        opts.compression = 'None'
    elif (opts.compression == '1'):
        opts.compression = 'Auto'
    actions = sum([opts.create, opts.delete, opts.pause, opts.list, opts.resume, opts.settings, opts.get])
    if (actions == 0):
        _exit_if_errors(['Must specify one of --create, --delete, --pause, --list, --resume, --settings, --get'])
    elif (actions > 1):
        _exit_if_errors(['The --create, --delete, --pause, --list, --resume, --settings, --get flags may not be specified at the same time'])
    elif opts.create:
        self._create(opts)
    elif opts.delete:
        self._delete(opts)
    elif (opts.pause or opts.resume):
        self._pause_resume(opts)
    elif opts.list:
        self._list()
    elif opts.settings:
        self._settings(opts)
    elif opts.get:
        self._get(opts)