/* 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 { Account } from '../models'; // @ts-ignore import type { AccountListItem } from '../models'; // @ts-ignore import type { Broker } from '../models'; // @ts-ignore import type { ConfigEntry } from '../models'; // @ts-ignore import type { ConsumerGroup } from '../models'; // @ts-ignore import type { ConsumerGroupDescribe } from '../models'; // @ts-ignore import type { CreateTopicRequest } from '../models'; // @ts-ignore import type { ExpandPartitionRequest } from '../models'; // @ts-ignore import type { Partition } from '../models'; // @ts-ignore import type { ResetOffsetRequest } from '../models'; // @ts-ignore import type { Topic } from '../models'; // @ts-ignore import type { TopicDetails } from '../models'; // @ts-ignore import type { TopicMessage } from '../models'; // @ts-ignore import type { TopicMessageRequest } from '../models'; // @ts-ignore import type { TopicOffset } from '../models'; // @ts-ignore import type { UpdateBrokerConfigRequest } from '../models'; // @ts-ignore import type { UpdateTopicConfigRequest } from '../models'; /** * KafkaApi - axios parameter creator * @export */ export const KafkaApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * create an account in cluster * @summary Create cluster account * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {Account} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createKafkaAccount: async (orgName: string, clusterName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('createKafkaAccount', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('createKafkaAccount', 'clusterName', clusterName) // verify required parameter 'body' is not null or undefined assertParamExists('createKafkaAccount', 'body', body) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // 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 Create new topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {CreateTopicRequest} createTopicRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ createKafkaTopic: async (orgName: string, clusterName: string, createTopicRequest: CreateTopicRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('createKafkaTopic', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('createKafkaTopic', 'clusterName', clusterName) // verify required parameter 'createTopicRequest' is not null or undefined assertParamExists('createKafkaTopic', 'createTopicRequest', createTopicRequest) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // 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(createTopicRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * delete an account in cluster * @summary Delete cluster account * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {string} accountName name of the Cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteKafkaAccount: async (orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('deleteKafkaAccount', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('deleteKafkaAccount', 'clusterName', clusterName) // verify required parameter 'accountName' is not null or undefined assertParamExists('deleteKafkaAccount', 'accountName', accountName) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName))); // 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 Delete consumer group * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} groupId The id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteKafkaConsumerGroup: async (orgName: string, clusterName: string, groupId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('deleteKafkaConsumerGroup', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('deleteKafkaConsumerGroup', 'clusterName', clusterName) // verify required parameter 'groupId' is not null or undefined assertParamExists('deleteKafkaConsumerGroup', 'groupId', groupId) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups/{groupId}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // 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 Delete topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteKafkaTopic: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('deleteKafkaTopic', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('deleteKafkaTopic', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('deleteKafkaTopic', 'topic', topic) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 expand topic partition * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {ExpandPartitionRequest} expandPartitionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ expandKafkaTopicPartitions: async (orgName: string, clusterName: string, topic: string, expandPartitionRequest: ExpandPartitionRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('expandKafkaTopicPartitions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('expandKafkaTopicPartitions', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('expandKafkaTopicPartitions', 'topic', topic) // verify required parameter 'expandPartitionRequest' is not null or undefined assertParamExists('expandKafkaTopicPartitions', 'expandPartitionRequest', expandPartitionRequest) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/partitions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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(expandPartitionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get all configs of a broker * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {number} brokerId The id of broker * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaBrokerConfigs: async (orgName: string, clusterName: string, brokerId: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaBrokerConfigs', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaBrokerConfigs', 'clusterName', clusterName) // verify required parameter 'brokerId' is not null or undefined assertParamExists('getKafkaBrokerConfigs', 'brokerId', brokerId) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/brokers/{brokerId}/configs` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"brokerId"}}`, encodeURIComponent(String(brokerId))); // 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 Get all brokers in cluster * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaBrokers: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaBrokers', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaBrokers', 'clusterName', clusterName) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/brokers` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // 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 Get consumer group describe * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} groupId The id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaConsumerGroupDescribe: async (orgName: string, clusterName: string, groupId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaConsumerGroupDescribe', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaConsumerGroupDescribe', 'clusterName', clusterName) // verify required parameter 'groupId' is not null or undefined assertParamExists('getKafkaConsumerGroupDescribe', 'groupId', groupId) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups/{groupId}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // 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 Get broker distributions of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicBrokers: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaTopicBrokers', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaTopicBrokers', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('getKafkaTopicBrokers', 'topic', topic) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/brokers` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 Get topic configuration * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicConfig: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaTopicConfig', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaTopicConfig', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('getKafkaTopicConfig', 'topic', topic) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/configs` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 Get topic Infos * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicInfos: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaTopicInfos', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaTopicInfos', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('getKafkaTopicInfos', 'topic', topic) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 Get partition list of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicPartitions: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaTopicPartitions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaTopicPartitions', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('getKafkaTopicPartitions', 'topic', topic) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/partitions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 Get all topics in cluster * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} [nameFilter] search pattern, support prefix search * @param {boolean} [onlyNames] if true, only return topic names * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopics: async (orgName: string, clusterName: string, nameFilter?: string, onlyNames?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getKafkaTopics', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getKafkaTopics', 'clusterName', clusterName) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topics` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // 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 (nameFilter !== undefined) { localVarQueryParameter['nameFilter'] = nameFilter; } if (onlyNames !== undefined) { localVarQueryParameter['onlyNames'] = onlyNames; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * list accounts in cluster * @summary List cluster accounts * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaAccounts: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listKafkaAccounts', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listKafkaAccounts', 'clusterName', clusterName) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // 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 List all consumer groups * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} [groupId] the id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaConsumerGroups: async (orgName: string, clusterName: string, groupId?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listKafkaConsumerGroups', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listKafkaConsumerGroups', 'clusterName', clusterName) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/consumer-groups` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // 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 (groupId !== undefined) { localVarQueryParameter['groupId'] = groupId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List consumer groups of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic The name of topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaTopicConsumerGroups: async (orgName: string, clusterName: string, topic: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listKafkaTopicConsumerGroups', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listKafkaTopicConsumerGroups', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('listKafkaTopicConsumerGroups', 'topic', topic) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 List consumer offsets of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic The name of topic * @param {string} groupId The id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaTopicConsumerOffsets: async (orgName: string, clusterName: string, topic: string, groupId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listKafkaTopicConsumerOffsets', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listKafkaTopicConsumerOffsets', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('listKafkaTopicConsumerOffsets', 'topic', topic) // verify required parameter 'groupId' is not null or undefined assertParamExists('listKafkaTopicConsumerOffsets', 'groupId', groupId) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups/{groupId}/offsets` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))) .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // 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 List messages from topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {number} partition * @param {number} offset * @param {number} [count] 获取消息的数量 * @param {string} [keyFilter] 消息 key 的过滤条件(大小写不敏感) * @param {string} [valueFilter] 消息内容的过滤条件(大小写不敏感) * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaTopicMessages: async (orgName: string, clusterName: string, topic: string, partition: number, offset: number, count?: number, keyFilter?: string, valueFilter?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listKafkaTopicMessages', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listKafkaTopicMessages', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('listKafkaTopicMessages', 'topic', topic) // verify required parameter 'partition' is not null or undefined assertParamExists('listKafkaTopicMessages', 'partition', partition) // verify required parameter 'offset' is not null or undefined assertParamExists('listKafkaTopicMessages', 'offset', offset) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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 (partition !== undefined) { localVarQueryParameter['partition'] = partition; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (keyFilter !== undefined) { localVarQueryParameter['keyFilter'] = keyFilter; } if (valueFilter !== undefined) { localVarQueryParameter['valueFilter'] = valueFilter; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Produce message to topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {TopicMessageRequest} topicMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ produceKafkaTopicMessage: async (orgName: string, clusterName: string, topic: string, topicMessageRequest: TopicMessageRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('produceKafkaTopicMessage', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('produceKafkaTopicMessage', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('produceKafkaTopicMessage', 'topic', topic) // verify required parameter 'topicMessageRequest' is not null or undefined assertParamExists('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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(topicMessageRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Reset consumer offset of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic The name of topic * @param {string} groupId The id of consumer group * @param {ResetOffsetRequest} resetOffsetRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetKafkaTopicConsumerOffset: async (orgName: string, clusterName: string, topic: string, groupId: string, resetOffsetRequest: ResetOffsetRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('resetKafkaTopicConsumerOffset', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('resetKafkaTopicConsumerOffset', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('resetKafkaTopicConsumerOffset', 'topic', topic) // verify required parameter 'groupId' is not null or undefined assertParamExists('resetKafkaTopicConsumerOffset', 'groupId', groupId) // verify required parameter 'resetOffsetRequest' is not null or undefined assertParamExists('resetKafkaTopicConsumerOffset', 'resetOffsetRequest', resetOffsetRequest) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/consumer-groups/{groupId}/offsets` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))) .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); // 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: 'PUT', ...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(resetOffsetRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update topic configuration * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {UpdateTopicConfigRequest} updateTopicConfigRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ setKafkaTopicConfig: async (orgName: string, clusterName: string, topic: string, updateTopicConfigRequest: UpdateTopicConfigRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('setKafkaTopicConfig', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('setKafkaTopicConfig', 'clusterName', clusterName) // verify required parameter 'topic' is not null or undefined assertParamExists('setKafkaTopicConfig', 'topic', topic) // verify required parameter 'updateTopicConfigRequest' is not null or undefined assertParamExists('setKafkaTopicConfig', 'updateTopicConfigRequest', updateTopicConfigRequest) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/configs` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"topic"}}`, encodeURIComponent(String(topic))); // 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: 'PUT', ...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(updateTopicConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * update an account in cluster * @summary update cluster account * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {string} accountName name of the account * @param {Account} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKafkaAccount: async (orgName: string, clusterName: string, accountName: string, body: Account, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('updateKafkaAccount', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('updateKafkaAccount', 'clusterName', clusterName) // verify required parameter 'accountName' is not null or undefined assertParamExists('updateKafkaAccount', 'accountName', accountName) // verify required parameter 'body' is not null or undefined assertParamExists('updateKafkaAccount', 'body', body) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName))); // 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: 'PATCH', ...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 Update broker config * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {number} brokerId The id of broker * @param {UpdateBrokerConfigRequest} updateBrokerConfigRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKafkaBrokerConfig: async (orgName: string, clusterName: string, brokerId: number, updateBrokerConfigRequest: UpdateBrokerConfigRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('updateKafkaBrokerConfig', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('updateKafkaBrokerConfig', 'clusterName', clusterName) // verify required parameter 'brokerId' is not null or undefined assertParamExists('updateKafkaBrokerConfig', 'brokerId', brokerId) // verify required parameter 'updateBrokerConfigRequest' is not null or undefined assertParamExists('updateKafkaBrokerConfig', 'updateBrokerConfigRequest', updateBrokerConfigRequest) const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/brokers/{brokerId}/configs` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"brokerId"}}`, encodeURIComponent(String(brokerId))); // 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: 'PUT', ...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(updateBrokerConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * KafkaApi - functional programming interface * @export */ export const KafkaApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = KafkaApiAxiosParamCreator(configuration) return { /** * create an account in cluster * @summary Create cluster account * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {Account} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createKafkaAccount(orgName: string, clusterName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createKafkaAccount(orgName, clusterName, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.createKafkaAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Create new topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {CreateTopicRequest} createTopicRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createKafkaTopic(orgName: string, clusterName: string, createTopicRequest: CreateTopicRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createKafkaTopic(orgName, clusterName, createTopicRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.createKafkaTopic']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * delete an account in cluster * @summary Delete cluster account * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {string} accountName name of the Cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteKafkaAccount(orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKafkaAccount(orgName, clusterName, accountName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.deleteKafkaAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete consumer group * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} groupId The id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteKafkaConsumerGroup(orgName: string, clusterName: string, groupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKafkaConsumerGroup(orgName, clusterName, groupId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.deleteKafkaConsumerGroup']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Delete topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteKafkaTopic(orgName: string, clusterName: string, topic: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKafkaTopic(orgName, clusterName, topic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.deleteKafkaTopic']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary expand topic partition * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {ExpandPartitionRequest} expandPartitionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async expandKafkaTopicPartitions(orgName: string, clusterName: string, topic: string, expandPartitionRequest: ExpandPartitionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.expandKafkaTopicPartitions(orgName, clusterName, topic, expandPartitionRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.expandKafkaTopicPartitions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all configs of a broker * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {number} brokerId The id of broker * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaBrokerConfigs(orgName: string, clusterName: string, brokerId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaBrokerConfigs(orgName, clusterName, brokerId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaBrokerConfigs']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all brokers in cluster * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaBrokers(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaBrokers(orgName, clusterName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaBrokers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get consumer group describe * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} groupId The id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaConsumerGroupDescribe(orgName: string, clusterName: string, groupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaConsumerGroupDescribe(orgName, clusterName, groupId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaConsumerGroupDescribe']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get broker distributions of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaTopicBrokers(orgName: string, clusterName: string, topic: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaTopicBrokers(orgName, clusterName, topic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaTopicBrokers']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get topic configuration * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaTopicConfig(orgName: string, clusterName: string, topic: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaTopicConfig(orgName, clusterName, topic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaTopicConfig']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get topic Infos * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaTopicInfos(orgName: string, clusterName: string, topic: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaTopicInfos(orgName, clusterName, topic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaTopicInfos']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get partition list of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaTopicPartitions(orgName: string, clusterName: string, topic: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaTopicPartitions(orgName, clusterName, topic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaTopicPartitions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get all topics in cluster * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} [nameFilter] search pattern, support prefix search * @param {boolean} [onlyNames] if true, only return topic names * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getKafkaTopics(orgName: string, clusterName: string, nameFilter?: string, onlyNames?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getKafkaTopics(orgName, clusterName, nameFilter, onlyNames, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.getKafkaTopics']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * list accounts in cluster * @summary List cluster accounts * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listKafkaAccounts(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaAccounts(orgName, clusterName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.listKafkaAccounts']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List all consumer groups * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} [groupId] the id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listKafkaConsumerGroups(orgName: string, clusterName: string, groupId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaConsumerGroups(orgName, clusterName, groupId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.listKafkaConsumerGroups']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List consumer groups of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic The name of topic * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listKafkaTopicConsumerGroups(orgName: string, clusterName: string, topic: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaTopicConsumerGroups(orgName, clusterName, topic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.listKafkaTopicConsumerGroups']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List consumer offsets of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic The name of topic * @param {string} groupId The id of consumer group * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listKafkaTopicConsumerOffsets(orgName: string, clusterName: string, topic: string, groupId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaTopicConsumerOffsets(orgName, clusterName, topic, groupId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.listKafkaTopicConsumerOffsets']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List messages from topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {number} partition * @param {number} offset * @param {number} [count] 获取消息的数量 * @param {string} [keyFilter] 消息 key 的过滤条件(大小写不敏感) * @param {string} [valueFilter] 消息内容的过滤条件(大小写不敏感) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listKafkaTopicMessages(orgName: string, clusterName: string, topic: string, partition: number, offset: number, count?: number, keyFilter?: string, valueFilter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listKafkaTopicMessages(orgName, clusterName, topic, partition, offset, count, keyFilter, valueFilter, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.listKafkaTopicMessages']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Produce message to topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {TopicMessageRequest} topicMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async produceKafkaTopicMessage(orgName: string, clusterName: string, topic: string, topicMessageRequest: TopicMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.produceKafkaTopicMessage(orgName, clusterName, topic, topicMessageRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.produceKafkaTopicMessage']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Reset consumer offset of topic * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic The name of topic * @param {string} groupId The id of consumer group * @param {ResetOffsetRequest} resetOffsetRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async resetKafkaTopicConsumerOffset(orgName: string, clusterName: string, topic: string, groupId: string, resetOffsetRequest: ResetOffsetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.resetKafkaTopicConsumerOffset(orgName, clusterName, topic, groupId, resetOffsetRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.resetKafkaTopicConsumerOffset']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update topic configuration * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {string} topic * @param {UpdateTopicConfigRequest} updateTopicConfigRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setKafkaTopicConfig(orgName: string, clusterName: string, topic: string, updateTopicConfigRequest: UpdateTopicConfigRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setKafkaTopicConfig(orgName, clusterName, topic, updateTopicConfigRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.setKafkaTopicConfig']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * update an account in cluster * @summary update cluster account * @param {string} orgName name of the Org * @param {string} clusterName name of the Cluster * @param {string} accountName name of the account * @param {Account} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateKafkaAccount(orgName: string, clusterName: string, accountName: string, body: Account, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateKafkaAccount(orgName, clusterName, accountName, body, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.updateKafkaAccount']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update broker config * @param {string} orgName The name of organization * @param {string} clusterName The name of cluster * @param {number} brokerId The id of broker * @param {UpdateBrokerConfigRequest} updateBrokerConfigRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateKafkaBrokerConfig(orgName: string, clusterName: string, brokerId: number, updateBrokerConfigRequest: UpdateBrokerConfigRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateKafkaBrokerConfig(orgName, clusterName, brokerId, updateBrokerConfigRequest, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['KafkaApi.updateKafkaBrokerConfig']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * KafkaApi - factory interface * @export */ export const KafkaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = KafkaApiFp(configuration) return { /** * create an account in cluster * @summary Create cluster account * @param {KafkaApiCreateKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createKafkaAccount(requestParameters: KafkaApiCreateKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath)); }, /** * * @summary Create new topic * @param {KafkaApiCreateKafkaTopicRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createKafkaTopic(requestParameters: KafkaApiCreateKafkaTopicRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createKafkaTopic(requestParameters.orgName, requestParameters.clusterName, requestParameters.createTopicRequest, options).then((request) => request(axios, basePath)); }, /** * delete an account in cluster * @summary Delete cluster account * @param {KafkaApiDeleteKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteKafkaAccount(requestParameters: KafkaApiDeleteKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete consumer group * @param {KafkaApiDeleteKafkaConsumerGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteKafkaConsumerGroup(requestParameters: KafkaApiDeleteKafkaConsumerGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteKafkaConsumerGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupId, options).then((request) => request(axios, basePath)); }, /** * * @summary Delete topic * @param {KafkaApiDeleteKafkaTopicRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteKafkaTopic(requestParameters: KafkaApiDeleteKafkaTopicRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteKafkaTopic(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(axios, basePath)); }, /** * * @summary expand topic partition * @param {KafkaApiExpandKafkaTopicPartitionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ expandKafkaTopicPartitions(requestParameters: KafkaApiExpandKafkaTopicPartitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.expandKafkaTopicPartitions(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.expandPartitionRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all configs of a broker * @param {KafkaApiGetKafkaBrokerConfigsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaBrokerConfigs(requestParameters: KafkaApiGetKafkaBrokerConfigsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaBrokerConfigs(requestParameters.orgName, requestParameters.clusterName, requestParameters.brokerId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all brokers in cluster * @param {KafkaApiGetKafkaBrokersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaBrokers(requestParameters: KafkaApiGetKafkaBrokersRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaBrokers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath)); }, /** * * @summary Get consumer group describe * @param {KafkaApiGetKafkaConsumerGroupDescribeRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaConsumerGroupDescribe(requestParameters: KafkaApiGetKafkaConsumerGroupDescribeRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaConsumerGroupDescribe(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupId, options).then((request) => request(axios, basePath)); }, /** * * @summary Get broker distributions of topic * @param {KafkaApiGetKafkaTopicBrokersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicBrokers(requestParameters: KafkaApiGetKafkaTopicBrokersRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaTopicBrokers(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(axios, basePath)); }, /** * * @summary Get topic configuration * @param {KafkaApiGetKafkaTopicConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicConfig(requestParameters: KafkaApiGetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaTopicConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(axios, basePath)); }, /** * * @summary Get topic Infos * @param {KafkaApiGetKafkaTopicInfosRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicInfos(requestParameters: KafkaApiGetKafkaTopicInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getKafkaTopicInfos(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(axios, basePath)); }, /** * * @summary Get partition list of topic * @param {KafkaApiGetKafkaTopicPartitionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopicPartitions(requestParameters: KafkaApiGetKafkaTopicPartitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaTopicPartitions(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(axios, basePath)); }, /** * * @summary Get all topics in cluster * @param {KafkaApiGetKafkaTopicsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getKafkaTopics(requestParameters: KafkaApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(axios, basePath)); }, /** * list accounts in cluster * @summary List cluster accounts * @param {KafkaApiListKafkaAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaAccounts(requestParameters: KafkaApiListKafkaAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listKafkaAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath)); }, /** * * @summary List all consumer groups * @param {KafkaApiListKafkaConsumerGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaConsumerGroups(requestParameters: KafkaApiListKafkaConsumerGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listKafkaConsumerGroups(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupId, options).then((request) => request(axios, basePath)); }, /** * * @summary List consumer groups of topic * @param {KafkaApiListKafkaTopicConsumerGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaTopicConsumerGroups(requestParameters: KafkaApiListKafkaTopicConsumerGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listKafkaTopicConsumerGroups(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(axios, basePath)); }, /** * * @summary List consumer offsets of topic * @param {KafkaApiListKafkaTopicConsumerOffsetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaTopicConsumerOffsets(requestParameters: KafkaApiListKafkaTopicConsumerOffsetsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listKafkaTopicConsumerOffsets(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.groupId, options).then((request) => request(axios, basePath)); }, /** * * @summary List messages from topic * @param {KafkaApiListKafkaTopicMessagesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKafkaTopicMessages(requestParameters: KafkaApiListKafkaTopicMessagesRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listKafkaTopicMessages(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.partition, requestParameters.offset, requestParameters.count, requestParameters.keyFilter, requestParameters.valueFilter, options).then((request) => request(axios, basePath)); }, /** * * @summary Produce message to topic * @param {KafkaApiProduceKafkaTopicMessageRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ produceKafkaTopicMessage(requestParameters: KafkaApiProduceKafkaTopicMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.produceKafkaTopicMessage(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.topicMessageRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary Reset consumer offset of topic * @param {KafkaApiResetKafkaTopicConsumerOffsetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ resetKafkaTopicConsumerOffset(requestParameters: KafkaApiResetKafkaTopicConsumerOffsetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.resetKafkaTopicConsumerOffset(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.groupId, requestParameters.resetOffsetRequest, options).then((request) => request(axios, basePath)); }, /** * * @summary Update topic configuration * @param {KafkaApiSetKafkaTopicConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setKafkaTopicConfig(requestParameters: KafkaApiSetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setKafkaTopicConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.updateTopicConfigRequest, options).then((request) => request(axios, basePath)); }, /** * update an account in cluster * @summary update cluster account * @param {KafkaApiUpdateKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKafkaAccount(requestParameters: KafkaApiUpdateKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath)); }, /** * * @summary Update broker config * @param {KafkaApiUpdateKafkaBrokerConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKafkaBrokerConfig(requestParameters: KafkaApiUpdateKafkaBrokerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateKafkaBrokerConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.brokerId, requestParameters.updateBrokerConfigRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * KafkaApi - interface * @export * @interface KafkaApi */ export interface KafkaApiInterface { /** * create an account in cluster * @summary Create cluster account * @param {KafkaApiCreateKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ createKafkaAccount(requestParameters: KafkaApiCreateKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create new topic * @param {KafkaApiCreateKafkaTopicRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ createKafkaTopic(requestParameters: KafkaApiCreateKafkaTopicRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * delete an account in cluster * @summary Delete cluster account * @param {KafkaApiDeleteKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ deleteKafkaAccount(requestParameters: KafkaApiDeleteKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete consumer group * @param {KafkaApiDeleteKafkaConsumerGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ deleteKafkaConsumerGroup(requestParameters: KafkaApiDeleteKafkaConsumerGroupRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete topic * @param {KafkaApiDeleteKafkaTopicRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ deleteKafkaTopic(requestParameters: KafkaApiDeleteKafkaTopicRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary expand topic partition * @param {KafkaApiExpandKafkaTopicPartitionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ expandKafkaTopicPartitions(requestParameters: KafkaApiExpandKafkaTopicPartitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get all configs of a broker * @param {KafkaApiGetKafkaBrokerConfigsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaBrokerConfigs(requestParameters: KafkaApiGetKafkaBrokerConfigsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Get all brokers in cluster * @param {KafkaApiGetKafkaBrokersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaBrokers(requestParameters: KafkaApiGetKafkaBrokersRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Get consumer group describe * @param {KafkaApiGetKafkaConsumerGroupDescribeRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaConsumerGroupDescribe(requestParameters: KafkaApiGetKafkaConsumerGroupDescribeRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Get broker distributions of topic * @param {KafkaApiGetKafkaTopicBrokersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaTopicBrokers(requestParameters: KafkaApiGetKafkaTopicBrokersRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Get topic configuration * @param {KafkaApiGetKafkaTopicConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaTopicConfig(requestParameters: KafkaApiGetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Get topic Infos * @param {KafkaApiGetKafkaTopicInfosRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaTopicInfos(requestParameters: KafkaApiGetKafkaTopicInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get partition list of topic * @param {KafkaApiGetKafkaTopicPartitionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaTopicPartitions(requestParameters: KafkaApiGetKafkaTopicPartitionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Get all topics in cluster * @param {KafkaApiGetKafkaTopicsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ getKafkaTopics(requestParameters: KafkaApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * list accounts in cluster * @summary List cluster accounts * @param {KafkaApiListKafkaAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ listKafkaAccounts(requestParameters: KafkaApiListKafkaAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary List all consumer groups * @param {KafkaApiListKafkaConsumerGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ listKafkaConsumerGroups(requestParameters: KafkaApiListKafkaConsumerGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary List consumer groups of topic * @param {KafkaApiListKafkaTopicConsumerGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ listKafkaTopicConsumerGroups(requestParameters: KafkaApiListKafkaTopicConsumerGroupsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary List consumer offsets of topic * @param {KafkaApiListKafkaTopicConsumerOffsetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ listKafkaTopicConsumerOffsets(requestParameters: KafkaApiListKafkaTopicConsumerOffsetsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary List messages from topic * @param {KafkaApiListKafkaTopicMessagesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ listKafkaTopicMessages(requestParameters: KafkaApiListKafkaTopicMessagesRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary Produce message to topic * @param {KafkaApiProduceKafkaTopicMessageRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ produceKafkaTopicMessage(requestParameters: KafkaApiProduceKafkaTopicMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Reset consumer offset of topic * @param {KafkaApiResetKafkaTopicConsumerOffsetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ resetKafkaTopicConsumerOffset(requestParameters: KafkaApiResetKafkaTopicConsumerOffsetRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update topic configuration * @param {KafkaApiSetKafkaTopicConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ setKafkaTopicConfig(requestParameters: KafkaApiSetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * update an account in cluster * @summary update cluster account * @param {KafkaApiUpdateKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ updateKafkaAccount(requestParameters: KafkaApiUpdateKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update broker config * @param {KafkaApiUpdateKafkaBrokerConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApiInterface */ updateKafkaBrokerConfig(requestParameters: KafkaApiUpdateKafkaBrokerConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for createKafkaAccount operation in KafkaApi. * @export * @interface KafkaApiCreateKafkaAccountRequest */ export interface KafkaApiCreateKafkaAccountRequest { /** * name of the Org * @type {string} * @memberof KafkaApiCreateKafkaAccount */ readonly orgName: string /** * name of the Cluster * @type {string} * @memberof KafkaApiCreateKafkaAccount */ readonly clusterName: string /** * * @type {Account} * @memberof KafkaApiCreateKafkaAccount */ readonly body: Account } /** * Request parameters for createKafkaTopic operation in KafkaApi. * @export * @interface KafkaApiCreateKafkaTopicRequest */ export interface KafkaApiCreateKafkaTopicRequest { /** * The name of organization * @type {string} * @memberof KafkaApiCreateKafkaTopic */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiCreateKafkaTopic */ readonly clusterName: string /** * * @type {CreateTopicRequest} * @memberof KafkaApiCreateKafkaTopic */ readonly createTopicRequest: CreateTopicRequest } /** * Request parameters for deleteKafkaAccount operation in KafkaApi. * @export * @interface KafkaApiDeleteKafkaAccountRequest */ export interface KafkaApiDeleteKafkaAccountRequest { /** * name of the Org * @type {string} * @memberof KafkaApiDeleteKafkaAccount */ readonly orgName: string /** * name of the Cluster * @type {string} * @memberof KafkaApiDeleteKafkaAccount */ readonly clusterName: string /** * name of the Cluster * @type {string} * @memberof KafkaApiDeleteKafkaAccount */ readonly accountName: string } /** * Request parameters for deleteKafkaConsumerGroup operation in KafkaApi. * @export * @interface KafkaApiDeleteKafkaConsumerGroupRequest */ export interface KafkaApiDeleteKafkaConsumerGroupRequest { /** * The name of organization * @type {string} * @memberof KafkaApiDeleteKafkaConsumerGroup */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiDeleteKafkaConsumerGroup */ readonly clusterName: string /** * The id of consumer group * @type {string} * @memberof KafkaApiDeleteKafkaConsumerGroup */ readonly groupId: string } /** * Request parameters for deleteKafkaTopic operation in KafkaApi. * @export * @interface KafkaApiDeleteKafkaTopicRequest */ export interface KafkaApiDeleteKafkaTopicRequest { /** * The name of organization * @type {string} * @memberof KafkaApiDeleteKafkaTopic */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiDeleteKafkaTopic */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiDeleteKafkaTopic */ readonly topic: string } /** * Request parameters for expandKafkaTopicPartitions operation in KafkaApi. * @export * @interface KafkaApiExpandKafkaTopicPartitionsRequest */ export interface KafkaApiExpandKafkaTopicPartitionsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiExpandKafkaTopicPartitions */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiExpandKafkaTopicPartitions */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiExpandKafkaTopicPartitions */ readonly topic: string /** * * @type {ExpandPartitionRequest} * @memberof KafkaApiExpandKafkaTopicPartitions */ readonly expandPartitionRequest: ExpandPartitionRequest } /** * Request parameters for getKafkaBrokerConfigs operation in KafkaApi. * @export * @interface KafkaApiGetKafkaBrokerConfigsRequest */ export interface KafkaApiGetKafkaBrokerConfigsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaBrokerConfigs */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaBrokerConfigs */ readonly clusterName: string /** * The id of broker * @type {number} * @memberof KafkaApiGetKafkaBrokerConfigs */ readonly brokerId: number } /** * Request parameters for getKafkaBrokers operation in KafkaApi. * @export * @interface KafkaApiGetKafkaBrokersRequest */ export interface KafkaApiGetKafkaBrokersRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaBrokers */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaBrokers */ readonly clusterName: string } /** * Request parameters for getKafkaConsumerGroupDescribe operation in KafkaApi. * @export * @interface KafkaApiGetKafkaConsumerGroupDescribeRequest */ export interface KafkaApiGetKafkaConsumerGroupDescribeRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaConsumerGroupDescribe */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaConsumerGroupDescribe */ readonly clusterName: string /** * The id of consumer group * @type {string} * @memberof KafkaApiGetKafkaConsumerGroupDescribe */ readonly groupId: string } /** * Request parameters for getKafkaTopicBrokers operation in KafkaApi. * @export * @interface KafkaApiGetKafkaTopicBrokersRequest */ export interface KafkaApiGetKafkaTopicBrokersRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaTopicBrokers */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaTopicBrokers */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiGetKafkaTopicBrokers */ readonly topic: string } /** * Request parameters for getKafkaTopicConfig operation in KafkaApi. * @export * @interface KafkaApiGetKafkaTopicConfigRequest */ export interface KafkaApiGetKafkaTopicConfigRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaTopicConfig */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaTopicConfig */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiGetKafkaTopicConfig */ readonly topic: string } /** * Request parameters for getKafkaTopicInfos operation in KafkaApi. * @export * @interface KafkaApiGetKafkaTopicInfosRequest */ export interface KafkaApiGetKafkaTopicInfosRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaTopicInfos */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaTopicInfos */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiGetKafkaTopicInfos */ readonly topic: string } /** * Request parameters for getKafkaTopicPartitions operation in KafkaApi. * @export * @interface KafkaApiGetKafkaTopicPartitionsRequest */ export interface KafkaApiGetKafkaTopicPartitionsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaTopicPartitions */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaTopicPartitions */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiGetKafkaTopicPartitions */ readonly topic: string } /** * Request parameters for getKafkaTopics operation in KafkaApi. * @export * @interface KafkaApiGetKafkaTopicsRequest */ export interface KafkaApiGetKafkaTopicsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiGetKafkaTopics */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiGetKafkaTopics */ readonly clusterName: string /** * search pattern, support prefix search * @type {string} * @memberof KafkaApiGetKafkaTopics */ readonly nameFilter?: string /** * if true, only return topic names * @type {boolean} * @memberof KafkaApiGetKafkaTopics */ readonly onlyNames?: boolean } /** * Request parameters for listKafkaAccounts operation in KafkaApi. * @export * @interface KafkaApiListKafkaAccountsRequest */ export interface KafkaApiListKafkaAccountsRequest { /** * name of the Org * @type {string} * @memberof KafkaApiListKafkaAccounts */ readonly orgName: string /** * name of the Cluster * @type {string} * @memberof KafkaApiListKafkaAccounts */ readonly clusterName: string } /** * Request parameters for listKafkaConsumerGroups operation in KafkaApi. * @export * @interface KafkaApiListKafkaConsumerGroupsRequest */ export interface KafkaApiListKafkaConsumerGroupsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiListKafkaConsumerGroups */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiListKafkaConsumerGroups */ readonly clusterName: string /** * the id of consumer group * @type {string} * @memberof KafkaApiListKafkaConsumerGroups */ readonly groupId?: string } /** * Request parameters for listKafkaTopicConsumerGroups operation in KafkaApi. * @export * @interface KafkaApiListKafkaTopicConsumerGroupsRequest */ export interface KafkaApiListKafkaTopicConsumerGroupsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiListKafkaTopicConsumerGroups */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiListKafkaTopicConsumerGroups */ readonly clusterName: string /** * The name of topic * @type {string} * @memberof KafkaApiListKafkaTopicConsumerGroups */ readonly topic: string } /** * Request parameters for listKafkaTopicConsumerOffsets operation in KafkaApi. * @export * @interface KafkaApiListKafkaTopicConsumerOffsetsRequest */ export interface KafkaApiListKafkaTopicConsumerOffsetsRequest { /** * The name of organization * @type {string} * @memberof KafkaApiListKafkaTopicConsumerOffsets */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiListKafkaTopicConsumerOffsets */ readonly clusterName: string /** * The name of topic * @type {string} * @memberof KafkaApiListKafkaTopicConsumerOffsets */ readonly topic: string /** * The id of consumer group * @type {string} * @memberof KafkaApiListKafkaTopicConsumerOffsets */ readonly groupId: string } /** * Request parameters for listKafkaTopicMessages operation in KafkaApi. * @export * @interface KafkaApiListKafkaTopicMessagesRequest */ export interface KafkaApiListKafkaTopicMessagesRequest { /** * The name of organization * @type {string} * @memberof KafkaApiListKafkaTopicMessages */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiListKafkaTopicMessages */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiListKafkaTopicMessages */ readonly topic: string /** * * @type {number} * @memberof KafkaApiListKafkaTopicMessages */ readonly partition: number /** * * @type {number} * @memberof KafkaApiListKafkaTopicMessages */ readonly offset: number /** * 获取消息的数量 * @type {number} * @memberof KafkaApiListKafkaTopicMessages */ readonly count?: number /** * 消息 key 的过滤条件(大小写不敏感) * @type {string} * @memberof KafkaApiListKafkaTopicMessages */ readonly keyFilter?: string /** * 消息内容的过滤条件(大小写不敏感) * @type {string} * @memberof KafkaApiListKafkaTopicMessages */ readonly valueFilter?: string } /** * Request parameters for produceKafkaTopicMessage operation in KafkaApi. * @export * @interface KafkaApiProduceKafkaTopicMessageRequest */ export interface KafkaApiProduceKafkaTopicMessageRequest { /** * The name of organization * @type {string} * @memberof KafkaApiProduceKafkaTopicMessage */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiProduceKafkaTopicMessage */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiProduceKafkaTopicMessage */ readonly topic: string /** * * @type {TopicMessageRequest} * @memberof KafkaApiProduceKafkaTopicMessage */ readonly topicMessageRequest: TopicMessageRequest } /** * Request parameters for resetKafkaTopicConsumerOffset operation in KafkaApi. * @export * @interface KafkaApiResetKafkaTopicConsumerOffsetRequest */ export interface KafkaApiResetKafkaTopicConsumerOffsetRequest { /** * The name of organization * @type {string} * @memberof KafkaApiResetKafkaTopicConsumerOffset */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiResetKafkaTopicConsumerOffset */ readonly clusterName: string /** * The name of topic * @type {string} * @memberof KafkaApiResetKafkaTopicConsumerOffset */ readonly topic: string /** * The id of consumer group * @type {string} * @memberof KafkaApiResetKafkaTopicConsumerOffset */ readonly groupId: string /** * * @type {ResetOffsetRequest} * @memberof KafkaApiResetKafkaTopicConsumerOffset */ readonly resetOffsetRequest: ResetOffsetRequest } /** * Request parameters for setKafkaTopicConfig operation in KafkaApi. * @export * @interface KafkaApiSetKafkaTopicConfigRequest */ export interface KafkaApiSetKafkaTopicConfigRequest { /** * The name of organization * @type {string} * @memberof KafkaApiSetKafkaTopicConfig */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiSetKafkaTopicConfig */ readonly clusterName: string /** * * @type {string} * @memberof KafkaApiSetKafkaTopicConfig */ readonly topic: string /** * * @type {UpdateTopicConfigRequest} * @memberof KafkaApiSetKafkaTopicConfig */ readonly updateTopicConfigRequest: UpdateTopicConfigRequest } /** * Request parameters for updateKafkaAccount operation in KafkaApi. * @export * @interface KafkaApiUpdateKafkaAccountRequest */ export interface KafkaApiUpdateKafkaAccountRequest { /** * name of the Org * @type {string} * @memberof KafkaApiUpdateKafkaAccount */ readonly orgName: string /** * name of the Cluster * @type {string} * @memberof KafkaApiUpdateKafkaAccount */ readonly clusterName: string /** * name of the account * @type {string} * @memberof KafkaApiUpdateKafkaAccount */ readonly accountName: string /** * * @type {Account} * @memberof KafkaApiUpdateKafkaAccount */ readonly body: Account } /** * Request parameters for updateKafkaBrokerConfig operation in KafkaApi. * @export * @interface KafkaApiUpdateKafkaBrokerConfigRequest */ export interface KafkaApiUpdateKafkaBrokerConfigRequest { /** * The name of organization * @type {string} * @memberof KafkaApiUpdateKafkaBrokerConfig */ readonly orgName: string /** * The name of cluster * @type {string} * @memberof KafkaApiUpdateKafkaBrokerConfig */ readonly clusterName: string /** * The id of broker * @type {number} * @memberof KafkaApiUpdateKafkaBrokerConfig */ readonly brokerId: number /** * * @type {UpdateBrokerConfigRequest} * @memberof KafkaApiUpdateKafkaBrokerConfig */ readonly updateBrokerConfigRequest: UpdateBrokerConfigRequest } /** * KafkaApi - object-oriented interface * @export * @class KafkaApi * @extends {BaseAPI} */ export class KafkaApi extends BaseAPI implements KafkaApiInterface { /** * create an account in cluster * @summary Create cluster account * @param {KafkaApiCreateKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public createKafkaAccount(requestParameters: KafkaApiCreateKafkaAccountRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).createKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Create new topic * @param {KafkaApiCreateKafkaTopicRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public createKafkaTopic(requestParameters: KafkaApiCreateKafkaTopicRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).createKafkaTopic(requestParameters.orgName, requestParameters.clusterName, requestParameters.createTopicRequest, options).then((request) => request(this.axios, this.basePath)); } /** * delete an account in cluster * @summary Delete cluster account * @param {KafkaApiDeleteKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public deleteKafkaAccount(requestParameters: KafkaApiDeleteKafkaAccountRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).deleteKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete consumer group * @param {KafkaApiDeleteKafkaConsumerGroupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public deleteKafkaConsumerGroup(requestParameters: KafkaApiDeleteKafkaConsumerGroupRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).deleteKafkaConsumerGroup(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Delete topic * @param {KafkaApiDeleteKafkaTopicRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public deleteKafkaTopic(requestParameters: KafkaApiDeleteKafkaTopicRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).deleteKafkaTopic(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary expand topic partition * @param {KafkaApiExpandKafkaTopicPartitionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public expandKafkaTopicPartitions(requestParameters: KafkaApiExpandKafkaTopicPartitionsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).expandKafkaTopicPartitions(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.expandPartitionRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all configs of a broker * @param {KafkaApiGetKafkaBrokerConfigsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaBrokerConfigs(requestParameters: KafkaApiGetKafkaBrokerConfigsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaBrokerConfigs(requestParameters.orgName, requestParameters.clusterName, requestParameters.brokerId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all brokers in cluster * @param {KafkaApiGetKafkaBrokersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaBrokers(requestParameters: KafkaApiGetKafkaBrokersRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaBrokers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get consumer group describe * @param {KafkaApiGetKafkaConsumerGroupDescribeRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaConsumerGroupDescribe(requestParameters: KafkaApiGetKafkaConsumerGroupDescribeRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaConsumerGroupDescribe(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get broker distributions of topic * @param {KafkaApiGetKafkaTopicBrokersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaTopicBrokers(requestParameters: KafkaApiGetKafkaTopicBrokersRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaTopicBrokers(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get topic configuration * @param {KafkaApiGetKafkaTopicConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaTopicConfig(requestParameters: KafkaApiGetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaTopicConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get topic Infos * @param {KafkaApiGetKafkaTopicInfosRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaTopicInfos(requestParameters: KafkaApiGetKafkaTopicInfosRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaTopicInfos(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get partition list of topic * @param {KafkaApiGetKafkaTopicPartitionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaTopicPartitions(requestParameters: KafkaApiGetKafkaTopicPartitionsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaTopicPartitions(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get all topics in cluster * @param {KafkaApiGetKafkaTopicsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public getKafkaTopics(requestParameters: KafkaApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(this.axios, this.basePath)); } /** * list accounts in cluster * @summary List cluster accounts * @param {KafkaApiListKafkaAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public listKafkaAccounts(requestParameters: KafkaApiListKafkaAccountsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).listKafkaAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List all consumer groups * @param {KafkaApiListKafkaConsumerGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public listKafkaConsumerGroups(requestParameters: KafkaApiListKafkaConsumerGroupsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).listKafkaConsumerGroups(requestParameters.orgName, requestParameters.clusterName, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List consumer groups of topic * @param {KafkaApiListKafkaTopicConsumerGroupsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public listKafkaTopicConsumerGroups(requestParameters: KafkaApiListKafkaTopicConsumerGroupsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).listKafkaTopicConsumerGroups(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List consumer offsets of topic * @param {KafkaApiListKafkaTopicConsumerOffsetsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public listKafkaTopicConsumerOffsets(requestParameters: KafkaApiListKafkaTopicConsumerOffsetsRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).listKafkaTopicConsumerOffsets(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List messages from topic * @param {KafkaApiListKafkaTopicMessagesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public listKafkaTopicMessages(requestParameters: KafkaApiListKafkaTopicMessagesRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).listKafkaTopicMessages(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.partition, requestParameters.offset, requestParameters.count, requestParameters.keyFilter, requestParameters.valueFilter, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Produce message to topic * @param {KafkaApiProduceKafkaTopicMessageRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public produceKafkaTopicMessage(requestParameters: KafkaApiProduceKafkaTopicMessageRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).produceKafkaTopicMessage(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.topicMessageRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Reset consumer offset of topic * @param {KafkaApiResetKafkaTopicConsumerOffsetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public resetKafkaTopicConsumerOffset(requestParameters: KafkaApiResetKafkaTopicConsumerOffsetRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).resetKafkaTopicConsumerOffset(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.groupId, requestParameters.resetOffsetRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update topic configuration * @param {KafkaApiSetKafkaTopicConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public setKafkaTopicConfig(requestParameters: KafkaApiSetKafkaTopicConfigRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).setKafkaTopicConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.topic, requestParameters.updateTopicConfigRequest, options).then((request) => request(this.axios, this.basePath)); } /** * update an account in cluster * @summary update cluster account * @param {KafkaApiUpdateKafkaAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public updateKafkaAccount(requestParameters: KafkaApiUpdateKafkaAccountRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).updateKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update broker config * @param {KafkaApiUpdateKafkaBrokerConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof KafkaApi */ public updateKafkaBrokerConfig(requestParameters: KafkaApiUpdateKafkaBrokerConfigRequest, options?: RawAxiosRequestConfig) { return KafkaApiFp(this.configuration).updateKafkaBrokerConfig(requestParameters.orgName, requestParameters.clusterName, requestParameters.brokerId, requestParameters.updateBrokerConfigRequest, options).then((request) => request(this.axios, this.basePath)); } }