disableSchedule static method

Future<Map<String, Object?>> disableSchedule(
  1. Client cloudApiClient, {
  2. required String projectId,
})

Implementation

static Future<Map<String, Object?>> disableSchedule(
  final Client cloudApiClient, {
  required final String projectId,
}) async {
  try {
    await cloudApiClient.database.setBackupSchedule(
      cloudCapsuleId: projectId,
      frequency: null,
    );
  } on Exception catch (e, s) {
    throw FailureException.nested(e, s, 'Failed to disable backup schedule');
  }

  return {'projectId': projectId};
}