@@ -25,8 +25,6 @@ import { CloudProviderList } from '../model';
2525// @ts -ignore
2626import { CloudRegionList } from '../model' ;
2727// @ts -ignore
28- import { ErrorList } from '../model' ;
29- // @ts -ignore
3028import { KafkaRequest } from '../model' ;
3129// @ts -ignore
3230import { KafkaRequestList } from '../model' ;
@@ -223,70 +221,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
223221
224222
225223
226- setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ;
227- let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
228- localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
229-
230- return {
231- url : toPathString ( localVarUrlObj ) ,
232- options : localVarRequestOptions ,
233- } ;
234- } ,
235- /**
236- *
237- * @summary Returns the error by id
238- * @param {string } id The ID of record
239- * @param {* } [options] Override http request option.
240- * @throws {RequiredError }
241- */
242- getErrorById : async ( id : string , options : any = { } ) : Promise < RequestArgs > => {
243- // verify required parameter 'id' is not null or undefined
244- assertParamExists ( 'getErrorById' , 'id' , id )
245- const localVarPath = `/api/kafkas_mgmt/v1/errors/{id}`
246- . replace ( `{${ "id" } }` , encodeURIComponent ( String ( id ) ) ) ;
247- // use dummy base URL string because the URL constructor only accepts absolute URLs.
248- const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
249- let baseOptions ;
250- if ( configuration ) {
251- baseOptions = configuration . baseOptions ;
252- }
253-
254- const localVarRequestOptions = { method : 'GET' , ...baseOptions , ...options } ;
255- const localVarHeaderParameter = { } as any ;
256- const localVarQueryParameter = { } as any ;
257-
258-
259-
260- setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ;
261- let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
262- localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
263-
264- return {
265- url : toPathString ( localVarUrlObj ) ,
266- options : localVarRequestOptions ,
267- } ;
268- } ,
269- /**
270- *
271- * @summary Returns the list of possible API errors
272- * @param {* } [options] Override http request option.
273- * @throws {RequiredError }
274- */
275- getErrors : async ( options : any = { } ) : Promise < RequestArgs > => {
276- const localVarPath = `/api/kafkas_mgmt/v1/errors` ;
277- // use dummy base URL string because the URL constructor only accepts absolute URLs.
278- const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
279- let baseOptions ;
280- if ( configuration ) {
281- baseOptions = configuration . baseOptions ;
282- }
283-
284- const localVarRequestOptions = { method : 'GET' , ...baseOptions , ...options } ;
285- const localVarHeaderParameter = { } as any ;
286- const localVarQueryParameter = { } as any ;
287-
288-
289-
290224 setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ;
291225 let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
292226 localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
@@ -655,27 +589,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
655589 const localVarAxiosArgs = await localVarAxiosParamCreator . getCloudProviders ( page , size , options ) ;
656590 return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
657591 } ,
658- /**
659- *
660- * @summary Returns the error by id
661- * @param {string } id The ID of record
662- * @param {* } [options] Override http request option.
663- * @throws {RequiredError }
664- */
665- async getErrorById ( id : string , options ?: any ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < Error > > {
666- const localVarAxiosArgs = await localVarAxiosParamCreator . getErrorById ( id , options ) ;
667- return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
668- } ,
669- /**
670- *
671- * @summary Returns the list of possible API errors
672- * @param {* } [options] Override http request option.
673- * @throws {RequiredError }
674- */
675- async getErrors ( options ?: any ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < ErrorList > > {
676- const localVarAxiosArgs = await localVarAxiosParamCreator . getErrors ( options ) ;
677- return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
678- } ,
679592 /**
680593 *
681594 * @summary Returns a Kafka request by ID
@@ -814,25 +727,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
814727 getCloudProviders ( page ?: string , size ?: string , options ?: any ) : AxiosPromise < CloudProviderList > {
815728 return localVarFp . getCloudProviders ( page , size , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
816729 } ,
817- /**
818- *
819- * @summary Returns the error by id
820- * @param {string } id The ID of record
821- * @param {* } [options] Override http request option.
822- * @throws {RequiredError }
823- */
824- getErrorById ( id : string , options ?: any ) : AxiosPromise < Error > {
825- return localVarFp . getErrorById ( id , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
826- } ,
827- /**
828- *
829- * @summary Returns the list of possible API errors
830- * @param {* } [options] Override http request option.
831- * @throws {RequiredError }
832- */
833- getErrors ( options ?: any ) : AxiosPromise < ErrorList > {
834- return localVarFp . getErrors ( options ) . then ( ( request ) => request ( axios , basePath ) ) ;
835- } ,
836730 /**
837731 *
838732 * @summary Returns a Kafka request by ID
@@ -963,25 +857,6 @@ export interface DefaultApiInterface {
963857 */
964858 getCloudProviders ( page ?: string , size ?: string , options ?: any ) : AxiosPromise < CloudProviderList > ;
965859
966- /**
967- *
968- * @summary Returns the error by id
969- * @param {string } id The ID of record
970- * @param {* } [options] Override http request option.
971- * @throws {RequiredError }
972- * @memberof DefaultApiInterface
973- */
974- getErrorById ( id : string , options ?: any ) : AxiosPromise < Error > ;
975-
976- /**
977- *
978- * @summary Returns the list of possible API errors
979- * @param {* } [options] Override http request option.
980- * @throws {RequiredError }
981- * @memberof DefaultApiInterface
982- */
983- getErrors ( options ?: any ) : AxiosPromise < ErrorList > ;
984-
985860 /**
986861 *
987862 * @summary Returns a Kafka request by ID
@@ -1120,29 +995,6 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
1120995 return DefaultApiFp ( this . configuration ) . getCloudProviders ( page , size , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
1121996 }
1122997
1123- /**
1124- *
1125- * @summary Returns the error by id
1126- * @param {string } id The ID of record
1127- * @param {* } [options] Override http request option.
1128- * @throws {RequiredError }
1129- * @memberof DefaultApi
1130- */
1131- public getErrorById ( id : string , options ?: any ) {
1132- return DefaultApiFp ( this . configuration ) . getErrorById ( id , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
1133- }
1134-
1135- /**
1136- *
1137- * @summary Returns the list of possible API errors
1138- * @param {* } [options] Override http request option.
1139- * @throws {RequiredError }
1140- * @memberof DefaultApi
1141- */
1142- public getErrors ( options ?: any ) {
1143- return DefaultApiFp ( this . configuration ) . getErrors ( options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
1144- }
1145-
1146998 /**
1147999 *
11481000 * @summary Returns a Kafka request by ID
0 commit comments