feat: add backup api helpers
This commit is contained in:
@@ -9,6 +9,7 @@ import { SecretBundle } from './classes.secretbundle.js';
|
||||
import { SecretGroup } from './classes.secretgroup.js';
|
||||
import { ExternalRegistry } from './classes.externalregistry.js';
|
||||
import { Platform } from './classes.platform.js';
|
||||
import { Backup } from './classes.backup.js';
|
||||
|
||||
export class CloudlyApiClient {
|
||||
private cloudlyUrl: string;
|
||||
@@ -386,6 +387,21 @@ export class CloudlyApiClient {
|
||||
},
|
||||
}
|
||||
|
||||
public backup = {
|
||||
createServiceBackup: async (optionsArg: Parameters<typeof Backup.createServiceBackup>[1]) => {
|
||||
return Backup.createServiceBackup(this, optionsArg);
|
||||
},
|
||||
getServiceBackups: async (optionsArg: Parameters<typeof Backup.getServiceBackups>[1] = {}) => {
|
||||
return Backup.getServiceBackups(this, optionsArg);
|
||||
},
|
||||
getBackupById: async (backupIdArg: string) => {
|
||||
return Backup.getBackupById(this, backupIdArg);
|
||||
},
|
||||
restoreServiceBackup: async (optionsArg: Parameters<typeof Backup.restoreServiceBackup>[1]) => {
|
||||
return Backup.restoreServiceBackup(this, optionsArg);
|
||||
},
|
||||
}
|
||||
|
||||
// Settings API
|
||||
public settings = {
|
||||
getSettings: async (): Promise<{
|
||||
|
||||
Reference in New Issue
Block a user