/** * 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 { CreatePgExtensionResp } from '../models'; import type { PgCreateExtensionOpt } from '../models'; import type { PgExtension } from '../models'; /** * PostgresqlApi - axios parameter creator * @export */ export declare const PostgresqlApiAxiosParamCreator: (configuration?: Configuration) => { /** * Enable one or more PostgreSQL extensions across selected databases, returning a result for each database-extension pair. * @summary Enable PostgreSQL extensions in selected databases * @param {string} orgName Organization name * @param {string} clusterName name of the cluster * @param {PgCreateExtensionOpt} pgCreateExtensionOpt * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPGExtension: (orgName: string, clusterName: string, pgCreateExtensionOpt: PgCreateExtensionOpt, options?: RawAxiosRequestConfig) => Promise; /** * drop PostgreSQL extension * @summary drop PostgreSQL extension * @param {string} orgName Organization name * @param {string} clusterName name of the cluster * @param {string} extensionName The name of the PostgreSQL extension to uninstall. * @param {string} database The database where the extension is installed. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dropPGExtension: (orgName: string, clusterName: string, extensionName: string, database: string, options?: RawAxiosRequestConfig) => Promise; /** * List PostgreSQL extensions * @summary List PostgreSQL extensions * @param {string} orgName Organization name * @param {string} clusterName name of the cluster * @param {string} [status] extension status, if set to `installed`, only installed extensions will be returned. If not specified, all available extensions will be returned. * @param {string} [database] database name. This parameter is only used when status is installed; if not specified, all databases installed extensions will be returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPGExtensions: (orgName: string, clusterName: string, status?: string, database?: string, options?: RawAxiosRequestConfig) => Promise; }; /** * PostgresqlApi - functional programming interface * @export */ export declare const PostgresqlApiFp: (configuration?: Configuration) => { /** * Enable one or more PostgreSQL extensions across selected databases, returning a result for each database-extension pair. * @summary Enable PostgreSQL extensions in selected databases * @param {string} orgName Organization name * @param {string} clusterName name of the cluster * @param {PgCreateExtensionOpt} pgCreateExtensionOpt * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPGExtension(orgName: string, clusterName: string, pgCreateExtensionOpt: PgCreateExtensionOpt, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * drop PostgreSQL extension * @summary drop PostgreSQL extension * @param {string} orgName Organization name * @param {string} clusterName name of the cluster * @param {string} extensionName The name of the PostgreSQL extension to uninstall. * @param {string} database The database where the extension is installed. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dropPGExtension(orgName: string, clusterName: string, extensionName: string, database: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * List PostgreSQL extensions * @summary List PostgreSQL extensions * @param {string} orgName Organization name * @param {string} clusterName name of the cluster * @param {string} [status] extension status, if set to `installed`, only installed extensions will be returned. If not specified, all available extensions will be returned. * @param {string} [database] database name. This parameter is only used when status is installed; if not specified, all databases installed extensions will be returned. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPGExtensions(orgName: string, clusterName: string, status?: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * PostgresqlApi - factory interface * @export */ export declare const PostgresqlApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Enable one or more PostgreSQL extensions across selected databases, returning a result for each database-extension pair. * @summary Enable PostgreSQL extensions in selected databases * @param {PostgresqlApiCreatePGExtensionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPGExtension(requestParameters: PostgresqlApiCreatePGExtensionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * drop PostgreSQL extension * @summary drop PostgreSQL extension * @param {PostgresqlApiDropPGExtensionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dropPGExtension(requestParameters: PostgresqlApiDropPGExtensionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * List PostgreSQL extensions * @summary List PostgreSQL extensions * @param {PostgresqlApiListPGExtensionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listPGExtensions(requestParameters: PostgresqlApiListPGExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; }; /** * PostgresqlApi - interface * @export * @interface PostgresqlApi */ export interface PostgresqlApiInterface { /** * Enable one or more PostgreSQL extensions across selected databases, returning a result for each database-extension pair. * @summary Enable PostgreSQL extensions in selected databases * @param {PostgresqlApiCreatePGExtensionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PostgresqlApiInterface */ createPGExtension(requestParameters: PostgresqlApiCreatePGExtensionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * drop PostgreSQL extension * @summary drop PostgreSQL extension * @param {PostgresqlApiDropPGExtensionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PostgresqlApiInterface */ dropPGExtension(requestParameters: PostgresqlApiDropPGExtensionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * List PostgreSQL extensions * @summary List PostgreSQL extensions * @param {PostgresqlApiListPGExtensionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PostgresqlApiInterface */ listPGExtensions(requestParameters: PostgresqlApiListPGExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; } /** * Request parameters for createPGExtension operation in PostgresqlApi. * @export * @interface PostgresqlApiCreatePGExtensionRequest */ export interface PostgresqlApiCreatePGExtensionRequest { /** * Organization name * @type {string} * @memberof PostgresqlApiCreatePGExtension */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof PostgresqlApiCreatePGExtension */ readonly clusterName: string; /** * * @type {PgCreateExtensionOpt} * @memberof PostgresqlApiCreatePGExtension */ readonly pgCreateExtensionOpt: PgCreateExtensionOpt; } /** * Request parameters for dropPGExtension operation in PostgresqlApi. * @export * @interface PostgresqlApiDropPGExtensionRequest */ export interface PostgresqlApiDropPGExtensionRequest { /** * Organization name * @type {string} * @memberof PostgresqlApiDropPGExtension */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof PostgresqlApiDropPGExtension */ readonly clusterName: string; /** * The name of the PostgreSQL extension to uninstall. * @type {string} * @memberof PostgresqlApiDropPGExtension */ readonly extensionName: string; /** * The database where the extension is installed. * @type {string} * @memberof PostgresqlApiDropPGExtension */ readonly database: string; } /** * Request parameters for listPGExtensions operation in PostgresqlApi. * @export * @interface PostgresqlApiListPGExtensionsRequest */ export interface PostgresqlApiListPGExtensionsRequest { /** * Organization name * @type {string} * @memberof PostgresqlApiListPGExtensions */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof PostgresqlApiListPGExtensions */ readonly clusterName: string; /** * extension status, if set to `installed`, only installed extensions will be returned. If not specified, all available extensions will be returned. * @type {string} * @memberof PostgresqlApiListPGExtensions */ readonly status?: string; /** * database name. This parameter is only used when status is installed; if not specified, all databases installed extensions will be returned. * @type {string} * @memberof PostgresqlApiListPGExtensions */ readonly database?: string; } /** * PostgresqlApi - object-oriented interface * @export * @class PostgresqlApi * @extends {BaseAPI} */ export declare class PostgresqlApi extends BaseAPI implements PostgresqlApiInterface { /** * Enable one or more PostgreSQL extensions across selected databases, returning a result for each database-extension pair. * @summary Enable PostgreSQL extensions in selected databases * @param {PostgresqlApiCreatePGExtensionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PostgresqlApi */ createPGExtension(requestParameters: PostgresqlApiCreatePGExtensionRequest, options?: RawAxiosRequestConfig): Promise>; /** * drop PostgreSQL extension * @summary drop PostgreSQL extension * @param {PostgresqlApiDropPGExtensionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PostgresqlApi */ dropPGExtension(requestParameters: PostgresqlApiDropPGExtensionRequest, options?: RawAxiosRequestConfig): Promise>; /** * List PostgreSQL extensions * @summary List PostgreSQL extensions * @param {PostgresqlApiListPGExtensionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PostgresqlApi */ listPGExtensions(requestParameters: PostgresqlApiListPGExtensionsRequest, options?: RawAxiosRequestConfig): Promise>; } //# sourceMappingURL=postgresql-api.d.ts.map