@openshift-migration-advisor/agent-sdk 0.16.0 → 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 (68) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +13 -9
  3. package/dist/apis/DefaultApi.d.ts +74 -85
  4. package/dist/apis/DefaultApi.js +80 -86
  5. package/dist/esm/apis/DefaultApi.d.ts +74 -85
  6. package/dist/esm/apis/DefaultApi.js +80 -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/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/IssuesBreakdown.d.ts +56 -0
  18. package/dist/esm/models/IssuesBreakdown.js +59 -0
  19. package/dist/esm/models/OsInfo.d.ts +16 -0
  20. package/dist/esm/models/OsInfo.js +11 -0
  21. package/dist/esm/models/VMs.d.ts +7 -0
  22. package/dist/esm/models/VMs.js +3 -0
  23. package/dist/esm/models/index.d.ts +4 -0
  24. package/dist/esm/models/index.js +4 -0
  25. package/dist/esm/runtime.d.ts +1 -0
  26. package/dist/esm/runtime.js +4 -0
  27. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  28. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  29. package/dist/models/CollectorStartRequest.d.ts +12 -12
  30. package/dist/models/CollectorStartRequest.js +5 -11
  31. package/dist/models/Datastore.js +1 -1
  32. package/dist/models/ExportInventory400Response.d.ts +32 -0
  33. package/dist/models/ExportInventory400Response.js +48 -0
  34. package/dist/models/ExportInventory500Response.d.ts +32 -0
  35. package/dist/models/ExportInventory500Response.js +48 -0
  36. package/dist/models/Host.js +3 -3
  37. package/dist/models/IssuesBreakdown.d.ts +56 -0
  38. package/dist/models/IssuesBreakdown.js +66 -0
  39. package/dist/models/OsInfo.d.ts +16 -0
  40. package/dist/models/OsInfo.js +12 -0
  41. package/dist/models/VMs.d.ts +7 -0
  42. package/dist/models/VMs.js +3 -0
  43. package/dist/models/index.d.ts +4 -0
  44. package/dist/models/index.js +4 -0
  45. package/dist/runtime.d.ts +1 -0
  46. package/dist/runtime.js +5 -0
  47. package/docs/BatchUpdateExclusionRequest.md +36 -0
  48. package/docs/CollectorStartRequest.md +3 -2
  49. package/docs/DefaultApi.md +139 -139
  50. package/docs/ExportInventory400Response.md +34 -0
  51. package/docs/ExportInventory500Response.md +34 -0
  52. package/docs/IssuesBreakdown.md +42 -0
  53. package/docs/OsInfo.md +2 -0
  54. package/docs/VMs.md +2 -0
  55. package/package.json +1 -1
  56. package/src/apis/DefaultApi.ts +159 -159
  57. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  58. package/src/models/CollectorStartRequest.ts +17 -20
  59. package/src/models/Datastore.ts +1 -1
  60. package/src/models/ExportInventory400Response.ts +65 -0
  61. package/src/models/ExportInventory500Response.ts +65 -0
  62. package/src/models/Host.ts +3 -3
  63. package/src/models/IssuesBreakdown.ts +102 -0
  64. package/src/models/OsInfo.ts +21 -0
  65. package/src/models/VMs.ts +15 -0
  66. package/src/models/index.ts +4 -0
  67. package/src/runtime.ts +5 -0
  68. package/tsconfig.json +1 -1
@@ -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
  }
@@ -89,9 +96,6 @@ export interface GetInventoryRequest {
89
96
  withAgentId?: boolean;
90
97
  groupId?: string;
91
98
  }
92
- export interface GetLatestRightsizingClustersRequest {
93
- byExpression?: string;
94
- }
95
99
  export interface GetRightsizingReportRequest {
96
100
  reportId: string;
97
101
  }
@@ -99,10 +103,6 @@ export interface GetRightsizingReportClusterRequest {
99
103
  reportId: string;
100
104
  clusterId: string;
101
105
  }
102
- export interface GetRightsizingReportClustersRequest {
103
- reportId: string;
104
- byExpression?: string;
105
- }
106
106
  export interface GetVMRequest {
107
107
  id: string;
108
108
  }
@@ -179,6 +179,26 @@ export interface ValidateInspectorCredentialsRequest {
179
179
  * @interface DefaultApiInterface
180
180
  */
181
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>;
182
202
  /**
183
203
  * Creates request options for createGroup without sending the request
184
204
  * @param {CreateGroupRequest} createGroupRequest
@@ -278,6 +298,27 @@ export interface DefaultApiInterface {
278
298
  * Delete label from all VMs
279
299
  */
280
300
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
301
+ /**
302
+ * Creates request options for exportInventory without sending the request
303
+ * @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
304
+ * @throws {RequiredError}
305
+ * @memberof DefaultApiInterface
306
+ */
307
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
308
+ /**
309
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
310
+ * @summary Export VM inventory and migration planning data
311
+ * @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
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof DefaultApiInterface
315
+ */
316
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
317
+ /**
318
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
319
+ * Export VM inventory and migration planning data
320
+ */
321
+ exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
281
322
  /**
282
323
  * Creates request options for getAgentStatus without sending the request
283
324
  * @throws {RequiredError}
@@ -558,29 +599,6 @@ export interface DefaultApiInterface {
558
599
  * Get collected inventory
559
600
  */
560
601
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
561
- /**
562
- * Creates request options for getLatestRightsizingClusters without sending the request
563
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
564
- * @deprecated
565
- * @throws {RequiredError}
566
- * @memberof DefaultApiInterface
567
- */
568
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
569
- /**
570
- *
571
- * @summary Get cluster-level utilization aggregates for the latest completed report
572
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
573
- * @param {*} [options] Override http request option.
574
- * @deprecated
575
- * @throws {RequiredError}
576
- * @memberof DefaultApiInterface
577
- */
578
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
579
- /**
580
- * Get cluster-level utilization aggregates for the latest completed report
581
- * @deprecated
582
- */
583
- getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
584
602
  /**
585
603
  * Creates request options for getRightsizingReport without sending the request
586
604
  * @param {string} reportId Report UUID
@@ -623,31 +641,6 @@ export interface DefaultApiInterface {
623
641
  * Get utilization for a specific cluster from a specific report
624
642
  */
625
643
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
626
- /**
627
- * Creates request options for getRightsizingReportClusters without sending the request
628
- * @param {string} reportId Rightsizing report UUID
629
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
630
- * @deprecated
631
- * @throws {RequiredError}
632
- * @memberof DefaultApiInterface
633
- */
634
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
635
- /**
636
- *
637
- * @summary Get cluster-level utilization aggregates for a specific report
638
- * @param {string} reportId Rightsizing report UUID
639
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
640
- * @param {*} [options] Override http request option.
641
- * @deprecated
642
- * @throws {RequiredError}
643
- * @memberof DefaultApiInterface
644
- */
645
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
646
- /**
647
- * Get cluster-level utilization aggregates for a specific report
648
- * @deprecated
649
- */
650
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
651
644
  /**
652
645
  * Creates request options for getVM without sending the request
653
646
  * @param {string} id VirtualMachine id
@@ -1203,6 +1196,18 @@ export interface DefaultApiInterface {
1203
1196
  *
1204
1197
  */
1205
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>;
1206
1211
  /**
1207
1212
  * Creates request options for createGroup without sending the request
1208
1213
  */
@@ -1265,6 +1270,20 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1265
1270
  * Delete label from all VMs
1266
1271
  */
1267
1272
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
1273
+ /**
1274
+ * Creates request options for exportInventory without sending the request
1275
+ */
1276
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
1277
+ /**
1278
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1279
+ * Export VM inventory and migration planning data
1280
+ */
1281
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
1282
+ /**
1283
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1284
+ * Export VM inventory and migration planning data
1285
+ */
1286
+ exportInventory(requestParameters?: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
1268
1287
  /**
1269
1288
  * Creates request options for getAgentStatus without sending the request
1270
1289
  */
@@ -1445,21 +1464,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1445
1464
  * Get collected inventory
1446
1465
  */
1447
1466
  getInventory(requestParameters?: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
1448
- /**
1449
- * Creates request options for getLatestRightsizingClusters without sending the request
1450
- * @deprecated
1451
- */
1452
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
1453
- /**
1454
- * Get cluster-level utilization aggregates for the latest completed report
1455
- * @deprecated
1456
- */
1457
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1458
- /**
1459
- * Get cluster-level utilization aggregates for the latest completed report
1460
- * @deprecated
1461
- */
1462
- getLatestRightsizingClusters(requestParameters?: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1463
1467
  /**
1464
1468
  * Creates request options for getRightsizingReport without sending the request
1465
1469
  */
@@ -1484,21 +1488,6 @@ export declare class DefaultApi extends runtime.BaseAPI implements DefaultApiInt
1484
1488
  * Get utilization for a specific cluster from a specific report
1485
1489
  */
1486
1490
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
1487
- /**
1488
- * Creates request options for getRightsizingReportClusters without sending the request
1489
- * @deprecated
1490
- */
1491
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
1492
- /**
1493
- * Get cluster-level utilization aggregates for a specific report
1494
- * @deprecated
1495
- */
1496
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
1497
- /**
1498
- * Get cluster-level utilization aggregates for a specific report
1499
- * @deprecated
1500
- */
1501
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
1502
1491
  /**
1503
1492
  * Creates request options for getVM without sending the request
1504
1493
  */
@@ -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
  */
@@ -797,47 +877,6 @@ export class DefaultApi extends runtime.BaseAPI {
797
877
  return yield response.value();
798
878
  });
799
879
  }
800
- /**
801
- * Creates request options for getLatestRightsizingClusters without sending the request
802
- * @deprecated
803
- */
804
- getLatestRightsizingClustersRequestOpts(requestParameters) {
805
- return __awaiter(this, void 0, void 0, function* () {
806
- const queryParameters = {};
807
- if (requestParameters['byExpression'] != null) {
808
- queryParameters['byExpression'] = requestParameters['byExpression'];
809
- }
810
- const headerParameters = {};
811
- let urlPath = `/cluster_rightsizing`;
812
- return {
813
- path: urlPath,
814
- method: 'GET',
815
- headers: headerParameters,
816
- query: queryParameters,
817
- };
818
- });
819
- }
820
- /**
821
- * Get cluster-level utilization aggregates for the latest completed report
822
- * @deprecated
823
- */
824
- getLatestRightsizingClustersRaw(requestParameters, initOverrides) {
825
- return __awaiter(this, void 0, void 0, function* () {
826
- const requestOptions = yield this.getLatestRightsizingClustersRequestOpts(requestParameters);
827
- const response = yield this.request(requestOptions, initOverrides);
828
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
829
- });
830
- }
831
- /**
832
- * Get cluster-level utilization aggregates for the latest completed report
833
- * @deprecated
834
- */
835
- getLatestRightsizingClusters() {
836
- return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
837
- const response = yield this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
838
- return yield response.value();
839
- });
840
- }
841
880
  /**
842
881
  * Creates request options for getRightsizingReport without sending the request
843
882
  */
@@ -920,51 +959,6 @@ export class DefaultApi extends runtime.BaseAPI {
920
959
  return yield response.value();
921
960
  });
922
961
  }
923
- /**
924
- * Creates request options for getRightsizingReportClusters without sending the request
925
- * @deprecated
926
- */
927
- getRightsizingReportClustersRequestOpts(requestParameters) {
928
- return __awaiter(this, void 0, void 0, function* () {
929
- if (requestParameters['reportId'] == null) {
930
- throw new runtime.RequiredError('reportId', 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().');
931
- }
932
- const queryParameters = {};
933
- if (requestParameters['byExpression'] != null) {
934
- queryParameters['byExpression'] = requestParameters['byExpression'];
935
- }
936
- const headerParameters = {};
937
- let urlPath = `/cluster_rightsizing/{report_id}`;
938
- urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
939
- return {
940
- path: urlPath,
941
- method: 'GET',
942
- headers: headerParameters,
943
- query: queryParameters,
944
- };
945
- });
946
- }
947
- /**
948
- * Get cluster-level utilization aggregates for a specific report
949
- * @deprecated
950
- */
951
- getRightsizingReportClustersRaw(requestParameters, initOverrides) {
952
- return __awaiter(this, void 0, void 0, function* () {
953
- const requestOptions = yield this.getRightsizingReportClustersRequestOpts(requestParameters);
954
- const response = yield this.request(requestOptions, initOverrides);
955
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
956
- });
957
- }
958
- /**
959
- * Get cluster-level utilization aggregates for a specific report
960
- * @deprecated
961
- */
962
- getRightsizingReportClusters(requestParameters, initOverrides) {
963
- return __awaiter(this, void 0, void 0, function* () {
964
- const response = yield this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
965
- return yield response.value();
966
- });
967
- }
968
962
  /**
969
963
  * Creates request options for getVM without sending the request
970
964
  */
@@ -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
+ }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Start collection. Credentials are optional if previously stored via PUT /credentials.
14
14
  * @export
15
15
  * @interface CollectorStartRequest
16
16
  */
@@ -20,31 +20,31 @@ export interface CollectorStartRequest {
20
20
  * @type {string}
21
21
  * @memberof CollectorStartRequest
22
22
  */
23
- url: string;
23
+ url?: string;
24
24
  /**
25
- *
25
+ * vCenter username
26
26
  * @type {string}
27
27
  * @memberof CollectorStartRequest
28
28
  */
29
- username: string;
29
+ username?: string;
30
30
  /**
31
- *
31
+ * vCenter password
32
32
  * @type {string}
33
33
  * @memberof CollectorStartRequest
34
34
  */
35
- password: string;
35
+ password?: string;
36
36
  /**
37
- * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
38
- * @type {string}
37
+ * Skip TLS certificate verification
38
+ * @type {boolean}
39
39
  * @memberof CollectorStartRequest
40
40
  */
41
- cacert?: string;
41
+ skipTls?: boolean;
42
42
  /**
43
- * When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
44
- * @type {boolean}
43
+ * PEM-encoded CA certificate bundle
44
+ * @type {string}
45
45
  * @memberof CollectorStartRequest
46
46
  */
47
- skipTls?: boolean;
47
+ cacert?: string;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the CollectorStartRequest interface.
@@ -15,12 +15,6 @@
15
15
  * Check if a given object implements the CollectorStartRequest interface.
16
16
  */
17
17
  export function instanceOfCollectorStartRequest(value) {
18
- if (!('url' in value) || value['url'] === undefined)
19
- return false;
20
- if (!('username' in value) || value['username'] === undefined)
21
- return false;
22
- if (!('password' in value) || value['password'] === undefined)
23
- return false;
24
18
  return true;
25
19
  }
26
20
  export function CollectorStartRequestFromJSON(json) {
@@ -31,11 +25,11 @@ export function CollectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
31
25
  return json;
32
26
  }
33
27
  return {
34
- 'url': json['url'],
35
- 'username': json['username'],
36
- 'password': json['password'],
37
- 'cacert': json['cacert'] == null ? undefined : json['cacert'],
28
+ 'url': json['url'] == null ? undefined : json['url'],
29
+ 'username': json['username'] == null ? undefined : json['username'],
30
+ 'password': json['password'] == null ? undefined : json['password'],
38
31
  'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
32
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
39
33
  };
40
34
  }
41
35
  export function CollectorStartRequestToJSON(json) {
@@ -49,7 +43,7 @@ export function CollectorStartRequestToJSONTyped(value, ignoreDiscriminator = fa
49
43
  'url': value['url'],
50
44
  'username': value['username'],
51
45
  'password': value['password'],
52
- 'cacert': value['cacert'],
53
46
  'skipTls': value['skipTls'],
47
+ 'cacert': value['cacert'],
54
48
  };
55
49
  }
@@ -49,7 +49,7 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
50
50
  'protocolType': json['protocolType'],
51
51
  'model': json['model'],
52
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
52
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
53
53
  };
54
54
  }
55
55
  export function DatastoreToJSON(json) {
@@ -0,0 +1,32 @@
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 ExportInventory400Response
16
+ */
17
+ export interface ExportInventory400Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExportInventory400Response
22
+ */
23
+ error?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ExportInventory400Response interface.
27
+ */
28
+ export declare function instanceOfExportInventory400Response(value: object): value is ExportInventory400Response;
29
+ export declare function ExportInventory400ResponseFromJSON(json: any): ExportInventory400Response;
30
+ export declare function ExportInventory400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory400Response;
31
+ export declare function ExportInventory400ResponseToJSON(json: any): ExportInventory400Response;
32
+ export declare function ExportInventory400ResponseToJSONTyped(value?: ExportInventory400Response | null, ignoreDiscriminator?: boolean): any;