pause method

  1. @override
Future<Operation> pause(
  1. PauseRolloutRequest request
)
override

Pauses a Rollout.

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> pause(PauseRolloutRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_pause case final pause?) {
    return pause(request);
  }
  throw UnsupportedError('pause');
}