/* tslint:disable */ /* eslint-disable */ /** * Admin API * The Admin API is used to manage the ApeCloud platform. * * 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 globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import type { APIErrorResponse } from '../models'; // @ts-ignore import type { BackupRepo } from '../models'; // @ts-ignore import type { BackupRepoCheck } from '../models'; // @ts-ignore import type { BackupRepoCreate } from '../models'; // @ts-ignore import type { BackupRepoList } from '../models'; // @ts-ignore import type { BackupRepoStatsList } from '../models'; // @ts-ignore import type { BackupRepoUpdate } from '../models'; // @ts-ignore import type { BackupRepoView } from '../models'; // @ts-ignore import type { FileEntryList } from '../models'; /** * BackupRepoApi - axios parameter creator * @export */ export const BackupRepoApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary check backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {string} [orgName] name of the organization * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkBackupRepo: async (environmentName: string, backupRepoName: string, orgName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('checkBackupRepo', 'environmentName', environmentName) // verify required parameter 'backupRepoName' is not null or undefined assertParamExists('checkBackupRepo', 'backupRepoName', backupRepoName) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}/check` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))) .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (orgName !== undefined) { localVarQueryParameter['orgName'] = orgName; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Create backup repo * @param {string} environmentName name of the environment * @param {BackupRepoCreate} body * @param {boolean} [envInstall] Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBackupRepo: async (environmentName: string, body: BackupRepoCreate, envInstall?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('createBackupRepo', 'environmentName', environmentName) // verify required parameter 'body' is not null or undefined assertParamExists('createBackupRepo', 'body', body) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (envInstall !== undefined) { localVarQueryParameter['envInstall'] = envInstall; } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Delete backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackupRepo: async (environmentName: string, backupRepoName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('deleteBackupRepo', 'environmentName', environmentName) // verify required parameter 'backupRepoName' is not null or undefined assertParamExists('deleteBackupRepo', 'backupRepoName', backupRepoName) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))) .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {string} [orgName] name of the organization * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupRepo: async (environmentName: string, backupRepoName: string, orgName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('getBackupRepo', 'environmentName', environmentName) // verify required parameter 'backupRepoName' is not null or undefined assertParamExists('getBackupRepo', 'backupRepoName', backupRepoName) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))) .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (orgName !== undefined) { localVarQueryParameter['orgName'] = orgName; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary list backup repo stats * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the environment * @param {string} [start] the start time * @param {string} [end] the end time * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupRepoStats: async (environmentName: string, backupRepoName: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('listBackupRepoStats', 'environmentName', environmentName) // verify required parameter 'backupRepoName' is not null or undefined assertParamExists('listBackupRepoStats', 'backupRepoName', backupRepoName) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}/stats` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))) .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (start !== undefined) { localVarQueryParameter['start'] = start; } if (end !== undefined) { localVarQueryParameter['end'] = end; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List backup repos * @param {string} environmentName name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupRepos: async (environmentName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('listBackupRepos', 'environmentName', environmentName) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {BackupRepoUpdate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupRepo: async (environmentName: string, backupRepoName: string, body: BackupRepoUpdate, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('updateBackupRepo', 'environmentName', environmentName) // verify required parameter 'backupRepoName' is not null or undefined assertParamExists('updateBackupRepo', 'backupRepoName', backupRepoName) // verify required parameter 'body' is not null or undefined assertParamExists('updateBackupRepo', 'body', body) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))) .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary view backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the environment * @param {BackupRepoView} backupRepoView * @param {*} [options] Override http request option. * @throws {RequiredError} */ viewBackupRepo: async (environmentName: string, backupRepoName: string, backupRepoView: BackupRepoView, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'environmentName' is not null or undefined assertParamExists('viewBackupRepo', 'environmentName', environmentName) // verify required parameter 'backupRepoName' is not null or undefined assertParamExists('viewBackupRepo', 'backupRepoName', backupRepoName) // verify required parameter 'backupRepoView' is not null or undefined assertParamExists('viewBackupRepo', 'backupRepoView', backupRepoView) const localVarPath = `/admin/v1/environments/{environmentName}/backupRepo/{backupRepoName}/view` .replace(`{${"environmentName"}}`, encodeURIComponent(String(environmentName))) .replace(`{${"backupRepoName"}}`, encodeURIComponent(String(backupRepoName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(backupRepoView, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * BackupRepoApi - functional programming interface * @export */ export const BackupRepoApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = BackupRepoApiAxiosParamCreator(configuration) return { /** * * @summary check backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {string} [orgName] name of the organization * @param {*} [options] Override http request option. * @throws {RequiredError} */ async checkBackupRepo(environmentName: string, backupRepoName: string, orgName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkBackupRepo(environmentName, backupRepoName, orgName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.checkBackupRepo']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create backup repo * @param {string} environmentName name of the environment * @param {BackupRepoCreate} body * @param {boolean} [envInstall] Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createBackupRepo(environmentName: string, body: BackupRepoCreate, envInstall?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBackupRepo(environmentName, body, envInstall, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.createBackupRepo']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteBackupRepo(environmentName: string, backupRepoName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBackupRepo(environmentName, backupRepoName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.deleteBackupRepo']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {string} [orgName] name of the organization * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getBackupRepo(environmentName: string, backupRepoName: string, orgName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupRepo(environmentName, backupRepoName, orgName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.getBackupRepo']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary list backup repo stats * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the environment * @param {string} [start] the start time * @param {string} [end] the end time * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listBackupRepoStats(environmentName: string, backupRepoName: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listBackupRepoStats(environmentName, backupRepoName, start, end, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.listBackupRepoStats']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List backup repos * @param {string} environmentName name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listBackupRepos(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listBackupRepos(environmentName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.listBackupRepos']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the BackupRepo * @param {BackupRepoUpdate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateBackupRepo(environmentName: string, backupRepoName: string, body: BackupRepoUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateBackupRepo(environmentName, backupRepoName, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.updateBackupRepo']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary view backup repo * @param {string} environmentName name of the environment * @param {string} backupRepoName name of the environment * @param {BackupRepoView} backupRepoView * @param {*} [options] Override http request option. * @throws {RequiredError} */ async viewBackupRepo(environmentName: string, backupRepoName: string, backupRepoView: BackupRepoView, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.viewBackupRepo(environmentName, backupRepoName, backupRepoView, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BackupRepoApi.viewBackupRepo']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * BackupRepoApi - factory interface * @export */ export const BackupRepoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = BackupRepoApiFp(configuration) return { /** * * @summary check backup repo * @param {BackupRepoApiCheckBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ checkBackupRepo(requestParameters: BackupRepoApiCheckBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(axios, basePath)); }, /** * * @summary Create backup repo * @param {BackupRepoApiCreateBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBackupRepo(requestParameters: BackupRepoApiCreateBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBackupRepo(requestParameters.environmentName, requestParameters.body, requestParameters.envInstall, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete backup repo * @param {BackupRepoApiDeleteBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBackupRepo(requestParameters: BackupRepoApiDeleteBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, options).then((request) => request(axios, basePath)); }, /** * * @summary Get backup repo * @param {BackupRepoApiGetBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBackupRepo(requestParameters: BackupRepoApiGetBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(axios, basePath)); }, /** * * @summary list backup repo stats * @param {BackupRepoApiListBackupRepoStatsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupRepoStats(requestParameters: BackupRepoApiListBackupRepoStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listBackupRepoStats(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.start, requestParameters.end, options).then((request) => request(axios, basePath)); }, /** * * @summary List backup repos * @param {BackupRepoApiListBackupReposRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBackupRepos(requestParameters: BackupRepoApiListBackupReposRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listBackupRepos(requestParameters.environmentName, options).then((request) => request(axios, basePath)); }, /** * * @summary Update backup repo * @param {BackupRepoApiUpdateBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBackupRepo(requestParameters: BackupRepoApiUpdateBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.body, options).then((request) => request(axios, basePath)); }, /** * * @summary view backup repo * @param {BackupRepoApiViewBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ viewBackupRepo(requestParameters: BackupRepoApiViewBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.viewBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.backupRepoView, options).then((request) => request(axios, basePath)); }, }; }; /** * BackupRepoApi - interface * @export * @interface BackupRepoApi */ export interface BackupRepoApiInterface { /** * * @summary check backup repo * @param {BackupRepoApiCheckBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ checkBackupRepo(requestParameters: BackupRepoApiCheckBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create backup repo * @param {BackupRepoApiCreateBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ createBackupRepo(requestParameters: BackupRepoApiCreateBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete backup repo * @param {BackupRepoApiDeleteBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ deleteBackupRepo(requestParameters: BackupRepoApiDeleteBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get backup repo * @param {BackupRepoApiGetBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ getBackupRepo(requestParameters: BackupRepoApiGetBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary list backup repo stats * @param {BackupRepoApiListBackupRepoStatsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ listBackupRepoStats(requestParameters: BackupRepoApiListBackupRepoStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List backup repos * @param {BackupRepoApiListBackupReposRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ listBackupRepos(requestParameters: BackupRepoApiListBackupReposRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update backup repo * @param {BackupRepoApiUpdateBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ updateBackupRepo(requestParameters: BackupRepoApiUpdateBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary view backup repo * @param {BackupRepoApiViewBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApiInterface */ viewBackupRepo(requestParameters: BackupRepoApiViewBackupRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for checkBackupRepo operation in BackupRepoApi. * @export * @interface BackupRepoApiCheckBackupRepoRequest */ export interface BackupRepoApiCheckBackupRepoRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiCheckBackupRepo */ readonly environmentName: string /** * name of the BackupRepo * @type {string} * @memberof BackupRepoApiCheckBackupRepo */ readonly backupRepoName: string /** * name of the organization * @type {string} * @memberof BackupRepoApiCheckBackupRepo */ readonly orgName?: string } /** * Request parameters for createBackupRepo operation in BackupRepoApi. * @export * @interface BackupRepoApiCreateBackupRepoRequest */ export interface BackupRepoApiCreateBackupRepoRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiCreateBackupRepo */ readonly environmentName: string /** * * @type {BackupRepoCreate} * @memberof BackupRepoApiCreateBackupRepo */ readonly body: BackupRepoCreate /** * Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation. * @type {boolean} * @memberof BackupRepoApiCreateBackupRepo */ readonly envInstall?: boolean } /** * Request parameters for deleteBackupRepo operation in BackupRepoApi. * @export * @interface BackupRepoApiDeleteBackupRepoRequest */ export interface BackupRepoApiDeleteBackupRepoRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiDeleteBackupRepo */ readonly environmentName: string /** * name of the BackupRepo * @type {string} * @memberof BackupRepoApiDeleteBackupRepo */ readonly backupRepoName: string } /** * Request parameters for getBackupRepo operation in BackupRepoApi. * @export * @interface BackupRepoApiGetBackupRepoRequest */ export interface BackupRepoApiGetBackupRepoRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiGetBackupRepo */ readonly environmentName: string /** * name of the BackupRepo * @type {string} * @memberof BackupRepoApiGetBackupRepo */ readonly backupRepoName: string /** * name of the organization * @type {string} * @memberof BackupRepoApiGetBackupRepo */ readonly orgName?: string } /** * Request parameters for listBackupRepoStats operation in BackupRepoApi. * @export * @interface BackupRepoApiListBackupRepoStatsRequest */ export interface BackupRepoApiListBackupRepoStatsRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiListBackupRepoStats */ readonly environmentName: string /** * name of the environment * @type {string} * @memberof BackupRepoApiListBackupRepoStats */ readonly backupRepoName: string /** * the start time * @type {string} * @memberof BackupRepoApiListBackupRepoStats */ readonly start?: string /** * the end time * @type {string} * @memberof BackupRepoApiListBackupRepoStats */ readonly end?: string } /** * Request parameters for listBackupRepos operation in BackupRepoApi. * @export * @interface BackupRepoApiListBackupReposRequest */ export interface BackupRepoApiListBackupReposRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiListBackupRepos */ readonly environmentName: string } /** * Request parameters for updateBackupRepo operation in BackupRepoApi. * @export * @interface BackupRepoApiUpdateBackupRepoRequest */ export interface BackupRepoApiUpdateBackupRepoRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiUpdateBackupRepo */ readonly environmentName: string /** * name of the BackupRepo * @type {string} * @memberof BackupRepoApiUpdateBackupRepo */ readonly backupRepoName: string /** * * @type {BackupRepoUpdate} * @memberof BackupRepoApiUpdateBackupRepo */ readonly body: BackupRepoUpdate } /** * Request parameters for viewBackupRepo operation in BackupRepoApi. * @export * @interface BackupRepoApiViewBackupRepoRequest */ export interface BackupRepoApiViewBackupRepoRequest { /** * name of the environment * @type {string} * @memberof BackupRepoApiViewBackupRepo */ readonly environmentName: string /** * name of the environment * @type {string} * @memberof BackupRepoApiViewBackupRepo */ readonly backupRepoName: string /** * * @type {BackupRepoView} * @memberof BackupRepoApiViewBackupRepo */ readonly backupRepoView: BackupRepoView } /** * BackupRepoApi - object-oriented interface * @export * @class BackupRepoApi * @extends {BaseAPI} */ export class BackupRepoApi extends BaseAPI implements BackupRepoApiInterface { /** * * @summary check backup repo * @param {BackupRepoApiCheckBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public checkBackupRepo(requestParameters: BackupRepoApiCheckBackupRepoRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).checkBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create backup repo * @param {BackupRepoApiCreateBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public createBackupRepo(requestParameters: BackupRepoApiCreateBackupRepoRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).createBackupRepo(requestParameters.environmentName, requestParameters.body, requestParameters.envInstall, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete backup repo * @param {BackupRepoApiDeleteBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public deleteBackupRepo(requestParameters: BackupRepoApiDeleteBackupRepoRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).deleteBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get backup repo * @param {BackupRepoApiGetBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public getBackupRepo(requestParameters: BackupRepoApiGetBackupRepoRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).getBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.orgName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary list backup repo stats * @param {BackupRepoApiListBackupRepoStatsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public listBackupRepoStats(requestParameters: BackupRepoApiListBackupRepoStatsRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).listBackupRepoStats(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.start, requestParameters.end, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List backup repos * @param {BackupRepoApiListBackupReposRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public listBackupRepos(requestParameters: BackupRepoApiListBackupReposRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).listBackupRepos(requestParameters.environmentName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update backup repo * @param {BackupRepoApiUpdateBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public updateBackupRepo(requestParameters: BackupRepoApiUpdateBackupRepoRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).updateBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary view backup repo * @param {BackupRepoApiViewBackupRepoRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BackupRepoApi */ public viewBackupRepo(requestParameters: BackupRepoApiViewBackupRepoRequest, options?: RawAxiosRequestConfig) { return BackupRepoApiFp(this.configuration).viewBackupRepo(requestParameters.environmentName, requestParameters.backupRepoName, requestParameters.backupRepoView, options).then((request) => request(this.axios, this.basePath)); } }