@rhoas/kafka-management-sdk
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -50,2 +50,10 @@ /** | ||
* | ||
* @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) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -156,2 +164,10 @@ * @param {string} id The ID of record | ||
* | ||
* @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): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>; | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -262,2 +278,10 @@ * @param {string} id The ID of record | ||
* | ||
* @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>; | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -371,2 +395,11 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
@@ -490,2 +523,11 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
*/ | ||
federateMetrics(id: string, options?: any): Promise<import("axios").AxiosResponse<string>>; | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -492,0 +534,0 @@ * @param {string} id The ID of record |
@@ -117,2 +117,34 @@ "use strict"; | ||
* | ||
* @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, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'id' is not null or undefined | ||
(0, common_1.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, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
// authentication Bearer required | ||
// http bearer authentication required | ||
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration); | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}), | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -482,2 +514,15 @@ * @param {string} id The ID of record | ||
* | ||
* @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, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.federateMetrics(id, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -641,2 +686,12 @@ * @param {string} id The ID of record | ||
* | ||
* @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, options) { | ||
return localVarFp.federateMetrics(id, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -775,2 +830,13 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
*/ | ||
federateMetrics(id, options) { | ||
return (0, exports.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 | ||
@@ -777,0 +843,0 @@ * @param {string} id The ID of record |
{ | ||
"name": "@rhoas/kafka-management-sdk", | ||
"version": "0.14.0", | ||
"version": "0.15.0", | ||
"description": "RHOAS Kafka Management SDK", | ||
@@ -5,0 +5,0 @@ "author": "Red Hat Developers", |
@@ -143,2 +143,40 @@ /* tslint:disable */ | ||
* | ||
* @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}; | ||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* | ||
* @summary Returns the list of supported regions of the supported cloud provider | ||
@@ -570,2 +608,13 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
@@ -711,2 +760,12 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
@@ -842,2 +901,12 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
@@ -977,2 +1046,14 @@ * @param {string} id The ID of record | ||
* | ||
* @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 | ||
@@ -979,0 +1060,0 @@ * @param {string} id The ID of record |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
327777
8087