@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    actions = sum([opts.create, opts.delete, opts.edit, opts.list])
    if (actions == 0):
        _exit_if_errors(['Must specify one of --create, --delete, --edit, --list'])
    elif (actions > 1):
        _exit_if_errors(['The --create, --delete, --edit, --list flags may not be specified at the same time'])
    elif (opts.create or opts.edit):
        self._set(opts)
    elif opts.delete:
        self._delete(opts)
    elif opts.list:
        self._list()
@rest_initialiser(cluster_init_check=True, version_check=True)
def execute(self, opts):
    actions = sum([opts.create, opts.delete, opts.edit, opts.list])
    if (actions == 0):
        _exit_if_errors(['Must specify one of --create, --delete, --edit, --list'])
    elif (actions > 1):
        _exit_if_errors(['The --create, --delete, --edit, --list flags may not be specified at the same time'])
    elif (opts.create or opts.edit):
        self._set(opts)
    elif opts.delete:
        self._delete(opts)
    elif opts.list:
        self._list()