import { Client } from "../.."; import { Backup, BackupRestoration } from "../../models/regional/backups"; /** * Backups API Client */ export default class Backups { /** Scalingo API Client */ _client: Client; /** Database ID */ _databaseId: string; /** * Create a new "thematic" client * @param client Scalingo API Client * @param databaseId Database ID */ constructor(client: Client, databaseId: string); /** * List all backups for the database * @return Promise that when resolved returns the list of backups. */ all(): Promise; /** * Create a manual backup for the database * @return Promise that when resolved returns the created backup. */ create(): Promise; /** * Retrieve a specific backup for the database * @param backupId Backup ID * @return Promise that when resolved returns the backup. */ show(backupId: string): Promise; /** * Get a download URL for a specific backup * @param backupId Backup ID * @return Promise that when resolved returns the download URL. */ archiveUrl(backupId: string): Promise; /** * Restore a specific backup * @param backupId Backup ID * @return Promise that when resolved returns the backup restoration object. */ restore(backupId: string): Promise; } //# sourceMappingURL=index.d.ts.map