@nexgencloud/hyperstack-sdk-typescript 1.54.7-alpha → 1.55.4-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.54.7-alpha
1
+ ## @nexgencloud/hyperstack-sdk-typescript@v1.55.4-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.54.7-alpha --save
39
+ npm install @nexgencloud/hyperstack-sdk-typescript@v1.55.4-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -1783,6 +1783,43 @@ export interface CompatibleFlavor {
1783
1783
  */
1784
1784
  'reason'?: string;
1785
1785
  }
1786
+ /**
1787
+ *
1788
+ * @export
1789
+ * @interface CompatibleImage
1790
+ */
1791
+ export interface CompatibleImage {
1792
+ /**
1793
+ * JSON constraints object
1794
+ * @type {object}
1795
+ * @memberof CompatibleImage
1796
+ */
1797
+ 'constraints'?: object;
1798
+ /**
1799
+ *
1800
+ * @type {number}
1801
+ * @memberof CompatibleImage
1802
+ */
1803
+ 'image_id'?: number;
1804
+ /**
1805
+ *
1806
+ * @type {string}
1807
+ * @memberof CompatibleImage
1808
+ */
1809
+ 'image_name'?: string;
1810
+ /**
1811
+ * Either \'hard\' or \'soft\'
1812
+ * @type {string}
1813
+ * @memberof CompatibleImage
1814
+ */
1815
+ 'link_type'?: string;
1816
+ /**
1817
+ *
1818
+ * @type {string}
1819
+ * @memberof CompatibleImage
1820
+ */
1821
+ 'reason'?: string;
1822
+ }
1786
1823
  /**
1787
1824
  *
1788
1825
  * @export
@@ -2696,6 +2733,12 @@ export interface CreateInstancesPayload {
2696
2733
  * @memberof CreateInstancesPayload
2697
2734
  */
2698
2735
  'enable_port_randomization'?: boolean;
2736
+ /**
2737
+ * When true, the Hyperstack VM Agent is opted in for this VM and metrics ingestion is allowed by the prom-gateway. The agent must still be installed on the VM (typically via user_data cloud-init).
2738
+ * @type {boolean}
2739
+ * @memberof CreateInstancesPayload
2740
+ */
2741
+ 'enhanced_monitoring_enabled'?: boolean;
2699
2742
  /**
2700
2743
  * The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.
2701
2744
  * @type {string}
@@ -4091,6 +4134,12 @@ export interface FlavorFields {
4091
4134
  * @memberof FlavorFields
4092
4135
  */
4093
4136
  'id'?: number;
4137
+ /**
4138
+ * Image compatibility restrictions for this flavor (flavor → image links)
4139
+ * @type {ImageRestrictions}
4140
+ * @memberof FlavorFields
4141
+ */
4142
+ 'image_restrictions'?: ImageRestrictions;
4094
4143
  /**
4095
4144
  *
4096
4145
  * @type {Array<LableResonse>}
@@ -4839,6 +4888,31 @@ export interface ImageGetResponse {
4839
4888
  */
4840
4889
  'type'?: string;
4841
4890
  }
4891
+ /**
4892
+ *
4893
+ * @export
4894
+ * @interface ImageRestrictions
4895
+ */
4896
+ export interface ImageRestrictions {
4897
+ /**
4898
+ * List of images this flavor is allowed to launch, with link metadata
4899
+ * @type {Array<CompatibleImage>}
4900
+ * @memberof ImageRestrictions
4901
+ */
4902
+ 'compatible_images'?: Array<CompatibleImage>;
4903
+ /**
4904
+ * Whether the flavor is restricted to a set of images
4905
+ * @type {boolean}
4906
+ * @memberof ImageRestrictions
4907
+ */
4908
+ 'has_image_restrictions'?: boolean;
4909
+ /**
4910
+ * Either \'hard\', \'soft\', or null if no restrictions
4911
+ * @type {string}
4912
+ * @memberof ImageRestrictions
4913
+ */
4914
+ 'restriction_type'?: string;
4915
+ }
4842
4916
  /**
4843
4917
  *
4844
4918
  * @export
@@ -4994,6 +5068,19 @@ export interface Instance {
4994
5068
  */
4995
5069
  'status'?: boolean;
4996
5070
  }
5071
+ /**
5072
+ *
5073
+ * @export
5074
+ * @interface InstanceEnhancedMetricsFields
5075
+ */
5076
+ export interface InstanceEnhancedMetricsFields {
5077
+ /**
5078
+ *
5079
+ * @type {boolean}
5080
+ * @memberof InstanceEnhancedMetricsFields
5081
+ */
5082
+ 'enabled'?: boolean;
5083
+ }
4997
5084
  /**
4998
5085
  *
4999
5086
  * @export
@@ -5135,6 +5222,12 @@ export interface InstanceFields {
5135
5222
  * @memberof InstanceFields
5136
5223
  */
5137
5224
  'created_at'?: string;
5225
+ /**
5226
+ *
5227
+ * @type {InstanceEnhancedMetricsFields}
5228
+ * @memberof InstanceFields
5229
+ */
5230
+ 'enhanced_metrics'?: InstanceEnhancedMetricsFields;
5138
5231
  /**
5139
5232
  *
5140
5233
  * @type {InstanceEnvironmentFields}
@@ -10200,6 +10293,63 @@ export interface UserDefaultChoicesForUserResponse {
10200
10293
  */
10201
10294
  'user_default_choices'?: Array<UserDefaultChoiceForUserFields>;
10202
10295
  }
10296
+ /**
10297
+ *
10298
+ * @export
10299
+ * @interface UserEnhancedMetricsPayload
10300
+ */
10301
+ export interface UserEnhancedMetricsPayload {
10302
+ /**
10303
+ * Set to true to opt this VM into Enhanced Metrics, false to opt out.
10304
+ * @type {boolean}
10305
+ * @memberof UserEnhancedMetricsPayload
10306
+ */
10307
+ 'enabled': boolean;
10308
+ }
10309
+ /**
10310
+ *
10311
+ * @export
10312
+ * @interface UserEnhancedMetricsResponse
10313
+ */
10314
+ export interface UserEnhancedMetricsResponse {
10315
+ /**
10316
+ * One-liner the user can run inside the VM to install the agent when enabling. Omitted when disabling.
10317
+ * @type {string}
10318
+ * @memberof UserEnhancedMetricsResponse
10319
+ */
10320
+ 'install_command'?: string;
10321
+ /**
10322
+ *
10323
+ * @type {string}
10324
+ * @memberof UserEnhancedMetricsResponse
10325
+ */
10326
+ 'message'?: string;
10327
+ /**
10328
+ *
10329
+ * @type {UserEnhancedMetricsResponseFields}
10330
+ * @memberof UserEnhancedMetricsResponse
10331
+ */
10332
+ 'metrics'?: UserEnhancedMetricsResponseFields;
10333
+ /**
10334
+ *
10335
+ * @type {boolean}
10336
+ * @memberof UserEnhancedMetricsResponse
10337
+ */
10338
+ 'status'?: boolean;
10339
+ }
10340
+ /**
10341
+ *
10342
+ * @export
10343
+ * @interface UserEnhancedMetricsResponseFields
10344
+ */
10345
+ export interface UserEnhancedMetricsResponseFields {
10346
+ /**
10347
+ *
10348
+ * @type {boolean}
10349
+ * @memberof UserEnhancedMetricsResponseFields
10350
+ */
10351
+ 'enabled'?: boolean;
10352
+ }
10203
10353
  /**
10204
10354
  *
10205
10355
  * @export
@@ -28441,6 +28591,49 @@ export const VirtualMachineApiAxiosParamCreator = function (configuration?: Conf
28441
28591
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28442
28592
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28443
28593
 
28594
+ return {
28595
+ url: toPathString(localVarUrlObj),
28596
+ options: localVarRequestOptions,
28597
+ };
28598
+ },
28599
+ /**
28600
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
28601
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
28602
+ * @param {number} vmId
28603
+ * @param {UserEnhancedMetricsPayload} payload
28604
+ * @param {*} [options] Override http request option.
28605
+ * @throws {RequiredError}
28606
+ */
28607
+ toggleEnhancedMetricsForAVM: async (vmId: number, payload: UserEnhancedMetricsPayload, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28608
+ // verify required parameter 'vmId' is not null or undefined
28609
+ assertParamExists('toggleEnhancedMetricsForAVM', 'vmId', vmId)
28610
+ // verify required parameter 'payload' is not null or undefined
28611
+ assertParamExists('toggleEnhancedMetricsForAVM', 'payload', payload)
28612
+ const localVarPath = `/core/virtual-machines/{vm_id}/enhanced-metrics`
28613
+ .replace(`{${"vm_id"}}`, encodeURIComponent(String(vmId)));
28614
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28615
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28616
+ let baseOptions;
28617
+ if (configuration) {
28618
+ baseOptions = configuration.baseOptions;
28619
+ }
28620
+
28621
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
28622
+ const localVarHeaderParameter = {} as any;
28623
+ const localVarQueryParameter = {} as any;
28624
+
28625
+ // authentication apiKey required
28626
+ await setApiKeyToObject(localVarHeaderParameter, "api_key", configuration)
28627
+
28628
+
28629
+
28630
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28631
+
28632
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28634
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28635
+ localVarRequestOptions.data = serializeDataIfNeeded(payload, localVarRequestOptions, configuration)
28636
+
28444
28637
  return {
28445
28638
  url: toPathString(localVarUrlObj),
28446
28639
  options: localVarRequestOptions,
@@ -28735,6 +28928,20 @@ export const VirtualMachineApiFp = function(configuration?: Configuration) {
28735
28928
  const localVarOperationServerBasePath = operationServerMap['VirtualMachineApi.stopVM']?.[localVarOperationServerIndex]?.url;
28736
28929
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28737
28930
  },
28931
+ /**
28932
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
28933
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
28934
+ * @param {number} vmId
28935
+ * @param {UserEnhancedMetricsPayload} payload
28936
+ * @param {*} [options] Override http request option.
28937
+ * @throws {RequiredError}
28938
+ */
28939
+ async toggleEnhancedMetricsForAVM(vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEnhancedMetricsResponse>> {
28940
+ const localVarAxiosArgs = await localVarAxiosParamCreator.toggleEnhancedMetricsForAVM(vmId, payload, options);
28941
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28942
+ const localVarOperationServerBasePath = operationServerMap['VirtualMachineApi.toggleEnhancedMetricsForAVM']?.[localVarOperationServerIndex]?.url;
28943
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28944
+ },
28738
28945
  }
28739
28946
  };
28740
28947
 
@@ -28964,6 +29171,17 @@ export const VirtualMachineApiFactory = function (configuration?: Configuration,
28964
29171
  stopVM(vmId: number, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel> {
28965
29172
  return localVarFp.stopVM(vmId, options).then((request) => request(axios, basePath));
28966
29173
  },
29174
+ /**
29175
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
29176
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
29177
+ * @param {number} vmId
29178
+ * @param {UserEnhancedMetricsPayload} payload
29179
+ * @param {*} [options] Override http request option.
29180
+ * @throws {RequiredError}
29181
+ */
29182
+ toggleEnhancedMetricsForAVM(vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig): AxiosPromise<UserEnhancedMetricsResponse> {
29183
+ return localVarFp.toggleEnhancedMetricsForAVM(vmId, payload, options).then((request) => request(axios, basePath));
29184
+ },
28967
29185
  };
28968
29186
  };
28969
29187
 
@@ -29232,6 +29450,19 @@ export class VirtualMachineApi extends BaseAPI {
29232
29450
  public stopVM(vmId: number, options?: RawAxiosRequestConfig) {
29233
29451
  return VirtualMachineApiFp(this.configuration).stopVM(vmId, options).then((request) => request(this.axios, this.basePath));
29234
29452
  }
29453
+
29454
+ /**
29455
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
29456
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
29457
+ * @param {number} vmId
29458
+ * @param {UserEnhancedMetricsPayload} payload
29459
+ * @param {*} [options] Override http request option.
29460
+ * @throws {RequiredError}
29461
+ * @memberof VirtualMachineApi
29462
+ */
29463
+ public toggleEnhancedMetricsForAVM(vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig) {
29464
+ return VirtualMachineApiFp(this.configuration).toggleEnhancedMetricsForAVM(vmId, payload, options).then((request) => request(this.axios, this.basePath));
29465
+ }
29235
29466
  }
29236
29467
 
29237
29468
  /**
package/common.ts CHANGED
@@ -16,7 +16,7 @@
16
16
  import type { Configuration } from "./configuration";
17
17
  import type { RequestArgs } from "./base";
18
18
  import type { AxiosInstance, AxiosResponse } from 'axios';
19
- import { RequiredError } from "./base";
19
+ import { RequiredError } from "./base"; import { applyHyperstackHeaders } from "./hyperstackHeaders";
20
20
 
21
21
  /**
22
22
  *
@@ -144,7 +144,7 @@ export const toPathString = function (url: URL) {
144
144
  */
145
145
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
146
146
  return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
147
- const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
147
+ const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; applyHyperstackHeaders(axiosRequestArgs);
148
148
  return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
149
149
  };
150
150
  }
package/dist/api.d.ts CHANGED
@@ -1767,6 +1767,43 @@ export interface CompatibleFlavor {
1767
1767
  */
1768
1768
  'reason'?: string;
1769
1769
  }
1770
+ /**
1771
+ *
1772
+ * @export
1773
+ * @interface CompatibleImage
1774
+ */
1775
+ export interface CompatibleImage {
1776
+ /**
1777
+ * JSON constraints object
1778
+ * @type {object}
1779
+ * @memberof CompatibleImage
1780
+ */
1781
+ 'constraints'?: object;
1782
+ /**
1783
+ *
1784
+ * @type {number}
1785
+ * @memberof CompatibleImage
1786
+ */
1787
+ 'image_id'?: number;
1788
+ /**
1789
+ *
1790
+ * @type {string}
1791
+ * @memberof CompatibleImage
1792
+ */
1793
+ 'image_name'?: string;
1794
+ /**
1795
+ * Either \'hard\' or \'soft\'
1796
+ * @type {string}
1797
+ * @memberof CompatibleImage
1798
+ */
1799
+ 'link_type'?: string;
1800
+ /**
1801
+ *
1802
+ * @type {string}
1803
+ * @memberof CompatibleImage
1804
+ */
1805
+ 'reason'?: string;
1806
+ }
1770
1807
  /**
1771
1808
  *
1772
1809
  * @export
@@ -2665,6 +2702,12 @@ export interface CreateInstancesPayload {
2665
2702
  * @memberof CreateInstancesPayload
2666
2703
  */
2667
2704
  'enable_port_randomization'?: boolean;
2705
+ /**
2706
+ * When true, the Hyperstack VM Agent is opted in for this VM and metrics ingestion is allowed by the prom-gateway. The agent must still be installed on the VM (typically via user_data cloud-init).
2707
+ * @type {boolean}
2708
+ * @memberof CreateInstancesPayload
2709
+ */
2710
+ 'enhanced_monitoring_enabled'?: boolean;
2668
2711
  /**
2669
2712
  * The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.
2670
2713
  * @type {string}
@@ -4056,6 +4099,12 @@ export interface FlavorFields {
4056
4099
  * @memberof FlavorFields
4057
4100
  */
4058
4101
  'id'?: number;
4102
+ /**
4103
+ * Image compatibility restrictions for this flavor (flavor → image links)
4104
+ * @type {ImageRestrictions}
4105
+ * @memberof FlavorFields
4106
+ */
4107
+ 'image_restrictions'?: ImageRestrictions;
4059
4108
  /**
4060
4109
  *
4061
4110
  * @type {Array<LableResonse>}
@@ -4804,6 +4853,31 @@ export interface ImageGetResponse {
4804
4853
  */
4805
4854
  'type'?: string;
4806
4855
  }
4856
+ /**
4857
+ *
4858
+ * @export
4859
+ * @interface ImageRestrictions
4860
+ */
4861
+ export interface ImageRestrictions {
4862
+ /**
4863
+ * List of images this flavor is allowed to launch, with link metadata
4864
+ * @type {Array<CompatibleImage>}
4865
+ * @memberof ImageRestrictions
4866
+ */
4867
+ 'compatible_images'?: Array<CompatibleImage>;
4868
+ /**
4869
+ * Whether the flavor is restricted to a set of images
4870
+ * @type {boolean}
4871
+ * @memberof ImageRestrictions
4872
+ */
4873
+ 'has_image_restrictions'?: boolean;
4874
+ /**
4875
+ * Either \'hard\', \'soft\', or null if no restrictions
4876
+ * @type {string}
4877
+ * @memberof ImageRestrictions
4878
+ */
4879
+ 'restriction_type'?: string;
4880
+ }
4807
4881
  /**
4808
4882
  *
4809
4883
  * @export
@@ -4959,6 +5033,19 @@ export interface Instance {
4959
5033
  */
4960
5034
  'status'?: boolean;
4961
5035
  }
5036
+ /**
5037
+ *
5038
+ * @export
5039
+ * @interface InstanceEnhancedMetricsFields
5040
+ */
5041
+ export interface InstanceEnhancedMetricsFields {
5042
+ /**
5043
+ *
5044
+ * @type {boolean}
5045
+ * @memberof InstanceEnhancedMetricsFields
5046
+ */
5047
+ 'enabled'?: boolean;
5048
+ }
4962
5049
  /**
4963
5050
  *
4964
5051
  * @export
@@ -5100,6 +5187,12 @@ export interface InstanceFields {
5100
5187
  * @memberof InstanceFields
5101
5188
  */
5102
5189
  'created_at'?: string;
5190
+ /**
5191
+ *
5192
+ * @type {InstanceEnhancedMetricsFields}
5193
+ * @memberof InstanceFields
5194
+ */
5195
+ 'enhanced_metrics'?: InstanceEnhancedMetricsFields;
5103
5196
  /**
5104
5197
  *
5105
5198
  * @type {InstanceEnvironmentFields}
@@ -10140,6 +10233,63 @@ export interface UserDefaultChoicesForUserResponse {
10140
10233
  */
10141
10234
  'user_default_choices'?: Array<UserDefaultChoiceForUserFields>;
10142
10235
  }
10236
+ /**
10237
+ *
10238
+ * @export
10239
+ * @interface UserEnhancedMetricsPayload
10240
+ */
10241
+ export interface UserEnhancedMetricsPayload {
10242
+ /**
10243
+ * Set to true to opt this VM into Enhanced Metrics, false to opt out.
10244
+ * @type {boolean}
10245
+ * @memberof UserEnhancedMetricsPayload
10246
+ */
10247
+ 'enabled': boolean;
10248
+ }
10249
+ /**
10250
+ *
10251
+ * @export
10252
+ * @interface UserEnhancedMetricsResponse
10253
+ */
10254
+ export interface UserEnhancedMetricsResponse {
10255
+ /**
10256
+ * One-liner the user can run inside the VM to install the agent when enabling. Omitted when disabling.
10257
+ * @type {string}
10258
+ * @memberof UserEnhancedMetricsResponse
10259
+ */
10260
+ 'install_command'?: string;
10261
+ /**
10262
+ *
10263
+ * @type {string}
10264
+ * @memberof UserEnhancedMetricsResponse
10265
+ */
10266
+ 'message'?: string;
10267
+ /**
10268
+ *
10269
+ * @type {UserEnhancedMetricsResponseFields}
10270
+ * @memberof UserEnhancedMetricsResponse
10271
+ */
10272
+ 'metrics'?: UserEnhancedMetricsResponseFields;
10273
+ /**
10274
+ *
10275
+ * @type {boolean}
10276
+ * @memberof UserEnhancedMetricsResponse
10277
+ */
10278
+ 'status'?: boolean;
10279
+ }
10280
+ /**
10281
+ *
10282
+ * @export
10283
+ * @interface UserEnhancedMetricsResponseFields
10284
+ */
10285
+ export interface UserEnhancedMetricsResponseFields {
10286
+ /**
10287
+ *
10288
+ * @type {boolean}
10289
+ * @memberof UserEnhancedMetricsResponseFields
10290
+ */
10291
+ 'enabled'?: boolean;
10292
+ }
10143
10293
  /**
10144
10294
  *
10145
10295
  * @export
@@ -19085,6 +19235,15 @@ export declare const VirtualMachineApiAxiosParamCreator: (configuration?: Config
19085
19235
  * @throws {RequiredError}
19086
19236
  */
19087
19237
  stopVM: (vmId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19238
+ /**
19239
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
19240
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
19241
+ * @param {number} vmId
19242
+ * @param {UserEnhancedMetricsPayload} payload
19243
+ * @param {*} [options] Override http request option.
19244
+ * @throws {RequiredError}
19245
+ */
19246
+ toggleEnhancedMetricsForAVM: (vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19088
19247
  };
19089
19248
  /**
19090
19249
  * VirtualMachineApi - functional programming interface
@@ -19270,6 +19429,15 @@ export declare const VirtualMachineApiFp: (configuration?: Configuration) => {
19270
19429
  * @throws {RequiredError}
19271
19430
  */
19272
19431
  stopVM(vmId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseModel>>;
19432
+ /**
19433
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
19434
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
19435
+ * @param {number} vmId
19436
+ * @param {UserEnhancedMetricsPayload} payload
19437
+ * @param {*} [options] Override http request option.
19438
+ * @throws {RequiredError}
19439
+ */
19440
+ toggleEnhancedMetricsForAVM(vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserEnhancedMetricsResponse>>;
19273
19441
  };
19274
19442
  /**
19275
19443
  * VirtualMachineApi - factory interface
@@ -19455,6 +19623,15 @@ export declare const VirtualMachineApiFactory: (configuration?: Configuration, b
19455
19623
  * @throws {RequiredError}
19456
19624
  */
19457
19625
  stopVM(vmId: number, options?: RawAxiosRequestConfig): AxiosPromise<ResponseModel>;
19626
+ /**
19627
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
19628
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
19629
+ * @param {number} vmId
19630
+ * @param {UserEnhancedMetricsPayload} payload
19631
+ * @param {*} [options] Override http request option.
19632
+ * @throws {RequiredError}
19633
+ */
19634
+ toggleEnhancedMetricsForAVM(vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig): AxiosPromise<UserEnhancedMetricsResponse>;
19458
19635
  };
19459
19636
  /**
19460
19637
  * VirtualMachineApi - object-oriented interface
@@ -19662,6 +19839,16 @@ export declare class VirtualMachineApi extends BaseAPI {
19662
19839
  * @memberof VirtualMachineApi
19663
19840
  */
19664
19841
  stopVM(vmId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseModel, any, {}, any>>;
19842
+ /**
19843
+ * Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
19844
+ * @summary Enable or disable Enhanced Metrics for a virtual machine
19845
+ * @param {number} vmId
19846
+ * @param {UserEnhancedMetricsPayload} payload
19847
+ * @param {*} [options] Override http request option.
19848
+ * @throws {RequiredError}
19849
+ * @memberof VirtualMachineApi
19850
+ */
19851
+ toggleEnhancedMetricsForAVM(vmId: number, payload: UserEnhancedMetricsPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserEnhancedMetricsResponse, any, {}, any>>;
19665
19852
  }
19666
19853
  /**
19667
19854
  * @export