/** * KubeBlocks Cloud Internal API * The Internal API is using for interaction of ApeCloud platform microservices. * * The version of the OpenAPI document: 1.0.0 * * * 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 { BackupRepo } from '../models'; import type { BackupRepoCreate } from '../models'; import type { Environment } from '../models'; import type { EnvironmentCreate } from '../models'; import type { HttpBody } from '../models'; /** * EnvironmentApi - axios parameter creator * @export */ export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configuration) => { /** * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries. * @summary Create a backup repository * @param {string} environmentName * @param {string} uid * @param {BackupRepoCreate} backupRepoCreate * @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} */ createBackupRepoInternal: (environmentName: string, uid: string, backupRepoCreate: BackupRepoCreate, envInstall?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create environment * @param {EnvironmentCreate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEnvironment: (body: EnvironmentCreate, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Delete Environment * @param {string} environmentName name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEnvironment: (environmentName: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Execute a persisted module uninstall step * @param {string} environmentName * @param {string} moduleName * @param {ExecuteEnvironmentModuleUninstallStageEnum} stage * @param {{ [key: string]: any; }} requestBody * @param {string} [uid] * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeEnvironmentModuleUninstall: (environmentName: string, moduleName: string, stage: ExecuteEnvironmentModuleUninstallStageEnum, requestBody: { [key: string]: any; }, uid?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get environment * @param {string} environmentName name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironment: (environmentName: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get environment kubeconfig * @param {string} environmentName name of the Environment * @param {string} [orgName] name of the Org * @param {string} [uid] the uid of the impersonating user * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironmentKubeconfigInternal: (environmentName: string, orgName?: string, uid?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Reconcile alert configuration for an environment * @param {string} environmentName * @param {boolean} [wait] * @param {*} [options] Override http request option. * @throws {RequiredError} */ syncEnvironmentAlertConfigs: (environmentName: string, wait?: boolean, options?: RawAxiosRequestConfig) => Promise; }; /** * EnvironmentApi - functional programming interface * @export */ export declare const EnvironmentApiFp: (configuration?: Configuration) => { /** * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries. * @summary Create a backup repository * @param {string} environmentName * @param {string} uid * @param {BackupRepoCreate} backupRepoCreate * @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} */ createBackupRepoInternal(environmentName: string, uid: string, backupRepoCreate: BackupRepoCreate, envInstall?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create environment * @param {EnvironmentCreate} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEnvironment(body: EnvironmentCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Delete Environment * @param {string} environmentName name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEnvironment(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Execute a persisted module uninstall step * @param {string} environmentName * @param {string} moduleName * @param {ExecuteEnvironmentModuleUninstallStageEnum} stage * @param {{ [key: string]: any; }} requestBody * @param {string} [uid] * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeEnvironmentModuleUninstall(environmentName: string, moduleName: string, stage: ExecuteEnvironmentModuleUninstallStageEnum, requestBody: { [key: string]: any; }, uid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get environment * @param {string} environmentName name of the environment * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironment(environmentName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get environment kubeconfig * @param {string} environmentName name of the Environment * @param {string} [orgName] name of the Org * @param {string} [uid] the uid of the impersonating user * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironmentKubeconfigInternal(environmentName: string, orgName?: string, uid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Reconcile alert configuration for an environment * @param {string} environmentName * @param {boolean} [wait] * @param {*} [options] Override http request option. * @throws {RequiredError} */ syncEnvironmentAlertConfigs(environmentName: string, wait?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * EnvironmentApi - factory interface * @export */ export declare const EnvironmentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries. * @summary Create a backup repository * @param {EnvironmentApiCreateBackupRepoInternalRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create environment * @param {EnvironmentApiCreateEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEnvironment(requestParameters: EnvironmentApiCreateEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete Environment * @param {EnvironmentApiDeleteEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteEnvironment(requestParameters: EnvironmentApiDeleteEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Execute a persisted module uninstall step * @param {EnvironmentApiExecuteEnvironmentModuleUninstallRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get environment * @param {EnvironmentApiGetEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironment(requestParameters: EnvironmentApiGetEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get environment kubeconfig * @param {EnvironmentApiGetEnvironmentKubeconfigInternalRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getEnvironmentKubeconfigInternal(requestParameters: EnvironmentApiGetEnvironmentKubeconfigInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Reconcile alert configuration for an environment * @param {EnvironmentApiSyncEnvironmentAlertConfigsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ syncEnvironmentAlertConfigs(requestParameters: EnvironmentApiSyncEnvironmentAlertConfigsRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * EnvironmentApi - interface * @export * @interface EnvironmentApi */ export interface EnvironmentApiInterface { /** * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries. * @summary Create a backup repository * @param {EnvironmentApiCreateBackupRepoInternalRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create environment * @param {EnvironmentApiCreateEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ createEnvironment(requestParameters: EnvironmentApiCreateEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete Environment * @param {EnvironmentApiDeleteEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ deleteEnvironment(requestParameters: EnvironmentApiDeleteEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Execute a persisted module uninstall step * @param {EnvironmentApiExecuteEnvironmentModuleUninstallRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get environment * @param {EnvironmentApiGetEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ getEnvironment(requestParameters: EnvironmentApiGetEnvironmentRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get environment kubeconfig * @param {EnvironmentApiGetEnvironmentKubeconfigInternalRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ getEnvironmentKubeconfigInternal(requestParameters: EnvironmentApiGetEnvironmentKubeconfigInternalRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Reconcile alert configuration for an environment * @param {EnvironmentApiSyncEnvironmentAlertConfigsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApiInterface */ syncEnvironmentAlertConfigs(requestParameters: EnvironmentApiSyncEnvironmentAlertConfigsRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for createBackupRepoInternal operation in EnvironmentApi. * @export * @interface EnvironmentApiCreateBackupRepoInternalRequest */ export interface EnvironmentApiCreateBackupRepoInternalRequest { /** * * @type {string} * @memberof EnvironmentApiCreateBackupRepoInternal */ readonly environmentName: string; /** * * @type {string} * @memberof EnvironmentApiCreateBackupRepoInternal */ readonly uid: string; /** * * @type {BackupRepoCreate} * @memberof EnvironmentApiCreateBackupRepoInternal */ readonly backupRepoCreate: BackupRepoCreate; /** * Use the environment installation repository selection and retry handling. Omitted or false performs ordinary repository creation. * @type {boolean} * @memberof EnvironmentApiCreateBackupRepoInternal */ readonly envInstall?: boolean; } /** * Request parameters for createEnvironment operation in EnvironmentApi. * @export * @interface EnvironmentApiCreateEnvironmentRequest */ export interface EnvironmentApiCreateEnvironmentRequest { /** * * @type {EnvironmentCreate} * @memberof EnvironmentApiCreateEnvironment */ readonly body: EnvironmentCreate; } /** * Request parameters for deleteEnvironment operation in EnvironmentApi. * @export * @interface EnvironmentApiDeleteEnvironmentRequest */ export interface EnvironmentApiDeleteEnvironmentRequest { /** * name of the environment * @type {string} * @memberof EnvironmentApiDeleteEnvironment */ readonly environmentName: string; } /** * Request parameters for executeEnvironmentModuleUninstall operation in EnvironmentApi. * @export * @interface EnvironmentApiExecuteEnvironmentModuleUninstallRequest */ export interface EnvironmentApiExecuteEnvironmentModuleUninstallRequest { /** * * @type {string} * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall */ readonly environmentName: string; /** * * @type {string} * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall */ readonly moduleName: string; /** * * @type {'detach' | 'delete'} * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall */ readonly stage: ExecuteEnvironmentModuleUninstallStageEnum; /** * * @type {{ [key: string]: any; }} * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall */ readonly requestBody: { [key: string]: any; }; /** * * @type {string} * @memberof EnvironmentApiExecuteEnvironmentModuleUninstall */ readonly uid?: string; } /** * Request parameters for getEnvironment operation in EnvironmentApi. * @export * @interface EnvironmentApiGetEnvironmentRequest */ export interface EnvironmentApiGetEnvironmentRequest { /** * name of the environment * @type {string} * @memberof EnvironmentApiGetEnvironment */ readonly environmentName: string; } /** * Request parameters for getEnvironmentKubeconfigInternal operation in EnvironmentApi. * @export * @interface EnvironmentApiGetEnvironmentKubeconfigInternalRequest */ export interface EnvironmentApiGetEnvironmentKubeconfigInternalRequest { /** * name of the Environment * @type {string} * @memberof EnvironmentApiGetEnvironmentKubeconfigInternal */ readonly environmentName: string; /** * name of the Org * @type {string} * @memberof EnvironmentApiGetEnvironmentKubeconfigInternal */ readonly orgName?: string; /** * the uid of the impersonating user * @type {string} * @memberof EnvironmentApiGetEnvironmentKubeconfigInternal */ readonly uid?: string; } /** * Request parameters for syncEnvironmentAlertConfigs operation in EnvironmentApi. * @export * @interface EnvironmentApiSyncEnvironmentAlertConfigsRequest */ export interface EnvironmentApiSyncEnvironmentAlertConfigsRequest { /** * * @type {string} * @memberof EnvironmentApiSyncEnvironmentAlertConfigs */ readonly environmentName: string; /** * * @type {boolean} * @memberof EnvironmentApiSyncEnvironmentAlertConfigs */ readonly wait?: boolean; } /** * EnvironmentApi - object-oriented interface * @export * @class EnvironmentApi * @extends {BaseAPI} */ export declare class EnvironmentApi extends BaseAPI implements EnvironmentApiInterface { /** * Creates a backup repository. With envInstall enabled, uses the persisted environment installation storage and repository selection, reserves names before Kubernetes creation, and resumes the same installation on retries. * @summary Create a backup repository * @param {EnvironmentApiCreateBackupRepoInternalRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ createBackupRepoInternal(requestParameters: EnvironmentApiCreateBackupRepoInternalRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create environment * @param {EnvironmentApiCreateEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ createEnvironment(requestParameters: EnvironmentApiCreateEnvironmentRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Delete Environment * @param {EnvironmentApiDeleteEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ deleteEnvironment(requestParameters: EnvironmentApiDeleteEnvironmentRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Execute a persisted module uninstall step * @param {EnvironmentApiExecuteEnvironmentModuleUninstallRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ executeEnvironmentModuleUninstall(requestParameters: EnvironmentApiExecuteEnvironmentModuleUninstallRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get environment * @param {EnvironmentApiGetEnvironmentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ getEnvironment(requestParameters: EnvironmentApiGetEnvironmentRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get environment kubeconfig * @param {EnvironmentApiGetEnvironmentKubeconfigInternalRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ getEnvironmentKubeconfigInternal(requestParameters: EnvironmentApiGetEnvironmentKubeconfigInternalRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Reconcile alert configuration for an environment * @param {EnvironmentApiSyncEnvironmentAlertConfigsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EnvironmentApi */ syncEnvironmentAlertConfigs(requestParameters: EnvironmentApiSyncEnvironmentAlertConfigsRequest, options?: RawAxiosRequestConfig): Promise>; } /** * @export */ export declare const ExecuteEnvironmentModuleUninstallStageEnum: { readonly detach: "detach"; readonly delete: "delete"; }; export type ExecuteEnvironmentModuleUninstallStageEnum = typeof ExecuteEnvironmentModuleUninstallStageEnum[keyof typeof ExecuteEnvironmentModuleUninstallStageEnum]; //# sourceMappingURL=environment-api.d.ts.map