diff --git a/packages/kafka-management-sdk/src/generated/api/default-api.ts b/packages/kafka-management-sdk/src/generated/api/default-api.ts index d26b1886..7fc1f754 100644 --- a/packages/kafka-management-sdk/src/generated/api/default-api.ts +++ b/packages/kafka-management-sdk/src/generated/api/default-api.ts @@ -276,18 +276,18 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati /** * * @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} cloudProvider 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: async (cloudId: string, cloudRegion: string, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'cloudId' is not null or undefined - assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudId', cloudId) + getInstanceTypesByCloudProviderAndRegion: async (cloudProvider: string, cloudRegion: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'cloudProvider' is not null or undefined + assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudProvider', cloudProvider) // verify required parameter 'cloudRegion' is not null or undefined assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudRegion', cloudRegion) - const localVarPath = `/api/kafkas_mgmt/v1/instance_types/{cloud_id}/{cloud_region}` - .replace(`{${"cloud_id"}}`, encodeURIComponent(String(cloudId))) + const localVarPath = `/api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region}` + .replace(`{${"cloud_provider"}}`, encodeURIComponent(String(cloudProvider))) .replace(`{${"cloud_region"}}`, encodeURIComponent(String(cloudRegion))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -655,13 +655,13 @@ export const DefaultApiFp = function(configuration?: Configuration) { /** * * @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} cloudProvider ID of the supported cloud provider * @param {string} cloudRegion Name of the supported cloud provider region * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options); + async getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -806,13 +806,13 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa /** * * @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} cloudProvider 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 { - return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(axios, basePath)); + getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: any): AxiosPromise { + return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(axios, basePath)); }, /** * @@ -949,13 +949,13 @@ export interface DefaultApiInterface { /** * * @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} cloudProvider 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; + getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise; /** * @@ -1102,14 +1102,14 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { /** * * @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} cloudProvider 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 */ - public getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig) { - return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(this.axios, this.basePath)); + public getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/packages/kafka-management-sdk/src/generated/model/index.ts b/packages/kafka-management-sdk/src/generated/model/index.ts index 5db72ec9..10006c67 100644 --- a/packages/kafka-management-sdk/src/generated/model/index.ts +++ b/packages/kafka-management-sdk/src/generated/model/index.ts @@ -34,6 +34,7 @@ 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 './supported-kafka-size-bytes-value-item'; export * from './values'; export * from './version-metadata'; export * from './version-metadata-all-of'; diff --git a/packages/kafka-management-sdk/src/generated/model/kafka-request-all-of.ts b/packages/kafka-management-sdk/src/generated/model/kafka-request-all-of.ts index 16aae0dc..a8c4c28f 100644 --- a/packages/kafka-management-sdk/src/generated/model/kafka-request-all-of.ts +++ b/packages/kafka-management-sdk/src/generated/model/kafka-request-all-of.ts @@ -92,6 +92,12 @@ export interface KafkaRequestAllOf { * @memberof KafkaRequestAllOf */ 'instance_type'?: string; + /** + * + * @type {string} + * @memberof KafkaRequestAllOf + */ + 'instance_type_name'?: string; /** * * @type {boolean} @@ -110,5 +116,41 @@ export interface KafkaRequestAllOf { * @memberof KafkaRequestAllOf */ 'size_id'?: string; + /** + * + * @type {string} + * @memberof KafkaRequestAllOf + */ + 'ingress_throughput_per_sec'?: string; + /** + * + * @type {string} + * @memberof KafkaRequestAllOf + */ + 'egress_throughput_per_sec'?: string; + /** + * + * @type {number} + * @memberof KafkaRequestAllOf + */ + 'total_max_connections'?: number; + /** + * + * @type {number} + * @memberof KafkaRequestAllOf + */ + 'max_partitions'?: number; + /** + * + * @type {string} + * @memberof KafkaRequestAllOf + */ + 'max_data_retention_period'?: string; + /** + * + * @type {number} + * @memberof KafkaRequestAllOf + */ + 'max_connection_attempts_per_sec'?: number; } diff --git a/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-type.ts b/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-type.ts index 1d7dce58..343f1aad 100644 --- a/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-type.ts +++ b/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-type.ts @@ -21,12 +21,6 @@ import { SupportedKafkaSize } from './supported-kafka-size'; * @interface SupportedKafkaInstanceType */ export interface SupportedKafkaInstanceType { - /** - * Indicates the type of this object. Will be \'SupportedKafkaInstanceType\' link. - * @type {string} - * @memberof SupportedKafkaInstanceType - */ - 'kind'?: string; /** * Unique identifier of the Kafka instance type. * @type {string} diff --git a/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list-all-of.ts b/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list-all-of.ts index b896407e..924893cc 100644 --- a/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list-all-of.ts +++ b/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list-all-of.ts @@ -26,6 +26,6 @@ export interface SupportedKafkaInstanceTypesListAllOf { * @type {Array} * @memberof SupportedKafkaInstanceTypesListAllOf */ - 'items'?: Array; + 'instance_types'?: Array; } diff --git a/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list.ts b/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list.ts index e686cf7a..38704ede 100644 --- a/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list.ts +++ b/packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list.ts @@ -13,7 +13,6 @@ */ -import { List } from './list'; import { SupportedKafkaInstanceType } from './supported-kafka-instance-type'; import { SupportedKafkaInstanceTypesListAllOf } from './supported-kafka-instance-types-list-all-of'; @@ -21,6 +20,6 @@ import { SupportedKafkaInstanceTypesListAllOf } from './supported-kafka-instance * @type SupportedKafkaInstanceTypesList * @export */ -export type SupportedKafkaInstanceTypesList = List & SupportedKafkaInstanceTypesListAllOf; +export type SupportedKafkaInstanceTypesList = SupportedKafkaInstanceTypesListAllOf; diff --git a/packages/kafka-management-sdk/src/generated/model/supported-kafka-size-bytes-value-item.ts b/packages/kafka-management-sdk/src/generated/model/supported-kafka-size-bytes-value-item.ts new file mode 100644 index 00000000..64bfa30b --- /dev/null +++ b/packages/kafka-management-sdk/src/generated/model/supported-kafka-size-bytes-value-item.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Kafka Service Fleet Manager + * Kafka Service Fleet Manager is a Rest API to manage Kafka instances. + * + * The version of the OpenAPI document: 1.3.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface SupportedKafkaSizeBytesValueItem + */ +export interface SupportedKafkaSizeBytesValueItem { + /** + * + * @type {number} + * @memberof SupportedKafkaSizeBytesValueItem + */ + 'bytes'?: number; +} + diff --git a/packages/kafka-management-sdk/src/generated/model/supported-kafka-size.ts b/packages/kafka-management-sdk/src/generated/model/supported-kafka-size.ts index f491c20b..2f18fa2b 100644 --- a/packages/kafka-management-sdk/src/generated/model/supported-kafka-size.ts +++ b/packages/kafka-management-sdk/src/generated/model/supported-kafka-size.ts @@ -13,6 +13,7 @@ */ +import { SupportedKafkaSizeBytesValueItem } from './supported-kafka-size-bytes-value-item'; /** * Supported Kafka Size @@ -20,12 +21,6 @@ * @interface SupportedKafkaSize */ export interface SupportedKafkaSize { - /** - * Indicates the type of this object. Will be \'SupportedKafkaSize\' link. - * @type {string} - * @memberof SupportedKafkaSize - */ - 'kind'?: string; /** * Unique identifier of this Kafka instance size. * @type {string} @@ -33,31 +28,31 @@ export interface SupportedKafkaSize { */ 'id'?: string; /** - * Ingress throughput per second available to this Kafka instance size. - * @type {string} + * + * @type {SupportedKafkaSizeBytesValueItem} * @memberof SupportedKafkaSize */ - 'ingress_throughput_per_sec'?: string; + 'ingress_throughput_per_sec'?: SupportedKafkaSizeBytesValueItem; /** - * Egress throughput per second available to this Kafka instance size. - * @type {string} + * + * @type {SupportedKafkaSizeBytesValueItem} * @memberof SupportedKafkaSize */ - 'egress_throughput_per_sec'?: string; + 'egress_throughput_per_sec'?: SupportedKafkaSizeBytesValueItem; /** - * Total amount of connections available to this Kafka instance size. + * Maximum amount of total connections available to this Kafka instance size. * @type {number} * @memberof SupportedKafkaSize */ 'total_max_connections'?: number; /** - * Maximum data storage available to this Kafka instance size. - * @type {string} + * + * @type {SupportedKafkaSizeBytesValueItem} * @memberof SupportedKafkaSize */ - 'max_data_retention_size'?: string; + 'max_data_retention_size'?: SupportedKafkaSizeBytesValueItem; /** - * Total amount of partitions available to this Kafka instance size. + * Maximum amount of total partitions available to this Kafka instance size. * @type {number} * @memberof SupportedKafkaSize */