/** * 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 { Benchmark } from '../models'; import type { DeleteBenchOption } from '../models'; import type { Esrally } from '../models'; import type { Pgbench } from '../models'; import type { Sysbench } from '../models'; import type { Tpcc } from '../models'; import type { Ycsb } from '../models'; /** * BenchmarkApi - axios parameter creator * @export */ export declare const BenchmarkApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Create an esrally benchmark task * @param {string} orgName name of the Org * @param {Esrally} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEsrally: (orgName: string, body: Esrally, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create a pgbench benchmark task * @param {string} orgName name of the Org * @param {Pgbench} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPgbench: (orgName: string, body: Pgbench, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create a sysbench benchmark task * @param {string} orgName name of the Org * @param {Sysbench} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSysbench: (orgName: string, body: Sysbench, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create a tpcc benchmark task * @param {string} orgName name of the Org * @param {Tpcc} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTpcc: (orgName: string, body: Tpcc, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create a ycsb benchmark task * @param {string} orgName name of the Org * @param {Ycsb} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createYcsb: (orgName: string, body: Ycsb, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Delete benchmark tasks * @param {string} orgName name of the Org * @param {DeleteBenchOption} body ids of the benchmark * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBenchmark: (orgName: string, body: DeleteBenchOption, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Get benchmark task info * @param {string} orgName name of the Org * @param {string} benchmarkId id of the benchmark * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBenchmark: (orgName: string, benchmarkId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary List benchmark tasks * @param {string} orgName name of the Org * @param {string} [cluster] name of the cluster * @param {string} [benchType] type of the benchmark * @param {string} [clusterID] id of the cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBenchmark: (orgName: string, cluster?: string, benchType?: string, clusterID?: string, options?: RawAxiosRequestConfig) => Promise; }; /** * BenchmarkApi - functional programming interface * @export */ export declare const BenchmarkApiFp: (configuration?: Configuration) => { /** * * @summary Create an esrally benchmark task * @param {string} orgName name of the Org * @param {Esrally} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEsrally(orgName: string, body: Esrally, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a pgbench benchmark task * @param {string} orgName name of the Org * @param {Pgbench} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPgbench(orgName: string, body: Pgbench, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a sysbench benchmark task * @param {string} orgName name of the Org * @param {Sysbench} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSysbench(orgName: string, body: Sysbench, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a tpcc benchmark task * @param {string} orgName name of the Org * @param {Tpcc} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTpcc(orgName: string, body: Tpcc, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create a ycsb benchmark task * @param {string} orgName name of the Org * @param {Ycsb} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createYcsb(orgName: string, body: Ycsb, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Delete benchmark tasks * @param {string} orgName name of the Org * @param {DeleteBenchOption} body ids of the benchmark * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBenchmark(orgName: string, body: DeleteBenchOption, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Get benchmark task info * @param {string} orgName name of the Org * @param {string} benchmarkId id of the benchmark * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBenchmark(orgName: string, benchmarkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary List benchmark tasks * @param {string} orgName name of the Org * @param {string} [cluster] name of the cluster * @param {string} [benchType] type of the benchmark * @param {string} [clusterID] id of the cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBenchmark(orgName: string, cluster?: string, benchType?: string, clusterID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; }; /** * BenchmarkApi - factory interface * @export */ export declare const BenchmarkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Create an esrally benchmark task * @param {BenchmarkApiCreateEsrallyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createEsrally(requestParameters: BenchmarkApiCreateEsrallyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a pgbench benchmark task * @param {BenchmarkApiCreatePgbenchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createPgbench(requestParameters: BenchmarkApiCreatePgbenchRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a sysbench benchmark task * @param {BenchmarkApiCreateSysbenchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSysbench(requestParameters: BenchmarkApiCreateSysbenchRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a tpcc benchmark task * @param {BenchmarkApiCreateTpccRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createTpcc(requestParameters: BenchmarkApiCreateTpccRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a ycsb benchmark task * @param {BenchmarkApiCreateYcsbRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createYcsb(requestParameters: BenchmarkApiCreateYcsbRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete benchmark tasks * @param {BenchmarkApiDeleteBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBenchmark(requestParameters: BenchmarkApiDeleteBenchmarkRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get benchmark task info * @param {BenchmarkApiGetBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getBenchmark(requestParameters: BenchmarkApiGetBenchmarkRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List benchmark tasks * @param {BenchmarkApiListBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBenchmark(requestParameters: BenchmarkApiListBenchmarkRequest, options?: RawAxiosRequestConfig): AxiosPromise>; }; /** * BenchmarkApi - interface * @export * @interface BenchmarkApi */ export interface BenchmarkApiInterface { /** * * @summary Create an esrally benchmark task * @param {BenchmarkApiCreateEsrallyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ createEsrally(requestParameters: BenchmarkApiCreateEsrallyRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a pgbench benchmark task * @param {BenchmarkApiCreatePgbenchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ createPgbench(requestParameters: BenchmarkApiCreatePgbenchRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a sysbench benchmark task * @param {BenchmarkApiCreateSysbenchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ createSysbench(requestParameters: BenchmarkApiCreateSysbenchRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a tpcc benchmark task * @param {BenchmarkApiCreateTpccRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ createTpcc(requestParameters: BenchmarkApiCreateTpccRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create a ycsb benchmark task * @param {BenchmarkApiCreateYcsbRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ createYcsb(requestParameters: BenchmarkApiCreateYcsbRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete benchmark tasks * @param {BenchmarkApiDeleteBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ deleteBenchmark(requestParameters: BenchmarkApiDeleteBenchmarkRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get benchmark task info * @param {BenchmarkApiGetBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ getBenchmark(requestParameters: BenchmarkApiGetBenchmarkRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List benchmark tasks * @param {BenchmarkApiListBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApiInterface */ listBenchmark(requestParameters: BenchmarkApiListBenchmarkRequest, options?: RawAxiosRequestConfig): AxiosPromise>; } /** * Request parameters for createEsrally operation in BenchmarkApi. * @export * @interface BenchmarkApiCreateEsrallyRequest */ export interface BenchmarkApiCreateEsrallyRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiCreateEsrally */ readonly orgName: string; /** * * @type {Esrally} * @memberof BenchmarkApiCreateEsrally */ readonly body: Esrally; } /** * Request parameters for createPgbench operation in BenchmarkApi. * @export * @interface BenchmarkApiCreatePgbenchRequest */ export interface BenchmarkApiCreatePgbenchRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiCreatePgbench */ readonly orgName: string; /** * * @type {Pgbench} * @memberof BenchmarkApiCreatePgbench */ readonly body: Pgbench; } /** * Request parameters for createSysbench operation in BenchmarkApi. * @export * @interface BenchmarkApiCreateSysbenchRequest */ export interface BenchmarkApiCreateSysbenchRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiCreateSysbench */ readonly orgName: string; /** * * @type {Sysbench} * @memberof BenchmarkApiCreateSysbench */ readonly body: Sysbench; } /** * Request parameters for createTpcc operation in BenchmarkApi. * @export * @interface BenchmarkApiCreateTpccRequest */ export interface BenchmarkApiCreateTpccRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiCreateTpcc */ readonly orgName: string; /** * * @type {Tpcc} * @memberof BenchmarkApiCreateTpcc */ readonly body: Tpcc; } /** * Request parameters for createYcsb operation in BenchmarkApi. * @export * @interface BenchmarkApiCreateYcsbRequest */ export interface BenchmarkApiCreateYcsbRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiCreateYcsb */ readonly orgName: string; /** * * @type {Ycsb} * @memberof BenchmarkApiCreateYcsb */ readonly body: Ycsb; } /** * Request parameters for deleteBenchmark operation in BenchmarkApi. * @export * @interface BenchmarkApiDeleteBenchmarkRequest */ export interface BenchmarkApiDeleteBenchmarkRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiDeleteBenchmark */ readonly orgName: string; /** * ids of the benchmark * @type {DeleteBenchOption} * @memberof BenchmarkApiDeleteBenchmark */ readonly body: DeleteBenchOption; } /** * Request parameters for getBenchmark operation in BenchmarkApi. * @export * @interface BenchmarkApiGetBenchmarkRequest */ export interface BenchmarkApiGetBenchmarkRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiGetBenchmark */ readonly orgName: string; /** * id of the benchmark * @type {string} * @memberof BenchmarkApiGetBenchmark */ readonly benchmarkId: string; } /** * Request parameters for listBenchmark operation in BenchmarkApi. * @export * @interface BenchmarkApiListBenchmarkRequest */ export interface BenchmarkApiListBenchmarkRequest { /** * name of the Org * @type {string} * @memberof BenchmarkApiListBenchmark */ readonly orgName: string; /** * name of the cluster * @type {string} * @memberof BenchmarkApiListBenchmark */ readonly cluster?: string; /** * type of the benchmark * @type {string} * @memberof BenchmarkApiListBenchmark */ readonly benchType?: string; /** * id of the cluster * @type {string} * @memberof BenchmarkApiListBenchmark */ readonly clusterID?: string; } /** * BenchmarkApi - object-oriented interface * @export * @class BenchmarkApi * @extends {BaseAPI} */ export declare class BenchmarkApi extends BaseAPI implements BenchmarkApiInterface { /** * * @summary Create an esrally benchmark task * @param {BenchmarkApiCreateEsrallyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ createEsrally(requestParameters: BenchmarkApiCreateEsrallyRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create a pgbench benchmark task * @param {BenchmarkApiCreatePgbenchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ createPgbench(requestParameters: BenchmarkApiCreatePgbenchRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create a sysbench benchmark task * @param {BenchmarkApiCreateSysbenchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ createSysbench(requestParameters: BenchmarkApiCreateSysbenchRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create a tpcc benchmark task * @param {BenchmarkApiCreateTpccRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ createTpcc(requestParameters: BenchmarkApiCreateTpccRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create a ycsb benchmark task * @param {BenchmarkApiCreateYcsbRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ createYcsb(requestParameters: BenchmarkApiCreateYcsbRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Delete benchmark tasks * @param {BenchmarkApiDeleteBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ deleteBenchmark(requestParameters: BenchmarkApiDeleteBenchmarkRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Get benchmark task info * @param {BenchmarkApiGetBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ getBenchmark(requestParameters: BenchmarkApiGetBenchmarkRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary List benchmark tasks * @param {BenchmarkApiListBenchmarkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BenchmarkApi */ listBenchmark(requestParameters: BenchmarkApiListBenchmarkRequest, options?: RawAxiosRequestConfig): Promise>; } //# sourceMappingURL=benchmark-api.d.ts.map