Skip to content

Commit 7511bba

Browse files
chore(all): re-generate OpenAPI client(s) (#203)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent e466681 commit 7511bba

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

packages/kafka-management-sdk/src/generated/api/default-api.ts

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,44 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
129129

130130

131131

132+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
133+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
135+
136+
return {
137+
url: toPathString(localVarUrlObj),
138+
options: localVarRequestOptions,
139+
};
140+
},
141+
/**
142+
*
143+
* @summary Returns all metrics in scrapeable format for a given kafka id
144+
* @param {string} id The ID of record
145+
* @param {*} [options] Override http request option.
146+
* @throws {RequiredError}
147+
*/
148+
federateMetrics: async (id: string, options: any = {}): Promise<RequestArgs> => {
149+
// verify required parameter 'id' is not null or undefined
150+
assertParamExists('federateMetrics', 'id', id)
151+
const localVarPath = `/api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate`
152+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
153+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
154+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155+
let baseOptions;
156+
if (configuration) {
157+
baseOptions = configuration.baseOptions;
158+
}
159+
160+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
161+
const localVarHeaderParameter = {} as any;
162+
const localVarQueryParameter = {} as any;
163+
164+
// authentication Bearer required
165+
// http bearer authentication required
166+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
167+
168+
169+
132170
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
133171
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134172
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -564,6 +602,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
564602
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKafkaById(id, async, options);
565603
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
566604
},
605+
/**
606+
*
607+
* @summary Returns all metrics in scrapeable format for a given kafka id
608+
* @param {string} id The ID of record
609+
* @param {*} [options] Override http request option.
610+
* @throws {RequiredError}
611+
*/
612+
async federateMetrics(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
613+
const localVarAxiosArgs = await localVarAxiosParamCreator.federateMetrics(id, options);
614+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
615+
},
567616
/**
568617
*
569618
* @summary Returns the list of supported regions of the supported cloud provider
@@ -704,6 +753,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
704753
deleteKafkaById(id: string, async: boolean, options?: any): AxiosPromise<Error> {
705754
return localVarFp.deleteKafkaById(id, async, options).then((request) => request(axios, basePath));
706755
},
756+
/**
757+
*
758+
* @summary Returns all metrics in scrapeable format for a given kafka id
759+
* @param {string} id The ID of record
760+
* @param {*} [options] Override http request option.
761+
* @throws {RequiredError}
762+
*/
763+
federateMetrics(id: string, options?: any): AxiosPromise<string> {
764+
return localVarFp.federateMetrics(id, options).then((request) => request(axios, basePath));
765+
},
707766
/**
708767
*
709768
* @summary Returns the list of supported regions of the supported cloud provider
@@ -834,6 +893,16 @@ export interface DefaultApiInterface {
834893
*/
835894
deleteKafkaById(id: string, async: boolean, options?: any): AxiosPromise<Error>;
836895

896+
/**
897+
*
898+
* @summary Returns all metrics in scrapeable format for a given kafka id
899+
* @param {string} id The ID of record
900+
* @param {*} [options] Override http request option.
901+
* @throws {RequiredError}
902+
* @memberof DefaultApiInterface
903+
*/
904+
federateMetrics(id: string, options?: any): AxiosPromise<string>;
905+
837906
/**
838907
*
839908
* @summary Returns the list of supported regions of the supported cloud provider
@@ -968,6 +1037,18 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
9681037
return DefaultApiFp(this.configuration).deleteKafkaById(id, async, options).then((request) => request(this.axios, this.basePath));
9691038
}
9701039

1040+
/**
1041+
*
1042+
* @summary Returns all metrics in scrapeable format for a given kafka id
1043+
* @param {string} id The ID of record
1044+
* @param {*} [options] Override http request option.
1045+
* @throws {RequiredError}
1046+
* @memberof DefaultApi
1047+
*/
1048+
public federateMetrics(id: string, options?: any) {
1049+
return DefaultApiFp(this.configuration).federateMetrics(id, options).then((request) => request(this.axios, this.basePath));
1050+
}
1051+
9711052
/**
9721053
*
9731054
* @summary Returns the list of supported regions of the supported cloud provider

0 commit comments

Comments
 (0)