setBackup method

  1. @override
Future<Operation> setBackup(
  1. SetBackupTargetPoolRequest request
)
override

Changes a backup target pool's configurations.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<Operation> setBackup(SetBackupTargetPoolRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_setBackup case final setBackup?) {
    return setBackup(request);
  }
  throw UnsupportedError('setBackup');
}