@openshift-migration-advisor/agent-sdk 0.16.0-f224c4e8e35b → 0.17.0-65f4a2a64a85

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 (50) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +10 -9
  3. package/dist/apis/DefaultApi.d.ts +36 -85
  4. package/dist/apis/DefaultApi.js +40 -86
  5. package/dist/esm/apis/DefaultApi.d.ts +36 -85
  6. package/dist/esm/apis/DefaultApi.js +40 -86
  7. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
  8. package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
  9. package/dist/esm/models/Datastore.js +1 -1
  10. package/dist/esm/models/Host.js +3 -3
  11. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  12. package/dist/esm/models/IssuesBreakdown.js +59 -0
  13. package/dist/esm/models/OsInfo.d.ts +16 -0
  14. package/dist/esm/models/OsInfo.js +11 -0
  15. package/dist/esm/models/VMs.d.ts +7 -0
  16. package/dist/esm/models/VMs.js +3 -0
  17. package/dist/esm/models/index.d.ts +2 -0
  18. package/dist/esm/models/index.js +2 -0
  19. package/dist/esm/runtime.d.ts +1 -0
  20. package/dist/esm/runtime.js +4 -0
  21. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  22. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  23. package/dist/models/Datastore.js +1 -1
  24. package/dist/models/Host.js +3 -3
  25. package/dist/models/IssuesBreakdown.d.ts +56 -0
  26. package/dist/models/IssuesBreakdown.js +66 -0
  27. package/dist/models/OsInfo.d.ts +16 -0
  28. package/dist/models/OsInfo.js +12 -0
  29. package/dist/models/VMs.d.ts +7 -0
  30. package/dist/models/VMs.js +3 -0
  31. package/dist/models/index.d.ts +2 -0
  32. package/dist/models/index.js +2 -0
  33. package/dist/runtime.d.ts +1 -0
  34. package/dist/runtime.js +5 -0
  35. package/docs/BatchUpdateExclusionRequest.md +36 -0
  36. package/docs/DefaultApi.md +69 -139
  37. package/docs/IssuesBreakdown.md +42 -0
  38. package/docs/OsInfo.md +2 -0
  39. package/docs/VMs.md +2 -0
  40. package/package.json +1 -1
  41. package/src/apis/DefaultApi.ts +78 -159
  42. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  43. package/src/models/Datastore.ts +1 -1
  44. package/src/models/Host.ts +3 -3
  45. package/src/models/IssuesBreakdown.ts +102 -0
  46. package/src/models/OsInfo.ts +21 -0
  47. package/src/models/VMs.ts +15 -0
  48. package/src/models/index.ts +2 -0
  49. package/src/runtime.ts +5 -0
  50. package/tsconfig.json +1 -1
@@ -7,6 +7,7 @@ docs/AgentStatus.md
7
7
  docs/ApplicationListResponse.md
8
8
  docs/ApplicationOverview.md
9
9
  docs/ApplicationVM.md
10
+ docs/BatchUpdateExclusionRequest.md
10
11
  docs/BenchmarkRun.md
11
12
  docs/CapabilityStatus.md
12
13
  docs/CapabilityStatusCapabilities.md
@@ -42,6 +43,7 @@ docs/Infra.md
42
43
  docs/InspectorStatus.md
43
44
  docs/Inventory.md
44
45
  docs/InventoryData.md
46
+ docs/IssuesBreakdown.md
45
47
  docs/MigrationIssue.md
46
48
  docs/Network.md
47
49
  docs/OperationCapability.md
@@ -92,6 +94,7 @@ src/models/AgentStatus.ts
92
94
  src/models/ApplicationListResponse.ts
93
95
  src/models/ApplicationOverview.ts
94
96
  src/models/ApplicationVM.ts
97
+ src/models/BatchUpdateExclusionRequest.ts
95
98
  src/models/BenchmarkRun.ts
96
99
  src/models/CapabilityStatus.ts
97
100
  src/models/CapabilityStatusCapabilities.ts
@@ -126,6 +129,7 @@ src/models/Infra.ts
126
129
  src/models/InspectorStatus.ts
127
130
  src/models/Inventory.ts
128
131
  src/models/InventoryData.ts
132
+ src/models/IssuesBreakdown.ts
129
133
  src/models/MigrationIssue.ts
130
134
  src/models/Network.ts
131
135
  src/models/OperationCapability.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.16.0-f224c4e8e35b
1
+ # @openshift-migration-advisor/agent-sdk@0.17.0-65f4a2a64a85
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -18,19 +18,19 @@ import {
18
18
  Configuration,
19
19
  DefaultApi,
20
20
  } from '@openshift-migration-advisor/agent-sdk';
21
- import type { CreateGroupOperationRequest } from '@openshift-migration-advisor/agent-sdk';
21
+ import type { BatchUpdateVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
22
22
 
23
23
  async function example() {
24
24
  console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
25
25
  const api = new DefaultApi();
26
26
 
27
27
  const body = {
28
- // CreateGroupRequest
29
- createGroupRequest: ...,
30
- } satisfies CreateGroupOperationRequest;
28
+ // BatchUpdateExclusionRequest
29
+ batchUpdateExclusionRequest: ...,
30
+ } satisfies BatchUpdateVMExclusionRequest;
31
31
 
32
32
  try {
33
- const data = await api.createGroup(body);
33
+ const data = await api.batchUpdateVMExclusion(body);
34
34
  console.log(data);
35
35
  } catch (error) {
36
36
  console.error(error);
@@ -50,6 +50,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
50
50
 
51
51
  | Class | Method | HTTP request | Description
52
52
  | ----- | ------ | ------------ | -------------
53
+ *DefaultApi* | [**batchUpdateVMExclusion**](docs/DefaultApi.md#batchupdatevmexclusion) | **POST** /vms/batch-update-exclusion | Batch update VM exclusion status
53
54
  *DefaultApi* | [**createGroup**](docs/DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group
54
55
  *DefaultApi* | [**deleteCredentials**](docs/DefaultApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
55
56
  *DefaultApi* | [**deleteForecasterRun**](docs/DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run
@@ -70,10 +71,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
70
71
  *DefaultApi* | [**getInspectorStatus**](docs/DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status
71
72
  *DefaultApi* | [**getInspectorVddkStatus**](docs/DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status
72
73
  *DefaultApi* | [**getInventory**](docs/DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory
73
- *DefaultApi* | [**getLatestRightsizingClusters**](docs/DefaultApi.md#getlatestrightsizingclusters) | **GET** /cluster_rightsizing | Get cluster-level utilization aggregates for the latest completed report
74
74
  *DefaultApi* | [**getRightsizingReport**](docs/DefaultApi.md#getrightsizingreport) | **GET** /rightsizing/{report_id} | Get a specific rightsizing report with full VM metrics
75
75
  *DefaultApi* | [**getRightsizingReportCluster**](docs/DefaultApi.md#getrightsizingreportcluster) | **GET** /rightsizing/{report_id}/clusters/{cluster_id} | Get utilization for a specific cluster from a specific report
76
- *DefaultApi* | [**getRightsizingReportClusters**](docs/DefaultApi.md#getrightsizingreportclusters) | **GET** /cluster_rightsizing/{report_id} | Get cluster-level utilization aggregates for a specific report
77
76
  *DefaultApi* | [**getVM**](docs/DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm
78
77
  *DefaultApi* | [**getVMLabels**](docs/DefaultApi.md#getvmlabels) | **GET** /vms/labels | Get all distinct labels in use across VMs
79
78
  *DefaultApi* | [**getVMUtilization**](docs/DefaultApi.md#getvmutilization) | **GET** /vms/{id}/utilization | Get utilization breakdown for a specific VM
@@ -110,6 +109,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
110
109
  - [ApplicationListResponse](docs/ApplicationListResponse.md)
111
110
  - [ApplicationOverview](docs/ApplicationOverview.md)
112
111
  - [ApplicationVM](docs/ApplicationVM.md)
112
+ - [BatchUpdateExclusionRequest](docs/BatchUpdateExclusionRequest.md)
113
113
  - [BenchmarkRun](docs/BenchmarkRun.md)
114
114
  - [CapabilityStatus](docs/CapabilityStatus.md)
115
115
  - [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
@@ -144,6 +144,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
144
144
  - [InspectorStatus](docs/InspectorStatus.md)
145
145
  - [Inventory](docs/Inventory.md)
146
146
  - [InventoryData](docs/InventoryData.md)
147
+ - [IssuesBreakdown](docs/IssuesBreakdown.md)
147
148
  - [MigrationIssue](docs/MigrationIssue.md)
148
149
  - [Network](docs/Network.md)
149
150
  - [OperationCapability](docs/OperationCapability.md)
@@ -198,7 +199,7 @@ and is automatically generated by the
198
199
  [OpenAPI Generator](https://openapi-generator.tech) project:
199
200
 
200
201
  - API version: `v1`
201
- - Package version: `0.16.0-f224c4e8e35b`
202
+ - Package version: `0.17.0-65f4a2a64a85`
202
203
  - Generator version: `7.24.0-SNAPSHOT`
203
204
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
204
205
 
@@ -13,6 +13,7 @@ import * as runtime from '../runtime.js';
13
13
  import { type AgentModeRequest } from '../models/AgentModeRequest.js';
14
14
  import { type AgentStatus } from '../models/AgentStatus.js';
15
15
  import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
16
+ import { type BatchUpdateExclusionRequest } from '../models/BatchUpdateExclusionRequest.js';
16
17
  import { type BenchmarkRun } from '../models/BenchmarkRun.js';
17
18
  import { type CapabilityStatus } from '../models/CapabilityStatus.js';
18
19
  import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
@@ -52,6 +53,9 @@ import { type VirtualMachineListResponse } from '../models/VirtualMachineListRes
52
53
  import { type VirtualMachineUpdateRequest } from '../models/VirtualMachineUpdateRequest.js';
53
54
  import { type VmInspectionStatus } from '../models/VmInspectionStatus.js';
54
55
  import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
56
+ export interface BatchUpdateVMExclusionRequest {
57
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
58
+ }
55
59
  export interface CreateGroupOperationRequest {
56
60
  createGroupRequest: CreateGroupRequest;
57
61
  }
@@ -92,9 +96,6 @@ export interface GetInventoryRequest {
92
96
  withAgentId?: boolean;
93
97
  groupId?: string;
94
98
  }
95
- export interface GetLatestRightsizingClustersRequest {
96
- byExpression?: string;
97
- }
98
99
  export interface GetRightsizingReportRequest {
99
100
  reportId: string;
100
101
  }
@@ -102,10 +103,6 @@ export interface GetRightsizingReportClusterRequest {
102
103
  reportId: string;
103
104
  clusterId: string;
104
105
  }
105
- export interface GetRightsizingReportClustersRequest {
106
- reportId: string;
107
- byExpression?: string;
108
- }
109
106
  export interface GetVMRequest {
110
107
  id: string;
111
108
  }
@@ -182,6 +179,26 @@ export interface ValidateInspectorCredentialsRequest {
182
179
  * @interface DefaultApiInterface
183
180
  */
184
181
  export interface DefaultApiInterface {
182
+ /**
183
+ * Creates request options for batchUpdateVMExclusion without sending the request
184
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
185
+ * @throws {RequiredError}
186
+ * @memberof DefaultApiInterface
187
+ */
188
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
189
+ /**
190
+ *
191
+ * @summary Batch update VM exclusion status
192
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ * @memberof DefaultApiInterface
196
+ */
197
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
198
+ /**
199
+ * Batch update VM exclusion status
200
+ */
201
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
185
202
  /**
186
203
  * Creates request options for createGroup without sending the request
187
204
  * @param {CreateGroupRequest} createGroupRequest
@@ -582,29 +599,6 @@ export interface DefaultApiInterface {
582
599
  * Get collected inventory
583
600
  */
584
601
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
585
- /**
586
- * Creates request options for getLatestRightsizingClusters without sending the request
587
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
588
- * @deprecated
589
- * @throws {RequiredError}
590
- * @memberof DefaultApiInterface
591
- */
592
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
593
- /**
594
- *
595
- * @summary Get cluster-level utilization aggregates for the latest completed report
596
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
597
- * @param {*} [options] Override http request option.
598
- * @deprecated
599
- * @throws {RequiredError}
600
- * @memberof DefaultApiInterface
601
- */
602
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
603
- /**
604
- * Get cluster-level utilization aggregates for the latest completed report
605
- * @deprecated
606
- */
607
- getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
608
602
  /**
609
603
  * Creates request options for getRightsizingReport without sending the request
610
604
  * @param {string} reportId Report UUID
@@ -647,31 +641,6 @@ export interface DefaultApiInterface {
647
641
  * Get utilization for a specific cluster from a specific report
648
642
  */
649
643
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
650
- /**
651
- * Creates request options for getRightsizingReportClusters without sending the request
652
- * @param {string} reportId Rightsizing report UUID
653
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
654
- * @deprecated
655
- * @throws {RequiredError}
656
- * @memberof DefaultApiInterface
657
- */
658
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
659
- /**
660
- *
661
- * @summary Get cluster-level utilization aggregates for a specific report
662
- * @param {string} reportId Rightsizing report UUID
663
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
664
- * @param {*} [options] Override http request option.
665
- * @deprecated
666
- * @throws {RequiredError}
667
- * @memberof DefaultApiInterface
668
- */
669
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
670
- /**
671
- * Get cluster-level utilization aggregates for a specific report
672
- * @deprecated
673
- */
674
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
675
644
  /**
676
645
  * Creates request options for getVM without sending the request
677
646
  * @param {string} id VirtualMachine id
@@ -1227,6 +1196,18 @@ export interface DefaultApiInterface {
1227
1196
  *
1228
1197
  */
1229
1198
  export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1199
+ /**
1200
+ * Creates request options for batchUpdateVMExclusion without sending the request
1201
+ */
1202
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
1203
+ /**
1204
+ * Batch update VM exclusion status
1205
+ */
1206
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1207
+ /**
1208
+ * Batch update VM exclusion status
1209
+ */
1210
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1230
1211
  /**
1231
1212
  * Creates request options for createGroup without sending the request
1232
1213
  */
@@ -1483,21 +1464,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1483
1464
  * Get collected inventory
1484
1465
  */
1485
1466
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1486
- /**
1487
- * Creates request options for getLatestRightsizingClusters without sending the request
1488
- * @deprecated
1489
- */
1490
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
1491
- /**
1492
- * Get cluster-level utilization aggregates for the latest completed report
1493
- * @deprecated
1494
- */
1495
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1496
- /**
1497
- * Get cluster-level utilization aggregates for the latest completed report
1498
- * @deprecated
1499
- */
1500
- getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1501
1467
  /**
1502
1468
  * Creates request options for getRightsizingReport without sending the request
1503
1469
  */
@@ -1522,21 +1488,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1522
1488
  * Get utilization for a specific cluster from a specific report
1523
1489
  */
1524
1490
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
1525
- /**
1526
- * Creates request options for getRightsizingReportClusters without sending the request
1527
- * @deprecated
1528
- */
1529
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1530
- /**
1531
- * Get cluster-level utilization aggregates for a specific report
1532
- * @deprecated
1533
- */
1534
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1535
- /**
1536
- * Get cluster-level utilization aggregates for a specific report
1537
- * @deprecated
1538
- */
1539
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1540
1491
  /**
1541
1492
  * Creates request options for getVM without sending the request
1542
1493
  */
@@ -27,6 +27,7 @@ const runtime = require("../runtime.js");
27
27
  const AgentModeRequest_js_1 = require("../models/AgentModeRequest.js");
28
28
  const AgentStatus_js_1 = require("../models/AgentStatus.js");
29
29
  const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
30
+ const BatchUpdateExclusionRequest_js_1 = require("../models/BatchUpdateExclusionRequest.js");
30
31
  const BenchmarkRun_js_1 = require("../models/BenchmarkRun.js");
31
32
  const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
32
33
  const CollectorStartRequest_js_1 = require("../models/CollectorStartRequest.js");
@@ -70,6 +71,45 @@ const VmUtilizationDetails_js_1 = require("../models/VmUtilizationDetails.js");
70
71
  *
71
72
  */
72
73
  class DefaultApi extends runtime.BaseAPI {
74
+ /**
75
+ * Creates request options for batchUpdateVMExclusion without sending the request
76
+ */
77
+ batchUpdateVMExclusionRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
80
+ throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ headerParameters['Content-Type'] = 'application/json';
85
+ let urlPath = `/vms/batch-update-exclusion`;
86
+ return {
87
+ path: urlPath,
88
+ method: 'POST',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ body: (0, BatchUpdateExclusionRequest_js_1.BatchUpdateExclusionRequestToJSON)(requestParameters['batchUpdateExclusionRequest']),
92
+ };
93
+ });
94
+ }
95
+ /**
96
+ * Batch update VM exclusion status
97
+ */
98
+ batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
102
+ return new runtime.VoidApiResponse(response);
103
+ });
104
+ }
105
+ /**
106
+ * Batch update VM exclusion status
107
+ */
108
+ batchUpdateVMExclusion(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
111
+ });
112
+ }
73
113
  /**
74
114
  * Creates request options for createGroup without sending the request
75
115
  */
@@ -840,47 +880,6 @@ class DefaultApi extends runtime.BaseAPI {
840
880
  return yield response.value();
841
881
  });
842
882
  }
843
- /**
844
- * Creates request options for getLatestRightsizingClusters without sending the request
845
- * @deprecated
846
- */
847
- getLatestRightsizingClustersRequestOpts(requestParameters) {
848
- return __awaiter(this, void 0, void 0, function* () {
849
- const queryParameters = {};
850
- if (requestParameters['byExpression'] != null) {
851
- queryParameters['byExpression'] = requestParameters['byExpression'];
852
- }
853
- const headerParameters = {};
854
- let urlPath = `/cluster_rightsizing`;
855
- return {
856
- path: urlPath,
857
- method: 'GET',
858
- headers: headerParameters,
859
- query: queryParameters,
860
- };
861
- });
862
- }
863
- /**
864
- * Get cluster-level utilization aggregates for the latest completed report
865
- * @deprecated
866
- */
867
- getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
868
- return __awaiter(this, void 0, void 0, function* () {
869
- const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
870
- const response = yield this.request(requestOptions, initOverrides);
871
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
872
- });
873
- }
874
- /**
875
- * Get cluster-level utilization aggregates for the latest completed report
876
- * @deprecated
877
- */
878
- getLatestRightsizingClusters() {
879
- return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
880
- const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
881
- return yield response.value();
882
- });
883
- }
884
883
  /**
885
884
  * Creates request options for getRightsizingReport without sending the request
886
885
  */
@@ -963,51 +962,6 @@ class DefaultApi extends runtime.BaseAPI {
963
962
  return yield response.value();
964
963
  });
965
964
  }
966
- /**
967
- * Creates request options for getRightsizingReportClusters without sending the request
968
- * @deprecated
969
- */
970
- getRightsizingReportClustersRequestOpts(requestParameters) {
971
- return __awaiter(this, void 0, void 0, function* () {
972
- if (requestParameters['reportId'] == null) {
973
- throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
974
- }
975
- const queryParameters = {};
976
- if (requestParameters['byExpression'] != null) {
977
- queryParameters['byExpression'] = requestParameters['byExpression'];
978
- }
979
- const headerParameters = {};
980
- let urlPath = `/cluster_rightsizing/{report_id}`;
981
- urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
982
- return {
983
- path: urlPath,
984
- method: 'GET',
985
- headers: headerParameters,
986
- query: queryParameters,
987
- };
988
- });
989
- }
990
- /**
991
- * Get cluster-level utilization aggregates for a specific report
992
- * @deprecated
993
- */
994
- getRightsizingReportClustersRaw(requestParameters, initOverrides) {
995
- return __awaiter(this, void 0, void 0, function* () {
996
- const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
997
- const response = yield this.request(requestOptions, initOverrides);
998
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, RightsizingClusterListResponse_js_1.RightsizingClusterListResponseFromJSON)(jsonValue));
999
- });
1000
- }
1001
- /**
1002
- * Get cluster-level utilization aggregates for a specific report
1003
- * @deprecated
1004
- */
1005
- getRightsizingReportClusters(requestParameters, initOverrides) {
1006
- return __awaiter(this, void 0, void 0, function* () {
1007
- const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
1008
- return yield response.value();
1009
- });
1010
- }
1011
965
  /**
1012
966
  * Creates request options for getVM without sending the request
1013
967
  */
@@ -13,6 +13,7 @@ import * as runtime from '../runtime.js';
13
13
  import { type AgentModeRequest } from '../models/AgentModeRequest.js';
14
14
  import { type AgentStatus } from '../models/AgentStatus.js';
15
15
  import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
16
+ import { type BatchUpdateExclusionRequest } from '../models/BatchUpdateExclusionRequest.js';
16
17
  import { type BenchmarkRun } from '../models/BenchmarkRun.js';
17
18
  import { type CapabilityStatus } from '../models/CapabilityStatus.js';
18
19
  import { type CollectorStartRequest } from '../models/CollectorStartRequest.js';
@@ -52,6 +53,9 @@ import { type VirtualMachineListResponse } from '../models/VirtualMachineListRes
52
53
  import { type VirtualMachineUpdateRequest } from '../models/VirtualMachineUpdateRequest.js';
53
54
  import { type VmInspectionStatus } from '../models/VmInspectionStatus.js';
54
55
  import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
56
+ export interface BatchUpdateVMExclusionRequest {
57
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
58
+ }
55
59
  export interface CreateGroupOperationRequest {
56
60
  createGroupRequest: CreateGroupRequest;
57
61
  }
@@ -92,9 +96,6 @@ export interface GetInventoryRequest {
92
96
  withAgentId?: boolean;
93
97
  groupId?: string;
94
98
  }
95
- export interface GetLatestRightsizingClustersRequest {
96
- byExpression?: string;
97
- }
98
99
  export interface GetRightsizingReportRequest {
99
100
  reportId: string;
100
101
  }
@@ -102,10 +103,6 @@ export interface GetRightsizingReportClusterRequest {
102
103
  reportId: string;
103
104
  clusterId: string;
104
105
  }
105
- export interface GetRightsizingReportClustersRequest {
106
- reportId: string;
107
- byExpression?: string;
108
- }
109
106
  export interface GetVMRequest {
110
107
  id: string;
111
108
  }
@@ -182,6 +179,26 @@ export interface ValidateInspectorCredentialsRequest {
182
179
  * @interface DefaultApiInterface
183
180
  */
184
181
  export interface DefaultApiInterface {
182
+ /**
183
+ * Creates request options for batchUpdateVMExclusion without sending the request
184
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
185
+ * @throws {RequiredError}
186
+ * @memberof DefaultApiInterface
187
+ */
188
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
189
+ /**
190
+ *
191
+ * @summary Batch update VM exclusion status
192
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ * @memberof DefaultApiInterface
196
+ */
197
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
198
+ /**
199
+ * Batch update VM exclusion status
200
+ */
201
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
185
202
  /**
186
203
  * Creates request options for createGroup without sending the request
187
204
  * @param {CreateGroupRequest} createGroupRequest
@@ -582,29 +599,6 @@ export interface DefaultApiInterface {
582
599
  * Get collected inventory
583
600
  */
584
601
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
585
- /**
586
- * Creates request options for getLatestRightsizingClusters without sending the request
587
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
588
- * @deprecated
589
- * @throws {RequiredError}
590
- * @memberof DefaultApiInterface
591
- */
592
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
593
- /**
594
- *
595
- * @summary Get cluster-level utilization aggregates for the latest completed report
596
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
597
- * @param {*} [options] Override http request option.
598
- * @deprecated
599
- * @throws {RequiredError}
600
- * @memberof DefaultApiInterface
601
- */
602
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
603
- /**
604
- * Get cluster-level utilization aggregates for the latest completed report
605
- * @deprecated
606
- */
607
- getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
608
602
  /**
609
603
  * Creates request options for getRightsizingReport without sending the request
610
604
  * @param {string} reportId Report UUID
@@ -647,31 +641,6 @@ export interface DefaultApiInterface {
647
641
  * Get utilization for a specific cluster from a specific report
648
642
  */
649
643
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
650
- /**
651
- * Creates request options for getRightsizingReportClusters without sending the request
652
- * @param {string} reportId Rightsizing report UUID
653
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
654
- * @deprecated
655
- * @throws {RequiredError}
656
- * @memberof DefaultApiInterface
657
- */
658
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
659
- /**
660
- *
661
- * @summary Get cluster-level utilization aggregates for a specific report
662
- * @param {string} reportId Rightsizing report UUID
663
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
664
- * @param {*} [options] Override http request option.
665
- * @deprecated
666
- * @throws {RequiredError}
667
- * @memberof DefaultApiInterface
668
- */
669
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
670
- /**
671
- * Get cluster-level utilization aggregates for a specific report
672
- * @deprecated
673
- */
674
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
675
644
  /**
676
645
  * Creates request options for getVM without sending the request
677
646
  * @param {string} id VirtualMachine id
@@ -1227,6 +1196,18 @@ export interface DefaultApiInterface {
1227
1196
  *
1228
1197
  */
1229
1198
  export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1199
+ /**
1200
+ * Creates request options for batchUpdateVMExclusion without sending the request
1201
+ */
1202
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
1203
+ /**
1204
+ * Batch update VM exclusion status
1205
+ */
1206
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1207
+ /**
1208
+ * Batch update VM exclusion status
1209
+ */
1210
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1230
1211
  /**
1231
1212
  * Creates request options for createGroup without sending the request
1232
1213
  */
@@ -1483,21 +1464,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1483
1464
  * Get collected inventory
1484
1465
  */
1485
1466
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1486
- /**
1487
- * Creates request options for getLatestRightsizingClusters without sending the request
1488
- * @deprecated
1489
- */
1490
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
1491
- /**
1492
- * Get cluster-level utilization aggregates for the latest completed report
1493
- * @deprecated
1494
- */
1495
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1496
- /**
1497
- * Get cluster-level utilization aggregates for the latest completed report
1498
- * @deprecated
1499
- */
1500
- getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1501
1467
  /**
1502
1468
  * Creates request options for getRightsizingReport without sending the request
1503
1469
  */
@@ -1522,21 +1488,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1522
1488
  * Get utilization for a specific cluster from a specific report
1523
1489
  */
1524
1490
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
1525
- /**
1526
- * Creates request options for getRightsizingReportClusters without sending the request
1527
- * @deprecated
1528
- */
1529
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1530
- /**
1531
- * Get cluster-level utilization aggregates for a specific report
1532
- * @deprecated
1533
- */
1534
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1535
- /**
1536
- * Get cluster-level utilization aggregates for a specific report
1537
- * @deprecated
1538
- */
1539
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1540
1491
  /**
1541
1492
  * Creates request options for getVM without sending the request
1542
1493
  */