@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-6a69e0e34d95

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.
Files changed (68) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/DefaultApi.d.ts +66 -0
  4. package/dist/apis/DefaultApi.js +75 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +66 -0
  6. package/dist/esm/apis/DefaultApi.js +75 -0
  7. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  8. package/dist/esm/models/ClusterUtilization.js +67 -0
  9. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  10. package/dist/esm/models/CreateGroupRequest.js +0 -2
  11. package/dist/esm/models/Group.d.ts +0 -6
  12. package/dist/esm/models/Group.js +0 -2
  13. package/dist/esm/models/GroupResponse.d.ts +7 -0
  14. package/dist/esm/models/GroupResponse.js +3 -0
  15. package/dist/esm/models/InventoryData.d.ts +7 -0
  16. package/dist/esm/models/InventoryData.js +3 -0
  17. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  18. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  19. package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
  20. package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
  21. package/dist/esm/models/VMNIC.d.ts +12 -0
  22. package/dist/esm/models/VMNIC.js +4 -0
  23. package/dist/esm/models/VirtualMachine.d.ts +14 -2
  24. package/dist/esm/models/VirtualMachine.js +6 -2
  25. package/dist/esm/models/index.d.ts +2 -0
  26. package/dist/esm/models/index.js +2 -0
  27. package/dist/models/ClusterUtilization.d.ts +68 -0
  28. package/dist/models/ClusterUtilization.js +74 -0
  29. package/dist/models/CreateGroupRequest.d.ts +0 -6
  30. package/dist/models/CreateGroupRequest.js +0 -2
  31. package/dist/models/Group.d.ts +0 -6
  32. package/dist/models/Group.js +0 -2
  33. package/dist/models/GroupResponse.d.ts +7 -0
  34. package/dist/models/GroupResponse.js +3 -0
  35. package/dist/models/InventoryData.d.ts +7 -0
  36. package/dist/models/InventoryData.js +3 -0
  37. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  38. package/dist/models/UpdateGroupRequest.js +0 -2
  39. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  40. package/dist/models/VMFilterOptionsResponse.js +62 -0
  41. package/dist/models/VMNIC.d.ts +12 -0
  42. package/dist/models/VMNIC.js +4 -0
  43. package/dist/models/VirtualMachine.d.ts +14 -2
  44. package/dist/models/VirtualMachine.js +6 -2
  45. package/dist/models/index.d.ts +2 -0
  46. package/dist/models/index.js +2 -0
  47. package/docs/ClusterUtilization.md +46 -0
  48. package/docs/CreateGroupRequest.md +0 -2
  49. package/docs/DefaultApi.md +128 -0
  50. package/docs/Group.md +0 -2
  51. package/docs/GroupResponse.md +2 -0
  52. package/docs/InventoryData.md +2 -0
  53. package/docs/UpdateGroupRequest.md +0 -2
  54. package/docs/VMFilterOptionsResponse.md +40 -0
  55. package/docs/VMNIC.md +4 -0
  56. package/docs/VirtualMachine.md +6 -2
  57. package/package.json +1 -1
  58. package/src/apis/DefaultApi.ts +135 -0
  59. package/src/models/ClusterUtilization.ts +120 -0
  60. package/src/models/CreateGroupRequest.ts +0 -8
  61. package/src/models/Group.ts +0 -8
  62. package/src/models/GroupResponse.ts +15 -0
  63. package/src/models/InventoryData.ts +15 -0
  64. package/src/models/UpdateGroupRequest.ts +0 -8
  65. package/src/models/VMFilterOptionsResponse.ts +93 -0
  66. package/src/models/VMNIC.ts +16 -0
  67. package/src/models/VirtualMachine.ts +20 -4
  68. package/src/models/index.ts +2 -0
@@ -6,6 +6,7 @@ docs/AgentModeRequest.md
6
6
  docs/AgentStatus.md
7
7
  docs/BenchmarkRun.md
8
8
  docs/ClusterFeatures.md
9
+ docs/ClusterUtilization.md
9
10
  docs/CollectorStartRequest.md
10
11
  docs/CollectorStatus.md
11
12
  docs/CreateGroupRequest.md
@@ -56,6 +57,7 @@ docs/UpdateLabelVMsRequest.md
56
57
  docs/VCenter.md
57
58
  docs/VMDevice.md
58
59
  docs/VMDisk.md
60
+ docs/VMFilterOptionsResponse.md
59
61
  docs/VMIssue.md
60
62
  docs/VMLabelsResponse.md
61
63
  docs/VMNIC.md
@@ -80,6 +82,7 @@ src/models/AgentModeRequest.ts
80
82
  src/models/AgentStatus.ts
81
83
  src/models/BenchmarkRun.ts
82
84
  src/models/ClusterFeatures.ts
85
+ src/models/ClusterUtilization.ts
83
86
  src/models/CollectorStartRequest.ts
84
87
  src/models/CollectorStatus.ts
85
88
  src/models/CreateGroupRequest.ts
@@ -129,6 +132,7 @@ src/models/UpdateLabelVMsRequest.ts
129
132
  src/models/VCenter.ts
130
133
  src/models/VMDevice.ts
131
134
  src/models/VMDisk.ts
135
+ src/models/VMFilterOptionsResponse.ts
132
136
  src/models/VMIssue.ts
133
137
  src/models/VMLabelsResponse.ts
134
138
  src/models/VMNIC.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.12.0-645d2fae3eee
1
+ # @openshift-migration-advisor/agent-sdk@0.12.0-6a69e0e34d95
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -55,6 +55,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
55
55
  *DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
56
56
  *DefaultApi* | [**deleteLabelGlobally**](docs/DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs
57
57
  *DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
58
+ *DefaultApi* | [**getClusterUtilization**](docs/DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID
58
59
  *DefaultApi* | [**getCollectorStatus**](docs/DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status
59
60
  *DefaultApi* | [**getForecasterDatastores**](docs/DefaultApi.md#getforecasterdatastores) | **POST** /forecaster/datastores | List available datastores
60
61
  *DefaultApi* | [**getForecasterRuns**](docs/DefaultApi.md#getforecasterruns) | **GET** /forecaster/runs | List benchmark runs
@@ -72,6 +73,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
72
73
  *DefaultApi* | [**getVMLabels**](docs/DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs
73
74
  *DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
74
75
  *DefaultApi* | [**getVMs**](docs/DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination
76
+ *DefaultApi* | [**getVMsFilterOptions**](docs/DefaultApi.md#getvmsfilteroptions) | **GET** /vms/filter-options | Get distinct filter option values for VMs
75
77
  *DefaultApi* | [**getVersion**](docs/DefaultApi.md#getversion) | **GET** /version | Get agent version information
76
78
  *DefaultApi* | [**listGroups**](docs/DefaultApi.md#listgroups) | **GET** /groups | List all groups
77
79
  *DefaultApi* | [**listRightsizingReportClusters**](docs/DefaultApi.md#listrightsizingreportclusters) | **GET** /rightsizing/{report_id}/clusters | Get cluster-level utilization aggregates for a specific report
@@ -101,6 +103,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
101
103
  - [AgentStatus](docs/AgentStatus.md)
102
104
  - [BenchmarkRun](docs/BenchmarkRun.md)
103
105
  - [ClusterFeatures](docs/ClusterFeatures.md)
106
+ - [ClusterUtilization](docs/ClusterUtilization.md)
104
107
  - [CollectorStartRequest](docs/CollectorStartRequest.md)
105
108
  - [CollectorStatus](docs/CollectorStatus.md)
106
109
  - [CreateGroupRequest](docs/CreateGroupRequest.md)
@@ -150,6 +153,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
150
153
  - [VCenter](docs/VCenter.md)
151
154
  - [VMDevice](docs/VMDevice.md)
152
155
  - [VMDisk](docs/VMDisk.md)
156
+ - [VMFilterOptionsResponse](docs/VMFilterOptionsResponse.md)
153
157
  - [VMIssue](docs/VMIssue.md)
154
158
  - [VMLabelsResponse](docs/VMLabelsResponse.md)
155
159
  - [VMNIC](docs/VMNIC.md)
@@ -179,7 +183,7 @@ and is automatically generated by the
179
183
  [OpenAPI Generator](https://openapi-generator.tech) project:
180
184
 
181
185
  - API version: `v1`
182
- - Package version: `0.12.0-645d2fae3eee`
186
+ - Package version: `0.12.0-6a69e0e34d95`
183
187
  - Generator version: `7.23.0-SNAPSHOT`
184
188
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
185
189
 
@@ -39,6 +39,7 @@ import { type StartInspectionRequest } from '../models/StartInspectionRequest.js
39
39
  import { type StopForecasterPair202Response } from '../models/StopForecasterPair202Response.js';
40
40
  import { type UpdateGroupRequest } from '../models/UpdateGroupRequest.js';
41
41
  import { type UpdateLabelVMsRequest } from '../models/UpdateLabelVMsRequest.js';
42
+ import { type VMFilterOptionsResponse } from '../models/VMFilterOptionsResponse.js';
42
43
  import { type VMLabelsResponse } from '../models/VMLabelsResponse.js';
43
44
  import { type VcenterCredentials } from '../models/VcenterCredentials.js';
44
45
  import { type VddkProperties } from '../models/VddkProperties.js';
@@ -60,6 +61,9 @@ export interface DeleteGroupRequest {
60
61
  export interface DeleteLabelGloballyRequest {
61
62
  label: string;
62
63
  }
64
+ export interface GetClusterUtilizationRequest {
65
+ clusterId: string;
66
+ }
63
67
  export interface GetForecasterDatastoresRequest {
64
68
  forecasterDatastoresRequest?: ForecasterDatastoresRequest;
65
69
  }
@@ -267,6 +271,26 @@ export interface DefaultApiInterface {
267
271
  * Get agent status
268
272
  */
269
273
  getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
274
+ /**
275
+ * Creates request options for getClusterUtilization without sending the request
276
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
277
+ * @throws {RequiredError}
278
+ * @memberof DefaultApiInterface
279
+ */
280
+ getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
281
+ /**
282
+ *
283
+ * @summary Get latest cluster utilization by cluster ID
284
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof DefaultApiInterface
288
+ */
289
+ getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
290
+ /**
291
+ * Get latest cluster utilization by cluster ID
292
+ */
293
+ getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
270
294
  /**
271
295
  * Creates request options for getCollectorStatus without sending the request
272
296
  * @throws {RequiredError}
@@ -627,6 +651,24 @@ export interface DefaultApiInterface {
627
651
  * Get list of VMs with filtering and pagination
628
652
  */
629
653
  getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
654
+ /**
655
+ * Creates request options for getVMsFilterOptions without sending the request
656
+ * @throws {RequiredError}
657
+ * @memberof DefaultApiInterface
658
+ */
659
+ getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
660
+ /**
661
+ *
662
+ * @summary Get distinct filter option values for VMs
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ * @memberof DefaultApiInterface
666
+ */
667
+ getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
668
+ /**
669
+ * Get distinct filter option values for VMs
670
+ */
671
+ getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
630
672
  /**
631
673
  * Creates request options for getVersion without sending the request
632
674
  * @throws {RequiredError}
@@ -1119,6 +1161,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1119
1161
  * Get agent status
1120
1162
  */
1121
1163
  getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
1164
+ /**
1165
+ * Creates request options for getClusterUtilization without sending the request
1166
+ */
1167
+ getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
1168
+ /**
1169
+ * Get latest cluster utilization by cluster ID
1170
+ */
1171
+ getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
1172
+ /**
1173
+ * Get latest cluster utilization by cluster ID
1174
+ */
1175
+ getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
1122
1176
  /**
1123
1177
  * Creates request options for getCollectorStatus without sending the request
1124
1178
  */
@@ -1337,6 +1391,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1337
1391
  * Get list of VMs with filtering and pagination
1338
1392
  */
1339
1393
  getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
1394
+ /**
1395
+ * Creates request options for getVMsFilterOptions without sending the request
1396
+ */
1397
+ getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
1398
+ /**
1399
+ * Get distinct filter option values for VMs
1400
+ */
1401
+ getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
1402
+ /**
1403
+ * Get distinct filter option values for VMs
1404
+ */
1405
+ getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
1340
1406
  /**
1341
1407
  * Creates request options for getVersion without sending the request
1342
1408
  */
@@ -53,6 +53,7 @@ const StartInspectionRequest_js_1 = require("../models/StartInspectionRequest.js
53
53
  const StopForecasterPair202Response_js_1 = require("../models/StopForecasterPair202Response.js");
54
54
  const UpdateGroupRequest_js_1 = require("../models/UpdateGroupRequest.js");
55
55
  const UpdateLabelVMsRequest_js_1 = require("../models/UpdateLabelVMsRequest.js");
56
+ const VMFilterOptionsResponse_js_1 = require("../models/VMFilterOptionsResponse.js");
56
57
  const VMLabelsResponse_js_1 = require("../models/VMLabelsResponse.js");
57
58
  const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
58
59
  const VddkProperties_js_1 = require("../models/VddkProperties.js");
@@ -256,6 +257,45 @@ class DefaultApi extends runtime.BaseAPI {
256
257
  return yield response.value();
257
258
  });
258
259
  }
260
+ /**
261
+ * Creates request options for getClusterUtilization without sending the request
262
+ */
263
+ getClusterUtilizationRequestOpts(requestParameters) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ if (requestParameters['clusterId'] == null) {
266
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
267
+ }
268
+ const queryParameters = {};
269
+ const headerParameters = {};
270
+ let urlPath = `/clusters/{cluster_id}/utilization`;
271
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
272
+ return {
273
+ path: urlPath,
274
+ method: 'GET',
275
+ headers: headerParameters,
276
+ query: queryParameters,
277
+ };
278
+ });
279
+ }
280
+ /**
281
+ * Get latest cluster utilization by cluster ID
282
+ */
283
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
284
+ return __awaiter(this, void 0, void 0, function* () {
285
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
286
+ const response = yield this.request(requestOptions, initOverrides);
287
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterResponse_js_1.RightsizingClusterResponseFromJSON)(jsonValue));
288
+ });
289
+ }
290
+ /**
291
+ * Get latest cluster utilization by cluster ID
292
+ */
293
+ getClusterUtilization(requestParameters, initOverrides) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
296
+ return yield response.value();
297
+ });
298
+ }
259
299
  /**
260
300
  * Creates request options for getCollectorStatus without sending the request
261
301
  */
@@ -940,6 +980,41 @@ class DefaultApi extends runtime.BaseAPI {
940
980
  return yield response.value();
941
981
  });
942
982
  }
983
+ /**
984
+ * Creates request options for getVMsFilterOptions without sending the request
985
+ */
986
+ getVMsFilterOptionsRequestOpts() {
987
+ return __awaiter(this, void 0, void 0, function* () {
988
+ const queryParameters = {};
989
+ const headerParameters = {};
990
+ let urlPath = `/vms/filter-options`;
991
+ return {
992
+ path: urlPath,
993
+ method: 'GET',
994
+ headers: headerParameters,
995
+ query: queryParameters,
996
+ };
997
+ });
998
+ }
999
+ /**
1000
+ * Get distinct filter option values for VMs
1001
+ */
1002
+ getVMsFilterOptionsRaw(initOverrides) {
1003
+ return __awaiter(this, void 0, void 0, function* () {
1004
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1005
+ const response = yield this.request(requestOptions, initOverrides);
1006
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VMFilterOptionsResponse_js_1.VMFilterOptionsResponseFromJSON)(jsonValue));
1007
+ });
1008
+ }
1009
+ /**
1010
+ * Get distinct filter option values for VMs
1011
+ */
1012
+ getVMsFilterOptions(initOverrides) {
1013
+ return __awaiter(this, void 0, void 0, function* () {
1014
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1015
+ return yield response.value();
1016
+ });
1017
+ }
943
1018
  /**
944
1019
  * Creates request options for getVersion without sending the request
945
1020
  */
@@ -39,6 +39,7 @@ import { type StartInspectionRequest } from '../models/StartInspectionRequest.js
39
39
  import { type StopForecasterPair202Response } from '../models/StopForecasterPair202Response.js';
40
40
  import { type UpdateGroupRequest } from '../models/UpdateGroupRequest.js';
41
41
  import { type UpdateLabelVMsRequest } from '../models/UpdateLabelVMsRequest.js';
42
+ import { type VMFilterOptionsResponse } from '../models/VMFilterOptionsResponse.js';
42
43
  import { type VMLabelsResponse } from '../models/VMLabelsResponse.js';
43
44
  import { type VcenterCredentials } from '../models/VcenterCredentials.js';
44
45
  import { type VddkProperties } from '../models/VddkProperties.js';
@@ -60,6 +61,9 @@ export interface DeleteGroupRequest {
60
61
  export interface DeleteLabelGloballyRequest {
61
62
  label: string;
62
63
  }
64
+ export interface GetClusterUtilizationRequest {
65
+ clusterId: string;
66
+ }
63
67
  export interface GetForecasterDatastoresRequest {
64
68
  forecasterDatastoresRequest?: ForecasterDatastoresRequest;
65
69
  }
@@ -267,6 +271,26 @@ export interface DefaultApiInterface {
267
271
  * Get agent status
268
272
  */
269
273
  getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
274
+ /**
275
+ * Creates request options for getClusterUtilization without sending the request
276
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
277
+ * @throws {RequiredError}
278
+ * @memberof DefaultApiInterface
279
+ */
280
+ getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
281
+ /**
282
+ *
283
+ * @summary Get latest cluster utilization by cluster ID
284
+ * @param {string} clusterId vSphere MoRef (e.g. \&quot;domain-c123\&quot;) or generated cluster ID (e.g. \&quot;cluster-a3f7b2c1d4e89012\&quot;)
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ * @memberof DefaultApiInterface
288
+ */
289
+ getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
290
+ /**
291
+ * Get latest cluster utilization by cluster ID
292
+ */
293
+ getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
270
294
  /**
271
295
  * Creates request options for getCollectorStatus without sending the request
272
296
  * @throws {RequiredError}
@@ -627,6 +651,24 @@ export interface DefaultApiInterface {
627
651
  * Get list of VMs with filtering and pagination
628
652
  */
629
653
  getVMs(requestParameters: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
654
+ /**
655
+ * Creates request options for getVMsFilterOptions without sending the request
656
+ * @throws {RequiredError}
657
+ * @memberof DefaultApiInterface
658
+ */
659
+ getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
660
+ /**
661
+ *
662
+ * @summary Get distinct filter option values for VMs
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ * @memberof DefaultApiInterface
666
+ */
667
+ getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
668
+ /**
669
+ * Get distinct filter option values for VMs
670
+ */
671
+ getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
630
672
  /**
631
673
  * Creates request options for getVersion without sending the request
632
674
  * @throws {RequiredError}
@@ -1119,6 +1161,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1119
1161
  * Get agent status
1120
1162
  */
1121
1163
  getAgentStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentStatus>;
1164
+ /**
1165
+ * Creates request options for getClusterUtilization without sending the request
1166
+ */
1167
+ getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
1168
+ /**
1169
+ * Get latest cluster utilization by cluster ID
1170
+ */
1171
+ getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
1172
+ /**
1173
+ * Get latest cluster utilization by cluster ID
1174
+ */
1175
+ getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
1122
1176
  /**
1123
1177
  * Creates request options for getCollectorStatus without sending the request
1124
1178
  */
@@ -1337,6 +1391,18 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1337
1391
  * Get list of VMs with filtering and pagination
1338
1392
  */
1339
1393
  getVMs(requestParameters?: GetVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
1394
+ /**
1395
+ * Creates request options for getVMsFilterOptions without sending the request
1396
+ */
1397
+ getVMsFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
1398
+ /**
1399
+ * Get distinct filter option values for VMs
1400
+ */
1401
+ getVMsFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
1402
+ /**
1403
+ * Get distinct filter option values for VMs
1404
+ */
1405
+ getVMsFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
1340
1406
  /**
1341
1407
  * Creates request options for getVersion without sending the request
1342
1408
  */
@@ -50,6 +50,7 @@ import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.
50
50
  import { StopForecasterPair202ResponseFromJSON, } from '../models/StopForecasterPair202Response.js';
51
51
  import { UpdateGroupRequestToJSON, } from '../models/UpdateGroupRequest.js';
52
52
  import { UpdateLabelVMsRequestToJSON, } from '../models/UpdateLabelVMsRequest.js';
53
+ import { VMFilterOptionsResponseFromJSON, } from '../models/VMFilterOptionsResponse.js';
53
54
  import { VMLabelsResponseFromJSON, } from '../models/VMLabelsResponse.js';
54
55
  import { VcenterCredentialsToJSON, } from '../models/VcenterCredentials.js';
55
56
  import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
@@ -253,6 +254,45 @@ export class DefaultApi extends runtime.BaseAPI {
253
254
  return yield response.value();
254
255
  });
255
256
  }
257
+ /**
258
+ * Creates request options for getClusterUtilization without sending the request
259
+ */
260
+ getClusterUtilizationRequestOpts(requestParameters) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ if (requestParameters['clusterId'] == null) {
263
+ throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
264
+ }
265
+ const queryParameters = {};
266
+ const headerParameters = {};
267
+ let urlPath = `/clusters/{cluster_id}/utilization`;
268
+ urlPath = urlPath.replace('{cluster_id}', encodeURIComponent(String(requestParameters['clusterId'])));
269
+ return {
270
+ path: urlPath,
271
+ method: 'GET',
272
+ headers: headerParameters,
273
+ query: queryParameters,
274
+ };
275
+ });
276
+ }
277
+ /**
278
+ * Get latest cluster utilization by cluster ID
279
+ */
280
+ getClusterUtilizationRaw(requestParameters, initOverrides) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
283
+ const response = yield this.request(requestOptions, initOverrides);
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
285
+ });
286
+ }
287
+ /**
288
+ * Get latest cluster utilization by cluster ID
289
+ */
290
+ getClusterUtilization(requestParameters, initOverrides) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
293
+ return yield response.value();
294
+ });
295
+ }
256
296
  /**
257
297
  * Creates request options for getCollectorStatus without sending the request
258
298
  */
@@ -937,6 +977,41 @@ export class DefaultApi extends runtime.BaseAPI {
937
977
  return yield response.value();
938
978
  });
939
979
  }
980
+ /**
981
+ * Creates request options for getVMsFilterOptions without sending the request
982
+ */
983
+ getVMsFilterOptionsRequestOpts() {
984
+ return __awaiter(this, void 0, void 0, function* () {
985
+ const queryParameters = {};
986
+ const headerParameters = {};
987
+ let urlPath = `/vms/filter-options`;
988
+ return {
989
+ path: urlPath,
990
+ method: 'GET',
991
+ headers: headerParameters,
992
+ query: queryParameters,
993
+ };
994
+ });
995
+ }
996
+ /**
997
+ * Get distinct filter option values for VMs
998
+ */
999
+ getVMsFilterOptionsRaw(initOverrides) {
1000
+ return __awaiter(this, void 0, void 0, function* () {
1001
+ const requestOptions = yield this.getVMsFilterOptionsRequestOpts();
1002
+ const response = yield this.request(requestOptions, initOverrides);
1003
+ return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
1004
+ });
1005
+ }
1006
+ /**
1007
+ * Get distinct filter option values for VMs
1008
+ */
1009
+ getVMsFilterOptions(initOverrides) {
1010
+ return __awaiter(this, void 0, void 0, function* () {
1011
+ const response = yield this.getVMsFilterOptionsRaw(initOverrides);
1012
+ return yield response.value();
1013
+ });
1014
+ }
940
1015
  /**
941
1016
  * Creates request options for getVersion without sending the request
942
1017
  */
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ClusterUtilization
16
+ */
17
+ export interface ClusterUtilization {
18
+ /**
19
+ * Average CPU utilization percentage (0-100)
20
+ * @type {number}
21
+ * @memberof ClusterUtilization
22
+ */
23
+ cpu_avg: number;
24
+ /**
25
+ * 95th percentile CPU utilization percentage (0-100)
26
+ * @type {number}
27
+ * @memberof ClusterUtilization
28
+ */
29
+ cpu_p95: number;
30
+ /**
31
+ * Maximum CPU utilization percentage (0-100)
32
+ * @type {number}
33
+ * @memberof ClusterUtilization
34
+ */
35
+ cpu_max: number;
36
+ /**
37
+ * Average memory utilization percentage (0-100)
38
+ * @type {number}
39
+ * @memberof ClusterUtilization
40
+ */
41
+ mem_avg: number;
42
+ /**
43
+ * 95th percentile memory utilization percentage (0-100)
44
+ * @type {number}
45
+ * @memberof ClusterUtilization
46
+ */
47
+ mem_p95: number;
48
+ /**
49
+ * Maximum memory utilization percentage (0-100)
50
+ * @type {number}
51
+ * @memberof ClusterUtilization
52
+ */
53
+ mem_max: number;
54
+ /**
55
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
56
+ * @type {number}
57
+ * @memberof ClusterUtilization
58
+ */
59
+ confidence: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ClusterUtilization interface.
63
+ */
64
+ export declare function instanceOfClusterUtilization(value: object): value is ClusterUtilization;
65
+ export declare function ClusterUtilizationFromJSON(json: any): ClusterUtilization;
66
+ export declare function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization;
67
+ export declare function ClusterUtilizationToJSON(json: any): ClusterUtilization;
68
+ export declare function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ClusterUtilization interface.
16
+ */
17
+ export function instanceOfClusterUtilization(value) {
18
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
19
+ return false;
20
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
21
+ return false;
22
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined)
23
+ return false;
24
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined)
25
+ return false;
26
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined)
27
+ return false;
28
+ if (!('mem_max' in value) || value['mem_max'] === undefined)
29
+ return false;
30
+ if (!('confidence' in value) || value['confidence'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function ClusterUtilizationFromJSON(json) {
35
+ return ClusterUtilizationFromJSONTyped(json, false);
36
+ }
37
+ export function ClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'cpu_avg': json['cpu_avg'],
43
+ 'cpu_p95': json['cpu_p95'],
44
+ 'cpu_max': json['cpu_max'],
45
+ 'mem_avg': json['mem_avg'],
46
+ 'mem_p95': json['mem_p95'],
47
+ 'mem_max': json['mem_max'],
48
+ 'confidence': json['confidence'],
49
+ };
50
+ }
51
+ export function ClusterUtilizationToJSON(json) {
52
+ return ClusterUtilizationToJSONTyped(json, false);
53
+ }
54
+ export function ClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'cpu_avg': value['cpu_avg'],
60
+ 'cpu_p95': value['cpu_p95'],
61
+ 'cpu_max': value['cpu_max'],
62
+ 'mem_avg': value['mem_avg'],
63
+ 'mem_p95': value['mem_p95'],
64
+ 'mem_max': value['mem_max'],
65
+ 'confidence': value['confidence'],
66
+ };
67
+ }
@@ -33,12 +33,6 @@ export interface CreateGroupRequest {
33
33
  * @memberof CreateGroupRequest
34
34
  */
35
35
  filter: string;
36
- /**
37
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
38
- * @type {Array<string>}
39
- * @memberof CreateGroupRequest
40
- */
41
- tags?: Array<string>;
42
36
  }
43
37
  /**
44
38
  * Check if a given object implements the CreateGroupRequest interface.
@@ -32,7 +32,6 @@ export function CreateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'name': json['name'],
33
33
  'description': json['description'] == null ? undefined : json['description'],
34
34
  'filter': json['filter'],
35
- 'tags': json['tags'] == null ? undefined : json['tags'],
36
35
  };
37
36
  }
38
37
  export function CreateGroupRequestToJSON(json) {
@@ -46,6 +45,5 @@ export function CreateGroupRequestToJSONTyped(value, ignoreDiscriminator = false
46
45
  'name': value['name'],
47
46
  'description': value['description'],
48
47
  'filter': value['filter'],
49
- 'tags': value['tags'],
50
48
  };
51
49
  }
@@ -39,12 +39,6 @@ export interface Group {
39
39
  * @memberof Group
40
40
  */
41
41
  filter: string;
42
- /**
43
- * Tags associated with this group (applied to matching VMs)
44
- * @type {Array<string>}
45
- * @memberof Group
46
- */
47
- tags?: Array<string>;
48
42
  /**
49
43
  * Timestamp when the group was created
50
44
  * @type {Date}