Skip to content

Commit 20ce3d7

Browse files
committed
fix: update codebase
1 parent 00d5357 commit 20ce3d7

File tree

8 files changed

+104
-43
lines changed

8 files changed

+104
-43
lines changed

packages/kafka-management-sdk/src/generated/api/default-api.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,18 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
276276
/**
277277
*
278278
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
279-
* @param {string} cloudId ID of the supported cloud provider
279+
* @param {string} cloudProvider ID of the supported cloud provider
280280
* @param {string} cloudRegion Name of the supported cloud provider region
281281
* @param {*} [options] Override http request option.
282282
* @throws {RequiredError}
283283
*/
284-
getInstanceTypesByCloudProviderAndRegion: async (cloudId: string, cloudRegion: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
285-
// verify required parameter 'cloudId' is not null or undefined
286-
assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudId', cloudId)
284+
getInstanceTypesByCloudProviderAndRegion: async (cloudProvider: string, cloudRegion: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
285+
// verify required parameter 'cloudProvider' is not null or undefined
286+
assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudProvider', cloudProvider)
287287
// verify required parameter 'cloudRegion' is not null or undefined
288288
assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudRegion', cloudRegion)
289-
const localVarPath = `/api/kafkas_mgmt/v1/instance_types/{cloud_id}/{cloud_region}`
290-
.replace(`{${"cloud_id"}}`, encodeURIComponent(String(cloudId)))
289+
const localVarPath = `/api/kafkas_mgmt/v1/instance_types/{cloud_provider}/{cloud_region}`
290+
.replace(`{${"cloud_provider"}}`, encodeURIComponent(String(cloudProvider)))
291291
.replace(`{${"cloud_region"}}`, encodeURIComponent(String(cloudRegion)));
292292
// use dummy base URL string because the URL constructor only accepts absolute URLs.
293293
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -655,13 +655,13 @@ export const DefaultApiFp = function(configuration?: Configuration) {
655655
/**
656656
*
657657
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
658-
* @param {string} cloudId ID of the supported cloud provider
658+
* @param {string} cloudProvider ID of the supported cloud provider
659659
* @param {string} cloudRegion Name of the supported cloud provider region
660660
* @param {*} [options] Override http request option.
661661
* @throws {RequiredError}
662662
*/
663-
async getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKafkaInstanceTypesList>> {
664-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options);
663+
async getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKafkaInstanceTypesList>> {
664+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options);
665665
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
666666
},
667667
/**
@@ -806,13 +806,13 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
806806
/**
807807
*
808808
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
809-
* @param {string} cloudId ID of the supported cloud provider
809+
* @param {string} cloudProvider ID of the supported cloud provider
810810
* @param {string} cloudRegion Name of the supported cloud provider region
811811
* @param {*} [options] Override http request option.
812812
* @throws {RequiredError}
813813
*/
814-
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList> {
815-
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(axios, basePath));
814+
getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList> {
815+
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(axios, basePath));
816816
},
817817
/**
818818
*
@@ -949,13 +949,13 @@ export interface DefaultApiInterface {
949949
/**
950950
*
951951
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
952-
* @param {string} cloudId ID of the supported cloud provider
952+
* @param {string} cloudProvider ID of the supported cloud provider
953953
* @param {string} cloudRegion Name of the supported cloud provider region
954954
* @param {*} [options] Override http request option.
955955
* @throws {RequiredError}
956956
* @memberof DefaultApiInterface
957957
*/
958-
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>;
958+
getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>;
959959

960960
/**
961961
*
@@ -1102,14 +1102,14 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
11021102
/**
11031103
*
11041104
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
1105-
* @param {string} cloudId ID of the supported cloud provider
1105+
* @param {string} cloudProvider ID of the supported cloud provider
11061106
* @param {string} cloudRegion Name of the supported cloud provider region
11071107
* @param {*} [options] Override http request option.
11081108
* @throws {RequiredError}
11091109
* @memberof DefaultApi
11101110
*/
1111-
public getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig) {
1112-
return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(this.axios, this.basePath));
1111+
public getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig) {
1112+
return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(this.axios, this.basePath));
11131113
}
11141114

11151115
/**

packages/kafka-management-sdk/src/generated/model/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export * from './supported-kafka-instance-type';
3434
export * from './supported-kafka-instance-types-list';
3535
export * from './supported-kafka-instance-types-list-all-of';
3636
export * from './supported-kafka-size';
37+
export * from './supported-kafka-size-bytes-value-item';
3738
export * from './values';
3839
export * from './version-metadata';
3940
export * from './version-metadata-all-of';

packages/kafka-management-sdk/src/generated/model/kafka-request-all-of.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ export interface KafkaRequestAllOf {
9292
* @memberof KafkaRequestAllOf
9393
*/
9494
'instance_type'?: string;
95+
/**
96+
*
97+
* @type {string}
98+
* @memberof KafkaRequestAllOf
99+
*/
100+
'instance_type_name'?: string;
95101
/**
96102
*
97103
* @type {boolean}
@@ -110,5 +116,41 @@ export interface KafkaRequestAllOf {
110116
* @memberof KafkaRequestAllOf
111117
*/
112118
'size_id'?: string;
119+
/**
120+
*
121+
* @type {string}
122+
* @memberof KafkaRequestAllOf
123+
*/
124+
'ingress_throughput_per_sec'?: string;
125+
/**
126+
*
127+
* @type {string}
128+
* @memberof KafkaRequestAllOf
129+
*/
130+
'egress_throughput_per_sec'?: string;
131+
/**
132+
*
133+
* @type {number}
134+
* @memberof KafkaRequestAllOf
135+
*/
136+
'total_max_connections'?: number;
137+
/**
138+
*
139+
* @type {number}
140+
* @memberof KafkaRequestAllOf
141+
*/
142+
'max_partitions'?: number;
143+
/**
144+
*
145+
* @type {string}
146+
* @memberof KafkaRequestAllOf
147+
*/
148+
'max_data_retention_period'?: string;
149+
/**
150+
*
151+
* @type {number}
152+
* @memberof KafkaRequestAllOf
153+
*/
154+
'max_connection_attempts_per_sec'?: number;
113155
}
114156

packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-type.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ import { SupportedKafkaSize } from './supported-kafka-size';
2121
* @interface SupportedKafkaInstanceType
2222
*/
2323
export interface SupportedKafkaInstanceType {
24-
/**
25-
* Indicates the type of this object. Will be \'SupportedKafkaInstanceType\' link.
26-
* @type {string}
27-
* @memberof SupportedKafkaInstanceType
28-
*/
29-
'kind'?: string;
3024
/**
3125
* Unique identifier of the Kafka instance type.
3226
* @type {string}

packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list-all-of.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export interface SupportedKafkaInstanceTypesListAllOf {
2626
* @type {Array<SupportedKafkaInstanceType>}
2727
* @memberof SupportedKafkaInstanceTypesListAllOf
2828
*/
29-
'items'?: Array<SupportedKafkaInstanceType>;
29+
'instance_types'?: Array<SupportedKafkaInstanceType>;
3030
}
3131

packages/kafka-management-sdk/src/generated/model/supported-kafka-instance-types-list.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
*/
1414

1515

16-
import { List } from './list';
1716
import { SupportedKafkaInstanceType } from './supported-kafka-instance-type';
1817
import { SupportedKafkaInstanceTypesListAllOf } from './supported-kafka-instance-types-list-all-of';
1918

2019
/**
2120
* @type SupportedKafkaInstanceTypesList
2221
* @export
2322
*/
24-
export type SupportedKafkaInstanceTypesList = List & SupportedKafkaInstanceTypesListAllOf;
23+
export type SupportedKafkaInstanceTypesList = SupportedKafkaInstanceTypesListAllOf;
2524

2625

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Kafka Service Fleet Manager
5+
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
6+
*
7+
* The version of the OpenAPI document: 1.3.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
17+
/**
18+
*
19+
* @export
20+
* @interface SupportedKafkaSizeBytesValueItem
21+
*/
22+
export interface SupportedKafkaSizeBytesValueItem {
23+
/**
24+
*
25+
* @type {number}
26+
* @memberof SupportedKafkaSizeBytesValueItem
27+
*/
28+
'bytes'?: number;
29+
}
30+

packages/kafka-management-sdk/src/generated/model/supported-kafka-size.ts

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,46 @@
1313
*/
1414

1515

16+
import { SupportedKafkaSizeBytesValueItem } from './supported-kafka-size-bytes-value-item';
1617

1718
/**
1819
* Supported Kafka Size
1920
* @export
2021
* @interface SupportedKafkaSize
2122
*/
2223
export interface SupportedKafkaSize {
23-
/**
24-
* Indicates the type of this object. Will be \'SupportedKafkaSize\' link.
25-
* @type {string}
26-
* @memberof SupportedKafkaSize
27-
*/
28-
'kind'?: string;
2924
/**
3025
* Unique identifier of this Kafka instance size.
3126
* @type {string}
3227
* @memberof SupportedKafkaSize
3328
*/
3429
'id'?: string;
3530
/**
36-
* Ingress throughput per second available to this Kafka instance size.
37-
* @type {string}
31+
*
32+
* @type {SupportedKafkaSizeBytesValueItem}
3833
* @memberof SupportedKafkaSize
3934
*/
40-
'ingress_throughput_per_sec'?: string;
35+
'ingress_throughput_per_sec'?: SupportedKafkaSizeBytesValueItem;
4136
/**
42-
* Egress throughput per second available to this Kafka instance size.
43-
* @type {string}
37+
*
38+
* @type {SupportedKafkaSizeBytesValueItem}
4439
* @memberof SupportedKafkaSize
4540
*/
46-
'egress_throughput_per_sec'?: string;
41+
'egress_throughput_per_sec'?: SupportedKafkaSizeBytesValueItem;
4742
/**
48-
* Total amount of connections available to this Kafka instance size.
43+
* Maximum amount of total connections available to this Kafka instance size.
4944
* @type {number}
5045
* @memberof SupportedKafkaSize
5146
*/
5247
'total_max_connections'?: number;
5348
/**
54-
* Maximum data storage available to this Kafka instance size.
55-
* @type {string}
49+
*
50+
* @type {SupportedKafkaSizeBytesValueItem}
5651
* @memberof SupportedKafkaSize
5752
*/
58-
'max_data_retention_size'?: string;
53+
'max_data_retention_size'?: SupportedKafkaSizeBytesValueItem;
5954
/**
60-
* Total amount of partitions available to this Kafka instance size.
55+
* Maximum amount of total partitions available to this Kafka instance size.
6156
* @type {number}
6257
* @memberof SupportedKafkaSize
6358
*/

0 commit comments

Comments
 (0)