@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
@@ -28,6 +28,11 @@ import {
28
28
  ApplicationListResponseFromJSON,
29
29
  ApplicationListResponseToJSON,
30
30
  } from '../models/ApplicationListResponse.js';
31
+ import {
32
+ type BatchUpdateExclusionRequest,
33
+ BatchUpdateExclusionRequestFromJSON,
34
+ BatchUpdateExclusionRequestToJSON,
35
+ } from '../models/BatchUpdateExclusionRequest.js';
31
36
  import {
32
37
  type BenchmarkRun,
33
38
  BenchmarkRunFromJSON,
@@ -68,6 +73,16 @@ import {
68
73
  DeleteLabelGloballyResponseFromJSON,
69
74
  DeleteLabelGloballyResponseToJSON,
70
75
  } from '../models/DeleteLabelGloballyResponse.js';
76
+ import {
77
+ type ExportInventory400Response,
78
+ ExportInventory400ResponseFromJSON,
79
+ ExportInventory400ResponseToJSON,
80
+ } from '../models/ExportInventory400Response.js';
81
+ import {
82
+ type ExportInventory500Response,
83
+ ExportInventory500ResponseFromJSON,
84
+ ExportInventory500ResponseToJSON,
85
+ } from '../models/ExportInventory500Response.js';
71
86
  import {
72
87
  type ForecastStats,
73
88
  ForecastStatsFromJSON,
@@ -229,6 +244,10 @@ import {
229
244
  VmUtilizationDetailsToJSON,
230
245
  } from '../models/VmUtilizationDetails.js';
231
246
 
247
+ export interface BatchUpdateVMExclusionRequest {
248
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
249
+ }
250
+
232
251
  export interface CreateGroupOperationRequest {
233
252
  createGroupRequest: CreateGroupRequest;
234
253
  }
@@ -245,6 +264,10 @@ export interface DeleteLabelGloballyRequest {
245
264
  label: string;
246
265
  }
247
266
 
267
+ export interface ExportInventoryRequest {
268
+ scope?: string;
269
+ }
270
+
248
271
  export interface GetClusterUtilizationRequest {
249
272
  clusterId: string;
250
273
  }
@@ -277,10 +300,6 @@ export interface GetInventoryRequest {
277
300
  groupId?: string;
278
301
  }
279
302
 
280
- export interface GetLatestRightsizingClustersRequest {
281
- byExpression?: string;
282
- }
283
-
284
303
  export interface GetRightsizingReportRequest {
285
304
  reportId: string;
286
305
  }
@@ -290,11 +309,6 @@ export interface GetRightsizingReportClusterRequest {
290
309
  clusterId: string;
291
310
  }
292
311
 
293
- export interface GetRightsizingReportClustersRequest {
294
- reportId: string;
295
- byExpression?: string;
296
- }
297
-
298
312
  export interface GetVMRequest {
299
313
  id: string;
300
314
  }
@@ -391,6 +405,29 @@ export interface ValidateInspectorCredentialsRequest {
391
405
  * @interface DefaultApiInterface
392
406
  */
393
407
  export interface DefaultApiInterface {
408
+ /**
409
+ * Creates request options for batchUpdateVMExclusion without sending the request
410
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
411
+ * @throws {RequiredError}
412
+ * @memberof DefaultApiInterface
413
+ */
414
+ batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts>;
415
+
416
+ /**
417
+ *
418
+ * @summary Batch update VM exclusion status
419
+ * @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ * @memberof DefaultApiInterface
423
+ */
424
+ batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
425
+
426
+ /**
427
+ * Batch update VM exclusion status
428
+ */
429
+ batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
430
+
394
431
  /**
395
432
  * Creates request options for createGroup without sending the request
396
433
  * @param {CreateGroupRequest} createGroupRequest
@@ -505,6 +542,30 @@ export interface DefaultApiInterface {
505
542
  */
506
543
  deleteLabelGlobally(requestParameters: DeleteLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
507
544
 
545
+ /**
546
+ * Creates request options for exportInventory without sending the request
547
+ * @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
548
+ * @throws {RequiredError}
549
+ * @memberof DefaultApiInterface
550
+ */
551
+ exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts>;
552
+
553
+ /**
554
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
555
+ * @summary Export VM inventory and migration planning data
556
+ * @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
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ * @memberof DefaultApiInterface
560
+ */
561
+ exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
562
+
563
+ /**
564
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
565
+ * Export VM inventory and migration planning data
566
+ */
567
+ exportInventory(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
568
+
508
569
  /**
509
570
  * Creates request options for getAgentStatus without sending the request
510
571
  * @throws {RequiredError}
@@ -827,32 +888,6 @@ export interface DefaultApiInterface {
827
888
  */
828
889
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
829
890
 
830
- /**
831
- * Creates request options for getLatestRightsizingClusters without sending the request
832
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
833
- * @deprecated
834
- * @throws {RequiredError}
835
- * @memberof DefaultApiInterface
836
- */
837
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
838
-
839
- /**
840
- *
841
- * @summary Get cluster-level utilization aggregates for the latest completed report
842
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
843
- * @param {*} [options] Override http request option.
844
- * @deprecated
845
- * @throws {RequiredError}
846
- * @memberof DefaultApiInterface
847
- */
848
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
849
-
850
- /**
851
- * Get cluster-level utilization aggregates for the latest completed report
852
- * @deprecated
853
- */
854
- getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
855
-
856
891
  /**
857
892
  * Creates request options for getRightsizingReport without sending the request
858
893
  * @param {string} reportId Report UUID
@@ -901,34 +936,6 @@ export interface DefaultApiInterface {
901
936
  */
902
937
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
903
938
 
904
- /**
905
- * Creates request options for getRightsizingReportClusters without sending the request
906
- * @param {string} reportId Rightsizing report UUID
907
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
908
- * @deprecated
909
- * @throws {RequiredError}
910
- * @memberof DefaultApiInterface
911
- */
912
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
913
-
914
- /**
915
- *
916
- * @summary Get cluster-level utilization aggregates for a specific report
917
- * @param {string} reportId Rightsizing report UUID
918
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
919
- * @param {*} [options] Override http request option.
920
- * @deprecated
921
- * @throws {RequiredError}
922
- * @memberof DefaultApiInterface
923
- */
924
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
925
-
926
- /**
927
- * Get cluster-level utilization aggregates for a specific report
928
- * @deprecated
929
- */
930
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
931
-
932
939
  /**
933
940
  * Creates request options for getVM without sending the request
934
941
  * @param {string} id VirtualMachine id
@@ -1567,6 +1574,52 @@ export interface DefaultApiInterface {
1567
1574
  */
1568
1575
  export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1569
1576
 
1577
+ /**
1578
+ * Creates request options for batchUpdateVMExclusion without sending the request
1579
+ */
1580
+ async batchUpdateVMExclusionRequestOpts(requestParameters: BatchUpdateVMExclusionRequest): Promise<runtime.RequestOpts> {
1581
+ if (requestParameters['batchUpdateExclusionRequest'] == null) {
1582
+ throw new runtime.RequiredError(
1583
+ 'batchUpdateExclusionRequest',
1584
+ 'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateVMExclusion().'
1585
+ );
1586
+ }
1587
+
1588
+ const queryParameters: any = {};
1589
+
1590
+ const headerParameters: runtime.HTTPHeaders = {};
1591
+
1592
+ headerParameters['Content-Type'] = 'application/json';
1593
+
1594
+
1595
+ let urlPath = `/vms/batch-update-exclusion`;
1596
+
1597
+ return {
1598
+ path: urlPath,
1599
+ method: 'POST',
1600
+ headers: headerParameters,
1601
+ query: queryParameters,
1602
+ body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
1603
+ };
1604
+ }
1605
+
1606
+ /**
1607
+ * Batch update VM exclusion status
1608
+ */
1609
+ async batchUpdateVMExclusionRaw(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1610
+ const requestOptions = await this.batchUpdateVMExclusionRequestOpts(requestParameters);
1611
+ const response = await this.request(requestOptions, initOverrides);
1612
+
1613
+ return new runtime.VoidApiResponse(response);
1614
+ }
1615
+
1616
+ /**
1617
+ * Batch update VM exclusion status
1618
+ */
1619
+ async batchUpdateVMExclusion(requestParameters: BatchUpdateVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1620
+ await this.batchUpdateVMExclusionRaw(requestParameters, initOverrides);
1621
+ }
1622
+
1570
1623
  /**
1571
1624
  * Creates request options for createGroup without sending the request
1572
1625
  */
@@ -1785,6 +1838,49 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1785
1838
  return await response.value();
1786
1839
  }
1787
1840
 
1841
+ /**
1842
+ * Creates request options for exportInventory without sending the request
1843
+ */
1844
+ async exportInventoryRequestOpts(requestParameters: ExportInventoryRequest): Promise<runtime.RequestOpts> {
1845
+ const queryParameters: any = {};
1846
+
1847
+ if (requestParameters['scope'] != null) {
1848
+ queryParameters['scope'] = requestParameters['scope'];
1849
+ }
1850
+
1851
+ const headerParameters: runtime.HTTPHeaders = {};
1852
+
1853
+
1854
+ let urlPath = `/export`;
1855
+
1856
+ return {
1857
+ path: urlPath,
1858
+ method: 'GET',
1859
+ headers: headerParameters,
1860
+ query: queryParameters,
1861
+ };
1862
+ }
1863
+
1864
+ /**
1865
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1866
+ * Export VM inventory and migration planning data
1867
+ */
1868
+ async exportInventoryRaw(requestParameters: ExportInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
1869
+ const requestOptions = await this.exportInventoryRequestOpts(requestParameters);
1870
+ const response = await this.request(requestOptions, initOverrides);
1871
+
1872
+ return new runtime.BlobApiResponse(response);
1873
+ }
1874
+
1875
+ /**
1876
+ * Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
1877
+ * Export VM inventory and migration planning data
1878
+ */
1879
+ async exportInventory(requestParameters: ExportInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
1880
+ const response = await this.exportInventoryRaw(requestParameters, initOverrides);
1881
+ return await response.value();
1882
+ }
1883
+
1788
1884
  /**
1789
1885
  * Creates request options for getAgentStatus without sending the request
1790
1886
  */
@@ -2373,50 +2469,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
2373
2469
  return await response.value();
2374
2470
  }
2375
2471
 
2376
- /**
2377
- * Creates request options for getLatestRightsizingClusters without sending the request
2378
- * @deprecated
2379
- */
2380
- async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
2381
- const queryParameters: any = {};
2382
-
2383
- if (requestParameters['byExpression'] != null) {
2384
- queryParameters['byExpression'] = requestParameters['byExpression'];
2385
- }
2386
-
2387
- const headerParameters: runtime.HTTPHeaders = {};
2388
-
2389
-
2390
- let urlPath = `/cluster_rightsizing`;
2391
-
2392
- return {
2393
- path: urlPath,
2394
- method: 'GET',
2395
- headers: headerParameters,
2396
- query: queryParameters,
2397
- };
2398
- }
2399
-
2400
- /**
2401
- * Get cluster-level utilization aggregates for the latest completed report
2402
- * @deprecated
2403
- */
2404
- async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2405
- const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
2406
- const response = await this.request(requestOptions, initOverrides);
2407
-
2408
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
2409
- }
2410
-
2411
- /**
2412
- * Get cluster-level utilization aggregates for the latest completed report
2413
- * @deprecated
2414
- */
2415
- async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2416
- const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
2417
- return await response.value();
2418
- }
2419
-
2420
2472
  /**
2421
2473
  * Creates request options for getRightsizingReport without sending the request
2422
2474
  */
@@ -2515,58 +2567,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
2515
2567
  return await response.value();
2516
2568
  }
2517
2569
 
2518
- /**
2519
- * Creates request options for getRightsizingReportClusters without sending the request
2520
- * @deprecated
2521
- */
2522
- async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
2523
- if (requestParameters['reportId'] == null) {
2524
- throw new runtime.RequiredError(
2525
- 'reportId',
2526
- 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
2527
- );
2528
- }
2529
-
2530
- const queryParameters: any = {};
2531
-
2532
- if (requestParameters['byExpression'] != null) {
2533
- queryParameters['byExpression'] = requestParameters['byExpression'];
2534
- }
2535
-
2536
- const headerParameters: runtime.HTTPHeaders = {};
2537
-
2538
-
2539
- let urlPath = `/cluster_rightsizing/{report_id}`;
2540
- urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
2541
-
2542
- return {
2543
- path: urlPath,
2544
- method: 'GET',
2545
- headers: headerParameters,
2546
- query: queryParameters,
2547
- };
2548
- }
2549
-
2550
- /**
2551
- * Get cluster-level utilization aggregates for a specific report
2552
- * @deprecated
2553
- */
2554
- async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2555
- const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
2556
- const response = await this.request(requestOptions, initOverrides);
2557
-
2558
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
2559
- }
2560
-
2561
- /**
2562
- * Get cluster-level utilization aggregates for a specific report
2563
- * @deprecated
2564
- */
2565
- async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2566
- const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
2567
- return await response.value();
2568
- }
2569
-
2570
2570
  /**
2571
2571
  * Creates request options for getVM without sending the request
2572
2572
  */
@@ -0,0 +1,75 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BatchUpdateExclusionRequest
20
+ */
21
+ export interface BatchUpdateExclusionRequest {
22
+ /**
23
+ * VM IDs to update
24
+ * @type {Array<string>}
25
+ * @memberof BatchUpdateExclusionRequest
26
+ */
27
+ vmIds: Array<string>;
28
+ /**
29
+ * Exclusion state to set for all VMs
30
+ * @type {boolean}
31
+ * @memberof BatchUpdateExclusionRequest
32
+ */
33
+ migrationExcluded: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BatchUpdateExclusionRequest interface.
38
+ */
39
+ export function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest {
40
+ if (!('vmIds' in value) || value['vmIds'] === undefined) return false;
41
+ if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest {
46
+ return BatchUpdateExclusionRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'vmIds': json['vmIds'],
56
+ 'migrationExcluded': json['migrationExcluded'],
57
+ };
58
+ }
59
+
60
+ export function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest {
61
+ return BatchUpdateExclusionRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'vmIds': value['vmIds'],
72
+ 'migrationExcluded': value['migrationExcluded'],
73
+ };
74
+ }
75
+
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
16
  /**
17
- *
17
+ * Start collection. Credentials are optional if previously stored via PUT /credentials.
18
18
  * @export
19
19
  * @interface CollectorStartRequest
20
20
  */
@@ -24,40 +24,37 @@ export interface CollectorStartRequest {
24
24
  * @type {string}
25
25
  * @memberof CollectorStartRequest
26
26
  */
27
- url: string;
27
+ url?: string;
28
28
  /**
29
- *
29
+ * vCenter username
30
30
  * @type {string}
31
31
  * @memberof CollectorStartRequest
32
32
  */
33
- username: string;
33
+ username?: string;
34
34
  /**
35
- *
35
+ * vCenter password
36
36
  * @type {string}
37
37
  * @memberof CollectorStartRequest
38
38
  */
39
- password: string;
39
+ password?: string;
40
40
  /**
41
- * PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
42
- * @type {string}
41
+ * Skip TLS certificate verification
42
+ * @type {boolean}
43
43
  * @memberof CollectorStartRequest
44
44
  */
45
- cacert?: string;
45
+ skipTls?: boolean;
46
46
  /**
47
- * 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.
48
- * @type {boolean}
47
+ * PEM-encoded CA certificate bundle
48
+ * @type {string}
49
49
  * @memberof CollectorStartRequest
50
50
  */
51
- skipTls?: boolean;
51
+ cacert?: string;
52
52
  }
53
53
 
54
54
  /**
55
55
  * Check if a given object implements the CollectorStartRequest interface.
56
56
  */
57
57
  export function instanceOfCollectorStartRequest(value: object): value is CollectorStartRequest {
58
- if (!('url' in value) || value['url'] === undefined) return false;
59
- if (!('username' in value) || value['username'] === undefined) return false;
60
- if (!('password' in value) || value['password'] === undefined) return false;
61
58
  return true;
62
59
  }
63
60
 
@@ -71,11 +68,11 @@ export function CollectorStartRequestFromJSONTyped(json: any, ignoreDiscriminato
71
68
  }
72
69
  return {
73
70
 
74
- 'url': json['url'],
75
- 'username': json['username'],
76
- 'password': json['password'],
77
- 'cacert': json['cacert'] == null ? undefined : json['cacert'],
71
+ 'url': json['url'] == null ? undefined : json['url'],
72
+ 'username': json['username'] == null ? undefined : json['username'],
73
+ 'password': json['password'] == null ? undefined : json['password'],
78
74
  'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
75
+ 'cacert': json['cacert'] == null ? undefined : json['cacert'],
79
76
  };
80
77
  }
81
78
 
@@ -93,8 +90,8 @@ export function CollectorStartRequestToJSONTyped(value?: CollectorStartRequest |
93
90
  'url': value['url'],
94
91
  'username': value['username'],
95
92
  'password': value['password'],
96
- 'cacert': value['cacert'],
97
93
  'skipTls': value['skipTls'],
94
+ 'cacert': value['cacert'],
98
95
  };
99
96
  }
100
97
 
@@ -108,7 +108,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
108
108
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
109
109
  'protocolType': json['protocolType'],
110
110
  'model': json['model'],
111
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
111
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
112
112
  };
113
113
  }
114
114
 
@@ -0,0 +1,65 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ExportInventory400Response
20
+ */
21
+ export interface ExportInventory400Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ExportInventory400Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ExportInventory400Response interface.
32
+ */
33
+ export function instanceOfExportInventory400Response(value: object): value is ExportInventory400Response {
34
+ return true;
35
+ }
36
+
37
+ export function ExportInventory400ResponseFromJSON(json: any): ExportInventory400Response {
38
+ return ExportInventory400ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ExportInventory400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory400Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'error': json['error'] == null ? undefined : json['error'],
48
+ };
49
+ }
50
+
51
+ export function ExportInventory400ResponseToJSON(json: any): ExportInventory400Response {
52
+ return ExportInventory400ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function ExportInventory400ResponseToJSONTyped(value?: ExportInventory400Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'error': value['error'],
63
+ };
64
+ }
65
+