@@ -23682,6 +23682,57 @@ export const CloudProviderApiAxiosParamCreator = function (configuration?: Confi
23682
23682
23683
23683
23684
23684
23685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23687
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
23688
+
23689
+ return {
23690
+ url: toPathString(localVarUrlObj),
23691
+ options: localVarRequestOptions,
23692
+ };
23693
+ },
23694
+ /**
23695
+ *
23696
+ * @summary List Azure AKS available instance types
23697
+ * @param {string} region region name
23698
+ * @param {boolean} [onlyMeetsResourceReqs]
23699
+ * @param {boolean} [withGpu]
23700
+ * @param {*} [options] Override http request option.
23701
+ * @throws {RequiredError}
23702
+ */
23703
+ listAzureAKSInstanceType: async (region: string, onlyMeetsResourceReqs?: boolean, withGpu?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23704
+ // verify required parameter 'region' is not null or undefined
23705
+ assertParamExists('listAzureAKSInstanceType', 'region', region)
23706
+ const localVarPath = `/azure/aks/instanceType/{region}`
23707
+ .replace(`{${"region"}}`, encodeURIComponent(String(region)));
23708
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23709
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23710
+ let baseOptions;
23711
+ if (configuration) {
23712
+ baseOptions = configuration.baseOptions;
23713
+ }
23714
+
23715
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
23716
+ const localVarHeaderParameter = {} as any;
23717
+ const localVarQueryParameter = {} as any;
23718
+
23719
+ // authentication ApiKeyAuth required
23720
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
23721
+
23722
+ // authentication bearerAuth required
23723
+ // http bearer authentication required
23724
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
23725
+
23726
+ if (onlyMeetsResourceReqs !== undefined) {
23727
+ localVarQueryParameter['only_meets_resource_reqs'] = onlyMeetsResourceReqs;
23728
+ }
23729
+
23730
+ if (withGpu !== undefined) {
23731
+ localVarQueryParameter['with_gpu'] = withGpu;
23732
+ }
23733
+
23734
+
23735
+
23685
23736
setSearchParams(localVarUrlObj, localVarQueryParameter);
23686
23737
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23687
23738
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -24234,6 +24285,21 @@ export const CloudProviderApiFp = function(configuration?: Configuration) {
24234
24285
const localVarOperationServerBasePath = operationServerMap['CloudProviderApi.listAWSRegions']?.[localVarOperationServerIndex]?.url;
24235
24286
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24236
24287
},
24288
+ /**
24289
+ *
24290
+ * @summary List Azure AKS available instance types
24291
+ * @param {string} region region name
24292
+ * @param {boolean} [onlyMeetsResourceReqs]
24293
+ * @param {boolean} [withGpu]
24294
+ * @param {*} [options] Override http request option.
24295
+ * @throws {RequiredError}
24296
+ */
24297
+ async listAzureAKSInstanceType(region: string, onlyMeetsResourceReqs?: boolean, withGpu?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterInstanceTypeResponseList>> {
24298
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAzureAKSInstanceType(region, onlyMeetsResourceReqs, withGpu, options);
24299
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
24300
+ const localVarOperationServerBasePath = operationServerMap['CloudProviderApi.listAzureAKSInstanceType']?.[localVarOperationServerIndex]?.url;
24301
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
24302
+ },
24237
24303
/**
24238
24304
*
24239
24305
* @summary List Azure features available
@@ -24450,6 +24516,18 @@ export const CloudProviderApiFactory = function (configuration?: Configuration,
24450
24516
listAWSRegions(options?: RawAxiosRequestConfig): AxiosPromise<ClusterRegionResponseList> {
24451
24517
return localVarFp.listAWSRegions(options).then((request) => request(axios, basePath));
24452
24518
},
24519
+ /**
24520
+ *
24521
+ * @summary List Azure AKS available instance types
24522
+ * @param {string} region region name
24523
+ * @param {boolean} [onlyMeetsResourceReqs]
24524
+ * @param {boolean} [withGpu]
24525
+ * @param {*} [options] Override http request option.
24526
+ * @throws {RequiredError}
24527
+ */
24528
+ listAzureAKSInstanceType(region: string, onlyMeetsResourceReqs?: boolean, withGpu?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ClusterInstanceTypeResponseList> {
24529
+ return localVarFp.listAzureAKSInstanceType(region, onlyMeetsResourceReqs, withGpu, options).then((request) => request(axios, basePath));
24530
+ },
24453
24531
/**
24454
24532
*
24455
24533
* @summary List Azure features available
@@ -24642,6 +24720,20 @@ export class CloudProviderApi extends BaseAPI {
24642
24720
return CloudProviderApiFp(this.configuration).listAWSRegions(options).then((request) => request(this.axios, this.basePath));
24643
24721
}
24644
24722
24723
+ /**
24724
+ *
24725
+ * @summary List Azure AKS available instance types
24726
+ * @param {string} region region name
24727
+ * @param {boolean} [onlyMeetsResourceReqs]
24728
+ * @param {boolean} [withGpu]
24729
+ * @param {*} [options] Override http request option.
24730
+ * @throws {RequiredError}
24731
+ * @memberof CloudProviderApi
24732
+ */
24733
+ public listAzureAKSInstanceType(region: string, onlyMeetsResourceReqs?: boolean, withGpu?: boolean, options?: RawAxiosRequestConfig) {
24734
+ return CloudProviderApiFp(this.configuration).listAzureAKSInstanceType(region, onlyMeetsResourceReqs, withGpu, options).then((request) => request(this.axios, this.basePath));
24735
+ }
24736
+
24645
24737
/**
24646
24738
*
24647
24739
* @summary List Azure features available
0 commit comments