Skip to content

Commit

Permalink
fix: remove pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki committed Mar 15, 2022
1 parent 85b7319 commit a90c5dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
2 changes: 0 additions & 2 deletions .openapi/kas-fleet-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,6 @@ paths:
schema:
type: string
description: Name of the supported cloud provider region
- $ref: "#/components/parameters/page"
- $ref: "#/components/parameters/size"
/api/kafkas_mgmt/v1/service_accounts:
get:
parameters:
Expand Down
34 changes: 8 additions & 26 deletions packages/kafka-management-sdk/src/generated/api/default-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,10 @@ 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} cloudRegion Name of the supported cloud provider region
* @param {string} [page] Page index
* @param {string} [size] Number of items in each page
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInstanceTypesByCloudProviderAndRegion: async (cloudId: string, cloudRegion: string, page?: string, size?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getInstanceTypesByCloudProviderAndRegion: async (cloudId: string, cloudRegion: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'cloudId' is not null or undefined
assertParamExists('getInstanceTypesByCloudProviderAndRegion', 'cloudId', cloudId)
// verify required parameter 'cloudRegion' is not null or undefined
Expand All @@ -306,14 +304,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)

if (page !== undefined) {
localVarQueryParameter['page'] = page;
}

if (size !== undefined) {
localVarQueryParameter['size'] = size;
}



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down Expand Up @@ -667,13 +657,11 @@ 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} cloudRegion Name of the supported cloud provider region
* @param {string} [page] Page index
* @param {string} [size] Number of items in each page
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, page?: string, size?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKafkaInstanceTypesList>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, page, size, options);
async getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SupportedKafkaInstanceTypesList>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -820,13 +808,11 @@ 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} cloudRegion Name of the supported cloud provider region
* @param {string} [page] Page index
* @param {string} [size] Number of items in each page
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, page?: string, size?: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList> {
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, page, size, options).then((request) => request(axios, basePath));
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: any): AxiosPromise<SupportedKafkaInstanceTypesList> {
return localVarFp.getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(axios, basePath));
},
/**
*
Expand Down Expand Up @@ -965,13 +951,11 @@ 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} cloudRegion Name of the supported cloud provider region
* @param {string} [page] Page index
* @param {string} [size] Number of items in each page
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApiInterface
*/
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, page?: string, size?: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>;
getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig): AxiosPromise<SupportedKafkaInstanceTypesList>;

/**
*
Expand Down Expand Up @@ -1120,14 +1104,12 @@ 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} cloudRegion Name of the supported cloud provider region
* @param {string} [page] Page index
* @param {string} [size] Number of items in each page
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, page?: string, size?: string, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, page, size, options).then((request) => request(this.axios, this.basePath));
public getInstanceTypesByCloudProviderAndRegion(cloudId: string, cloudRegion: string, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).getInstanceTypesByCloudProviderAndRegion(cloudId, cloudRegion, options).then((request) => request(this.axios, this.basePath));
}

/**
Expand Down

0 comments on commit a90c5dd

Please sign in to comment.