@nexgencloud/hyperstack-sdk-typescript 1.48.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 +2 -2
- package/api.ts +237 -14
- package/dist/api.d.ts +184 -8
- package/dist/api.js +96 -14
- package/dist/esm/api.d.ts +184 -8
- package/dist/esm/api.js +96 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @nexgencloud/hyperstack-sdk-typescript@v1.
|
|
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.
|
|
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
|
@@ -1572,6 +1572,43 @@ export interface CommonResponseModel {
|
|
|
1572
1572
|
*/
|
|
1573
1573
|
'status'?: boolean;
|
|
1574
1574
|
}
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @export
|
|
1578
|
+
* @interface CompatibleFlavor
|
|
1579
|
+
*/
|
|
1580
|
+
export interface CompatibleFlavor {
|
|
1581
|
+
/**
|
|
1582
|
+
* JSON constraints object
|
|
1583
|
+
* @type {object}
|
|
1584
|
+
* @memberof CompatibleFlavor
|
|
1585
|
+
*/
|
|
1586
|
+
'constraints'?: object;
|
|
1587
|
+
/**
|
|
1588
|
+
*
|
|
1589
|
+
* @type {number}
|
|
1590
|
+
* @memberof CompatibleFlavor
|
|
1591
|
+
*/
|
|
1592
|
+
'flavor_id'?: number;
|
|
1593
|
+
/**
|
|
1594
|
+
*
|
|
1595
|
+
* @type {string}
|
|
1596
|
+
* @memberof CompatibleFlavor
|
|
1597
|
+
*/
|
|
1598
|
+
'flavor_name'?: string;
|
|
1599
|
+
/**
|
|
1600
|
+
* Either \'hard\' or \'soft\'
|
|
1601
|
+
* @type {string}
|
|
1602
|
+
* @memberof CompatibleFlavor
|
|
1603
|
+
*/
|
|
1604
|
+
'link_type'?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
*
|
|
1607
|
+
* @type {string}
|
|
1608
|
+
* @memberof CompatibleFlavor
|
|
1609
|
+
*/
|
|
1610
|
+
'reason'?: string;
|
|
1611
|
+
}
|
|
1575
1612
|
/**
|
|
1576
1613
|
*
|
|
1577
1614
|
* @export
|
|
@@ -3719,6 +3756,31 @@ export interface FlavorObjectFields {
|
|
|
3719
3756
|
*/
|
|
3720
3757
|
'ram'?: number;
|
|
3721
3758
|
}
|
|
3759
|
+
/**
|
|
3760
|
+
*
|
|
3761
|
+
* @export
|
|
3762
|
+
* @interface FlavorRestrictions
|
|
3763
|
+
*/
|
|
3764
|
+
export interface FlavorRestrictions {
|
|
3765
|
+
/**
|
|
3766
|
+
* List of compatible flavors with their link metadata
|
|
3767
|
+
* @type {Array<CompatibleFlavor>}
|
|
3768
|
+
* @memberof FlavorRestrictions
|
|
3769
|
+
*/
|
|
3770
|
+
'compatible_flavors'?: Array<CompatibleFlavor>;
|
|
3771
|
+
/**
|
|
3772
|
+
* Whether the image has any flavor restrictions
|
|
3773
|
+
* @type {boolean}
|
|
3774
|
+
* @memberof FlavorRestrictions
|
|
3775
|
+
*/
|
|
3776
|
+
'has_flavor_restrictions'?: boolean;
|
|
3777
|
+
/**
|
|
3778
|
+
* Either \'hard\', \'soft\', or null if no restrictions
|
|
3779
|
+
* @type {string}
|
|
3780
|
+
* @memberof FlavorRestrictions
|
|
3781
|
+
*/
|
|
3782
|
+
'restriction_type'?: string;
|
|
3783
|
+
}
|
|
3722
3784
|
/**
|
|
3723
3785
|
*
|
|
3724
3786
|
* @export
|
|
@@ -4169,6 +4231,12 @@ export interface ImageFields {
|
|
|
4169
4231
|
* @memberof ImageFields
|
|
4170
4232
|
*/
|
|
4171
4233
|
'display_size'?: string;
|
|
4234
|
+
/**
|
|
4235
|
+
* Flavor compatibility restrictions for this image
|
|
4236
|
+
* @type {FlavorRestrictions}
|
|
4237
|
+
* @memberof ImageFields
|
|
4238
|
+
*/
|
|
4239
|
+
'flavor_restrictions'?: FlavorRestrictions;
|
|
4172
4240
|
/**
|
|
4173
4241
|
*
|
|
4174
4242
|
* @type {number}
|
|
@@ -9431,6 +9499,55 @@ export interface UsersInfoListResponse {
|
|
|
9431
9499
|
*/
|
|
9432
9500
|
'users_info'?: UsersInfoFields;
|
|
9433
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
|
+
}
|
|
9434
9551
|
/**
|
|
9435
9552
|
*
|
|
9436
9553
|
* @export
|
|
@@ -9873,6 +9990,24 @@ export interface Voucher {
|
|
|
9873
9990
|
* @memberof Voucher
|
|
9874
9991
|
*/
|
|
9875
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;
|
|
9876
10011
|
/**
|
|
9877
10012
|
* Voucher status
|
|
9878
10013
|
* @type {string}
|
|
@@ -18531,6 +18666,43 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
18531
18666
|
|
|
18532
18667
|
|
|
18533
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
|
+
|
|
18534
18706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18535
18707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18536
18708
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -18693,6 +18865,19 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
18693
18865
|
const localVarOperationServerBasePath = operationServerMap['EnvironmentApi.getEnvironment']?.[localVarOperationServerIndex]?.url;
|
|
18694
18866
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18695
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
|
+
},
|
|
18696
18881
|
/**
|
|
18697
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/).
|
|
18698
18883
|
* @summary List environments
|
|
@@ -18772,6 +18957,16 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
18772
18957
|
getEnvironment(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Environment> {
|
|
18773
18958
|
return localVarFp.getEnvironment(id, options).then((request) => request(axios, basePath));
|
|
18774
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
|
+
},
|
|
18775
18970
|
/**
|
|
18776
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/).
|
|
18777
18972
|
* @summary List environments
|
|
@@ -18853,6 +19048,18 @@ export class EnvironmentApi extends BaseAPI {
|
|
|
18853
19048
|
return EnvironmentApiFp(this.configuration).getEnvironment(id, options).then((request) => request(this.axios, this.basePath));
|
|
18854
19049
|
}
|
|
18855
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
|
+
|
|
18856
19063
|
/**
|
|
18857
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/).
|
|
18858
19065
|
* @summary List environments
|
|
@@ -24987,10 +25194,11 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
|
|
|
24987
25194
|
* Check if a Virtual Machine name is available
|
|
24988
25195
|
* @summary Fetch virtual machine name availability
|
|
24989
25196
|
* @param {string} name
|
|
25197
|
+
* @param {string} [count] Nr of instances to handle (optional, default: 1)
|
|
24990
25198
|
* @param {*} [options] Override http request option.
|
|
24991
25199
|
* @throws {RequiredError}
|
|
24992
25200
|
*/
|
|
24993
|
-
checkVMNameAvailability: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25201
|
+
checkVMNameAvailability: async (name: string, count?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24994
25202
|
// verify required parameter 'name' is not null or undefined
|
|
24995
25203
|
assertParamExists('checkVMNameAvailability', 'name', name)
|
|
24996
25204
|
const localVarPath = `/core/virtual-machines/name-availability/{name}`
|
|
@@ -25009,6 +25217,10 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25009
25217
|
// authentication apiKey required
|
|
25010
25218
|
await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
|
|
25011
25219
|
|
|
25220
|
+
if (count !== undefined) {
|
|
25221
|
+
localVarQueryParameter['count'] = count;
|
|
25222
|
+
}
|
|
25223
|
+
|
|
25012
25224
|
|
|
25013
25225
|
|
|
25014
25226
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -25485,10 +25697,11 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25485
25697
|
* @param {string} [search]
|
|
25486
25698
|
* @param {string} [environment]
|
|
25487
25699
|
* @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
|
|
25700
|
+
* @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
|
|
25488
25701
|
* @param {*} [options] Override http request option.
|
|
25489
25702
|
* @throws {RequiredError}
|
|
25490
25703
|
*/
|
|
25491
|
-
listVMs: async (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25704
|
+
listVMs: async (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25492
25705
|
const localVarPath = `/core/virtual-machines`;
|
|
25493
25706
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25494
25707
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25524,6 +25737,10 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
|
|
|
25524
25737
|
localVarQueryParameter['exclude_firewalls'] = excludeFirewalls;
|
|
25525
25738
|
}
|
|
25526
25739
|
|
|
25740
|
+
if (exactEnvironmentMatch !== undefined) {
|
|
25741
|
+
localVarQueryParameter['exact_environment_match'] = exactEnvironmentMatch;
|
|
25742
|
+
}
|
|
25743
|
+
|
|
25527
25744
|
|
|
25528
25745
|
|
|
25529
25746
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -25774,11 +25991,12 @@ export const VirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
25774
25991
|
* Check if a Virtual Machine name is available
|
|
25775
25992
|
* @summary Fetch virtual machine name availability
|
|
25776
25993
|
* @param {string} name
|
|
25994
|
+
* @param {string} [count] Nr of instances to handle (optional, default: 1)
|
|
25777
25995
|
* @param {*} [options] Override http request option.
|
|
25778
25996
|
* @throws {RequiredError}
|
|
25779
25997
|
*/
|
|
25780
|
-
async checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NameAvailableModel>> {
|
|
25781
|
-
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);
|
|
25782
26000
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25783
26001
|
const localVarOperationServerBasePath = operationServerMap['VirtualMachineApi.checkVMNameAvailability']?.[localVarOperationServerIndex]?.url;
|
|
25784
26002
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -25943,11 +26161,12 @@ export const VirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
25943
26161
|
* @param {string} [search]
|
|
25944
26162
|
* @param {string} [environment]
|
|
25945
26163
|
* @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
|
|
26164
|
+
* @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
|
|
25946
26165
|
* @param {*} [options] Override http request option.
|
|
25947
26166
|
* @throws {RequiredError}
|
|
25948
26167
|
*/
|
|
25949
|
-
async listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>> {
|
|
25950
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, options);
|
|
26168
|
+
async listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>> {
|
|
26169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options);
|
|
25951
26170
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25952
26171
|
const localVarOperationServerBasePath = operationServerMap['VirtualMachineApi.listVMs']?.[localVarOperationServerIndex]?.url;
|
|
25953
26172
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26055,11 +26274,12 @@ export const VirtualMachineApiFactory = function (configuration?: Configuration,
|
|
|
26055
26274
|
* Check if a Virtual Machine name is available
|
|
26056
26275
|
* @summary Fetch virtual machine name availability
|
|
26057
26276
|
* @param {string} name
|
|
26277
|
+
* @param {string} [count] Nr of instances to handle (optional, default: 1)
|
|
26058
26278
|
* @param {*} [options] Override http request option.
|
|
26059
26279
|
* @throws {RequiredError}
|
|
26060
26280
|
*/
|
|
26061
|
-
checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig): AxiosPromise<NameAvailableModel> {
|
|
26062
|
-
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));
|
|
26063
26283
|
},
|
|
26064
26284
|
/**
|
|
26065
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).
|
|
@@ -26188,11 +26408,12 @@ export const VirtualMachineApiFactory = function (configuration?: Configuration,
|
|
|
26188
26408
|
* @param {string} [search]
|
|
26189
26409
|
* @param {string} [environment]
|
|
26190
26410
|
* @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
|
|
26411
|
+
* @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
|
|
26191
26412
|
* @param {*} [options] Override http request option.
|
|
26192
26413
|
* @throws {RequiredError}
|
|
26193
26414
|
*/
|
|
26194
|
-
listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): AxiosPromise<Instances> {
|
|
26195
|
-
return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, options).then((request) => request(axios, basePath));
|
|
26415
|
+
listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Instances> {
|
|
26416
|
+
return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(axios, basePath));
|
|
26196
26417
|
},
|
|
26197
26418
|
/**
|
|
26198
26419
|
* Request console logs for a virtual machine
|
|
@@ -26286,12 +26507,13 @@ export class VirtualMachineApi extends BaseAPI {
|
|
|
26286
26507
|
* Check if a Virtual Machine name is available
|
|
26287
26508
|
* @summary Fetch virtual machine name availability
|
|
26288
26509
|
* @param {string} name
|
|
26510
|
+
* @param {string} [count] Nr of instances to handle (optional, default: 1)
|
|
26289
26511
|
* @param {*} [options] Override http request option.
|
|
26290
26512
|
* @throws {RequiredError}
|
|
26291
26513
|
* @memberof VirtualMachineApi
|
|
26292
26514
|
*/
|
|
26293
|
-
public checkVMNameAvailability(name: string, options?: RawAxiosRequestConfig) {
|
|
26294
|
-
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));
|
|
26295
26517
|
}
|
|
26296
26518
|
|
|
26297
26519
|
/**
|
|
@@ -26443,12 +26665,13 @@ export class VirtualMachineApi extends BaseAPI {
|
|
|
26443
26665
|
* @param {string} [search]
|
|
26444
26666
|
* @param {string} [environment]
|
|
26445
26667
|
* @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
|
|
26668
|
+
* @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
|
|
26446
26669
|
* @param {*} [options] Override http request option.
|
|
26447
26670
|
* @throws {RequiredError}
|
|
26448
26671
|
* @memberof VirtualMachineApi
|
|
26449
26672
|
*/
|
|
26450
|
-
public listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig) {
|
|
26451
|
-
return VirtualMachineApiFp(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, options).then((request) => request(this.axios, this.basePath));
|
|
26673
|
+
public listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig) {
|
|
26674
|
+
return VirtualMachineApiFp(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(this.axios, this.basePath));
|
|
26452
26675
|
}
|
|
26453
26676
|
|
|
26454
26677
|
/**
|