@rhoas/kafka-management-sdk
Advanced tools
Comparing version 0.17.0 to 0.18.0
@@ -62,6 +62,7 @@ /** | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions: (id: string, page?: string, size?: string, options?: any) => Promise<RequestArgs>; | ||
getCloudProviderRegions: (id: string, page?: string, size?: string, instanceType?: string, options?: any) => Promise<RequestArgs>; | ||
/** | ||
@@ -176,6 +177,7 @@ * | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudRegionList>>; | ||
getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudRegionList>>; | ||
/** | ||
@@ -290,6 +292,7 @@ * | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): AxiosPromise<CloudRegionList>; | ||
getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): AxiosPromise<CloudRegionList>; | ||
/** | ||
@@ -408,2 +411,3 @@ * | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
@@ -413,3 +417,3 @@ * @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): AxiosPromise<CloudRegionList>; | ||
getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): AxiosPromise<CloudRegionList>; | ||
/** | ||
@@ -537,2 +541,3 @@ * | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
@@ -542,3 +547,3 @@ * @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): Promise<import("axios").AxiosResponse<CloudRegionList, any>>; | ||
getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): Promise<import("axios").AxiosResponse<CloudRegionList, any>>; | ||
/** | ||
@@ -545,0 +550,0 @@ * |
@@ -153,6 +153,7 @@ "use strict"; | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions: (id, page, size, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
getCloudProviderRegions: (id, page, size, instanceType, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'id' is not null or undefined | ||
@@ -180,2 +181,5 @@ (0, common_1.assertParamExists)('getCloudProviderRegions', 'id', id); | ||
} | ||
if (instanceType !== undefined) { | ||
localVarQueryParameter['instance_type'] = instanceType; | ||
} | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter, options.query); | ||
@@ -532,8 +536,9 @@ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id, page, size, options) { | ||
getCloudProviderRegions(id, page, size, instanceType, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCloudProviderRegions(id, page, size, options); | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCloudProviderRegions(id, page, size, instanceType, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
@@ -701,7 +706,8 @@ }); | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id, page, size, options) { | ||
return localVarFp.getCloudProviderRegions(id, page, size, options).then((request) => request(axios, basePath)); | ||
getCloudProviderRegions(id, page, size, instanceType, options) { | ||
return localVarFp.getCloudProviderRegions(id, page, size, instanceType, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -846,2 +852,3 @@ /** | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
@@ -851,4 +858,4 @@ * @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id, page, size, options) { | ||
return (0, exports.DefaultApiFp)(this.configuration).getCloudProviderRegions(id, page, size, options).then((request) => request(this.axios, this.basePath)); | ||
getCloudProviderRegions(id, page, size, instanceType, options) { | ||
return (0, exports.DefaultApiFp)(this.configuration).getCloudProviderRegions(id, page, size, instanceType, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -855,0 +862,0 @@ /** |
@@ -42,2 +42,8 @@ /** | ||
enabled: boolean; | ||
/** | ||
* The Kafka instance types supported by this region. | ||
* @type {Array<string>} | ||
* @memberof CloudRegion | ||
*/ | ||
supported_instance_types: Array<string>; | ||
} |
{ | ||
"name": "@rhoas/kafka-management-sdk", | ||
"version": "0.17.0", | ||
"version": "0.18.0", | ||
"description": "RHOAS Kafka Management SDK", | ||
@@ -30,5 +30,5 @@ "author": "Red Hat Developers", | ||
"devDependencies": { | ||
"@types/node": "16.11.7", | ||
"typescript": "4.4.4" | ||
"@types/node": "16.11.10", | ||
"typescript": "4.5.2" | ||
} | ||
} |
@@ -185,6 +185,7 @@ /* tslint:disable */ | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions: async (id: string, page?: string, size?: string, options: any = {}): Promise<RequestArgs> => { | ||
getCloudProviderRegions: async (id: string, page?: string, size?: string, instanceType?: string, options: any = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'id' is not null or undefined | ||
@@ -217,3 +218,7 @@ assertParamExists('getCloudProviderRegions', 'id', id) | ||
if (instanceType !== undefined) { | ||
localVarQueryParameter['instance_type'] = instanceType; | ||
} | ||
@@ -624,7 +629,8 @@ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudRegionList>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCloudProviderRegions(id, page, size, options); | ||
async getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloudRegionList>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getCloudProviderRegions(id, page, size, instanceType, options); | ||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); | ||
@@ -775,7 +781,8 @@ }, | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): AxiosPromise<CloudRegionList> { | ||
return localVarFp.getCloudProviderRegions(id, page, size, options).then((request) => request(axios, basePath)); | ||
getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): AxiosPromise<CloudRegionList> { | ||
return localVarFp.getCloudProviderRegions(id, page, size, instanceType, options).then((request) => request(axios, basePath)); | ||
}, | ||
@@ -916,2 +923,3 @@ /** | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
@@ -921,3 +929,3 @@ * @throws {RequiredError} | ||
*/ | ||
getCloudProviderRegions(id: string, page?: string, size?: string, options?: any): AxiosPromise<CloudRegionList>; | ||
getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any): AxiosPromise<CloudRegionList>; | ||
@@ -1064,2 +1072,3 @@ /** | ||
* @param {string} [size] Number of items in each page | ||
* @param {string} [instanceType] The Kafka instance type to filter the results by | ||
* @param {*} [options] Override http request option. | ||
@@ -1069,4 +1078,4 @@ * @throws {RequiredError} | ||
*/ | ||
public getCloudProviderRegions(id: string, page?: string, size?: string, options?: any) { | ||
return DefaultApiFp(this.configuration).getCloudProviderRegions(id, page, size, options).then((request) => request(this.axios, this.basePath)); | ||
public getCloudProviderRegions(id: string, page?: string, size?: string, instanceType?: string, options?: any) { | ||
return DefaultApiFp(this.configuration).getCloudProviderRegions(id, page, size, instanceType, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
@@ -1073,0 +1082,0 @@ |
@@ -47,4 +47,10 @@ /* tslint:disable */ | ||
enabled: boolean; | ||
/** | ||
* The Kafka instance types supported by this region. | ||
* @type {Array<string>} | ||
* @memberof CloudRegion | ||
*/ | ||
supported_instance_types: Array<string>; | ||
} | ||
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
331551
8155