Skip to content

Commit

Permalink
chore(all): re-generate OpenAPI client(s) (#358)
Browse files Browse the repository at this point in the history
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
  • Loading branch information
app-services-ci and app-services-ci authored Apr 27, 2022
1 parent 0330bb9 commit b37d364
Show file tree
Hide file tree
Showing 51 changed files with 426 additions and 48 deletions.
2 changes: 1 addition & 1 deletion packages/kafka-management-sdk/src/generated/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
93 changes: 92 additions & 1 deletion packages/kafka-management-sdk/src/generated/api/default-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -37,6 +37,8 @@ import { MetricsInstantQueryList } from '../model';
// @ts-ignore
import { MetricsRangeQueryList } from '../model';
// @ts-ignore
import { SupportedKafkaInstanceTypesList } from '../model';
// @ts-ignore
import { VersionMetadata } from '../model';
/**
* DefaultApi - axios parameter creator
Expand Down Expand Up @@ -262,6 +264,48 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
* @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 (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_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);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication Bearer required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
Expand Down Expand Up @@ -608,6 +652,18 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getCloudProviders(page, size, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
* @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(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);
},
/**
*
* @summary Returns a Kafka request by ID
Expand Down Expand Up @@ -747,6 +803,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
getCloudProviders(page?: string, size?: string, options?: any): AxiosPromise<CloudProviderList> {
return localVarFp.getCloudProviders(page, size, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
* @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(cloudProvider: string, cloudRegion: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList> {
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Returns a Kafka request by ID
Expand Down Expand Up @@ -879,6 +946,17 @@ export interface DefaultApiInterface {
*/
getCloudProviders(page?: string, size?: string, options?: AxiosRequestConfig): AxiosPromise<CloudProviderList>;

/**
*
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
* @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(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>;

/**
*
* @summary Returns a Kafka request by ID
Expand Down Expand Up @@ -1021,6 +1099,19 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
return DefaultApiFp(this.configuration).getCloudProviders(page, size, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
* @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(cloudProvider: string, cloudRegion: string, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudProvider, cloudRegion, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Returns a Kafka request by ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion packages/kafka-management-sdk/src/generated/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion packages/kafka-management-sdk/src/generated/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion packages/kafka-management-sdk/src/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
5 changes: 5 additions & 0 deletions packages/kafka-management-sdk/src/generated/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export * from './service-account-list-item-all-of';
export * from './service-account-request';
export * from './sso-provider';
export * from './sso-provider-all-of';
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 @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down 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,47 @@ export interface KafkaRequestAllOf {
* @memberof KafkaRequestAllOf
*/
'browser_url'?: string;
/**
*
* @type {string}
* @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 @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Kafka Service Fleet Manager
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
*
* The version of the OpenAPI document: 1.4.0
* The version of the OpenAPI document: 1.5.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit b37d364

Please sign in to comment.