/** * 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 { DmsSession } from '../models'; /** * SessionApi - axios parameter creator * @export */ export declare const SessionApiAxiosParamCreator: (configuration?: Configuration) => { /** * kill a session in cluster * @summary Kill cluster session * @param {string} engineName name of the engine * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {string} session session id; for Redis, use the numeric CLIENT LIST client id * @param {boolean} [keep] if keep is true, the session will not be killed but only closed * @param {*} [options] Override http request option. * @throws {RequiredError} */ killSession: (engineName: string, orgName: string, clusterName: string, session: string, keep?: boolean, options?: RawAxiosRequestConfig) => Promise; /** * list sessions in cluster * @summary List cluster sessions * @param {string} engineName name of the engine * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {boolean} [all] whether list all session includes sleep * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSessions: (engineName: string, orgName: string, clusterName: string, all?: boolean, options?: RawAxiosRequestConfig) => Promise; }; /** * SessionApi - functional programming interface * @export */ export declare const SessionApiFp: (configuration?: Configuration) => { /** * kill a session in cluster * @summary Kill cluster session * @param {string} engineName name of the engine * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {string} session session id; for Redis, use the numeric CLIENT LIST client id * @param {boolean} [keep] if keep is true, the session will not be killed but only closed * @param {*} [options] Override http request option. * @throws {RequiredError} */ killSession(engineName: string, orgName: string, clusterName: string, session: string, keep?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * list sessions in cluster * @summary List cluster sessions * @param {string} engineName name of the engine * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {boolean} [all] whether list all session includes sleep * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSessions(engineName: string, orgName: string, clusterName: string, all?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * SessionApi - factory interface * @export */ export declare const SessionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * kill a session in cluster * @summary Kill cluster session * @param {SessionApiKillSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ killSession(requestParameters: SessionApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * list sessions in cluster * @summary List cluster sessions * @param {SessionApiListSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSessions(requestParameters: SessionApiListSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; }; /** * SessionApi - interface * @export * @interface SessionApi */ export interface SessionApiInterface { /** * kill a session in cluster * @summary Kill cluster session * @param {SessionApiKillSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionApiInterface */ killSession(requestParameters: SessionApiKillSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * list sessions in cluster * @summary List cluster sessions * @param {SessionApiListSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionApiInterface */ listSessions(requestParameters: SessionApiListSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; } /** * Request parameters for killSession operation in SessionApi. * @export * @interface SessionApiKillSessionRequest */ export interface SessionApiKillSessionRequest { /** * name of the engine * @type {string} * @memberof SessionApiKillSession */ readonly engineName: string; /** * name of the Org * @type {string} * @memberof SessionApiKillSession */ readonly orgName: string; /** * name of the Cluster * @type {string} * @memberof SessionApiKillSession */ readonly clusterName: string; /** * session id; for Redis, use the numeric CLIENT LIST client id * @type {string} * @memberof SessionApiKillSession */ readonly session: string; /** * if keep is true, the session will not be killed but only closed * @type {boolean} * @memberof SessionApiKillSession */ readonly keep?: boolean; } /** * Request parameters for listSessions operation in SessionApi. * @export * @interface SessionApiListSessionsRequest */ export interface SessionApiListSessionsRequest { /** * name of the engine * @type {string} * @memberof SessionApiListSessions */ readonly engineName: string; /** * name of the Org * @type {string} * @memberof SessionApiListSessions */ readonly orgName: string; /** * name of the Cluster * @type {string} * @memberof SessionApiListSessions */ readonly clusterName: string; /** * whether list all session includes sleep * @type {boolean} * @memberof SessionApiListSessions */ readonly all?: boolean; } /** * SessionApi - object-oriented interface * @export * @class SessionApi * @extends {BaseAPI} */ export declare class SessionApi extends BaseAPI implements SessionApiInterface { /** * kill a session in cluster * @summary Kill cluster session * @param {SessionApiKillSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionApi */ killSession(requestParameters: SessionApiKillSessionRequest, options?: RawAxiosRequestConfig): Promise>; /** * list sessions in cluster * @summary List cluster sessions * @param {SessionApiListSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionApi */ listSessions(requestParameters: SessionApiListSessionsRequest, options?: RawAxiosRequestConfig): Promise>; } //# sourceMappingURL=session-api.d.ts.map