@@ -37,6 +37,8 @@ import { MetricsInstantQueryList } from '../model';
3737// @ts -ignore
3838import { MetricsRangeQueryList } from '../model' ;
3939// @ts -ignore
40+ import { SupportedKafkaInstanceTypesList } from '../model' ;
41+ // @ts -ignore
4042import { VersionMetadata } from '../model' ;
4143/**
4244 * DefaultApi - axios parameter creator
@@ -262,6 +264,58 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
262264
263265
264266
267+ setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
268+ let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
269+ localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
270+
271+ return {
272+ url : toPathString ( localVarUrlObj ) ,
273+ options : localVarRequestOptions ,
274+ } ;
275+ } ,
276+ /**
277+ *
278+ * @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
280+ * @param {string } cloudRegion Name of the supported cloud provider region
281+ * @param {string } [page] Page index
282+ * @param {string } [size] Number of items in each page
283+ * @param {* } [options] Override http request option.
284+ * @throws {RequiredError }
285+ */
286+ getInstanceTypesByCloudProviderAndRegion : async ( cloudId : string , cloudRegion : string , page ?: string , size ?: string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > => {
287+ // verify required parameter 'cloudId' is not null or undefined
288+ assertParamExists ( 'getInstanceTypesByCloudProviderAndRegion' , 'cloudId' , cloudId )
289+ // verify required parameter 'cloudRegion' is not null or undefined
290+ assertParamExists ( 'getInstanceTypesByCloudProviderAndRegion' , 'cloudRegion' , cloudRegion )
291+ const localVarPath = `/api/kafkas_mgmt/v1/instance_types/{cloud_id}/{cloud_region}`
292+ . replace ( `{${ "cloud_id" } }` , encodeURIComponent ( String ( cloudId ) ) )
293+ . replace ( `{${ "cloud_region" } }` , encodeURIComponent ( String ( cloudRegion ) ) ) ;
294+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
295+ const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ;
296+ let baseOptions ;
297+ if ( configuration ) {
298+ baseOptions = configuration . baseOptions ;
299+ }
300+
301+ const localVarRequestOptions = { method : 'GET' , ...baseOptions , ...options } ;
302+ const localVarHeaderParameter = { } as any ;
303+ const localVarQueryParameter = { } as any ;
304+
305+ // authentication Bearer required
306+ // http bearer authentication required
307+ await setBearerAuthToObject ( localVarHeaderParameter , configuration )
308+
309+ if ( page !== undefined ) {
310+ localVarQueryParameter [ 'page' ] = page ;
311+ }
312+
313+ if ( size !== undefined ) {
314+ localVarQueryParameter [ 'size' ] = size ;
315+ }
316+
317+
318+
265319 setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
266320 let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
267321 localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
@@ -608,6 +662,20 @@ export const DefaultApiFp = function(configuration?: Configuration) {
608662 const localVarAxiosArgs = await localVarAxiosParamCreator . getCloudProviders ( page , size , options ) ;
609663 return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
610664 } ,
665+ /**
666+ *
667+ * @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
668+ * @param {string } cloudId ID of the supported cloud provider
669+ * @param {string } cloudRegion Name of the supported cloud provider region
670+ * @param {string } [page] Page index
671+ * @param {string } [size] Number of items in each page
672+ * @param {* } [options] Override http request option.
673+ * @throws {RequiredError }
674+ */
675+ async getInstanceTypesByCloudProviderAndRegion ( cloudId : string , cloudRegion : string , page ?: string , size ?: string , options ?: AxiosRequestConfig ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < SupportedKafkaInstanceTypesList > > {
676+ const localVarAxiosArgs = await localVarAxiosParamCreator . getInstanceTypesByCloudProviderAndRegion ( cloudId , cloudRegion , page , size , options ) ;
677+ return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ;
678+ } ,
611679 /**
612680 *
613681 * @summary Returns a Kafka request by ID
@@ -747,6 +815,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
747815 getCloudProviders ( page ?: string , size ?: string , options ?: any ) : AxiosPromise < CloudProviderList > {
748816 return localVarFp . getCloudProviders ( page , size , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
749817 } ,
818+ /**
819+ *
820+ * @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
821+ * @param {string } cloudId ID of the supported cloud provider
822+ * @param {string } cloudRegion Name of the supported cloud provider region
823+ * @param {string } [page] Page index
824+ * @param {string } [size] Number of items in each page
825+ * @param {* } [options] Override http request option.
826+ * @throws {RequiredError }
827+ */
828+ getInstanceTypesByCloudProviderAndRegion ( cloudId : string , cloudRegion : string , page ?: string , size ?: string , options ?: any ) : AxiosPromise < SupportedKafkaInstanceTypesList > {
829+ return localVarFp . getInstanceTypesByCloudProviderAndRegion ( cloudId , cloudRegion , page , size , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
830+ } ,
750831 /**
751832 *
752833 * @summary Returns a Kafka request by ID
@@ -879,6 +960,19 @@ export interface DefaultApiInterface {
879960 */
880961 getCloudProviders ( page ?: string , size ?: string , options ?: AxiosRequestConfig ) : AxiosPromise < CloudProviderList > ;
881962
963+ /**
964+ *
965+ * @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
966+ * @param {string } cloudId ID of the supported cloud provider
967+ * @param {string } cloudRegion Name of the supported cloud provider region
968+ * @param {string } [page] Page index
969+ * @param {string } [size] Number of items in each page
970+ * @param {* } [options] Override http request option.
971+ * @throws {RequiredError }
972+ * @memberof DefaultApiInterface
973+ */
974+ getInstanceTypesByCloudProviderAndRegion ( cloudId : string , cloudRegion : string , page ?: string , size ?: string , options ?: AxiosRequestConfig ) : AxiosPromise < SupportedKafkaInstanceTypesList > ;
975+
882976 /**
883977 *
884978 * @summary Returns a Kafka request by ID
@@ -1021,6 +1115,21 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
10211115 return DefaultApiFp ( this . configuration ) . getCloudProviders ( page , size , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
10221116 }
10231117
1118+ /**
1119+ *
1120+ * @summary Returns the list of supported Kafka instance types and sizes filtered by cloud provider and region
1121+ * @param {string } cloudId ID of the supported cloud provider
1122+ * @param {string } cloudRegion Name of the supported cloud provider region
1123+ * @param {string } [page] Page index
1124+ * @param {string } [size] Number of items in each page
1125+ * @param {* } [options] Override http request option.
1126+ * @throws {RequiredError }
1127+ * @memberof DefaultApi
1128+ */
1129+ public getInstanceTypesByCloudProviderAndRegion ( cloudId : string , cloudRegion : string , page ?: string , size ?: string , options ?: AxiosRequestConfig ) {
1130+ return DefaultApiFp ( this . configuration ) . getInstanceTypesByCloudProviderAndRegion ( cloudId , cloudRegion , page , size , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
1131+ }
1132+
10241133 /**
10251134 *
10261135 * @summary Returns a Kafka request by ID
0 commit comments