Skip to content

Commit

Permalink
chore(all): re-generate OpenAPI client(s) (#203)
Browse files Browse the repository at this point in the history
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
  • Loading branch information
app-services-ci and app-services-ci authored Oct 12, 2021
1 parent e466681 commit 7511bba
Showing 1 changed file with 81 additions and 0 deletions.
81 changes: 81 additions & 0 deletions packages/kafka-management-sdk/src/generated/api/default-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,44 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati



setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Returns all metrics in scrapeable format for a given kafka id
* @param {string} id The ID of record
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
federateMetrics: async (id: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('federateMetrics', 'id', id)
const localVarPath = `/api/kafkas_mgmt/v1/kafkas/{id}/metrics/federate`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// 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 Bearer required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
Expand Down Expand Up @@ -564,6 +602,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKafkaById(id, async, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Returns all metrics in scrapeable format for a given kafka id
* @param {string} id The ID of record
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async federateMetrics(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.federateMetrics(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Returns the list of supported regions of the supported cloud provider
Expand Down Expand Up @@ -704,6 +753,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
deleteKafkaById(id: string, async: boolean, options?: any): AxiosPromise<Error> {
return localVarFp.deleteKafkaById(id, async, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Returns all metrics in scrapeable format for a given kafka id
* @param {string} id The ID of record
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
federateMetrics(id: string, options?: any): AxiosPromise<string> {
return localVarFp.federateMetrics(id, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Returns the list of supported regions of the supported cloud provider
Expand Down Expand Up @@ -834,6 +893,16 @@ export interface DefaultApiInterface {
*/
deleteKafkaById(id: string, async: boolean, options?: any): AxiosPromise<Error>;

/**
*
* @summary Returns all metrics in scrapeable format for a given kafka id
* @param {string} id The ID of record
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApiInterface
*/
federateMetrics(id: string, options?: any): AxiosPromise<string>;

/**
*
* @summary Returns the list of supported regions of the supported cloud provider
Expand Down Expand Up @@ -968,6 +1037,18 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
return DefaultApiFp(this.configuration).deleteKafkaById(id, async, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Returns all metrics in scrapeable format for a given kafka id
* @param {string} id The ID of record
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public federateMetrics(id: string, options?: any) {
return DefaultApiFp(this.configuration).federateMetrics(id, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Returns the list of supported regions of the supported cloud provider
Expand Down

0 comments on commit 7511bba

Please sign in to comment.