@nexgencloud/hyperstack-sdk-typescript 1.49.0-alpha → 1.50.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @nexgencloud/hyperstack-sdk-typescript@v1.49.0-alpha
1
+ ## @nexgencloud/hyperstack-sdk-typescript@v1.50.0-alpha
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @nexgencloud/hyperstack-sdk-typescript@v1.49.0-alpha --save
39
+ npm install @nexgencloud/hyperstack-sdk-typescript@v1.50.0-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -9499,6 +9499,55 @@ export interface UsersInfoListResponse {
9499
9499
  */
9500
9500
  'users_info'?: UsersInfoFields;
9501
9501
  }
9502
+ /**
9503
+ *
9504
+ * @export
9505
+ * @interface VMQuota
9506
+ */
9507
+ export interface VMQuota {
9508
+ /**
9509
+ *
9510
+ * @type {number}
9511
+ * @memberof VMQuota
9512
+ */
9513
+ 'available_vms'?: number;
9514
+ /**
9515
+ *
9516
+ * @type {string}
9517
+ * @memberof VMQuota
9518
+ */
9519
+ 'cidr'?: string;
9520
+ /**
9521
+ *
9522
+ * @type {number}
9523
+ * @memberof VMQuota
9524
+ */
9525
+ 'current_vms'?: number;
9526
+ /**
9527
+ *
9528
+ * @type {number}
9529
+ * @memberof VMQuota
9530
+ */
9531
+ 'max_vms'?: number;
9532
+ /**
9533
+ *
9534
+ * @type {string}
9535
+ * @memberof VMQuota
9536
+ */
9537
+ 'message'?: string;
9538
+ /**
9539
+ *
9540
+ * @type {number}
9541
+ * @memberof VMQuota
9542
+ */
9543
+ 'percentage_used'?: number;
9544
+ /**
9545
+ *
9546
+ * @type {boolean}
9547
+ * @memberof VMQuota
9548
+ */
9549
+ 'status'?: boolean;
9550
+ }
9502
9551
  /**
9503
9552
  *
9504
9553
  * @export
@@ -9941,6 +9990,24 @@ export interface Voucher {
9941
9990
  * @memberof Voucher
9942
9991
  */
9943
9992
  'id': number;
9993
+ /**
9994
+ * Max redemption count for a General Voucher
9995
+ * @type {number}
9996
+ * @memberof Voucher
9997
+ */
9998
+ 'max_redemption_count'?: number;
9999
+ /**
10000
+ * Current redemption count for a General Voucher
10001
+ * @type {number}
10002
+ * @memberof Voucher
10003
+ */
10004
+ 'redemption_count'?: number;
10005
+ /**
10006
+ * Remaining redemptions
10007
+ * @type {number}
10008
+ * @memberof Voucher
10009
+ */
10010
+ 'remaining_redemptions'?: number;
9944
10011
  /**
9945
10012
  * Voucher status
9946
10013
  * @type {string}
@@ -18599,6 +18666,43 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
18599
18666
 
18600
18667
 
18601
18668
 
18669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18671
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18672
+
18673
+ return {
18674
+ url: toPathString(localVarUrlObj),
18675
+ options: localVarRequestOptions,
18676
+ };
18677
+ },
18678
+ /**
18679
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
18680
+ * @summary Get environment VM quota
18681
+ * @param {number} id
18682
+ * @param {*} [options] Override http request option.
18683
+ * @throws {RequiredError}
18684
+ */
18685
+ getEnvironmentVMQuota: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18686
+ // verify required parameter 'id' is not null or undefined
18687
+ assertParamExists('getEnvironmentVMQuota', 'id', id)
18688
+ const localVarPath = `/core/environments/{id}/vm-quota`
18689
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18690
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18691
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18692
+ let baseOptions;
18693
+ if (configuration) {
18694
+ baseOptions = configuration.baseOptions;
18695
+ }
18696
+
18697
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18698
+ const localVarHeaderParameter = {} as any;
18699
+ const localVarQueryParameter = {} as any;
18700
+
18701
+ // authentication apiKey required
18702
+ await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
18703
+
18704
+
18705
+
18602
18706
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18603
18707
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18604
18708
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18761,6 +18865,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
18761
18865
  const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironment']?.[localVarOperationServerIndex]?.url;
18762
18866
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18763
18867
  },
18868
+ /**
18869
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
18870
+ * @summary Get environment VM quota
18871
+ * @param {number} id
18872
+ * @param {*} [options] Override http request option.
18873
+ * @throws {RequiredError}
18874
+ */
18875
+ async getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VMQuota>> {
18876
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentVMQuota(id, options);
18877
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18878
+ const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironmentVMQuota']?.[localVarOperationServerIndex]?.url;
18879
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18880
+ },
18764
18881
  /**
18765
18882
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
18766
18883
  * @summary List environments
@@ -18840,6 +18957,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
18840
18957
  getEnvironment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Environment> {
18841
18958
  return localVarFp.getEnvironment(id, options).then((request) => request(axios, basePath));
18842
18959
  },
18960
+ /**
18961
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
18962
+ * @summary Get environment VM quota
18963
+ * @param {number} id
18964
+ * @param {*} [options] Override http request option.
18965
+ * @throws {RequiredError}
18966
+ */
18967
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): AxiosPromise<VMQuota> {
18968
+ return localVarFp.getEnvironmentVMQuota(id, options).then((request) => request(axios, basePath));
18969
+ },
18843
18970
  /**
18844
18971
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
18845
18972
  * @summary List environments
@@ -18921,6 +19048,18 @@ export class EnvironmentApi extends BaseAPI {
18921
19048
  return EnvironmentApiFp(this.configuration).getEnvironment(id, options).then((request) => request(this.axios, this.basePath));
18922
19049
  }
18923
19050
 
19051
+ /**
19052
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
19053
+ * @summary Get environment VM quota
19054
+ * @param {number} id
19055
+ * @param {*} [options] Override http request option.
19056
+ * @throws {RequiredError}
19057
+ * @memberof EnvironmentApi
19058
+ */
19059
+ public getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig) {
19060
+ return EnvironmentApiFp(this.configuration).getEnvironmentVMQuota(id, options).then((request) => request(this.axios, this.basePath));
19061
+ }
19062
+
18924
19063
  /**
18925
19064
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
18926
19065
  * @summary List environments
@@ -25055,10 +25194,11 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
25055
25194
  * Check if a Virtual Machine name is available
25056
25195
  * @summary Fetch virtual machine name availability
25057
25196
  * @param {string} name
25197
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
25058
25198
  * @param {*} [options] Override http request option.
25059
25199
  * @throws {RequiredError}
25060
25200
  */
25061
- checkVMNameAvailability: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25201
+ checkVMNameAvailability: async (name: string, count?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25062
25202
  // verify required parameter 'name' is not null or undefined
25063
25203
  assertParamExists('checkVMNameAvailability', 'name', name)
25064
25204
  const localVarPath = `/core/virtual-machines/name-availability/{name}`
@@ -25077,6 +25217,10 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
25077
25217
  // authentication apiKey required
25078
25218
  await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
25079
25219
 
25220
+ if (count !== undefined) {
25221
+ localVarQueryParameter['count'] = count;
25222
+ }
25223
+
25080
25224
 
25081
25225
 
25082
25226
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -25847,11 +25991,12 @@ export const VirtualMachineApiFp = function(configuration?: Configuration) {
25847
25991
  * Check if a Virtual Machine name is available
25848
25992
  * @summary Fetch virtual machine name availability
25849
25993
  * @param {string} name
25994
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
25850
25995
  * @param {*} [options] Override http request option.
25851
25996
  * @throws {RequiredError}
25852
25997
  */
25853
- async checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>> {
25854
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkVMNameAvailability(name, options);
25998
+ async checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>> {
25999
+ const localVarAxiosArgs = await localVarAxiosParamCreator.checkVMNameAvailability(name, count, options);
25855
26000
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25856
26001
  const localVarOperationServerBasePath = operationServerMap['VirtualMachineApi.checkVMNameAvailability']?.[localVarOperationServerIndex]?.url;
25857
26002
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26129,11 +26274,12 @@ export const VirtualMachineApiFactory = function (configuration?: Configuration,
26129
26274
  * Check if a Virtual Machine name is available
26130
26275
  * @summary Fetch virtual machine name availability
26131
26276
  * @param {string} name
26277
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
26132
26278
  * @param {*} [options] Override http request option.
26133
26279
  * @throws {RequiredError}
26134
26280
  */
26135
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel> {
26136
- return localVarFp.checkVMNameAvailability(name, options).then((request) => request(axios, basePath));
26281
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel> {
26282
+ return localVarFp.checkVMNameAvailability(name, count, options).then((request) => request(axios, basePath));
26137
26283
  },
26138
26284
  /**
26139
26285
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
@@ -26361,12 +26507,13 @@ export class VirtualMachineApi extends BaseAPI {
26361
26507
  * Check if a Virtual Machine name is available
26362
26508
  * @summary Fetch virtual machine name availability
26363
26509
  * @param {string} name
26510
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
26364
26511
  * @param {*} [options] Override http request option.
26365
26512
  * @throws {RequiredError}
26366
26513
  * @memberof VirtualMachineApi
26367
26514
  */
26368
- public checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig) {
26369
- return VirtualMachineApiFp(this.configuration).checkVMNameAvailability(name, options).then((request) => request(this.axios, this.basePath));
26515
+ public checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig) {
26516
+ return VirtualMachineApiFp(this.configuration).checkVMNameAvailability(name, count, options).then((request) => request(this.axios, this.basePath));
26370
26517
  }
26371
26518
 
26372
26519
  /**
package/dist/api.d.ts CHANGED
@@ -9451,6 +9451,55 @@ export interface UsersInfoListResponse {
9451
9451
  */
9452
9452
  'users_info'?: UsersInfoFields;
9453
9453
  }
9454
+ /**
9455
+ *
9456
+ * @export
9457
+ * @interface VMQuota
9458
+ */
9459
+ export interface VMQuota {
9460
+ /**
9461
+ *
9462
+ * @type {number}
9463
+ * @memberof VMQuota
9464
+ */
9465
+ 'available_vms'?: number;
9466
+ /**
9467
+ *
9468
+ * @type {string}
9469
+ * @memberof VMQuota
9470
+ */
9471
+ 'cidr'?: string;
9472
+ /**
9473
+ *
9474
+ * @type {number}
9475
+ * @memberof VMQuota
9476
+ */
9477
+ 'current_vms'?: number;
9478
+ /**
9479
+ *
9480
+ * @type {number}
9481
+ * @memberof VMQuota
9482
+ */
9483
+ 'max_vms'?: number;
9484
+ /**
9485
+ *
9486
+ * @type {string}
9487
+ * @memberof VMQuota
9488
+ */
9489
+ 'message'?: string;
9490
+ /**
9491
+ *
9492
+ * @type {number}
9493
+ * @memberof VMQuota
9494
+ */
9495
+ 'percentage_used'?: number;
9496
+ /**
9497
+ *
9498
+ * @type {boolean}
9499
+ * @memberof VMQuota
9500
+ */
9501
+ 'status'?: boolean;
9502
+ }
9454
9503
  /**
9455
9504
  *
9456
9505
  * @export
@@ -9893,6 +9942,24 @@ export interface Voucher {
9893
9942
  * @memberof Voucher
9894
9943
  */
9895
9944
  'id': number;
9945
+ /**
9946
+ * Max redemption count for a General Voucher
9947
+ * @type {number}
9948
+ * @memberof Voucher
9949
+ */
9950
+ 'max_redemption_count'?: number;
9951
+ /**
9952
+ * Current redemption count for a General Voucher
9953
+ * @type {number}
9954
+ * @memberof Voucher
9955
+ */
9956
+ 'redemption_count'?: number;
9957
+ /**
9958
+ * Remaining redemptions
9959
+ * @type {number}
9960
+ * @memberof Voucher
9961
+ */
9962
+ 'remaining_redemptions'?: number;
9896
9963
  /**
9897
9964
  * Voucher status
9898
9965
  * @type {string}
@@ -13994,6 +14061,14 @@ export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configura
13994
14061
  * @throws {RequiredError}
13995
14062
  */
13996
14063
  getEnvironment: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14064
+ /**
14065
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14066
+ * @summary Get environment VM quota
14067
+ * @param {number} id
14068
+ * @param {*} [options] Override http request option.
14069
+ * @throws {RequiredError}
14070
+ */
14071
+ getEnvironmentVMQuota: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13997
14072
  /**
13998
14073
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
13999
14074
  * @summary List environments
@@ -14051,6 +14126,14 @@ export declare const EnvironmentApiFp: (configuration?: Configuration) => {
14051
14126
  * @throws {RequiredError}
14052
14127
  */
14053
14128
  getEnvironment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Environment>>;
14129
+ /**
14130
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14131
+ * @summary Get environment VM quota
14132
+ * @param {number} id
14133
+ * @param {*} [options] Override http request option.
14134
+ * @throws {RequiredError}
14135
+ */
14136
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VMQuota>>;
14054
14137
  /**
14055
14138
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
14056
14139
  * @summary List environments
@@ -14108,6 +14191,14 @@ export declare const EnvironmentApiFactory: (configuration?: Configuration, base
14108
14191
  * @throws {RequiredError}
14109
14192
  */
14110
14193
  getEnvironment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Environment>;
14194
+ /**
14195
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14196
+ * @summary Get environment VM quota
14197
+ * @param {number} id
14198
+ * @param {*} [options] Override http request option.
14199
+ * @throws {RequiredError}
14200
+ */
14201
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): AxiosPromise<VMQuota>;
14111
14202
  /**
14112
14203
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
14113
14204
  * @summary List environments
@@ -14171,6 +14262,15 @@ export declare class EnvironmentApi extends BaseAPI {
14171
14262
  * @memberof EnvironmentApi
14172
14263
  */
14173
14264
  getEnvironment(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Environment, any, {}>>;
14265
+ /**
14266
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14267
+ * @summary Get environment VM quota
14268
+ * @param {number} id
14269
+ * @param {*} [options] Override http request option.
14270
+ * @throws {RequiredError}
14271
+ * @memberof EnvironmentApi
14272
+ */
14273
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VMQuota, any, {}>>;
14174
14274
  /**
14175
14275
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
14176
14276
  * @summary List environments
@@ -17167,10 +17267,11 @@ export declare const VirtualMachineApiAxiosParamCreator: (configuration?: Config
17167
17267
  * Check if a Virtual Machine name is available
17168
17268
  * @summary Fetch virtual machine name availability
17169
17269
  * @param {string} name
17270
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17170
17271
  * @param {*} [options] Override http request option.
17171
17272
  * @throws {RequiredError}
17172
17273
  */
17173
- checkVMNameAvailability: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17274
+ checkVMNameAvailability: (name: string, count?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17174
17275
  /**
17175
17276
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17176
17277
  * @summary Add firewall rule to virtual machine
@@ -17351,10 +17452,11 @@ export declare const VirtualMachineApiFp: (configuration?: Configuration) => {
17351
17452
  * Check if a Virtual Machine name is available
17352
17453
  * @summary Fetch virtual machine name availability
17353
17454
  * @param {string} name
17455
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17354
17456
  * @param {*} [options] Override http request option.
17355
17457
  * @throws {RequiredError}
17356
17458
  */
17357
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>>;
17459
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>>;
17358
17460
  /**
17359
17461
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17360
17462
  * @summary Add firewall rule to virtual machine
@@ -17535,10 +17637,11 @@ export declare const VirtualMachineApiFactory: (configuration?: Configuration, b
17535
17637
  * Check if a Virtual Machine name is available
17536
17638
  * @summary Fetch virtual machine name availability
17537
17639
  * @param {string} name
17640
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17538
17641
  * @param {*} [options] Override http request option.
17539
17642
  * @throws {RequiredError}
17540
17643
  */
17541
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel>;
17644
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel>;
17542
17645
  /**
17543
17646
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17544
17647
  * @summary Add firewall rule to virtual machine
@@ -17723,11 +17826,12 @@ export declare class VirtualMachineApi extends BaseAPI {
17723
17826
  * Check if a Virtual Machine name is available
17724
17827
  * @summary Fetch virtual machine name availability
17725
17828
  * @param {string} name
17829
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17726
17830
  * @param {*} [options] Override http request option.
17727
17831
  * @throws {RequiredError}
17728
17832
  * @memberof VirtualMachineApi
17729
17833
  */
17730
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NameAvailableModel, any, {}>>;
17834
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NameAvailableModel, any, {}>>;
17731
17835
  /**
17732
17836
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17733
17837
  * @summary Add firewall rule to virtual machine
package/dist/api.js CHANGED
@@ -8183,6 +8183,37 @@ const EnvironmentApiAxiosParamCreator = function (configuration) {
8183
8183
  options: localVarRequestOptions,
8184
8184
  };
8185
8185
  }),
8186
+ /**
8187
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8188
+ * @summary Get environment VM quota
8189
+ * @param {number} id
8190
+ * @param {*} [options] Override http request option.
8191
+ * @throws {RequiredError}
8192
+ */
8193
+ getEnvironmentVMQuota: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8194
+ // verify required parameter 'id' is not null or undefined
8195
+ (0, common_1.assertParamExists)('getEnvironmentVMQuota', 'id', id);
8196
+ const localVarPath = `/core/environments/{id}/vm-quota`
8197
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8199
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8200
+ let baseOptions;
8201
+ if (configuration) {
8202
+ baseOptions = configuration.baseOptions;
8203
+ }
8204
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8205
+ const localVarHeaderParameter = {};
8206
+ const localVarQueryParameter = {};
8207
+ // authentication apiKey required
8208
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
8209
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8210
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8211
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8212
+ return {
8213
+ url: (0, common_1.toPathString)(localVarUrlObj),
8214
+ options: localVarRequestOptions,
8215
+ };
8216
+ }),
8186
8217
  /**
8187
8218
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8188
8219
  * @summary List environments
@@ -8332,6 +8363,22 @@ const EnvironmentApiFp = function (configuration) {
8332
8363
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8333
8364
  });
8334
8365
  },
8366
+ /**
8367
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8368
+ * @summary Get environment VM quota
8369
+ * @param {number} id
8370
+ * @param {*} [options] Override http request option.
8371
+ * @throws {RequiredError}
8372
+ */
8373
+ getEnvironmentVMQuota(id, options) {
8374
+ return __awaiter(this, void 0, void 0, function* () {
8375
+ var _a, _b, _c;
8376
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentVMQuota(id, options);
8377
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8378
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvironmentApi.getEnvironmentVMQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8379
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8380
+ });
8381
+ },
8335
8382
  /**
8336
8383
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8337
8384
  * @summary List environments
@@ -8417,6 +8464,16 @@ const EnvironmentApiFactory = function (configuration, basePath, axios) {
8417
8464
  getEnvironment(id, options) {
8418
8465
  return localVarFp.getEnvironment(id, options).then((request) => request(axios, basePath));
8419
8466
  },
8467
+ /**
8468
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8469
+ * @summary Get environment VM quota
8470
+ * @param {number} id
8471
+ * @param {*} [options] Override http request option.
8472
+ * @throws {RequiredError}
8473
+ */
8474
+ getEnvironmentVMQuota(id, options) {
8475
+ return localVarFp.getEnvironmentVMQuota(id, options).then((request) => request(axios, basePath));
8476
+ },
8420
8477
  /**
8421
8478
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8422
8479
  * @summary List environments
@@ -8494,6 +8551,17 @@ class EnvironmentApi extends base_1.BaseAPI {
8494
8551
  getEnvironment(id, options) {
8495
8552
  return (0, exports.EnvironmentApiFp)(this.configuration).getEnvironment(id, options).then((request) => request(this.axios, this.basePath));
8496
8553
  }
8554
+ /**
8555
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8556
+ * @summary Get environment VM quota
8557
+ * @param {number} id
8558
+ * @param {*} [options] Override http request option.
8559
+ * @throws {RequiredError}
8560
+ * @memberof EnvironmentApi
8561
+ */
8562
+ getEnvironmentVMQuota(id, options) {
8563
+ return (0, exports.EnvironmentApiFp)(this.configuration).getEnvironmentVMQuota(id, options).then((request) => request(this.axios, this.basePath));
8564
+ }
8497
8565
  /**
8498
8566
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8499
8567
  * @summary List environments
@@ -14274,10 +14342,11 @@ const VirtualMachineApiAxiosParamCreator = function (configuration) {
14274
14342
  * Check if a Virtual Machine name is available
14275
14343
  * @summary Fetch virtual machine name availability
14276
14344
  * @param {string} name
14345
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
14277
14346
  * @param {*} [options] Override http request option.
14278
14347
  * @throws {RequiredError}
14279
14348
  */
14280
- checkVMNameAvailability: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) {
14349
+ checkVMNameAvailability: (name_1, count_1, ...args_1) => __awaiter(this, [name_1, count_1, ...args_1], void 0, function* (name, count, options = {}) {
14281
14350
  // verify required parameter 'name' is not null or undefined
14282
14351
  (0, common_1.assertParamExists)('checkVMNameAvailability', 'name', name);
14283
14352
  const localVarPath = `/core/virtual-machines/name-availability/{name}`
@@ -14293,6 +14362,9 @@ const VirtualMachineApiAxiosParamCreator = function (configuration) {
14293
14362
  const localVarQueryParameter = {};
14294
14363
  // authentication apiKey required
14295
14364
  yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api_key", configuration);
14365
+ if (count !== undefined) {
14366
+ localVarQueryParameter['count'] = count;
14367
+ }
14296
14368
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14297
14369
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14298
14370
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -14947,13 +15019,14 @@ const VirtualMachineApiFp = function (configuration) {
14947
15019
  * Check if a Virtual Machine name is available
14948
15020
  * @summary Fetch virtual machine name availability
14949
15021
  * @param {string} name
15022
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
14950
15023
  * @param {*} [options] Override http request option.
14951
15024
  * @throws {RequiredError}
14952
15025
  */
14953
- checkVMNameAvailability(name, options) {
15026
+ checkVMNameAvailability(name, count, options) {
14954
15027
  return __awaiter(this, void 0, void 0, function* () {
14955
15028
  var _a, _b, _c;
14956
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkVMNameAvailability(name, options);
15029
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkVMNameAvailability(name, count, options);
14957
15030
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14958
15031
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VirtualMachineApi.checkVMNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14959
15032
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15283,11 +15356,12 @@ const VirtualMachineApiFactory = function (configuration, basePath, axios) {
15283
15356
  * Check if a Virtual Machine name is available
15284
15357
  * @summary Fetch virtual machine name availability
15285
15358
  * @param {string} name
15359
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
15286
15360
  * @param {*} [options] Override http request option.
15287
15361
  * @throws {RequiredError}
15288
15362
  */
15289
- checkVMNameAvailability(name, options) {
15290
- return localVarFp.checkVMNameAvailability(name, options).then((request) => request(axios, basePath));
15363
+ checkVMNameAvailability(name, count, options) {
15364
+ return localVarFp.checkVMNameAvailability(name, count, options).then((request) => request(axios, basePath));
15291
15365
  },
15292
15366
  /**
15293
15367
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
@@ -15513,12 +15587,13 @@ class VirtualMachineApi extends base_1.BaseAPI {
15513
15587
  * Check if a Virtual Machine name is available
15514
15588
  * @summary Fetch virtual machine name availability
15515
15589
  * @param {string} name
15590
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
15516
15591
  * @param {*} [options] Override http request option.
15517
15592
  * @throws {RequiredError}
15518
15593
  * @memberof VirtualMachineApi
15519
15594
  */
15520
- checkVMNameAvailability(name, options) {
15521
- return (0, exports.VirtualMachineApiFp)(this.configuration).checkVMNameAvailability(name, options).then((request) => request(this.axios, this.basePath));
15595
+ checkVMNameAvailability(name, count, options) {
15596
+ return (0, exports.VirtualMachineApiFp)(this.configuration).checkVMNameAvailability(name, count, options).then((request) => request(this.axios, this.basePath));
15522
15597
  }
15523
15598
  /**
15524
15599
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
package/dist/esm/api.d.ts CHANGED
@@ -9451,6 +9451,55 @@ export interface UsersInfoListResponse {
9451
9451
  */
9452
9452
  'users_info'?: UsersInfoFields;
9453
9453
  }
9454
+ /**
9455
+ *
9456
+ * @export
9457
+ * @interface VMQuota
9458
+ */
9459
+ export interface VMQuota {
9460
+ /**
9461
+ *
9462
+ * @type {number}
9463
+ * @memberof VMQuota
9464
+ */
9465
+ 'available_vms'?: number;
9466
+ /**
9467
+ *
9468
+ * @type {string}
9469
+ * @memberof VMQuota
9470
+ */
9471
+ 'cidr'?: string;
9472
+ /**
9473
+ *
9474
+ * @type {number}
9475
+ * @memberof VMQuota
9476
+ */
9477
+ 'current_vms'?: number;
9478
+ /**
9479
+ *
9480
+ * @type {number}
9481
+ * @memberof VMQuota
9482
+ */
9483
+ 'max_vms'?: number;
9484
+ /**
9485
+ *
9486
+ * @type {string}
9487
+ * @memberof VMQuota
9488
+ */
9489
+ 'message'?: string;
9490
+ /**
9491
+ *
9492
+ * @type {number}
9493
+ * @memberof VMQuota
9494
+ */
9495
+ 'percentage_used'?: number;
9496
+ /**
9497
+ *
9498
+ * @type {boolean}
9499
+ * @memberof VMQuota
9500
+ */
9501
+ 'status'?: boolean;
9502
+ }
9454
9503
  /**
9455
9504
  *
9456
9505
  * @export
@@ -9893,6 +9942,24 @@ export interface Voucher {
9893
9942
  * @memberof Voucher
9894
9943
  */
9895
9944
  'id': number;
9945
+ /**
9946
+ * Max redemption count for a General Voucher
9947
+ * @type {number}
9948
+ * @memberof Voucher
9949
+ */
9950
+ 'max_redemption_count'?: number;
9951
+ /**
9952
+ * Current redemption count for a General Voucher
9953
+ * @type {number}
9954
+ * @memberof Voucher
9955
+ */
9956
+ 'redemption_count'?: number;
9957
+ /**
9958
+ * Remaining redemptions
9959
+ * @type {number}
9960
+ * @memberof Voucher
9961
+ */
9962
+ 'remaining_redemptions'?: number;
9896
9963
  /**
9897
9964
  * Voucher status
9898
9965
  * @type {string}
@@ -13994,6 +14061,14 @@ export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configura
13994
14061
  * @throws {RequiredError}
13995
14062
  */
13996
14063
  getEnvironment: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
14064
+ /**
14065
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14066
+ * @summary Get environment VM quota
14067
+ * @param {number} id
14068
+ * @param {*} [options] Override http request option.
14069
+ * @throws {RequiredError}
14070
+ */
14071
+ getEnvironmentVMQuota: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13997
14072
  /**
13998
14073
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
13999
14074
  * @summary List environments
@@ -14051,6 +14126,14 @@ export declare const EnvironmentApiFp: (configuration?: Configuration) => {
14051
14126
  * @throws {RequiredError}
14052
14127
  */
14053
14128
  getEnvironment(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Environment>>;
14129
+ /**
14130
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14131
+ * @summary Get environment VM quota
14132
+ * @param {number} id
14133
+ * @param {*} [options] Override http request option.
14134
+ * @throws {RequiredError}
14135
+ */
14136
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VMQuota>>;
14054
14137
  /**
14055
14138
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
14056
14139
  * @summary List environments
@@ -14108,6 +14191,14 @@ export declare const EnvironmentApiFactory: (configuration?: Configuration, base
14108
14191
  * @throws {RequiredError}
14109
14192
  */
14110
14193
  getEnvironment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Environment>;
14194
+ /**
14195
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14196
+ * @summary Get environment VM quota
14197
+ * @param {number} id
14198
+ * @param {*} [options] Override http request option.
14199
+ * @throws {RequiredError}
14200
+ */
14201
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): AxiosPromise<VMQuota>;
14111
14202
  /**
14112
14203
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
14113
14204
  * @summary List environments
@@ -14171,6 +14262,15 @@ export declare class EnvironmentApi extends BaseAPI {
14171
14262
  * @memberof EnvironmentApi
14172
14263
  */
14173
14264
  getEnvironment(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Environment, any, {}>>;
14265
+ /**
14266
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
14267
+ * @summary Get environment VM quota
14268
+ * @param {number} id
14269
+ * @param {*} [options] Override http request option.
14270
+ * @throws {RequiredError}
14271
+ * @memberof EnvironmentApi
14272
+ */
14273
+ getEnvironmentVMQuota(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VMQuota, any, {}>>;
14174
14274
  /**
14175
14275
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
14176
14276
  * @summary List environments
@@ -17167,10 +17267,11 @@ export declare const VirtualMachineApiAxiosParamCreator: (configuration?: Config
17167
17267
  * Check if a Virtual Machine name is available
17168
17268
  * @summary Fetch virtual machine name availability
17169
17269
  * @param {string} name
17270
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17170
17271
  * @param {*} [options] Override http request option.
17171
17272
  * @throws {RequiredError}
17172
17273
  */
17173
- checkVMNameAvailability: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17274
+ checkVMNameAvailability: (name: string, count?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17174
17275
  /**
17175
17276
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17176
17277
  * @summary Add firewall rule to virtual machine
@@ -17351,10 +17452,11 @@ export declare const VirtualMachineApiFp: (configuration?: Configuration) => {
17351
17452
  * Check if a Virtual Machine name is available
17352
17453
  * @summary Fetch virtual machine name availability
17353
17454
  * @param {string} name
17455
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17354
17456
  * @param {*} [options] Override http request option.
17355
17457
  * @throws {RequiredError}
17356
17458
  */
17357
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>>;
17459
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>>;
17358
17460
  /**
17359
17461
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17360
17462
  * @summary Add firewall rule to virtual machine
@@ -17535,10 +17637,11 @@ export declare const VirtualMachineApiFactory: (configuration?: Configuration, b
17535
17637
  * Check if a Virtual Machine name is available
17536
17638
  * @summary Fetch virtual machine name availability
17537
17639
  * @param {string} name
17640
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17538
17641
  * @param {*} [options] Override http request option.
17539
17642
  * @throws {RequiredError}
17540
17643
  */
17541
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel>;
17644
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel>;
17542
17645
  /**
17543
17646
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17544
17647
  * @summary Add firewall rule to virtual machine
@@ -17723,11 +17826,12 @@ export declare class VirtualMachineApi extends BaseAPI {
17723
17826
  * Check if a Virtual Machine name is available
17724
17827
  * @summary Fetch virtual machine name availability
17725
17828
  * @param {string} name
17829
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
17726
17830
  * @param {*} [options] Override http request option.
17727
17831
  * @throws {RequiredError}
17728
17832
  * @memberof VirtualMachineApi
17729
17833
  */
17730
- checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NameAvailableModel, any, {}>>;
17834
+ checkVMNameAvailability(name: string, count?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<NameAvailableModel, any, {}>>;
17731
17835
  /**
17732
17836
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
17733
17837
  * @summary Add firewall rule to virtual machine
package/dist/esm/api.js CHANGED
@@ -8108,6 +8108,37 @@ export const EnvironmentApiAxiosParamCreator = function (configuration) {
8108
8108
  options: localVarRequestOptions,
8109
8109
  };
8110
8110
  }),
8111
+ /**
8112
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8113
+ * @summary Get environment VM quota
8114
+ * @param {number} id
8115
+ * @param {*} [options] Override http request option.
8116
+ * @throws {RequiredError}
8117
+ */
8118
+ getEnvironmentVMQuota: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
8119
+ // verify required parameter 'id' is not null or undefined
8120
+ assertParamExists('getEnvironmentVMQuota', 'id', id);
8121
+ const localVarPath = `/core/environments/{id}/vm-quota`
8122
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
8123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8125
+ let baseOptions;
8126
+ if (configuration) {
8127
+ baseOptions = configuration.baseOptions;
8128
+ }
8129
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8130
+ const localVarHeaderParameter = {};
8131
+ const localVarQueryParameter = {};
8132
+ // authentication apiKey required
8133
+ yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
8134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8136
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8137
+ return {
8138
+ url: toPathString(localVarUrlObj),
8139
+ options: localVarRequestOptions,
8140
+ };
8141
+ }),
8111
8142
  /**
8112
8143
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8113
8144
  * @summary List environments
@@ -8256,6 +8287,22 @@ export const EnvironmentApiFp = function (configuration) {
8256
8287
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8257
8288
  });
8258
8289
  },
8290
+ /**
8291
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8292
+ * @summary Get environment VM quota
8293
+ * @param {number} id
8294
+ * @param {*} [options] Override http request option.
8295
+ * @throws {RequiredError}
8296
+ */
8297
+ getEnvironmentVMQuota(id, options) {
8298
+ return __awaiter(this, void 0, void 0, function* () {
8299
+ var _a, _b, _c;
8300
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentVMQuota(id, options);
8301
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8302
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnvironmentApi.getEnvironmentVMQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8303
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8304
+ });
8305
+ },
8259
8306
  /**
8260
8307
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8261
8308
  * @summary List environments
@@ -8340,6 +8387,16 @@ export const EnvironmentApiFactory = function (configuration, basePath, axios) {
8340
8387
  getEnvironment(id, options) {
8341
8388
  return localVarFp.getEnvironment(id, options).then((request) => request(axios, basePath));
8342
8389
  },
8390
+ /**
8391
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8392
+ * @summary Get environment VM quota
8393
+ * @param {number} id
8394
+ * @param {*} [options] Override http request option.
8395
+ * @throws {RequiredError}
8396
+ */
8397
+ getEnvironmentVMQuota(id, options) {
8398
+ return localVarFp.getEnvironmentVMQuota(id, options).then((request) => request(axios, basePath));
8399
+ },
8343
8400
  /**
8344
8401
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8345
8402
  * @summary List environments
@@ -8416,6 +8473,17 @@ export class EnvironmentApi extends BaseAPI {
8416
8473
  getEnvironment(id, options) {
8417
8474
  return EnvironmentApiFp(this.configuration).getEnvironment(id, options).then((request) => request(this.axios, this.basePath));
8418
8475
  }
8476
+ /**
8477
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
8478
+ * @summary Get environment VM quota
8479
+ * @param {number} id
8480
+ * @param {*} [options] Override http request option.
8481
+ * @throws {RequiredError}
8482
+ * @memberof EnvironmentApi
8483
+ */
8484
+ getEnvironmentVMQuota(id, options) {
8485
+ return EnvironmentApiFp(this.configuration).getEnvironmentVMQuota(id, options).then((request) => request(this.axios, this.basePath));
8486
+ }
8419
8487
  /**
8420
8488
  * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
8421
8489
  * @summary List environments
@@ -14083,10 +14151,11 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration) {
14083
14151
  * Check if a Virtual Machine name is available
14084
14152
  * @summary Fetch virtual machine name availability
14085
14153
  * @param {string} name
14154
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
14086
14155
  * @param {*} [options] Override http request option.
14087
14156
  * @throws {RequiredError}
14088
14157
  */
14089
- checkVMNameAvailability: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) {
14158
+ checkVMNameAvailability: (name_1, count_1, ...args_1) => __awaiter(this, [name_1, count_1, ...args_1], void 0, function* (name, count, options = {}) {
14090
14159
  // verify required parameter 'name' is not null or undefined
14091
14160
  assertParamExists('checkVMNameAvailability', 'name', name);
14092
14161
  const localVarPath = `/core/virtual-machines/name-availability/{name}`
@@ -14102,6 +14171,9 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration) {
14102
14171
  const localVarQueryParameter = {};
14103
14172
  // authentication apiKey required
14104
14173
  yield setApiKeyToObject(localVarHeaderParameter, "api_key", configuration);
14174
+ if (count !== undefined) {
14175
+ localVarQueryParameter['count'] = count;
14176
+ }
14105
14177
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14106
14178
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14107
14179
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -14755,13 +14827,14 @@ export const VirtualMachineApiFp = function (configuration) {
14755
14827
  * Check if a Virtual Machine name is available
14756
14828
  * @summary Fetch virtual machine name availability
14757
14829
  * @param {string} name
14830
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
14758
14831
  * @param {*} [options] Override http request option.
14759
14832
  * @throws {RequiredError}
14760
14833
  */
14761
- checkVMNameAvailability(name, options) {
14834
+ checkVMNameAvailability(name, count, options) {
14762
14835
  return __awaiter(this, void 0, void 0, function* () {
14763
14836
  var _a, _b, _c;
14764
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkVMNameAvailability(name, options);
14837
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkVMNameAvailability(name, count, options);
14765
14838
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14766
14839
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VirtualMachineApi.checkVMNameAvailability']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14767
14840
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15090,11 +15163,12 @@ export const VirtualMachineApiFactory = function (configuration, basePath, axios
15090
15163
  * Check if a Virtual Machine name is available
15091
15164
  * @summary Fetch virtual machine name availability
15092
15165
  * @param {string} name
15166
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
15093
15167
  * @param {*} [options] Override http request option.
15094
15168
  * @throws {RequiredError}
15095
15169
  */
15096
- checkVMNameAvailability(name, options) {
15097
- return localVarFp.checkVMNameAvailability(name, options).then((request) => request(axios, basePath));
15170
+ checkVMNameAvailability(name, count, options) {
15171
+ return localVarFp.checkVMNameAvailability(name, count, options).then((request) => request(axios, basePath));
15098
15172
  },
15099
15173
  /**
15100
15174
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
@@ -15319,12 +15393,13 @@ export class VirtualMachineApi extends BaseAPI {
15319
15393
  * Check if a Virtual Machine name is available
15320
15394
  * @summary Fetch virtual machine name availability
15321
15395
  * @param {string} name
15396
+ * @param {string} [count] Nr of instances to handle (optional, default: 1)
15322
15397
  * @param {*} [options] Override http request option.
15323
15398
  * @throws {RequiredError}
15324
15399
  * @memberof VirtualMachineApi
15325
15400
  */
15326
- checkVMNameAvailability(name, options) {
15327
- return VirtualMachineApiFp(this.configuration).checkVMNameAvailability(name, options).then((request) => request(this.axios, this.basePath));
15401
+ checkVMNameAvailability(name, count, options) {
15402
+ return VirtualMachineApiFp(this.configuration).checkVMNameAvailability(name, count, options).then((request) => request(this.axios, this.basePath));
15328
15403
  }
15329
15404
  /**
15330
15405
  * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexgencloud/hyperstack-sdk-typescript",
3
- "version": "v1.49.0-alpha",
3
+ "version": "v1.50.0-alpha",
4
4
  "description": "Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {