resumeSchedule method
Resumes a paused Schedule to start scheduling new runs. Will mark
Schedule.state to
'ACTIVE'. Only paused Schedule can be resumed.
When the Schedule is resumed, new runs will be scheduled starting from the
next execution time after the current time based on the time_specification
in the Schedule. If Schedule.catchUp is set up true, all
missed runs will be scheduled for backfill first.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a StatusException if the API failed with a
Status message. Throws a ServiceException for any other failure.
Implementation
Future<void> resumeSchedule(ResumeScheduleRequest request) async {
final url = Uri.https(_host, '/v1beta1/${request.name}:resume');
await _client.post(url, body: request);
}