@openshift-migration-advisor/agent-sdk 0.17.0 → 0.18.0-c896a2e1a4de

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 +8 -0
  2. package/README.md +12 -9
  3. package/dist/apis/DefaultApi.d.ts +36 -85
  4. package/dist/apis/DefaultApi.js +40 -86
  5. package/dist/esm/apis/DefaultApi.d.ts +36 -85
  6. package/dist/esm/apis/DefaultApi.js +40 -86
  7. package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
  8. package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
  9. package/dist/esm/models/Datastore.d.ts +7 -0
  10. package/dist/esm/models/Datastore.js +3 -0
  11. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  12. package/dist/esm/models/IssuesBreakdown.js +59 -0
  13. package/dist/esm/models/Process.d.ts +38 -0
  14. package/dist/esm/models/Process.js +45 -0
  15. package/dist/esm/models/StorageIoConfiguration.d.ts +58 -0
  16. package/dist/esm/models/StorageIoConfiguration.js +54 -0
  17. package/dist/esm/models/VMs.d.ts +7 -0
  18. package/dist/esm/models/VMs.js +3 -0
  19. package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
  20. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  21. package/dist/esm/models/index.d.ts +4 -0
  22. package/dist/esm/models/index.js +4 -0
  23. package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
  24. package/dist/models/BatchUpdateExclusionRequest.js +54 -0
  25. package/dist/models/Datastore.d.ts +7 -0
  26. package/dist/models/Datastore.js +3 -0
  27. package/dist/models/IssuesBreakdown.d.ts +56 -0
  28. package/dist/models/IssuesBreakdown.js +66 -0
  29. package/dist/models/Process.d.ts +38 -0
  30. package/dist/models/Process.js +52 -0
  31. package/dist/models/StorageIoConfiguration.d.ts +58 -0
  32. package/dist/models/StorageIoConfiguration.js +62 -0
  33. package/dist/models/VMs.d.ts +7 -0
  34. package/dist/models/VMs.js +3 -0
  35. package/dist/models/VirtualMachineDetail.d.ts +7 -0
  36. package/dist/models/VirtualMachineDetail.js +3 -0
  37. package/dist/models/index.d.ts +4 -0
  38. package/dist/models/index.js +4 -0
  39. package/docs/BatchUpdateExclusionRequest.md +36 -0
  40. package/docs/Datastore.md +2 -0
  41. package/docs/DefaultApi.md +69 -139
  42. package/docs/IssuesBreakdown.md +42 -0
  43. package/docs/Process.md +36 -0
  44. package/docs/StorageIoConfiguration.md +40 -0
  45. package/docs/VMs.md +2 -0
  46. package/docs/VirtualMachineDetail.md +2 -0
  47. package/package.json +1 -1
  48. package/src/apis/DefaultApi.ts +78 -159
  49. package/src/models/BatchUpdateExclusionRequest.ts +75 -0
  50. package/src/models/Datastore.ts +16 -0
  51. package/src/models/IssuesBreakdown.ts +102 -0
  52. package/src/models/Process.ts +74 -0
  53. package/src/models/StorageIoConfiguration.ts +100 -0
  54. package/src/models/VMs.ts +15 -0
  55. package/src/models/VirtualMachineDetail.ts +15 -0
  56. package/src/models/index.ts +4 -0
@@ -0,0 +1,40 @@
1
+
2
+ # StorageIoConfiguration
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `enabled` | boolean
10
+ `congestionThreshold` | number
11
+ `congestionThresholdMode` | string
12
+ `percentOfPeakThroughput` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { StorageIoConfiguration } from '@openshift-migration-advisor/agent-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "enabled": null,
22
+ "congestionThreshold": null,
23
+ "congestionThresholdMode": null,
24
+ "percentOfPeakThroughput": null,
25
+ } satisfies StorageIoConfiguration
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as StorageIoConfiguration
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/docs/VMs.md CHANGED
@@ -28,6 +28,7 @@ Name | Type
28
28
  `osInfo` | [{ [key: string]: OsInfo; }](OsInfo.md)
29
29
  `notMigratableReasons` | [Array<MigrationIssue>](MigrationIssue.md)
30
30
  `migrationWarnings` | [Array<MigrationIssue>](MigrationIssue.md)
31
+ `issuesBreakdown` | [IssuesBreakdown](IssuesBreakdown.md)
31
32
 
32
33
  ## Example
33
34
 
@@ -58,6 +59,7 @@ const example = {
58
59
  "osInfo": null,
59
60
  "notMigratableReasons": null,
60
61
  "migrationWarnings": null,
62
+ "issuesBreakdown": null,
61
63
  } satisfies VMs
62
64
 
63
65
  console.log(example)
@@ -40,6 +40,7 @@ Name | Type
40
40
  `issues` | [Array<VMIssue>](VMIssue.md)
41
41
  `inspection` | [VmInspectionResults](VmInspectionResults.md)
42
42
  `utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
43
+ `processes` | [Array<Process>](Process.md)
43
44
 
44
45
  ## Example
45
46
 
@@ -82,6 +83,7 @@ const example = {
82
83
  "issues": null,
83
84
  "inspection": null,
84
85
  "utilization": null,
86
+ "processes": null,
85
87
  } satisfies VirtualMachineDetail
86
88
 
87
89
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.17.0",
3
+ "version": "0.18.0-c896a2e1a4de",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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,
@@ -239,6 +244,10 @@ import {
239
244
  VmUtilizationDetailsToJSON,
240
245
  } from '../models/VmUtilizationDetails.js';
241
246
 
247
+ export interface BatchUpdateVMExclusionRequest {
248
+ batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
249
+ }
250
+
242
251
  export interface CreateGroupOperationRequest {
243
252
  createGroupRequest: CreateGroupRequest;
244
253
  }
@@ -291,10 +300,6 @@ export interface GetInventoryRequest {
291
300
  groupId?: string;
292
301
  }
293
302
 
294
- export interface GetLatestRightsizingClustersRequest {
295
- byExpression?: string;
296
- }
297
-
298
303
  export interface GetRightsizingReportRequest {
299
304
  reportId: string;
300
305
  }
@@ -304,11 +309,6 @@ export interface GetRightsizingReportClusterRequest {
304
309
  clusterId: string;
305
310
  }
306
311
 
307
- export interface GetRightsizingReportClustersRequest {
308
- reportId: string;
309
- byExpression?: string;
310
- }
311
-
312
312
  export interface GetVMRequest {
313
313
  id: string;
314
314
  }
@@ -405,6 +405,29 @@ export interface ValidateInspectorCredentialsRequest {
405
405
  * @interface DefaultApiInterface
406
406
  */
407
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
+
408
431
  /**
409
432
  * Creates request options for createGroup without sending the request
410
433
  * @param {CreateGroupRequest} createGroupRequest
@@ -865,32 +888,6 @@ export interface DefaultApiInterface {
865
888
  */
866
889
  getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInventory200Response>;
867
890
 
868
- /**
869
- * Creates request options for getLatestRightsizingClusters without sending the request
870
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
871
- * @deprecated
872
- * @throws {RequiredError}
873
- * @memberof DefaultApiInterface
874
- */
875
- getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts>;
876
-
877
- /**
878
- *
879
- * @summary Get cluster-level utilization aggregates for the latest completed report
880
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
881
- * @param {*} [options] Override http request option.
882
- * @deprecated
883
- * @throws {RequiredError}
884
- * @memberof DefaultApiInterface
885
- */
886
- getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
887
-
888
- /**
889
- * Get cluster-level utilization aggregates for the latest completed report
890
- * @deprecated
891
- */
892
- getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
893
-
894
891
  /**
895
892
  * Creates request options for getRightsizingReport without sending the request
896
893
  * @param {string} reportId Report UUID
@@ -939,34 +936,6 @@ export interface DefaultApiInterface {
939
936
  */
940
937
  getRightsizingReportCluster(requestParameters: GetRightsizingReportClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
941
938
 
942
- /**
943
- * Creates request options for getRightsizingReportClusters without sending the request
944
- * @param {string} reportId Rightsizing report UUID
945
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
946
- * @deprecated
947
- * @throws {RequiredError}
948
- * @memberof DefaultApiInterface
949
- */
950
- getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts>;
951
-
952
- /**
953
- *
954
- * @summary Get cluster-level utilization aggregates for a specific report
955
- * @param {string} reportId Rightsizing report UUID
956
- * @param {string} [byExpression] Filter DSL expression (e.g. \&quot;cluster_id &#x3D; \&#39;domain-c123\&#39;\&quot;). Omit to return all clusters.
957
- * @param {*} [options] Override http request option.
958
- * @deprecated
959
- * @throws {RequiredError}
960
- * @memberof DefaultApiInterface
961
- */
962
- getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>>;
963
-
964
- /**
965
- * Get cluster-level utilization aggregates for a specific report
966
- * @deprecated
967
- */
968
- getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse>;
969
-
970
939
  /**
971
940
  * Creates request options for getVM without sending the request
972
941
  * @param {string} id VirtualMachine id
@@ -1605,6 +1574,52 @@ export interface DefaultApiInterface {
1605
1574
  */
1606
1575
  export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
1607
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
+
1608
1623
  /**
1609
1624
  * Creates request options for createGroup without sending the request
1610
1625
  */
@@ -2454,50 +2469,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
2454
2469
  return await response.value();
2455
2470
  }
2456
2471
 
2457
- /**
2458
- * Creates request options for getLatestRightsizingClusters without sending the request
2459
- * @deprecated
2460
- */
2461
- async getLatestRightsizingClustersRequestOpts(requestParameters: GetLatestRightsizingClustersRequest): Promise<runtime.RequestOpts> {
2462
- const queryParameters: any = {};
2463
-
2464
- if (requestParameters['byExpression'] != null) {
2465
- queryParameters['byExpression'] = requestParameters['byExpression'];
2466
- }
2467
-
2468
- const headerParameters: runtime.HTTPHeaders = {};
2469
-
2470
-
2471
- let urlPath = `/cluster_rightsizing`;
2472
-
2473
- return {
2474
- path: urlPath,
2475
- method: 'GET',
2476
- headers: headerParameters,
2477
- query: queryParameters,
2478
- };
2479
- }
2480
-
2481
- /**
2482
- * Get cluster-level utilization aggregates for the latest completed report
2483
- * @deprecated
2484
- */
2485
- async getLatestRightsizingClustersRaw(requestParameters: GetLatestRightsizingClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2486
- const requestOptions = await this.getLatestRightsizingClustersRequestOpts(requestParameters);
2487
- const response = await this.request(requestOptions, initOverrides);
2488
-
2489
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
2490
- }
2491
-
2492
- /**
2493
- * Get cluster-level utilization aggregates for the latest completed report
2494
- * @deprecated
2495
- */
2496
- async getLatestRightsizingClusters(requestParameters: GetLatestRightsizingClustersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2497
- const response = await this.getLatestRightsizingClustersRaw(requestParameters, initOverrides);
2498
- return await response.value();
2499
- }
2500
-
2501
2472
  /**
2502
2473
  * Creates request options for getRightsizingReport without sending the request
2503
2474
  */
@@ -2596,58 +2567,6 @@ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface {
2596
2567
  return await response.value();
2597
2568
  }
2598
2569
 
2599
- /**
2600
- * Creates request options for getRightsizingReportClusters without sending the request
2601
- * @deprecated
2602
- */
2603
- async getRightsizingReportClustersRequestOpts(requestParameters: GetRightsizingReportClustersRequest): Promise<runtime.RequestOpts> {
2604
- if (requestParameters['reportId'] == null) {
2605
- throw new runtime.RequiredError(
2606
- 'reportId',
2607
- 'Required parameter "reportId" was null or undefined when calling getRightsizingReportClusters().'
2608
- );
2609
- }
2610
-
2611
- const queryParameters: any = {};
2612
-
2613
- if (requestParameters['byExpression'] != null) {
2614
- queryParameters['byExpression'] = requestParameters['byExpression'];
2615
- }
2616
-
2617
- const headerParameters: runtime.HTTPHeaders = {};
2618
-
2619
-
2620
- let urlPath = `/cluster_rightsizing/{report_id}`;
2621
- urlPath = urlPath.replace('{report_id}', encodeURIComponent(String(requestParameters['reportId'])));
2622
-
2623
- return {
2624
- path: urlPath,
2625
- method: 'GET',
2626
- headers: headerParameters,
2627
- query: queryParameters,
2628
- };
2629
- }
2630
-
2631
- /**
2632
- * Get cluster-level utilization aggregates for a specific report
2633
- * @deprecated
2634
- */
2635
- async getRightsizingReportClustersRaw(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterListResponse>> {
2636
- const requestOptions = await this.getRightsizingReportClustersRequestOpts(requestParameters);
2637
- const response = await this.request(requestOptions, initOverrides);
2638
-
2639
- return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterListResponseFromJSON(jsonValue));
2640
- }
2641
-
2642
- /**
2643
- * Get cluster-level utilization aggregates for a specific report
2644
- * @deprecated
2645
- */
2646
- async getRightsizingReportClusters(requestParameters: GetRightsizingReportClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterListResponse> {
2647
- const response = await this.getRightsizingReportClustersRaw(requestParameters, initOverrides);
2648
- return await response.value();
2649
- }
2650
-
2651
2570
  /**
2652
2571
  * Creates request options for getVM without sending the request
2653
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
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
17
+ import {
18
+ StorageIoConfigurationFromJSON,
19
+ StorageIoConfigurationFromJSONTyped,
20
+ StorageIoConfigurationToJSON,
21
+ StorageIoConfigurationToJSONTyped,
22
+ } from './StorageIoConfiguration.js';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -73,6 +81,12 @@ export interface Datastore {
73
81
  * @memberof Datastore
74
82
  */
75
83
  hostId?: string | null;
84
+ /**
85
+ *
86
+ * @type {StorageIoConfiguration}
87
+ * @memberof Datastore
88
+ */
89
+ storageIoConfiguration?: StorageIoConfiguration;
76
90
  }
77
91
 
78
92
  /**
@@ -109,6 +123,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
109
123
  'protocolType': json['protocolType'],
110
124
  'model': json['model'],
111
125
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
126
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
112
127
  };
113
128
  }
114
129
 
@@ -132,6 +147,7 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
132
147
  'protocolType': value['protocolType'],
133
148
  'model': value['model'],
134
149
  'hostId': value['hostId'],
150
+ 'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
135
151
  };
136
152
  }
137
153
 
@@ -0,0 +1,102 @@
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 IssuesBreakdown
20
+ */
21
+ export interface IssuesBreakdown {
22
+ /**
23
+ * Number of VMs with at least one Critical issue
24
+ * @type {number}
25
+ * @memberof IssuesBreakdown
26
+ */
27
+ critical: number;
28
+ /**
29
+ * Number of VMs with at least one Warning issue
30
+ * @type {number}
31
+ * @memberof IssuesBreakdown
32
+ */
33
+ warning: number;
34
+ /**
35
+ * Number of VMs with at least one Information issue
36
+ * @type {number}
37
+ * @memberof IssuesBreakdown
38
+ */
39
+ information: number;
40
+ /**
41
+ * Number of VMs with at least one Advisory issue
42
+ * @type {number}
43
+ * @memberof IssuesBreakdown
44
+ */
45
+ advisory: number;
46
+ /**
47
+ * Number of VMs with at least one Error issue
48
+ * @type {number}
49
+ * @memberof IssuesBreakdown
50
+ */
51
+ error: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the IssuesBreakdown interface.
56
+ */
57
+ export function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown {
58
+ if (!('critical' in value) || value['critical'] === undefined) return false;
59
+ if (!('warning' in value) || value['warning'] === undefined) return false;
60
+ if (!('information' in value) || value['information'] === undefined) return false;
61
+ if (!('advisory' in value) || value['advisory'] === undefined) return false;
62
+ if (!('error' in value) || value['error'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function IssuesBreakdownFromJSON(json: any): IssuesBreakdown {
67
+ return IssuesBreakdownFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'critical': json['critical'],
77
+ 'warning': json['warning'],
78
+ 'information': json['information'],
79
+ 'advisory': json['advisory'],
80
+ 'error': json['error'],
81
+ };
82
+ }
83
+
84
+ export function IssuesBreakdownToJSON(json: any): IssuesBreakdown {
85
+ return IssuesBreakdownToJSONTyped(json, false);
86
+ }
87
+
88
+ export function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'critical': value['critical'],
96
+ 'warning': value['warning'],
97
+ 'information': value['information'],
98
+ 'advisory': value['advisory'],
99
+ 'error': value['error'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,74 @@
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 Process
20
+ */
21
+ export interface Process {
22
+ /**
23
+ * Name of the process
24
+ * @type {string}
25
+ * @memberof Process
26
+ */
27
+ name: string;
28
+ /**
29
+ * Version of the process
30
+ * @type {string}
31
+ * @memberof Process
32
+ */
33
+ version?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Process interface.
38
+ */
39
+ export function instanceOfProcess(value: object): value is Process {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function ProcessFromJSON(json: any): Process {
45
+ return ProcessFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'name': json['name'],
55
+ 'version': json['version'] == null ? undefined : json['version'],
56
+ };
57
+ }
58
+
59
+ export function ProcessToJSON(json: any): Process {
60
+ return ProcessToJSONTyped(json, false);
61
+ }
62
+
63
+ export function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'name': value['name'],
71
+ 'version': value['version'],
72
+ };
73
+ }
74
+