@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.0-fa395f816b50

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 (56) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +12 -7
  3. package/dist/apis/DefaultApi.d.ts +74 -0
  4. package/dist/apis/DefaultApi.js +80 -0
  5. package/dist/esm/apis/DefaultApi.d.ts +74 -0
  6. package/dist/esm/apis/DefaultApi.js +80 -0
  7. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
  8. package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
  9. package/dist/esm/models/CollectorStartRequest.d.ts +12 -12
  10. package/dist/esm/models/CollectorStartRequest.js +5 -11
  11. package/dist/esm/models/Datastore.js +1 -1
  12. package/dist/esm/models/ExportInventory400Response.d.ts +32 -0
  13. package/dist/esm/models/ExportInventory400Response.js +41 -0
  14. package/dist/esm/models/ExportInventory500Response.d.ts +32 -0
  15. package/dist/esm/models/ExportInventory500Response.js +41 -0
  16. package/dist/esm/models/Host.js +3 -3
  17. package/dist/esm/models/OsInfo.d.ts +16 -0
  18. package/dist/esm/models/OsInfo.js +11 -0
  19. package/dist/esm/models/index.d.ts +3 -0
  20. package/dist/esm/models/index.js +3 -0
  21. package/dist/esm/runtime.d.ts +1 -0
  22. package/dist/esm/runtime.js +4 -0
  23. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  24. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  25. package/dist/models/CollectorStartRequest.d.ts +12 -12
  26. package/dist/models/CollectorStartRequest.js +5 -11
  27. package/dist/models/Datastore.js +1 -1
  28. package/dist/models/ExportInventory400Response.d.ts +32 -0
  29. package/dist/models/ExportInventory400Response.js +48 -0
  30. package/dist/models/ExportInventory500Response.d.ts +32 -0
  31. package/dist/models/ExportInventory500Response.js +48 -0
  32. package/dist/models/Host.js +3 -3
  33. package/dist/models/OsInfo.d.ts +16 -0
  34. package/dist/models/OsInfo.js +12 -0
  35. package/dist/models/index.d.ts +3 -0
  36. package/dist/models/index.js +3 -0
  37. package/dist/runtime.d.ts +1 -0
  38. package/dist/runtime.js +5 -0
  39. package/docs/BatchUpdateExclusionRequest.md +36 -0
  40. package/docs/CollectorStartRequest.md +3 -2
  41. package/docs/DefaultApi.md +139 -0
  42. package/docs/ExportInventory400Response.md +34 -0
  43. package/docs/ExportInventory500Response.md +34 -0
  44. package/docs/OsInfo.md +2 -0
  45. package/package.json +1 -1
  46. package/src/apis/DefaultApi.ts +159 -0
  47. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  48. package/src/models/CollectorStartRequest.ts +17 -20
  49. package/src/models/Datastore.ts +1 -1
  50. package/src/models/ExportInventory400Response.ts +65 -0
  51. package/src/models/ExportInventory500Response.ts +65 -0
  52. package/src/models/Host.ts +3 -3
  53. package/src/models/OsInfo.ts +21 -0
  54. package/src/models/index.ts +3 -0
  55. package/src/runtime.ts +5 -0
  56. 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
@@ -24,6 +25,8 @@ docs/DeleteLabelGloballyResponse.md
24
25
  docs/DiskSizeTierSummary.md
25
26
  docs/DiskTypeSummary.md
26
27
  docs/EstimateRange.md
28
+ docs/ExportInventory400Response.md
29
+ docs/ExportInventory500Response.md
27
30
  docs/ForecastStats.md
28
31
  docs/ForecasterDatastoresRequest.md
29
32
  docs/ForecasterPairStatus.md
@@ -90,6 +93,7 @@ src/models/AgentStatus.ts
90
93
  src/models/ApplicationListResponse.ts
91
94
  src/models/ApplicationOverview.ts
92
95
  src/models/ApplicationVM.ts
96
+ src/models/BatchUpdateExclusionRequest.ts
93
97
  src/models/BenchmarkRun.ts
94
98
  src/models/CapabilityStatus.ts
95
99
  src/models/CapabilityStatusCapabilities.ts
@@ -106,6 +110,8 @@ src/models/DeleteLabelGloballyResponse.ts
106
110
  src/models/DiskSizeTierSummary.ts
107
111
  src/models/DiskTypeSummary.ts
108
112
  src/models/EstimateRange.ts
113
+ src/models/ExportInventory400Response.ts
114
+ src/models/ExportInventory500Response.ts
109
115
  src/models/ForecastStats.ts
110
116
  src/models/ForecasterDatastoresRequest.ts
111
117
  src/models/ForecasterPairStatus.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.16.0
1
+ # @openshift-migration-advisor/agent-sdk@0.17.0-fa395f816b50
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,11 +50,13 @@ 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
56
57
  *DefaultApi* | [**deleteGroup**](docs/DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group
57
58
  *DefaultApi* | [**deleteLabelGlobally**](docs/DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs
59
+ *DefaultApi* | [**exportInventory**](docs/DefaultApi.md#exportinventory) | **GET** /export | Export VM inventory and migration planning data
58
60
  *DefaultApi* | [**getAgentStatus**](docs/DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status
59
61
  *DefaultApi* | [**getApplications**](docs/DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs
60
62
  *DefaultApi* | [**getClusterUtilization**](docs/DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID
@@ -109,6 +111,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
109
111
  - [ApplicationListResponse](docs/ApplicationListResponse.md)
110
112
  - [ApplicationOverview](docs/ApplicationOverview.md)
111
113
  - [ApplicationVM](docs/ApplicationVM.md)
114
+ - [BatchUpdateExclusionRequest](docs/BatchUpdateExclusionRequest.md)
112
115
  - [BenchmarkRun](docs/BenchmarkRun.md)
113
116
  - [CapabilityStatus](docs/CapabilityStatus.md)
114
117
  - [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
@@ -125,6 +128,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
125
128
  - [DiskSizeTierSummary](docs/DiskSizeTierSummary.md)
126
129
  - [DiskTypeSummary](docs/DiskTypeSummary.md)
127
130
  - [EstimateRange](docs/EstimateRange.md)
131
+ - [ExportInventory400Response](docs/ExportInventory400Response.md)
132
+ - [ExportInventory500Response](docs/ExportInventory500Response.md)
128
133
  - [ForecastStats](docs/ForecastStats.md)
129
134
  - [ForecasterDatastoresRequest](docs/ForecasterDatastoresRequest.md)
130
135
  - [ForecasterPairStatus](docs/ForecasterPairStatus.md)
@@ -195,7 +200,7 @@ and is automatically generated by the
195
200
  [OpenAPI Generator](https://openapi-generator.tech) project:
196
201
 
197
202
  - API version: `v1`
198
- - Package version: `0.16.0`
203
+ - Package version: `0.17.0-fa395f816b50`
199
204
  - Generator version: `7.24.0-SNAPSHOT`
200
205
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
201
206
 
@@ -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
  }
@@ -64,6 +68,9 @@ export interface DeleteGroupRequest {
64
68
  export interface DeleteLabelGloballyRequest {
65
69
  label: string;
66
70
  }
71
+ export interface ExportInventoryRequest {
72
+ scope?: string;
73
+ }
67
74
  export interface GetClusterUtilizationRequest {
68
75
  clusterId: string;
69
76
  }
@@ -179,6 +186,26 @@ export interface ValidateInspectorCredentialsRequest {
179
186
  * @interface DefaultApiInterface
180
187
  */
181
188
  export interface DefaultApiInterface {
189
+ /**
190
+ * Creates request options for batchUpdateVMExclusion without sending the request
191
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
192
+ * @throws {RequiredError}
193
+ * @memberof DefaultApiInterface
194
+ */
195
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
196
+ /**
197
+ *
198
+ * @summary Batch update VM exclusion status
199
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ * @memberof DefaultApiInterface
203
+ */
204
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
205
+ /**
206
+ * Batch update VM exclusion status
207
+ */
208
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
182
209
  /**
183
210
  * Creates request options for createGroup without sending the request
184
211
  * @param {CreateGroupRequest} createGroupRequest
@@ -278,6 +305,27 @@ export interface DefaultApiInterface {
278
305
  * Delete label from all VMs
279
306
  */
280
307
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
308
+ /**
309
+ * Creates request options for exportInventory without sending the request
310
+ * @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
311
+ * @throws {RequiredError}
312
+ * @memberof DefaultApiInterface
313
+ */
314
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
315
+ /**
316
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
317
+ * @summary Export VM inventory and migration planning data
318
+ * @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ * @memberof DefaultApiInterface
322
+ */
323
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
324
+ /**
325
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
326
+ * Export VM inventory and migration planning data
327
+ */
328
+ exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
281
329
  /**
282
330
  * Creates request options for getAgentStatus without sending the request
283
331
  * @throws {RequiredError}
@@ -1203,6 +1251,18 @@ export interface DefaultApiInterface {
1203
1251
  *
1204
1252
  */
1205
1253
  export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1254
+ /**
1255
+ * Creates request options for batchUpdateVMExclusion without sending the request
1256
+ */
1257
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
1258
+ /**
1259
+ * Batch update VM exclusion status
1260
+ */
1261
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1262
+ /**
1263
+ * Batch update VM exclusion status
1264
+ */
1265
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1206
1266
  /**
1207
1267
  * Creates request options for createGroup without sending the request
1208
1268
  */
@@ -1265,6 +1325,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1265
1325
  * Delete label from all VMs
1266
1326
  */
1267
1327
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
1328
+ /**
1329
+ * Creates request options for exportInventory without sending the request
1330
+ */
1331
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
1332
+ /**
1333
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1334
+ * Export VM inventory and migration planning data
1335
+ */
1336
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
1337
+ /**
1338
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1339
+ * Export VM inventory and migration planning data
1340
+ */
1341
+ exportInventory(requestParameters?: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
1268
1342
  /**
1269
1343
  * Creates request options for getAgentStatus without sending the request
1270
1344
  */
@@ -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
  */
@@ -261,6 +301,46 @@ class DefaultApi extends runtime.BaseAPI {
261
301
  return yield response.value();
262
302
  });
263
303
  }
304
+ /**
305
+ * Creates request options for exportInventory without sending the request
306
+ */
307
+ exportInventoryRequestOpts(requestParameters) {
308
+ return __awaiter(this, void 0, void 0, function* () {
309
+ const queryParameters = {};
310
+ if (requestParameters['scope'] != null) {
311
+ queryParameters['scope'] = requestParameters['scope'];
312
+ }
313
+ const headerParameters = {};
314
+ let urlPath = `/export`;
315
+ return {
316
+ path: urlPath,
317
+ method: 'GET',
318
+ headers: headerParameters,
319
+ query: queryParameters,
320
+ };
321
+ });
322
+ }
323
+ /**
324
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
325
+ * Export VM inventory and migration planning data
326
+ */
327
+ exportInventoryRaw(requestParameters, initOverrides) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ const requestOptions = yield this.exportInventoryRequestOpts(requestParameters);
330
+ const response = yield this.request(requestOptions, initOverrides);
331
+ return new runtime.BlobApiResponse(response);
332
+ });
333
+ }
334
+ /**
335
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
336
+ * Export VM inventory and migration planning data
337
+ */
338
+ exportInventory() {
339
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
340
+ const response = yield this.exportInventoryRaw(requestParameters, initOverrides);
341
+ return yield response.value();
342
+ });
343
+ }
264
344
  /**
265
345
  * Creates request options for getAgentStatus without sending the request
266
346
  */
@@ -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
  }
@@ -64,6 +68,9 @@ export interface DeleteGroupRequest {
64
68
  export interface DeleteLabelGloballyRequest {
65
69
  label: string;
66
70
  }
71
+ export interface ExportInventoryRequest {
72
+ scope?: string;
73
+ }
67
74
  export interface GetClusterUtilizationRequest {
68
75
  clusterId: string;
69
76
  }
@@ -179,6 +186,26 @@ export interface ValidateInspectorCredentialsRequest {
179
186
  * @interface DefaultApiInterface
180
187
  */
181
188
  export interface DefaultApiInterface {
189
+ /**
190
+ * Creates request options for batchUpdateVMExclusion without sending the request
191
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
192
+ * @throws {RequiredError}
193
+ * @memberof DefaultApiInterface
194
+ */
195
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
196
+ /**
197
+ *
198
+ * @summary Batch update VM exclusion status
199
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ * @memberof DefaultApiInterface
203
+ */
204
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
205
+ /**
206
+ * Batch update VM exclusion status
207
+ */
208
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
182
209
  /**
183
210
  * Creates request options for createGroup without sending the request
184
211
  * @param {CreateGroupRequest} createGroupRequest
@@ -278,6 +305,27 @@ export interface DefaultApiInterface {
278
305
  * Delete label from all VMs
279
306
  */
280
307
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
308
+ /**
309
+ * Creates request options for exportInventory without sending the request
310
+ * @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
311
+ * @throws {RequiredError}
312
+ * @memberof DefaultApiInterface
313
+ */
314
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
315
+ /**
316
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
317
+ * @summary Export VM inventory and migration planning data
318
+ * @param {string} [scope] Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection
319
+ * @param {*} [options] Override http request option.
320
+ * @throws {RequiredError}
321
+ * @memberof DefaultApiInterface
322
+ */
323
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
324
+ /**
325
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
326
+ * Export VM inventory and migration planning data
327
+ */
328
+ exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
281
329
  /**
282
330
  * Creates request options for getAgentStatus without sending the request
283
331
  * @throws {RequiredError}
@@ -1203,6 +1251,18 @@ export interface DefaultApiInterface {
1203
1251
  *
1204
1252
  */
1205
1253
  export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1254
+ /**
1255
+ * Creates request options for batchUpdateVMExclusion without sending the request
1256
+ */
1257
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
1258
+ /**
1259
+ * Batch update VM exclusion status
1260
+ */
1261
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
1262
+ /**
1263
+ * Batch update VM exclusion status
1264
+ */
1265
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
1206
1266
  /**
1207
1267
  * Creates request options for createGroup without sending the request
1208
1268
  */
@@ -1265,6 +1325,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1265
1325
  * Delete label from all VMs
1266
1326
  */
1267
1327
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
1328
+ /**
1329
+ * Creates request options for exportInventory without sending the request
1330
+ */
1331
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
1332
+ /**
1333
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1334
+ * Export VM inventory and migration planning data
1335
+ */
1336
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
1337
+ /**
1338
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1339
+ * Export VM inventory and migration planning data
1340
+ */
1341
+ exportInventory(requestParameters?: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
1268
1342
  /**
1269
1343
  * Creates request options for getAgentStatus without sending the request
1270
1344
  */
@@ -24,6 +24,7 @@ import * as runtime from '../runtime.js';
24
24
  import { AgentModeRequestToJSON, } from '../models/AgentModeRequest.js';
25
25
  import { AgentStatusFromJSON, } from '../models/AgentStatus.js';
26
26
  import { ApplicationListResponseFromJSON, } from '../models/ApplicationListResponse.js';
27
+ import { BatchUpdateExclusionRequestToJSON, } from '../models/BatchUpdateExclusionRequest.js';
27
28
  import { BenchmarkRunFromJSON, } from '../models/BenchmarkRun.js';
28
29
  import { CapabilityStatusFromJSON, } from '../models/CapabilityStatus.js';
29
30
  import { CollectorStartRequestToJSON, } from '../models/CollectorStartRequest.js';
@@ -67,6 +68,45 @@ import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js
67
68
  *
68
69
  */
69
70
  export class DefaultApi extends runtime.BaseAPI {
71
+ /**
72
+ * Creates request options for batchUpdateVMExclusion without sending the request
73
+ */
74
+ batchUpdateVMExclusionRequestOpts(requestParameters) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
77
+ throw new runtime.RequiredError('batchUpdateExclusionRequest', 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().');
78
+ }
79
+ const queryParameters = {};
80
+ const headerParameters = {};
81
+ headerParameters['Content-Type'] = 'application/json';
82
+ let urlPath = `/vms/batch-update-exclusion`;
83
+ return {
84
+ path: urlPath,
85
+ method: 'POST',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
89
+ };
90
+ });
91
+ }
92
+ /**
93
+ * Batch update VM exclusion status
94
+ */
95
+ batchUpdateVMExclusionRaw(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const requestOptions = yield this.batchUpdateVMExclusionRequestOpts(requestParameters);
98
+ const response = yield this.request(requestOptions, initOverrides);
99
+ return new runtime.VoidApiResponse(response);
100
+ });
101
+ }
102
+ /**
103
+ * Batch update VM exclusion status
104
+ */
105
+ batchUpdateVMExclusion(requestParameters, initOverrides) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ yield this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
108
+ });
109
+ }
70
110
  /**
71
111
  * Creates request options for createGroup without sending the request
72
112
  */
@@ -258,6 +298,46 @@ export class DefaultApi extends runtime.BaseAPI {
258
298
  return yield response.value();
259
299
  });
260
300
  }
301
+ /**
302
+ * Creates request options for exportInventory without sending the request
303
+ */
304
+ exportInventoryRequestOpts(requestParameters) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ const queryParameters = {};
307
+ if (requestParameters['scope'] != null) {
308
+ queryParameters['scope'] = requestParameters['scope'];
309
+ }
310
+ const headerParameters = {};
311
+ let urlPath = `/export`;
312
+ return {
313
+ path: urlPath,
314
+ method: 'GET',
315
+ headers: headerParameters,
316
+ query: queryParameters,
317
+ };
318
+ });
319
+ }
320
+ /**
321
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
322
+ * Export VM inventory and migration planning data
323
+ */
324
+ exportInventoryRaw(requestParameters, initOverrides) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ const requestOptions = yield this.exportInventoryRequestOpts(requestParameters);
327
+ const response = yield this.request(requestOptions, initOverrides);
328
+ return new runtime.BlobApiResponse(response);
329
+ });
330
+ }
331
+ /**
332
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
333
+ * Export VM inventory and migration planning data
334
+ */
335
+ exportInventory() {
336
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
337
+ const response = yield this.exportInventoryRaw(requestParameters, initOverrides);
338
+ return yield response.value();
339
+ });
340
+ }
261
341
  /**
262
342
  * Creates request options for getAgentStatus without sending the request
263
343
  */
@@ -0,0 +1,38 @@
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 BatchUpdateExclusionRequest
16
+ */
17
+ export interface BatchUpdateExclusionRequest {
18
+ /**
19
+ * VM IDs to update
20
+ * @type {Array<string>}
21
+ * @memberof BatchUpdateExclusionRequest
22
+ */
23
+ vmIds: Array<string>;
24
+ /**
25
+ * Exclusion state to set for all VMs
26
+ * @type {boolean}
27
+ * @memberof BatchUpdateExclusionRequest
28
+ */
29
+ migrationExcluded: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the BatchUpdateExclusionRequest interface.
33
+ */
34
+ export declare function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest;
35
+ export declare function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest;
36
+ export declare function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest;
37
+ export declare function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest;
38
+ export declare function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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 BatchUpdateExclusionRequest interface.
16
+ */
17
+ export function instanceOfBatchUpdateExclusionRequest(value) {
18
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
19
+ return false;
20
+ if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function BatchUpdateExclusionRequestFromJSON(json) {
25
+ return BatchUpdateExclusionRequestFromJSONTyped(json, false);
26
+ }
27
+ export function BatchUpdateExclusionRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'vmIds': json['vmIds'],
33
+ 'migrationExcluded': json['migrationExcluded'],
34
+ };
35
+ }
36
+ export function BatchUpdateExclusionRequestToJSON(json) {
37
+ return BatchUpdateExclusionRequestToJSONTyped(json, false);
38
+ }
39
+ export function BatchUpdateExclusionRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'vmIds': value['vmIds'],
45
+ 'migrationExcluded': value['migrationExcluded'],
46
+ };
47
+ }