@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    actions = sum([opts._import, opts.export, opts.export_all, opts.delete, opts.list, opts.deploy, opts.undeploy, opts.pause, opts.resume])
    if (actions == 0):
        _exit_if_errors(['Must specify one of --import, --export, --export-all, --delete, --list, --deploy, --undeploy, --pause, --resume'])
    elif (actions > 1):
        _exit_if_errors(['The --import, --export, --export-all, --delete, --list, --deploy, --undeploy, --pause, --resume flags may not be specified at the same time'])
    elif opts._import:
        self._import(opts)
    elif opts.export:
        self._export(opts)
    elif opts.export_all:
        self._export_all(opts)
    elif opts.delete:
        self._delete(opts)
    elif opts.list:
        self._list()
    elif opts.deploy:
        self._deploy_undeploy(opts, True)
    elif opts.undeploy:
        self._deploy_undeploy(opts, False)
    elif opts.pause:
        self._pause_resume(opts, True)
    elif opts.resume:
        self._pause_resume(opts, False)
@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    actions = sum([opts._import, opts.export, opts.export_all, opts.delete, opts.list, opts.deploy, opts.undeploy, opts.pause, opts.resume])
    if (actions == 0):
        _exit_if_errors(['Must specify one of --import, --export, --export-all, --delete, --list, --deploy, --undeploy, --pause, --resume'])
    elif (actions > 1):
        _exit_if_errors(['The --import, --export, --export-all, --delete, --list, --deploy, --undeploy, --pause, --resume flags may not be specified at the same time'])
    elif opts._import:
        self._import(opts)
    elif opts.export:
        self._export(opts)
    elif opts.export_all:
        self._export_all(opts)
    elif opts.delete:
        self._delete(opts)
    elif opts.list:
        self._list()
    elif opts.deploy:
        self._deploy_undeploy(opts, True)
    elif opts.undeploy:
        self._deploy_undeploy(opts, False)
    elif opts.pause:
        self._pause_resume(opts, True)
    elif opts.resume:
        self._pause_resume(opts, False)