@openshift-migration-advisor/agent-sdk 0.8.0-0a190192e598 → 0.8.0-a3f90da0e31d

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 (58) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +15 -14
  4. package/dist/apis/DefaultApi.d.ts +16 -51
  5. package/dist/apis/DefaultApi.js +18 -58
  6. package/dist/esm/apis/DefaultApi.d.ts +16 -51
  7. package/dist/esm/apis/DefaultApi.js +18 -58
  8. package/dist/esm/models/InspectorStatus.d.ts +0 -1
  9. package/dist/esm/models/InspectorStatus.js +0 -1
  10. package/dist/esm/models/VMs.d.ts +9 -0
  11. package/dist/esm/models/VMs.js +2 -0
  12. package/dist/esm/models/VirtualMachine.d.ts +7 -1
  13. package/dist/esm/models/VirtualMachine.js +4 -4
  14. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  15. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  16. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  17. package/dist/esm/models/VmInspectionConcern.js +51 -0
  18. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  19. package/dist/esm/models/VmInspectionResults.js +42 -0
  20. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  21. package/dist/esm/models/VmInspectionStatus.js +1 -2
  22. package/dist/esm/models/index.d.ts +2 -0
  23. package/dist/esm/models/index.js +2 -0
  24. package/dist/esm/runtime.js +1 -1
  25. package/dist/models/InspectorStatus.d.ts +0 -1
  26. package/dist/models/InspectorStatus.js +0 -1
  27. package/dist/models/VMs.d.ts +9 -0
  28. package/dist/models/VMs.js +2 -0
  29. package/dist/models/VirtualMachine.d.ts +7 -1
  30. package/dist/models/VirtualMachine.js +4 -4
  31. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  32. package/dist/models/VirtualMachineDetail.js +3 -3
  33. package/dist/models/VmInspectionConcern.d.ts +44 -0
  34. package/dist/models/VmInspectionConcern.js +58 -0
  35. package/dist/models/VmInspectionResults.d.ts +33 -0
  36. package/dist/models/VmInspectionResults.js +49 -0
  37. package/dist/models/VmInspectionStatus.d.ts +0 -1
  38. package/dist/models/VmInspectionStatus.js +1 -2
  39. package/dist/models/index.d.ts +2 -0
  40. package/dist/models/index.js +2 -0
  41. package/dist/runtime.js +1 -1
  42. package/docs/DefaultApi.md +22 -89
  43. package/docs/VMs.md +2 -0
  44. package/docs/VirtualMachine.md +4 -2
  45. package/docs/VirtualMachineDetail.md +1 -1
  46. package/docs/VmInspectionConcern.md +39 -0
  47. package/docs/VmInspectionResults.md +35 -0
  48. package/package.json +1 -1
  49. package/src/apis/DefaultApi.ts +29 -103
  50. package/src/models/InspectorStatus.ts +0 -1
  51. package/src/models/VMs.ts +9 -0
  52. package/src/models/VirtualMachine.ts +11 -4
  53. package/src/models/VirtualMachineDetail.ts +11 -11
  54. package/src/models/VmInspectionConcern.ts +84 -0
  55. package/src/models/VmInspectionResults.ts +73 -0
  56. package/src/models/VmInspectionStatus.ts +1 -2
  57. package/src/models/index.ts +2 -0
  58. package/src/runtime.ts +1 -1
@@ -94,10 +94,19 @@ export interface VMs {
94
94
  * Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
95
95
  * @type {{ [key: string]: number; }}
96
96
  * @memberof VMs
97
+ * @deprecated
97
98
  */
98
99
  distributionByComplexity?: {
99
100
  [key: string]: number;
100
101
  };
102
+ /**
103
+ * Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
104
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
105
+ * @memberof VMs
106
+ */
107
+ complexityDistribution?: {
108
+ [key: string]: DiskSizeTierSummary;
109
+ };
101
110
  /**
102
111
  *
103
112
  * @type {VMResourceBreakdown}
@@ -60,6 +60,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
61
61
  'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
62
62
  'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
63
+ 'complexityDistribution': json['complexityDistribution'] == null ? undefined : (mapValues(json['complexityDistribution'], DiskSizeTierSummaryFromJSON)),
63
64
  'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
64
65
  'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
65
66
  'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
@@ -90,6 +91,7 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
90
91
  'distributionByMemoryTier': value['distributionByMemoryTier'],
91
92
  'distributionByNicCount': value['distributionByNicCount'],
92
93
  'distributionByComplexity': value['distributionByComplexity'],
94
+ 'complexityDistribution': value['complexityDistribution'] == null ? undefined : (mapValues(value['complexityDistribution'], DiskSizeTierSummaryToJSON)),
93
95
  'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
94
96
  'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
95
97
  'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
@@ -81,7 +81,13 @@ export interface VirtualMachine {
81
81
  * @type {VmInspectionStatus}
82
82
  * @memberof VirtualMachine
83
83
  */
84
- inspection: VmInspectionStatus;
84
+ inspectionStatus?: VmInspectionStatus;
85
+ /**
86
+ * Number of inspection concerns recorded for the latest persisted inspection result
87
+ * @type {number}
88
+ * @memberof VirtualMachine
89
+ */
90
+ inspectionConcernCount?: number;
85
91
  /**
86
92
  * Tags aggregated from matching groups
87
93
  * @type {Array<string>}
@@ -32,8 +32,6 @@ export function instanceOfVirtualMachine(value) {
32
32
  return false;
33
33
  if (!('issueCount' in value) || value['issueCount'] === undefined)
34
34
  return false;
35
- if (!('inspection' in value) || value['inspection'] === undefined)
36
- return false;
37
35
  return true;
38
36
  }
39
37
  export function VirtualMachineFromJSON(json) {
@@ -54,7 +52,8 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'issueCount': json['issueCount'],
55
53
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
56
54
  'template': json['template'] == null ? undefined : json['template'],
57
- 'inspection': VmInspectionStatusFromJSON(json['inspection']),
55
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
56
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
58
57
  'tags': json['tags'] == null ? undefined : json['tags'],
59
58
  };
60
59
  }
@@ -76,7 +75,8 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
76
75
  'issueCount': value['issueCount'],
77
76
  'migratable': value['migratable'],
78
77
  'template': value['template'],
79
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
78
+ 'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
79
+ 'inspectionConcernCount': value['inspectionConcernCount'],
80
80
  'tags': value['tags'],
81
81
  };
82
82
  }
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VMNIC } from './VMNIC.js';
13
- import type { VmInspectionStatus } from './VmInspectionStatus.js';
14
13
  import type { GuestNetwork } from './GuestNetwork.js';
15
14
  import type { VMIssue } from './VMIssue.js';
16
15
  import type { VMDevice } from './VMDevice.js';
17
16
  import type { VMDisk } from './VMDisk.js';
17
+ import type { VmInspectionResults } from './VmInspectionResults.js';
18
18
  /**
19
19
  *
20
20
  * @export
@@ -203,10 +203,10 @@ export interface VirtualMachineDetail {
203
203
  issues?: Array<VMIssue>;
204
204
  /**
205
205
  *
206
- * @type {VmInspectionStatus}
206
+ * @type {VmInspectionResults}
207
207
  * @memberof VirtualMachineDetail
208
208
  */
209
- inspection?: VmInspectionStatus;
209
+ inspection?: VmInspectionResults;
210
210
  }
211
211
  /**
212
212
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -12,11 +12,11 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
15
- import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
16
15
  import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
16
  import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
18
17
  import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
19
18
  import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
19
+ import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
20
20
  /**
21
21
  * Check if a given object implements the VirtualMachineDetail interface.
22
22
  */
@@ -79,7 +79,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
79
79
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDeviceFromJSON)),
80
80
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
81
81
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
82
- 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
82
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
83
83
  };
84
84
  }
85
85
  export function VirtualMachineDetailToJSON(json) {
@@ -120,6 +120,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
120
120
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDeviceToJSON)),
121
121
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
122
122
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
123
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
123
+ 'inspection': VmInspectionResultsToJSON(value['inspection']),
124
124
  };
125
125
  }
@@ -0,0 +1,44 @@
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
+ * Represents the structure of vm-migration-detective library inspection concerns
14
+ * @export
15
+ * @interface VmInspectionConcern
16
+ */
17
+ export interface VmInspectionConcern {
18
+ /**
19
+ * Short label identifying the concern
20
+ * @type {string}
21
+ * @memberof VmInspectionConcern
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof VmInspectionConcern
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof VmInspectionConcern
34
+ */
35
+ category: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VmInspectionConcern interface.
39
+ */
40
+ export declare function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern;
41
+ export declare function VmInspectionConcernFromJSON(json: any): VmInspectionConcern;
42
+ export declare function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern;
43
+ export declare function VmInspectionConcernToJSON(json: any): VmInspectionConcern;
44
+ export declare function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 VmInspectionConcern interface.
16
+ */
17
+ export function instanceOfVmInspectionConcern(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('message' in value) || value['message'] === undefined)
21
+ return false;
22
+ if (!('category' in value) || value['category'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function VmInspectionConcernFromJSON(json) {
27
+ return VmInspectionConcernFromJSONTyped(json, false);
28
+ }
29
+ export function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'label': json['label'],
35
+ 'message': json['message'],
36
+ 'category': json['category'],
37
+ };
38
+ }
39
+ export function VmInspectionConcernToJSON(json) {
40
+ return VmInspectionConcernToJSONTyped(json, false);
41
+ }
42
+ export function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'label': value['label'],
48
+ 'message': value['message'],
49
+ 'category': value['category'],
50
+ };
51
+ }
@@ -0,0 +1,33 @@
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
+ import type { VmInspectionConcern } from './VmInspectionConcern.js';
13
+ /**
14
+ * VirtualMachine Inspection results
15
+ * @export
16
+ * @interface VmInspectionResults
17
+ */
18
+ export interface VmInspectionResults {
19
+ /**
20
+ *
21
+ * @type {Array<VmInspectionConcern>}
22
+ * @memberof VmInspectionResults
23
+ */
24
+ concerns?: Array<VmInspectionConcern>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the VmInspectionResults interface.
28
+ */
29
+ export declare function instanceOfVmInspectionResults(value: object): value is VmInspectionResults;
30
+ export declare function VmInspectionResultsFromJSON(json: any): VmInspectionResults;
31
+ export declare function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults;
32
+ export declare function VmInspectionResultsToJSON(json: any): VmInspectionResults;
33
+ export declare function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,42 @@
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
+ import { VmInspectionConcernFromJSON, VmInspectionConcernToJSON, } from './VmInspectionConcern.js';
15
+ /**
16
+ * Check if a given object implements the VmInspectionResults interface.
17
+ */
18
+ export function instanceOfVmInspectionResults(value) {
19
+ return true;
20
+ }
21
+ export function VmInspectionResultsFromJSON(json) {
22
+ return VmInspectionResultsFromJSONTyped(json, false);
23
+ }
24
+ export function VmInspectionResultsFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'concerns': json['concerns'] == null ? undefined : (json['concerns'].map(VmInspectionConcernFromJSON)),
30
+ };
31
+ }
32
+ export function VmInspectionResultsToJSON(json) {
33
+ return VmInspectionResultsToJSONTyped(json, false);
34
+ }
35
+ export function VmInspectionResultsToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'concerns': value['concerns'] == null ? undefined : (value['concerns'].map(VmInspectionConcernToJSON)),
41
+ };
42
+ }
@@ -43,7 +43,6 @@ export declare const VmInspectionStatusStateEnum: {
43
43
  readonly VmInspectionStatusStateCompleted: "completed";
44
44
  readonly VmInspectionStatusStateCanceled: "canceled";
45
45
  readonly VmInspectionStatusStateError: "error";
46
- readonly VmInspectionStatusStateNotFound: "not_found";
47
46
  };
48
47
  export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
49
48
  /**
@@ -19,8 +19,7 @@ export const VmInspectionStatusStateEnum = {
19
19
  VmInspectionStatusStateRunning: 'running',
20
20
  VmInspectionStatusStateCompleted: 'completed',
21
21
  VmInspectionStatusStateCanceled: 'canceled',
22
- VmInspectionStatusStateError: 'error',
23
- VmInspectionStatusStateNotFound: 'not_found'
22
+ VmInspectionStatusStateError: 'error'
24
23
  };
25
24
  /**
26
25
  * Check if a given object implements the VmInspectionStatus interface.
@@ -36,4 +36,6 @@ export * from './VersionInfo.js';
36
36
  export * from './VirtualMachine.js';
37
37
  export * from './VirtualMachineDetail.js';
38
38
  export * from './VirtualMachineListResponse.js';
39
+ export * from './VmInspectionConcern.js';
40
+ export * from './VmInspectionResults.js';
39
41
  export * from './VmInspectionStatus.js';
@@ -38,4 +38,6 @@ export * from './VersionInfo.js';
38
38
  export * from './VirtualMachine.js';
39
39
  export * from './VirtualMachineDetail.js';
40
40
  export * from './VirtualMachineListResponse.js';
41
+ export * from './VmInspectionConcern.js';
42
+ export * from './VmInspectionResults.js';
41
43
  export * from './VmInspectionStatus.js';
@@ -210,7 +210,7 @@ export class BaseAPI {
210
210
  return next;
211
211
  }
212
212
  }
213
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
213
+ BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
214
214
  ;
215
215
  function isBlob(value) {
216
216
  return typeof Blob !== 'undefined' && value instanceof Blob;
@@ -35,7 +35,6 @@ export declare const InspectorStatusStateEnum: {
35
35
  readonly InspectorStatusStateReady: "ready";
36
36
  readonly InspectorStatusStateInitiating: "Initiating";
37
37
  readonly InspectorStatusStateRunning: "running";
38
- readonly InspectorStatusStateCanceling: "canceling";
39
38
  readonly InspectorStatusStateCanceled: "canceled";
40
39
  readonly InspectorStatusStateCompleted: "completed";
41
40
  readonly InspectorStatusStateError: "error";
@@ -26,7 +26,6 @@ exports.InspectorStatusStateEnum = {
26
26
  InspectorStatusStateReady: 'ready',
27
27
  InspectorStatusStateInitiating: 'Initiating',
28
28
  InspectorStatusStateRunning: 'running',
29
- InspectorStatusStateCanceling: 'canceling',
30
29
  InspectorStatusStateCanceled: 'canceled',
31
30
  InspectorStatusStateCompleted: 'completed',
32
31
  InspectorStatusStateError: 'error'
@@ -94,10 +94,19 @@ export interface VMs {
94
94
  * Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
95
95
  * @type {{ [key: string]: number; }}
96
96
  * @memberof VMs
97
+ * @deprecated
97
98
  */
98
99
  distributionByComplexity?: {
99
100
  [key: string]: number;
100
101
  };
102
+ /**
103
+ * Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
104
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
105
+ * @memberof VMs
106
+ */
107
+ complexityDistribution?: {
108
+ [key: string]: DiskSizeTierSummary;
109
+ };
101
110
  /**
102
111
  *
103
112
  * @type {VMResourceBreakdown}
@@ -67,6 +67,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
68
68
  'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
69
69
  'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
70
+ 'complexityDistribution': json['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
70
71
  'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['ramGB']),
71
72
  'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskGB']),
72
73
  'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskCount']),
@@ -97,6 +98,7 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
97
98
  'distributionByMemoryTier': value['distributionByMemoryTier'],
98
99
  'distributionByNicCount': value['distributionByNicCount'],
99
100
  'distributionByComplexity': value['distributionByComplexity'],
101
+ 'complexityDistribution': value['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
100
102
  'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['ramGB']),
101
103
  'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskGB']),
102
104
  'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskCount']),
@@ -81,7 +81,13 @@ export interface VirtualMachine {
81
81
  * @type {VmInspectionStatus}
82
82
  * @memberof VirtualMachine
83
83
  */
84
- inspection: VmInspectionStatus;
84
+ inspectionStatus?: VmInspectionStatus;
85
+ /**
86
+ * Number of inspection concerns recorded for the latest persisted inspection result
87
+ * @type {number}
88
+ * @memberof VirtualMachine
89
+ */
90
+ inspectionConcernCount?: number;
85
91
  /**
86
92
  * Tags aggregated from matching groups
87
93
  * @type {Array<string>}
@@ -39,8 +39,6 @@ function instanceOfVirtualMachine(value) {
39
39
  return false;
40
40
  if (!('issueCount' in value) || value['issueCount'] === undefined)
41
41
  return false;
42
- if (!('inspection' in value) || value['inspection'] === undefined)
43
- return false;
44
42
  return true;
45
43
  }
46
44
  function VirtualMachineFromJSON(json) {
@@ -61,7 +59,8 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
61
59
  'issueCount': json['issueCount'],
62
60
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
63
61
  'template': json['template'] == null ? undefined : json['template'],
64
- 'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspection']),
62
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
63
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
65
64
  'tags': json['tags'] == null ? undefined : json['tags'],
66
65
  };
67
66
  }
@@ -83,7 +82,8 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
83
82
  'issueCount': value['issueCount'],
84
83
  'migratable': value['migratable'],
85
84
  'template': value['template'],
86
- 'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspection']),
85
+ 'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
86
+ 'inspectionConcernCount': value['inspectionConcernCount'],
87
87
  'tags': value['tags'],
88
88
  };
89
89
  }
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VMNIC } from './VMNIC.js';
13
- import type { VmInspectionStatus } from './VmInspectionStatus.js';
14
13
  import type { GuestNetwork } from './GuestNetwork.js';
15
14
  import type { VMIssue } from './VMIssue.js';
16
15
  import type { VMDevice } from './VMDevice.js';
17
16
  import type { VMDisk } from './VMDisk.js';
17
+ import type { VmInspectionResults } from './VmInspectionResults.js';
18
18
  /**
19
19
  *
20
20
  * @export
@@ -203,10 +203,10 @@ export interface VirtualMachineDetail {
203
203
  issues?: Array<VMIssue>;
204
204
  /**
205
205
  *
206
- * @type {VmInspectionStatus}
206
+ * @type {VmInspectionResults}
207
207
  * @memberof VirtualMachineDetail
208
208
  */
209
- inspection?: VmInspectionStatus;
209
+ inspection?: VmInspectionResults;
210
210
  }
211
211
  /**
212
212
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -19,11 +19,11 @@ exports.VirtualMachineDetailFromJSONTyped = VirtualMachineDetailFromJSONTyped;
19
19
  exports.VirtualMachineDetailToJSON = VirtualMachineDetailToJSON;
20
20
  exports.VirtualMachineDetailToJSONTyped = VirtualMachineDetailToJSONTyped;
21
21
  const VMNIC_js_1 = require("./VMNIC.js");
22
- const VmInspectionStatus_js_1 = require("./VmInspectionStatus.js");
23
22
  const GuestNetwork_js_1 = require("./GuestNetwork.js");
24
23
  const VMIssue_js_1 = require("./VMIssue.js");
25
24
  const VMDevice_js_1 = require("./VMDevice.js");
26
25
  const VMDisk_js_1 = require("./VMDisk.js");
26
+ const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
27
27
  /**
28
28
  * Check if a given object implements the VirtualMachineDetail interface.
29
29
  */
@@ -86,7 +86,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
86
86
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDevice_js_1.VMDeviceFromJSON)),
87
87
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
88
88
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
89
- 'inspection': json['inspection'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspection']),
89
+ 'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
90
90
  };
91
91
  }
92
92
  function VirtualMachineDetailToJSON(json) {
@@ -127,6 +127,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
127
127
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDevice_js_1.VMDeviceToJSON)),
128
128
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
129
129
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
130
- 'inspection': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspection']),
130
+ 'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
131
131
  };
132
132
  }
@@ -0,0 +1,44 @@
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
+ * Represents the structure of vm-migration-detective library inspection concerns
14
+ * @export
15
+ * @interface VmInspectionConcern
16
+ */
17
+ export interface VmInspectionConcern {
18
+ /**
19
+ * Short label identifying the concern
20
+ * @type {string}
21
+ * @memberof VmInspectionConcern
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof VmInspectionConcern
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof VmInspectionConcern
34
+ */
35
+ category: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VmInspectionConcern interface.
39
+ */
40
+ export declare function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern;
41
+ export declare function VmInspectionConcernFromJSON(json: any): VmInspectionConcern;
42
+ export declare function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern;
43
+ export declare function VmInspectionConcernToJSON(json: any): VmInspectionConcern;
44
+ export declare function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfVmInspectionConcern = instanceOfVmInspectionConcern;
17
+ exports.VmInspectionConcernFromJSON = VmInspectionConcernFromJSON;
18
+ exports.VmInspectionConcernFromJSONTyped = VmInspectionConcernFromJSONTyped;
19
+ exports.VmInspectionConcernToJSON = VmInspectionConcernToJSON;
20
+ exports.VmInspectionConcernToJSONTyped = VmInspectionConcernToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VmInspectionConcern interface.
23
+ */
24
+ function instanceOfVmInspectionConcern(value) {
25
+ if (!('label' in value) || value['label'] === undefined)
26
+ return false;
27
+ if (!('message' in value) || value['message'] === undefined)
28
+ return false;
29
+ if (!('category' in value) || value['category'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function VmInspectionConcernFromJSON(json) {
34
+ return VmInspectionConcernFromJSONTyped(json, false);
35
+ }
36
+ function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'label': json['label'],
42
+ 'message': json['message'],
43
+ 'category': json['category'],
44
+ };
45
+ }
46
+ function VmInspectionConcernToJSON(json) {
47
+ return VmInspectionConcernToJSONTyped(json, false);
48
+ }
49
+ function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'label': value['label'],
55
+ 'message': value['message'],
56
+ 'category': value['category'],
57
+ };
58
+ }