@nexgencloud/hyperstack-sdk-typescript 1.47.0-alpha → 1.49.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.47.0-alpha
1
+ ## @nexgencloud/hyperstack-sdk-typescript@v1.49.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.47.0-alpha --save
39
+ npm install @nexgencloud/hyperstack-sdk-typescript@v1.49.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}
@@ -25485,10 +25553,11 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
25485
25553
  * @param {string} [search]
25486
25554
  * @param {string} [environment]
25487
25555
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
25556
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
25488
25557
  * @param {*} [options] Override http request option.
25489
25558
  * @throws {RequiredError}
25490
25559
  */
25491
- listVMs: async (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25560
+ listVMs: async (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25492
25561
  const localVarPath = `/core/virtual-machines`;
25493
25562
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
25494
25563
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -25524,6 +25593,10 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
25524
25593
  localVarQueryParameter['exclude_firewalls'] = excludeFirewalls;
25525
25594
  }
25526
25595
 
25596
+ if (exactEnvironmentMatch !== undefined) {
25597
+ localVarQueryParameter['exact_environment_match'] = exactEnvironmentMatch;
25598
+ }
25599
+
25527
25600
 
25528
25601
 
25529
25602
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -25943,11 +26016,12 @@ export const VirtualMachineApiFp = function(configuration?: Configuration) {
25943
26016
  * @param {string} [search]
25944
26017
  * @param {string} [environment]
25945
26018
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
26019
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
25946
26020
  * @param {*} [options] Override http request option.
25947
26021
  * @throws {RequiredError}
25948
26022
  */
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);
26023
+ async listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>> {
26024
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options);
25951
26025
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
25952
26026
  const localVarOperationServerBasePath = operationServerMap['VirtualMachineApi.listVMs']?.[localVarOperationServerIndex]?.url;
25953
26027
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -26188,11 +26262,12 @@ export const VirtualMachineApiFactory = function (configuration?: Configuration,
26188
26262
  * @param {string} [search]
26189
26263
  * @param {string} [environment]
26190
26264
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
26265
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
26191
26266
  * @param {*} [options] Override http request option.
26192
26267
  * @throws {RequiredError}
26193
26268
  */
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));
26269
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Instances> {
26270
+ return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(axios, basePath));
26196
26271
  },
26197
26272
  /**
26198
26273
  * Request console logs for a virtual machine
@@ -26443,12 +26518,13 @@ export class VirtualMachineApi extends BaseAPI {
26443
26518
  * @param {string} [search]
26444
26519
  * @param {string} [environment]
26445
26520
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
26521
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
26446
26522
  * @param {*} [options] Override http request option.
26447
26523
  * @throws {RequiredError}
26448
26524
  * @memberof VirtualMachineApi
26449
26525
  */
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));
26526
+ public listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig) {
26527
+ return VirtualMachineApiFp(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(this.axios, this.basePath));
26452
26528
  }
26453
26529
 
26454
26530
  /**
package/dist/api.d.ts CHANGED
@@ -1556,6 +1556,43 @@ export interface CommonResponseModel {
1556
1556
  */
1557
1557
  'status'?: boolean;
1558
1558
  }
1559
+ /**
1560
+ *
1561
+ * @export
1562
+ * @interface CompatibleFlavor
1563
+ */
1564
+ export interface CompatibleFlavor {
1565
+ /**
1566
+ * JSON constraints object
1567
+ * @type {object}
1568
+ * @memberof CompatibleFlavor
1569
+ */
1570
+ 'constraints'?: object;
1571
+ /**
1572
+ *
1573
+ * @type {number}
1574
+ * @memberof CompatibleFlavor
1575
+ */
1576
+ 'flavor_id'?: number;
1577
+ /**
1578
+ *
1579
+ * @type {string}
1580
+ * @memberof CompatibleFlavor
1581
+ */
1582
+ 'flavor_name'?: string;
1583
+ /**
1584
+ * Either \'hard\' or \'soft\'
1585
+ * @type {string}
1586
+ * @memberof CompatibleFlavor
1587
+ */
1588
+ 'link_type'?: string;
1589
+ /**
1590
+ *
1591
+ * @type {string}
1592
+ * @memberof CompatibleFlavor
1593
+ */
1594
+ 'reason'?: string;
1595
+ }
1559
1596
  /**
1560
1597
  *
1561
1598
  * @export
@@ -3687,6 +3724,31 @@ export interface FlavorObjectFields {
3687
3724
  */
3688
3725
  'ram'?: number;
3689
3726
  }
3727
+ /**
3728
+ *
3729
+ * @export
3730
+ * @interface FlavorRestrictions
3731
+ */
3732
+ export interface FlavorRestrictions {
3733
+ /**
3734
+ * List of compatible flavors with their link metadata
3735
+ * @type {Array<CompatibleFlavor>}
3736
+ * @memberof FlavorRestrictions
3737
+ */
3738
+ 'compatible_flavors'?: Array<CompatibleFlavor>;
3739
+ /**
3740
+ * Whether the image has any flavor restrictions
3741
+ * @type {boolean}
3742
+ * @memberof FlavorRestrictions
3743
+ */
3744
+ 'has_flavor_restrictions'?: boolean;
3745
+ /**
3746
+ * Either \'hard\', \'soft\', or null if no restrictions
3747
+ * @type {string}
3748
+ * @memberof FlavorRestrictions
3749
+ */
3750
+ 'restriction_type'?: string;
3751
+ }
3690
3752
  /**
3691
3753
  *
3692
3754
  * @export
@@ -4137,6 +4199,12 @@ export interface ImageFields {
4137
4199
  * @memberof ImageFields
4138
4200
  */
4139
4201
  'display_size'?: string;
4202
+ /**
4203
+ * Flavor compatibility restrictions for this image
4204
+ * @type {FlavorRestrictions}
4205
+ * @memberof ImageFields
4206
+ */
4207
+ 'flavor_restrictions'?: FlavorRestrictions;
4140
4208
  /**
4141
4209
  *
4142
4210
  * @type {number}
@@ -17208,10 +17276,11 @@ export declare const VirtualMachineApiAxiosParamCreator: (configuration?: Config
17208
17276
  * @param {string} [search]
17209
17277
  * @param {string} [environment]
17210
17278
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17279
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17211
17280
  * @param {*} [options] Override http request option.
17212
17281
  * @throws {RequiredError}
17213
17282
  */
17214
- listVMs: (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17283
+ listVMs: (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17215
17284
  /**
17216
17285
  * Request console logs for a virtual machine
17217
17286
  * @summary Request virtual machine logs
@@ -17391,10 +17460,11 @@ export declare const VirtualMachineApiFp: (configuration?: Configuration) => {
17391
17460
  * @param {string} [search]
17392
17461
  * @param {string} [environment]
17393
17462
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17463
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17394
17464
  * @param {*} [options] Override http request option.
17395
17465
  * @throws {RequiredError}
17396
17466
  */
17397
- listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>>;
17467
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>>;
17398
17468
  /**
17399
17469
  * Request console logs for a virtual machine
17400
17470
  * @summary Request virtual machine logs
@@ -17574,10 +17644,11 @@ export declare const VirtualMachineApiFactory: (configuration?: Configuration, b
17574
17644
  * @param {string} [search]
17575
17645
  * @param {string} [environment]
17576
17646
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17647
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17577
17648
  * @param {*} [options] Override http request option.
17578
17649
  * @throws {RequiredError}
17579
17650
  */
17580
- listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): AxiosPromise<Instances>;
17651
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Instances>;
17581
17652
  /**
17582
17653
  * Request console logs for a virtual machine
17583
17654
  * @summary Request virtual machine logs
@@ -17773,11 +17844,12 @@ export declare class VirtualMachineApi extends BaseAPI {
17773
17844
  * @param {string} [search]
17774
17845
  * @param {string} [environment]
17775
17846
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17847
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17776
17848
  * @param {*} [options] Override http request option.
17777
17849
  * @throws {RequiredError}
17778
17850
  * @memberof VirtualMachineApi
17779
17851
  */
17780
- listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Instances, any, {}>>;
17852
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Instances, any, {}>>;
17781
17853
  /**
17782
17854
  * Request console logs for a virtual machine
17783
17855
  * @summary Request virtual machine logs
package/dist/api.js CHANGED
@@ -14691,10 +14691,11 @@ const VirtualMachineApiAxiosParamCreator = function (configuration) {
14691
14691
  * @param {string} [search]
14692
14692
  * @param {string} [environment]
14693
14693
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
14694
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
14694
14695
  * @param {*} [options] Override http request option.
14695
14696
  * @throws {RequiredError}
14696
14697
  */
14697
- listVMs: (page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, ...args_1], void 0, function* (page, pageSize, search, environment, excludeFirewalls, options = {}) {
14698
+ listVMs: (page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, exactEnvironmentMatch_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, exactEnvironmentMatch_1, ...args_1], void 0, function* (page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options = {}) {
14698
14699
  const localVarPath = `/core/virtual-machines`;
14699
14700
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14700
14701
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -14722,6 +14723,9 @@ const VirtualMachineApiAxiosParamCreator = function (configuration) {
14722
14723
  if (excludeFirewalls) {
14723
14724
  localVarQueryParameter['exclude_firewalls'] = excludeFirewalls;
14724
14725
  }
14726
+ if (exactEnvironmentMatch !== undefined) {
14727
+ localVarQueryParameter['exact_environment_match'] = exactEnvironmentMatch;
14728
+ }
14725
14729
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
14726
14730
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14727
14731
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -15148,13 +15152,14 @@ const VirtualMachineApiFp = function (configuration) {
15148
15152
  * @param {string} [search]
15149
15153
  * @param {string} [environment]
15150
15154
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
15155
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
15151
15156
  * @param {*} [options] Override http request option.
15152
15157
  * @throws {RequiredError}
15153
15158
  */
15154
- listVMs(page, pageSize, search, environment, excludeFirewalls, options) {
15159
+ listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options) {
15155
15160
  return __awaiter(this, void 0, void 0, function* () {
15156
15161
  var _a, _b, _c;
15157
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, options);
15162
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options);
15158
15163
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15159
15164
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VirtualMachineApi.listVMs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15160
15165
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15411,11 +15416,12 @@ const VirtualMachineApiFactory = function (configuration, basePath, axios) {
15411
15416
  * @param {string} [search]
15412
15417
  * @param {string} [environment]
15413
15418
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
15419
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
15414
15420
  * @param {*} [options] Override http request option.
15415
15421
  * @throws {RequiredError}
15416
15422
  */
15417
- listVMs(page, pageSize, search, environment, excludeFirewalls, options) {
15418
- return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, options).then((request) => request(axios, basePath));
15423
+ listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options) {
15424
+ return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(axios, basePath));
15419
15425
  },
15420
15426
  /**
15421
15427
  * Request console logs for a virtual machine
@@ -15652,12 +15658,13 @@ class VirtualMachineApi extends base_1.BaseAPI {
15652
15658
  * @param {string} [search]
15653
15659
  * @param {string} [environment]
15654
15660
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
15661
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
15655
15662
  * @param {*} [options] Override http request option.
15656
15663
  * @throws {RequiredError}
15657
15664
  * @memberof VirtualMachineApi
15658
15665
  */
15659
- listVMs(page, pageSize, search, environment, excludeFirewalls, options) {
15660
- return (0, exports.VirtualMachineApiFp)(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, options).then((request) => request(this.axios, this.basePath));
15666
+ listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options) {
15667
+ return (0, exports.VirtualMachineApiFp)(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(this.axios, this.basePath));
15661
15668
  }
15662
15669
  /**
15663
15670
  * Request console logs for a virtual machine
package/dist/esm/api.d.ts CHANGED
@@ -1556,6 +1556,43 @@ export interface CommonResponseModel {
1556
1556
  */
1557
1557
  'status'?: boolean;
1558
1558
  }
1559
+ /**
1560
+ *
1561
+ * @export
1562
+ * @interface CompatibleFlavor
1563
+ */
1564
+ export interface CompatibleFlavor {
1565
+ /**
1566
+ * JSON constraints object
1567
+ * @type {object}
1568
+ * @memberof CompatibleFlavor
1569
+ */
1570
+ 'constraints'?: object;
1571
+ /**
1572
+ *
1573
+ * @type {number}
1574
+ * @memberof CompatibleFlavor
1575
+ */
1576
+ 'flavor_id'?: number;
1577
+ /**
1578
+ *
1579
+ * @type {string}
1580
+ * @memberof CompatibleFlavor
1581
+ */
1582
+ 'flavor_name'?: string;
1583
+ /**
1584
+ * Either \'hard\' or \'soft\'
1585
+ * @type {string}
1586
+ * @memberof CompatibleFlavor
1587
+ */
1588
+ 'link_type'?: string;
1589
+ /**
1590
+ *
1591
+ * @type {string}
1592
+ * @memberof CompatibleFlavor
1593
+ */
1594
+ 'reason'?: string;
1595
+ }
1559
1596
  /**
1560
1597
  *
1561
1598
  * @export
@@ -3687,6 +3724,31 @@ export interface FlavorObjectFields {
3687
3724
  */
3688
3725
  'ram'?: number;
3689
3726
  }
3727
+ /**
3728
+ *
3729
+ * @export
3730
+ * @interface FlavorRestrictions
3731
+ */
3732
+ export interface FlavorRestrictions {
3733
+ /**
3734
+ * List of compatible flavors with their link metadata
3735
+ * @type {Array<CompatibleFlavor>}
3736
+ * @memberof FlavorRestrictions
3737
+ */
3738
+ 'compatible_flavors'?: Array<CompatibleFlavor>;
3739
+ /**
3740
+ * Whether the image has any flavor restrictions
3741
+ * @type {boolean}
3742
+ * @memberof FlavorRestrictions
3743
+ */
3744
+ 'has_flavor_restrictions'?: boolean;
3745
+ /**
3746
+ * Either \'hard\', \'soft\', or null if no restrictions
3747
+ * @type {string}
3748
+ * @memberof FlavorRestrictions
3749
+ */
3750
+ 'restriction_type'?: string;
3751
+ }
3690
3752
  /**
3691
3753
  *
3692
3754
  * @export
@@ -4137,6 +4199,12 @@ export interface ImageFields {
4137
4199
  * @memberof ImageFields
4138
4200
  */
4139
4201
  'display_size'?: string;
4202
+ /**
4203
+ * Flavor compatibility restrictions for this image
4204
+ * @type {FlavorRestrictions}
4205
+ * @memberof ImageFields
4206
+ */
4207
+ 'flavor_restrictions'?: FlavorRestrictions;
4140
4208
  /**
4141
4209
  *
4142
4210
  * @type {number}
@@ -17208,10 +17276,11 @@ export declare const VirtualMachineApiAxiosParamCreator: (configuration?: Config
17208
17276
  * @param {string} [search]
17209
17277
  * @param {string} [environment]
17210
17278
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17279
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17211
17280
  * @param {*} [options] Override http request option.
17212
17281
  * @throws {RequiredError}
17213
17282
  */
17214
- listVMs: (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17283
+ listVMs: (page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
17215
17284
  /**
17216
17285
  * Request console logs for a virtual machine
17217
17286
  * @summary Request virtual machine logs
@@ -17391,10 +17460,11 @@ export declare const VirtualMachineApiFp: (configuration?: Configuration) => {
17391
17460
  * @param {string} [search]
17392
17461
  * @param {string} [environment]
17393
17462
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17463
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17394
17464
  * @param {*} [options] Override http request option.
17395
17465
  * @throws {RequiredError}
17396
17466
  */
17397
- listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>>;
17467
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instances>>;
17398
17468
  /**
17399
17469
  * Request console logs for a virtual machine
17400
17470
  * @summary Request virtual machine logs
@@ -17574,10 +17644,11 @@ export declare const VirtualMachineApiFactory: (configuration?: Configuration, b
17574
17644
  * @param {string} [search]
17575
17645
  * @param {string} [environment]
17576
17646
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17647
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17577
17648
  * @param {*} [options] Override http request option.
17578
17649
  * @throws {RequiredError}
17579
17650
  */
17580
- listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): AxiosPromise<Instances>;
17651
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Instances>;
17581
17652
  /**
17582
17653
  * Request console logs for a virtual machine
17583
17654
  * @summary Request virtual machine logs
@@ -17773,11 +17844,12 @@ export declare class VirtualMachineApi extends BaseAPI {
17773
17844
  * @param {string} [search]
17774
17845
  * @param {string} [environment]
17775
17846
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
17847
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
17776
17848
  * @param {*} [options] Override http request option.
17777
17849
  * @throws {RequiredError}
17778
17850
  * @memberof VirtualMachineApi
17779
17851
  */
17780
- listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Instances, any, {}>>;
17852
+ listVMs(page?: number, pageSize?: number, search?: string, environment?: string, excludeFirewalls?: Array<number>, exactEnvironmentMatch?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Instances, any, {}>>;
17781
17853
  /**
17782
17854
  * Request console logs for a virtual machine
17783
17855
  * @summary Request virtual machine logs
package/dist/esm/api.js CHANGED
@@ -14500,10 +14500,11 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration) {
14500
14500
  * @param {string} [search]
14501
14501
  * @param {string} [environment]
14502
14502
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
14503
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
14503
14504
  * @param {*} [options] Override http request option.
14504
14505
  * @throws {RequiredError}
14505
14506
  */
14506
- listVMs: (page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, ...args_1], void 0, function* (page, pageSize, search, environment, excludeFirewalls, options = {}) {
14507
+ listVMs: (page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, exactEnvironmentMatch_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, search_1, environment_1, excludeFirewalls_1, exactEnvironmentMatch_1, ...args_1], void 0, function* (page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options = {}) {
14507
14508
  const localVarPath = `/core/virtual-machines`;
14508
14509
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
14509
14510
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14531,6 +14532,9 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration) {
14531
14532
  if (excludeFirewalls) {
14532
14533
  localVarQueryParameter['exclude_firewalls'] = excludeFirewalls;
14533
14534
  }
14535
+ if (exactEnvironmentMatch !== undefined) {
14536
+ localVarQueryParameter['exact_environment_match'] = exactEnvironmentMatch;
14537
+ }
14534
14538
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14535
14539
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14536
14540
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -14956,13 +14960,14 @@ export const VirtualMachineApiFp = function (configuration) {
14956
14960
  * @param {string} [search]
14957
14961
  * @param {string} [environment]
14958
14962
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
14963
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
14959
14964
  * @param {*} [options] Override http request option.
14960
14965
  * @throws {RequiredError}
14961
14966
  */
14962
- listVMs(page, pageSize, search, environment, excludeFirewalls, options) {
14967
+ listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options) {
14963
14968
  return __awaiter(this, void 0, void 0, function* () {
14964
14969
  var _a, _b, _c;
14965
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, options);
14970
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options);
14966
14971
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14967
14972
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VirtualMachineApi.listVMs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14968
14973
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15218,11 +15223,12 @@ export const VirtualMachineApiFactory = function (configuration, basePath, axios
15218
15223
  * @param {string} [search]
15219
15224
  * @param {string} [environment]
15220
15225
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
15226
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
15221
15227
  * @param {*} [options] Override http request option.
15222
15228
  * @throws {RequiredError}
15223
15229
  */
15224
- listVMs(page, pageSize, search, environment, excludeFirewalls, options) {
15225
- return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, options).then((request) => request(axios, basePath));
15230
+ listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options) {
15231
+ return localVarFp.listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(axios, basePath));
15226
15232
  },
15227
15233
  /**
15228
15234
  * Request console logs for a virtual machine
@@ -15458,12 +15464,13 @@ export class VirtualMachineApi extends BaseAPI {
15458
15464
  * @param {string} [search]
15459
15465
  * @param {string} [environment]
15460
15466
  * @param {Array<number>} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
15467
+ * @param {boolean} [exactEnvironmentMatch] Flag to filter environment by exact match instead of partial match
15461
15468
  * @param {*} [options] Override http request option.
15462
15469
  * @throws {RequiredError}
15463
15470
  * @memberof VirtualMachineApi
15464
15471
  */
15465
- listVMs(page, pageSize, search, environment, excludeFirewalls, options) {
15466
- return VirtualMachineApiFp(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, options).then((request) => request(this.axios, this.basePath));
15472
+ listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options) {
15473
+ return VirtualMachineApiFp(this.configuration).listVMs(page, pageSize, search, environment, excludeFirewalls, exactEnvironmentMatch, options).then((request) => request(this.axios, this.basePath));
15467
15474
  }
15468
15475
  /**
15469
15476
  * Request console logs for a virtual machine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexgencloud/hyperstack-sdk-typescript",
3
- "version": "v1.47.0-alpha",
3
+ "version": "v1.49.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": {