Skip to content

Commit

Permalink
fix: update codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Apr 4, 2022
1 parent 00d5357 commit 20ce3d7
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 43 deletions.
34 changes: 17 additions & 17 deletions packages/kafka-management-sdk/src/generated/api/default-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RequestArgs> => {
// verify required parameter 'cloudId' is not null or undefined
assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudId', cloudId)
getInstanceTypesByCloudProviderAndRegion: async (cloudProvider: string, cloudRegion: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// 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);
Expand Down Expand Up @@ -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<SupportedKafkaInstanceTypesList>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options);
async getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKafkaInstanceTypesList>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -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<SupportedKafkaInstanceTypesList> {
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(axios, basePath));
getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList> {
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(axios, basePath));
},
/**
*
Expand Down Expand Up @@ -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<SupportedKafkaInstanceTypesList>;
getInstanceTypesByCloudProviderAndRegion(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>;

/**
*
Expand Down Expand Up @@ -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));
}

/**
Expand Down
1 change: 1 addition & 0 deletions packages/kafka-management-sdk/src/generated/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ export interface KafkaRequestAllOf {
* @memberof KafkaRequestAllOf
*/
'instance_type'?: string;
/**
*
* @type {string}
* @memberof KafkaRequestAllOf
*/
'instance_type_name'?: string;
/**
*
* @type {boolean}
Expand All @@ -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;
}

Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export interface SupportedKafkaInstanceTypesListAllOf {
* @type {Array<SupportedKafkaInstanceType>}
* @memberof SupportedKafkaInstanceTypesListAllOf
*/
'items'?: Array<SupportedKafkaInstanceType>;
'instance_types'?: Array<SupportedKafkaInstanceType>;
}

Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@
*/


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

/**
* @type SupportedKafkaInstanceTypesList
* @export
*/
export type SupportedKafkaInstanceTypesList = List & SupportedKafkaInstanceTypesListAllOf;
export type SupportedKafkaInstanceTypesList = SupportedKafkaInstanceTypesListAllOf;


Original file line number Diff line number Diff line change
@@ -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;
}

Original file line number Diff line number Diff line change
Expand Up @@ -13,51 +13,46 @@
*/


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

/**
* Supported Kafka Size
* @export
* @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}
* @memberof 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
*/
Expand Down

0 comments on commit 20ce3d7

Please sign in to comment.