@rhoas/kafka-management-sdk
Advanced tools
Comparing version 0.28.0 to 0.29.0-alpha1
@@ -23,2 +23,3 @@ /** | ||
import { MetricsRangeQueryList } from '../model'; | ||
import { SupportedKafkaInstanceTypesList } from '../model'; | ||
import { VersionMetadata } from '../model'; | ||
@@ -78,2 +79,11 @@ /** | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion: (cloudId: string, cloudRegion: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -186,2 +196,11 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKafkaInstanceTypesList>>; | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -294,2 +313,11 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList>; | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -408,2 +436,12 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApiInterface | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>; | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -529,2 +567,12 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApi | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SupportedKafkaInstanceTypesList, any>>; | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -531,0 +579,0 @@ * @param {string} id The ID of record |
@@ -229,2 +229,38 @@ "use strict"; | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion: (cloudId, cloudRegion, options = {}) => __awaiter(this, void 0, void 0, function* () { | ||
// verify required parameter 'cloudId' is not null or undefined | ||
(0, common_1.assertParamExists)('getInstanceTypesByCloudProviderAndRegion', 'cloudId', cloudId); | ||
// verify required parameter 'cloudRegion' is not null or undefined | ||
(0, common_1.assertParamExists)('getInstanceTypesByCloudProviderAndRegion', 'cloudRegion', cloudRegion); | ||
const localVarPath = `/api/kafkas_mgmt/v1/instance_types/{cloud_id}/{cloud_region}` | ||
.replace(`{${"cloud_id"}}`, encodeURIComponent(String(cloudId))) | ||
.replace(`{${"cloud_region"}}`, encodeURIComponent(String(cloudRegion))); | ||
// 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); | ||
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 a Kafka request by ID | ||
@@ -533,2 +569,16 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
}); | ||
}, | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -685,2 +735,13 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options) { | ||
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -824,2 +885,14 @@ * @param {string} id The ID of record | ||
* | ||
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region | ||
* @param {string} cloudId ID of the supported cloud provider | ||
* @param {string} cloudRegion Name of the supported cloud provider region | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApi | ||
*/ | ||
getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options) { | ||
return (0, exports.DefaultApiFp)(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* | ||
* @summary Returns a Kafka request by ID | ||
@@ -826,0 +899,0 @@ * @param {string} id The ID of record |
@@ -33,4 +33,8 @@ export * from './cloud-provider'; | ||
export * from './service-account-request'; | ||
export * from './supported-kafka-instance-type'; | ||
export * from './supported-kafka-instance-types-list'; | ||
export * from './supported-kafka-instance-types-list-all-of'; | ||
export * from './supported-kafka-size'; | ||
export * from './values'; | ||
export * from './version-metadata'; | ||
export * from './version-metadata-all-of'; |
@@ -49,4 +49,8 @@ "use strict"; | ||
__exportStar(require("./service-account-request"), exports); | ||
__exportStar(require("./supported-kafka-instance-type"), exports); | ||
__exportStar(require("./supported-kafka-instance-types-list"), exports); | ||
__exportStar(require("./supported-kafka-instance-types-list-all-of"), exports); | ||
__exportStar(require("./supported-kafka-size"), exports); | ||
__exportStar(require("./values"), exports); | ||
__exportStar(require("./version-metadata"), exports); | ||
__exportStar(require("./version-metadata-all-of"), exports); |
@@ -102,2 +102,8 @@ /** | ||
'kafka_storage_size'?: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof KafkaRequestAllOf | ||
*/ | ||
'size_id'?: string; | ||
} |
@@ -48,2 +48,8 @@ /** | ||
'reauthentication_enabled'?: boolean | null; | ||
/** | ||
* kafka plan in a format of <instance_type>.<size_id> | ||
* @type {string} | ||
* @memberof KafkaRequestPayload | ||
*/ | ||
'plan'?: string; | ||
} |
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
'instance_type'?: string; | ||
'instance_type': string; | ||
/** | ||
@@ -29,4 +29,11 @@ * flag indicating whether the capacity for the instance type in the region is reached | ||
* @memberof RegionCapacityListItem | ||
* @deprecated | ||
*/ | ||
'max_capacity_reached': boolean; | ||
/** | ||
* list of available Kafka instance sizes that can be created in this region when taking account current capacity and regional limits | ||
* @type {Array<string>} | ||
* @memberof RegionCapacityListItem | ||
*/ | ||
'available_sizes': Array<string>; | ||
} |
{ | ||
"name": "@rhoas/kafka-management-sdk", | ||
"version": "0.28.0", | ||
"version": "0.29.0-alpha1", | ||
"description": "RHOAS Kafka Management SDK", | ||
@@ -5,0 +5,0 @@ "author": "Red Hat Developers", |
@@ -33,4 +33,8 @@ export * from './cloud-provider'; | ||
export * from './service-account-request'; | ||
export * from './supported-kafka-instance-type'; | ||
export * from './supported-kafka-instance-types-list'; | ||
export * from './supported-kafka-instance-types-list-all-of'; | ||
export * from './supported-kafka-size'; | ||
export * from './values'; | ||
export * from './version-metadata'; | ||
export * from './version-metadata-all-of'; |
@@ -107,3 +107,9 @@ /* tslint:disable */ | ||
'kafka_storage_size'?: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof KafkaRequestAllOf | ||
*/ | ||
'size_id'?: string; | ||
} | ||
@@ -53,3 +53,9 @@ /* tslint:disable */ | ||
'reauthentication_enabled'?: boolean | null; | ||
/** | ||
* kafka plan in a format of <instance_type>.<size_id> | ||
* @type {string} | ||
* @memberof KafkaRequestPayload | ||
*/ | ||
'plan'?: string; | ||
} | ||
@@ -28,3 +28,3 @@ /* tslint:disable */ | ||
*/ | ||
'instance_type'?: string; | ||
'instance_type': string; | ||
/** | ||
@@ -34,5 +34,12 @@ * flag indicating whether the capacity for the instance type in the region is reached | ||
* @memberof RegionCapacityListItem | ||
* @deprecated | ||
*/ | ||
'max_capacity_reached': boolean; | ||
/** | ||
* list of available Kafka instance sizes that can be created in this region when taking account current capacity and regional limits | ||
* @type {Array<string>} | ||
* @memberof RegionCapacityListItem | ||
*/ | ||
'available_sizes': Array<string>; | ||
} | ||
Sorry, the diff of this file is too big to display
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
370255
156
9050