def _set(self, opts):
    if ((opts.rotation_period is None) and (opts.rotation_size is None)):
        _exit_if_errors(['At least one of --history-rotation-period or --history-rotation-size is required'])
    (_, err) = self.rest.patch_backup_service_settings(opts.rotation_period, opts.rotation_size)
    _exit_if_errors(err)
    _success('Backup service settings patched')
def _set(self, opts):
    if ((opts.rotation_period is None) and (opts.rotation_size is None)):
        _exit_if_errors(['At least one of --history-rotation-period or --history-rotation-size is required'])
    (_, err) = self.rest.patch_backup_service_settings(opts.rotation_period, opts.rotation_size)
    _exit_if_errors(err)
    _success('Backup service settings patched')