@rest_initialiser(version_check=True)
def execute(self, opts):
    flags_used = sum([opts.enable, opts.disable, opts.get])
    if (flags_used == 0):
        _exit_if_errors(['Please provide one of --enable, --disable or --get'])
    elif (flags_used > 1):
        _exit_if_errors(['Please provide only one of --enable, --disable or --get'])
    if opts.get:
        self._get(self.rest)
    elif opts.enable:
        self._change_encryption(self.rest, 'on', opts.ssl)
    elif opts.disable:
        self._change_encryption(self.rest, 'off', opts.ssl)
@rest_initialiser(version_check=True)
def execute(self, opts):
    flags_used = sum([opts.enable, opts.disable, opts.get])
    if (flags_used == 0):
        _exit_if_errors(['Please provide one of --enable, --disable or --get'])
    elif (flags_used > 1):
        _exit_if_errors(['Please provide only one of --enable, --disable or --get'])
    if opts.get:
        self._get(self.rest)
    elif opts.enable:
        self._change_encryption(self.rest, 'on', opts.ssl)
    elif opts.disable:
        self._change_encryption(self.rest, 'off', opts.ssl)