/** * KubeBlocks Cloud API * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { Backup } from '../models'; import type { BackupBatchDelete } from '../models'; import type { BackupCreate } from '../models'; import type { BackupDownload } from '../models'; import type { BackupList } from '../models'; import type { BackupLog } from '../models'; import type { BackupPolicy } from '../models'; import type { BackupSchedule } from '../models'; import type { BackupScheduleCreate } from '../models'; import type { BackupScheduleList } from '../models'; import type { BackupScheduleUpdate } from '../models'; import type { BackupStats } from '../models'; import type { BackupView } from '../models'; import type { BuildBackupObjRequest } from '../models'; import type { FileEntryList } from '../models'; import type { SelectiveObjectTreeNode } from '../models'; /** * BackupApi - axios parameter creator * @export */ export declare const BackupApiAxiosParamCreator: (configuration?: Configuration) => { /** * Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted. * @summary Batch delete backups * @param {string} orgName name of the Org * @param {BackupBatchDelete} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDeleteBackups: (orgName: string, body: BackupBatchDelete, options?: RawAxiosRequestConfig) => Promise; /** * * @summary build backup object with a existing backup directory * @param {string} orgName name of the Org * @param {string} environmentName name of the environment * @param {string} engineName name of the engine * @param {BuildBackupObjRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ buildBackupObj: (orgName: string, environmentName: string, engineName: string, body: BuildBackupObjRequest, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create backup schedule * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {BackupScheduleCreate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBackupSchedule: (orgName: string, clusterName: string, body: BackupScheduleCreate, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create backup * @param {string} orgName name of the Org * @param {string} clusterName name of the KubeBlocks cluster * @param {BackupCreate} body * @param {string} [component] name of the component * @param {*} [options] Override http request option. * @throws {RequiredError} */ createClusterBackup: (orgName: string, clusterName: string, body: BackupCreate, component?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Delete backup * @param {string} orgName name of the Org * @param {string} backupId id of the Backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackup: (orgName: string, backupId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Delete backup schedule * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} scheduleName name of the backup schedule * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackupSchedule: (orgName: string, clusterName: string, scheduleName: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Download full backup * @param {string} orgName name of the org * @param {string} backupId the id of backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadBackup: (orgName: string, backupId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Download multiple backup files * @param {string} orgName name of the org * @param {string} backupId the id of backup * @param {BackupDownload} backupDownload * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadMultipleBackups: (orgName: string, backupId: string, backupDownload: BackupDownload, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get backup * @param {string} orgName name of the Org * @param {string} backupId id of the Backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackup: (orgName: string, backupId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get backup log * @param {string} orgName name of the Org * @param {string} backupId id of the Backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupLog: (orgName: string, backupId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get backup statistics * @param {string} orgName name of the Org * @param {string} [clusterID] id of the Cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupStats: (orgName: string, clusterID?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get backup policy * @param {string} orgName name of the Org * @param {string} clusterName name of the KubeBlocks cluster * @param {boolean} [useVolumeSnapshot] use volume snapshot to back up * @param {*} [options] Override http request option. * @throws {RequiredError} */ getClusterBackupPolicy: (orgName: string, clusterName: string, useVolumeSnapshot?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * * @summary List backup schedules * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} [backupMethod] filter by backup method * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupSchedules: (orgName: string, clusterName: string, backupMethod?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary List backups * @param {string} orgName name of the Org * @param {string} [clusterName] cluster name of the Backup * @param {string} [clusterID] cluster ID of the Backup * @param {string} [backupRepo] backup repo of the Backup * @param {boolean} [fetchWithDeletedCluster] defined whether to search for deleted clusters. if not set, returns all backups * @param {boolean} [withDeletedBackups] defined whether to search for deleted backups. if not set, only return backups that are not deleted * @param {boolean} [withRestoreCluster] defined whether to search for restore backups. * @param {string} [backupType] type of the backup * @param {boolean} [withRebuildInstance] defined whether to search for rebuilding instance. * @param {boolean} [withHScale] defined whether to search for hScale instance. * @param {string} [componentName] get the backups belong to the component * @param {number} [page] page number * @param {number} [pageSize] page size * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackups: (orgName: string, clusterName?: string, clusterID?: string, backupRepo?: string, fetchWithDeletedCluster?: boolean, withDeletedBackups?: boolean, withRestoreCluster?: boolean, backupType?: string, withRebuildInstance?: boolean, withHScale?: boolean, componentName?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise; /** * * @summary List objects tree for selective backup * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} [database] Database name for engines configured to switch the object tree by database. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listObjectsTreeForSelectiveBackup: (orgName: string, clusterName: string, database?: string, options?: RawAxiosRequestConfig) => Promise; /** * partially update the specified Backup Policy * @summary Update backup policy * @param {string} orgName name of the Org * @param {string} clusterName name of the KubeBlocks cluster * @param {BackupPolicy} body * @param {boolean} [useVolumeSnapshot] use volume snapshot to back up * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupPolicy: (orgName: string, clusterName: string, body: BackupPolicy, useVolumeSnapshot?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Update backup schedule * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} scheduleName name of the backup schedule * @param {BackupScheduleUpdate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupSchedule: (orgName: string, clusterName: string, scheduleName: string, body: BackupScheduleUpdate, options?: RawAxiosRequestConfig) => Promise; /** * * @summary view backup info * @param {string} orgName name of the org * @param {string} backupId the id of backup * @param {BackupView} [backupView] * @param {*} [options] Override http request option. * @throws {RequiredError} */ viewBackup: (orgName: string, backupId: string, backupView?: BackupView, options?: RawAxiosRequestConfig) => Promise; }; /** * BackupApi - functional programming interface * @export */ export declare const BackupApiFp: (configuration?: Configuration) => { /** * Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted. * @summary Batch delete backups * @param {string} orgName name of the Org * @param {BackupBatchDelete} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDeleteBackups(orgName: string, body: BackupBatchDelete, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary build backup object with a existing backup directory * @param {string} orgName name of the Org * @param {string} environmentName name of the environment * @param {string} engineName name of the engine * @param {BuildBackupObjRequest} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ buildBackupObj(orgName: string, environmentName: string, engineName: string, body: BuildBackupObjRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create backup schedule * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {BackupScheduleCreate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBackupSchedule(orgName: string, clusterName: string, body: BackupScheduleCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create backup * @param {string} orgName name of the Org * @param {string} clusterName name of the KubeBlocks cluster * @param {BackupCreate} body * @param {string} [component] name of the component * @param {*} [options] Override http request option. * @throws {RequiredError} */ createClusterBackup(orgName: string, clusterName: string, body: BackupCreate, component?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Delete backup * @param {string} orgName name of the Org * @param {string} backupId id of the Backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackup(orgName: string, backupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Delete backup schedule * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} scheduleName name of the backup schedule * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackupSchedule(orgName: string, clusterName: string, scheduleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Download full backup * @param {string} orgName name of the org * @param {string} backupId the id of backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadBackup(orgName: string, backupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Download multiple backup files * @param {string} orgName name of the org * @param {string} backupId the id of backup * @param {BackupDownload} backupDownload * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadMultipleBackups(orgName: string, backupId: string, backupDownload: BackupDownload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get backup * @param {string} orgName name of the Org * @param {string} backupId id of the Backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackup(orgName: string, backupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get backup log * @param {string} orgName name of the Org * @param {string} backupId id of the Backup * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupLog(orgName: string, backupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get backup statistics * @param {string} orgName name of the Org * @param {string} [clusterID] id of the Cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupStats(orgName: string, clusterID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get backup policy * @param {string} orgName name of the Org * @param {string} clusterName name of the KubeBlocks cluster * @param {boolean} [useVolumeSnapshot] use volume snapshot to back up * @param {*} [options] Override http request option. * @throws {RequiredError} */ getClusterBackupPolicy(orgName: string, clusterName: string, useVolumeSnapshot?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary List backup schedules * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} [backupMethod] filter by backup method * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupSchedules(orgName: string, clusterName: string, backupMethod?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary List backups * @param {string} orgName name of the Org * @param {string} [clusterName] cluster name of the Backup * @param {string} [clusterID] cluster ID of the Backup * @param {string} [backupRepo] backup repo of the Backup * @param {boolean} [fetchWithDeletedCluster] defined whether to search for deleted clusters. if not set, returns all backups * @param {boolean} [withDeletedBackups] defined whether to search for deleted backups. if not set, only return backups that are not deleted * @param {boolean} [withRestoreCluster] defined whether to search for restore backups. * @param {string} [backupType] type of the backup * @param {boolean} [withRebuildInstance] defined whether to search for rebuilding instance. * @param {boolean} [withHScale] defined whether to search for hScale instance. * @param {string} [componentName] get the backups belong to the component * @param {number} [page] page number * @param {number} [pageSize] page size * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackups(orgName: string, clusterName?: string, clusterID?: string, backupRepo?: string, fetchWithDeletedCluster?: boolean, withDeletedBackups?: boolean, withRestoreCluster?: boolean, backupType?: string, withRebuildInstance?: boolean, withHScale?: boolean, componentName?: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary List objects tree for selective backup * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} [database] Database name for engines configured to switch the object tree by database. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listObjectsTreeForSelectiveBackup(orgName: string, clusterName: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * partially update the specified Backup Policy * @summary Update backup policy * @param {string} orgName name of the Org * @param {string} clusterName name of the KubeBlocks cluster * @param {BackupPolicy} body * @param {boolean} [useVolumeSnapshot] use volume snapshot to back up * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupPolicy(orgName: string, clusterName: string, body: BackupPolicy, useVolumeSnapshot?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Update backup schedule * @param {string} orgName name of the org * @param {string} clusterName name of the cluster * @param {string} scheduleName name of the backup schedule * @param {BackupScheduleUpdate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupSchedule(orgName: string, clusterName: string, scheduleName: string, body: BackupScheduleUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary view backup info * @param {string} orgName name of the org * @param {string} backupId the id of backup * @param {BackupView} [backupView] * @param {*} [options] Override http request option. * @throws {RequiredError} */ viewBackup(orgName: string, backupId: string, backupView?: BackupView, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * BackupApi - factory interface * @export */ export declare const BackupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted. * @summary Batch delete backups * @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary build backup object with a existing backup directory * @param {BackupApiBuildBackupObjRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ buildBackupObj(requestParameters: BackupApiBuildBackupObjRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create backup schedule * @param {BackupApiCreateBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBackupSchedule(requestParameters: BackupApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create backup * @param {BackupApiCreateClusterBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createClusterBackup(requestParameters: BackupApiCreateClusterBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete backup * @param {BackupApiDeleteBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackup(requestParameters: BackupApiDeleteBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete backup schedule * @param {BackupApiDeleteBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackupSchedule(requestParameters: BackupApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Download full backup * @param {BackupApiDownloadBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadBackup(requestParameters: BackupApiDownloadBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Download multiple backup files * @param {BackupApiDownloadMultipleBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ downloadMultipleBackups(requestParameters: BackupApiDownloadMultipleBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup * @param {BackupApiGetBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackup(requestParameters: BackupApiGetBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup log * @param {BackupApiGetBackupLogRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupLog(requestParameters: BackupApiGetBackupLogRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup statistics * @param {BackupApiGetBackupStatsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupStats(requestParameters: BackupApiGetBackupStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup policy * @param {BackupApiGetClusterBackupPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getClusterBackupPolicy(requestParameters: BackupApiGetClusterBackupPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List backup schedules * @param {BackupApiListBackupSchedulesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupSchedules(requestParameters: BackupApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List backups * @param {BackupApiListBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackups(requestParameters: BackupApiListBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List objects tree for selective backup * @param {BackupApiListObjectsTreeForSelectiveBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listObjectsTreeForSelectiveBackup(requestParameters: BackupApiListObjectsTreeForSelectiveBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * partially update the specified Backup Policy * @summary Update backup policy * @param {BackupApiUpdateBackupPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupPolicy(requestParameters: BackupApiUpdateBackupPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update backup schedule * @param {BackupApiUpdateBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupSchedule(requestParameters: BackupApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary view backup info * @param {BackupApiViewBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ viewBackup(requestParameters: BackupApiViewBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * BackupApi - interface * @export * @interface BackupApi */ export interface BackupApiInterface { /** * Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted. * @summary Batch delete backups * @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary build backup object with a existing backup directory * @param {BackupApiBuildBackupObjRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ buildBackupObj(requestParameters: BackupApiBuildBackupObjRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create backup schedule * @param {BackupApiCreateBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ createBackupSchedule(requestParameters: BackupApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create backup * @param {BackupApiCreateClusterBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ createClusterBackup(requestParameters: BackupApiCreateClusterBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete backup * @param {BackupApiDeleteBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ deleteBackup(requestParameters: BackupApiDeleteBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete backup schedule * @param {BackupApiDeleteBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ deleteBackupSchedule(requestParameters: BackupApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Download full backup * @param {BackupApiDownloadBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ downloadBackup(requestParameters: BackupApiDownloadBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Download multiple backup files * @param {BackupApiDownloadMultipleBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ downloadMultipleBackups(requestParameters: BackupApiDownloadMultipleBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup * @param {BackupApiGetBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ getBackup(requestParameters: BackupApiGetBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup log * @param {BackupApiGetBackupLogRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ getBackupLog(requestParameters: BackupApiGetBackupLogRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup statistics * @param {BackupApiGetBackupStatsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ getBackupStats(requestParameters: BackupApiGetBackupStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup policy * @param {BackupApiGetClusterBackupPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ getClusterBackupPolicy(requestParameters: BackupApiGetClusterBackupPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List backup schedules * @param {BackupApiListBackupSchedulesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ listBackupSchedules(requestParameters: BackupApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List backups * @param {BackupApiListBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ listBackups(requestParameters: BackupApiListBackupsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List objects tree for selective backup * @param {BackupApiListObjectsTreeForSelectiveBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ listObjectsTreeForSelectiveBackup(requestParameters: BackupApiListObjectsTreeForSelectiveBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * partially update the specified Backup Policy * @summary Update backup policy * @param {BackupApiUpdateBackupPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ updateBackupPolicy(requestParameters: BackupApiUpdateBackupPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update backup schedule * @param {BackupApiUpdateBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ updateBackupSchedule(requestParameters: BackupApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary view backup info * @param {BackupApiViewBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApiInterface */ viewBackup(requestParameters: BackupApiViewBackupRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for batchDeleteBackups operation in BackupApi. * @export * @interface BackupApiBatchDeleteBackupsRequest */ export interface BackupApiBatchDeleteBackupsRequest { /** * name of the Org * @type {string} * @memberof BackupApiBatchDeleteBackups */ readonly orgName: string; /** * * @type {BackupBatchDelete} * @memberof BackupApiBatchDeleteBackups */ readonly body: BackupBatchDelete; } /** * Request parameters for buildBackupObj operation in BackupApi. * @export * @interface BackupApiBuildBackupObjRequest */ export interface BackupApiBuildBackupObjRequest { /** * name of the Org * @type {string} * @memberof BackupApiBuildBackupObj */ readonly orgName: string; /** * name of the environment * @type {string} * @memberof BackupApiBuildBackupObj */ readonly environmentName: string; /** * name of the engine * @type {string} * @memberof BackupApiBuildBackupObj */ readonly engineName: string; /** * * @type {BuildBackupObjRequest} * @memberof BackupApiBuildBackupObj */ readonly body: BuildBackupObjRequest; } /** * Request parameters for createBackupSchedule operation in BackupApi. * @export * @interface BackupApiCreateBackupScheduleRequest */ export interface BackupApiCreateBackupScheduleRequest { /** * name of the org * @type {string} * @memberof BackupApiCreateBackupSchedule */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof BackupApiCreateBackupSchedule */ readonly clusterName: string; /** * * @type {BackupScheduleCreate} * @memberof BackupApiCreateBackupSchedule */ readonly body: BackupScheduleCreate; } /** * Request parameters for createClusterBackup operation in BackupApi. * @export * @interface BackupApiCreateClusterBackupRequest */ export interface BackupApiCreateClusterBackupRequest { /** * name of the Org * @type {string} * @memberof BackupApiCreateClusterBackup */ readonly orgName: string; /** * name of the KubeBlocks cluster * @type {string} * @memberof BackupApiCreateClusterBackup */ readonly clusterName: string; /** * * @type {BackupCreate} * @memberof BackupApiCreateClusterBackup */ readonly body: BackupCreate; /** * name of the component * @type {string} * @memberof BackupApiCreateClusterBackup */ readonly component?: string; } /** * Request parameters for deleteBackup operation in BackupApi. * @export * @interface BackupApiDeleteBackupRequest */ export interface BackupApiDeleteBackupRequest { /** * name of the Org * @type {string} * @memberof BackupApiDeleteBackup */ readonly orgName: string; /** * id of the Backup * @type {string} * @memberof BackupApiDeleteBackup */ readonly backupId: string; } /** * Request parameters for deleteBackupSchedule operation in BackupApi. * @export * @interface BackupApiDeleteBackupScheduleRequest */ export interface BackupApiDeleteBackupScheduleRequest { /** * name of the org * @type {string} * @memberof BackupApiDeleteBackupSchedule */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof BackupApiDeleteBackupSchedule */ readonly clusterName: string; /** * name of the backup schedule * @type {string} * @memberof BackupApiDeleteBackupSchedule */ readonly scheduleName: string; } /** * Request parameters for downloadBackup operation in BackupApi. * @export * @interface BackupApiDownloadBackupRequest */ export interface BackupApiDownloadBackupRequest { /** * name of the org * @type {string} * @memberof BackupApiDownloadBackup */ readonly orgName: string; /** * the id of backup * @type {string} * @memberof BackupApiDownloadBackup */ readonly backupId: string; } /** * Request parameters for downloadMultipleBackups operation in BackupApi. * @export * @interface BackupApiDownloadMultipleBackupsRequest */ export interface BackupApiDownloadMultipleBackupsRequest { /** * name of the org * @type {string} * @memberof BackupApiDownloadMultipleBackups */ readonly orgName: string; /** * the id of backup * @type {string} * @memberof BackupApiDownloadMultipleBackups */ readonly backupId: string; /** * * @type {BackupDownload} * @memberof BackupApiDownloadMultipleBackups */ readonly backupDownload: BackupDownload; } /** * Request parameters for getBackup operation in BackupApi. * @export * @interface BackupApiGetBackupRequest */ export interface BackupApiGetBackupRequest { /** * name of the Org * @type {string} * @memberof BackupApiGetBackup */ readonly orgName: string; /** * id of the Backup * @type {string} * @memberof BackupApiGetBackup */ readonly backupId: string; } /** * Request parameters for getBackupLog operation in BackupApi. * @export * @interface BackupApiGetBackupLogRequest */ export interface BackupApiGetBackupLogRequest { /** * name of the Org * @type {string} * @memberof BackupApiGetBackupLog */ readonly orgName: string; /** * id of the Backup * @type {string} * @memberof BackupApiGetBackupLog */ readonly backupId: string; } /** * Request parameters for getBackupStats operation in BackupApi. * @export * @interface BackupApiGetBackupStatsRequest */ export interface BackupApiGetBackupStatsRequest { /** * name of the Org * @type {string} * @memberof BackupApiGetBackupStats */ readonly orgName: string; /** * id of the Cluster * @type {string} * @memberof BackupApiGetBackupStats */ readonly clusterID?: string; } /** * Request parameters for getClusterBackupPolicy operation in BackupApi. * @export * @interface BackupApiGetClusterBackupPolicyRequest */ export interface BackupApiGetClusterBackupPolicyRequest { /** * name of the Org * @type {string} * @memberof BackupApiGetClusterBackupPolicy */ readonly orgName: string; /** * name of the KubeBlocks cluster * @type {string} * @memberof BackupApiGetClusterBackupPolicy */ readonly clusterName: string; /** * use volume snapshot to back up * @type {boolean} * @memberof BackupApiGetClusterBackupPolicy */ readonly useVolumeSnapshot?: boolean; } /** * Request parameters for listBackupSchedules operation in BackupApi. * @export * @interface BackupApiListBackupSchedulesRequest */ export interface BackupApiListBackupSchedulesRequest { /** * name of the org * @type {string} * @memberof BackupApiListBackupSchedules */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof BackupApiListBackupSchedules */ readonly clusterName: string; /** * filter by backup method * @type {string} * @memberof BackupApiListBackupSchedules */ readonly backupMethod?: string; } /** * Request parameters for listBackups operation in BackupApi. * @export * @interface BackupApiListBackupsRequest */ export interface BackupApiListBackupsRequest { /** * name of the Org * @type {string} * @memberof BackupApiListBackups */ readonly orgName: string; /** * cluster name of the Backup * @type {string} * @memberof BackupApiListBackups */ readonly clusterName?: string; /** * cluster ID of the Backup * @type {string} * @memberof BackupApiListBackups */ readonly clusterID?: string; /** * backup repo of the Backup * @type {string} * @memberof BackupApiListBackups */ readonly backupRepo?: string; /** * defined whether to search for deleted clusters. if not set, returns all backups * @type {boolean} * @memberof BackupApiListBackups */ readonly fetchWithDeletedCluster?: boolean; /** * defined whether to search for deleted backups. if not set, only return backups that are not deleted * @type {boolean} * @memberof BackupApiListBackups */ readonly withDeletedBackups?: boolean; /** * defined whether to search for restore backups. * @type {boolean} * @memberof BackupApiListBackups */ readonly withRestoreCluster?: boolean; /** * type of the backup * @type {string} * @memberof BackupApiListBackups */ readonly backupType?: string; /** * defined whether to search for rebuilding instance. * @type {boolean} * @memberof BackupApiListBackups */ readonly withRebuildInstance?: boolean; /** * defined whether to search for hScale instance. * @type {boolean} * @memberof BackupApiListBackups */ readonly withHScale?: boolean; /** * get the backups belong to the component * @type {string} * @memberof BackupApiListBackups */ readonly componentName?: string; /** * page number * @type {number} * @memberof BackupApiListBackups */ readonly page?: number; /** * page size * @type {number} * @memberof BackupApiListBackups */ readonly pageSize?: number; } /** * Request parameters for listObjectsTreeForSelectiveBackup operation in BackupApi. * @export * @interface BackupApiListObjectsTreeForSelectiveBackupRequest */ export interface BackupApiListObjectsTreeForSelectiveBackupRequest { /** * name of the org * @type {string} * @memberof BackupApiListObjectsTreeForSelectiveBackup */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof BackupApiListObjectsTreeForSelectiveBackup */ readonly clusterName: string; /** * Database name for engines configured to switch the object tree by database. * @type {string} * @memberof BackupApiListObjectsTreeForSelectiveBackup */ readonly database?: string; } /** * Request parameters for updateBackupPolicy operation in BackupApi. * @export * @interface BackupApiUpdateBackupPolicyRequest */ export interface BackupApiUpdateBackupPolicyRequest { /** * name of the Org * @type {string} * @memberof BackupApiUpdateBackupPolicy */ readonly orgName: string; /** * name of the KubeBlocks cluster * @type {string} * @memberof BackupApiUpdateBackupPolicy */ readonly clusterName: string; /** * * @type {BackupPolicy} * @memberof BackupApiUpdateBackupPolicy */ readonly body: BackupPolicy; /** * use volume snapshot to back up * @type {boolean} * @memberof BackupApiUpdateBackupPolicy */ readonly useVolumeSnapshot?: boolean; } /** * Request parameters for updateBackupSchedule operation in BackupApi. * @export * @interface BackupApiUpdateBackupScheduleRequest */ export interface BackupApiUpdateBackupScheduleRequest { /** * name of the org * @type {string} * @memberof BackupApiUpdateBackupSchedule */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof BackupApiUpdateBackupSchedule */ readonly clusterName: string; /** * name of the backup schedule * @type {string} * @memberof BackupApiUpdateBackupSchedule */ readonly scheduleName: string; /** * * @type {BackupScheduleUpdate} * @memberof BackupApiUpdateBackupSchedule */ readonly body: BackupScheduleUpdate; } /** * Request parameters for viewBackup operation in BackupApi. * @export * @interface BackupApiViewBackupRequest */ export interface BackupApiViewBackupRequest { /** * name of the org * @type {string} * @memberof BackupApiViewBackup */ readonly orgName: string; /** * the id of backup * @type {string} * @memberof BackupApiViewBackup */ readonly backupId: string; /** * * @type {BackupView} * @memberof BackupApiViewBackup */ readonly backupView?: BackupView; } /** * BackupApi - object-oriented interface * @export * @class BackupApi * @extends {BaseAPI} */ export declare class BackupApi extends BaseAPI implements BackupApiInterface { /** * Delete multiple backups in a single request. Backups which cannot be deleted are reported in the error response and do not roll back the backups that were already deleted. * @summary Batch delete backups * @param {BackupApiBatchDeleteBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ batchDeleteBackups(requestParameters: BackupApiBatchDeleteBackupsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary build backup object with a existing backup directory * @param {BackupApiBuildBackupObjRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ buildBackupObj(requestParameters: BackupApiBuildBackupObjRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create backup schedule * @param {BackupApiCreateBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ createBackupSchedule(requestParameters: BackupApiCreateBackupScheduleRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create backup * @param {BackupApiCreateClusterBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ createClusterBackup(requestParameters: BackupApiCreateClusterBackupRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Delete backup * @param {BackupApiDeleteBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ deleteBackup(requestParameters: BackupApiDeleteBackupRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Delete backup schedule * @param {BackupApiDeleteBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ deleteBackupSchedule(requestParameters: BackupApiDeleteBackupScheduleRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Download full backup * @param {BackupApiDownloadBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ downloadBackup(requestParameters: BackupApiDownloadBackupRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Download multiple backup files * @param {BackupApiDownloadMultipleBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ downloadMultipleBackups(requestParameters: BackupApiDownloadMultipleBackupsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get backup * @param {BackupApiGetBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ getBackup(requestParameters: BackupApiGetBackupRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get backup log * @param {BackupApiGetBackupLogRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ getBackupLog(requestParameters: BackupApiGetBackupLogRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get backup statistics * @param {BackupApiGetBackupStatsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ getBackupStats(requestParameters: BackupApiGetBackupStatsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get backup policy * @param {BackupApiGetClusterBackupPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ getClusterBackupPolicy(requestParameters: BackupApiGetClusterBackupPolicyRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary List backup schedules * @param {BackupApiListBackupSchedulesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ listBackupSchedules(requestParameters: BackupApiListBackupSchedulesRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary List backups * @param {BackupApiListBackupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ listBackups(requestParameters: BackupApiListBackupsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary List objects tree for selective backup * @param {BackupApiListObjectsTreeForSelectiveBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ listObjectsTreeForSelectiveBackup(requestParameters: BackupApiListObjectsTreeForSelectiveBackupRequest, options?: RawAxiosRequestConfig): Promise>; /** * partially update the specified Backup Policy * @summary Update backup policy * @param {BackupApiUpdateBackupPolicyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ updateBackupPolicy(requestParameters: BackupApiUpdateBackupPolicyRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Update backup schedule * @param {BackupApiUpdateBackupScheduleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ updateBackupSchedule(requestParameters: BackupApiUpdateBackupScheduleRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary view backup info * @param {BackupApiViewBackupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupApi */ viewBackup(requestParameters: BackupApiViewBackupRequest, options?: RawAxiosRequestConfig): Promise>; } //# sourceMappingURL=backup-api.d.ts.map