@openshift-migration-advisor/planner-sdk 0.16.0 → 0.17.0-587c58d24751

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 (65) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +3 -2
  3. package/dist/esm/models/AgentProxy.js +3 -3
  4. package/dist/esm/models/Datastore.js +1 -1
  5. package/dist/esm/models/Host.js +3 -3
  6. package/dist/esm/models/Identity.js +2 -2
  7. package/dist/esm/models/Info.js +2 -2
  8. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  9. package/dist/esm/models/IssuesBreakdown.js +59 -0
  10. package/dist/esm/models/OsInfo.d.ts +16 -0
  11. package/dist/esm/models/OsInfo.js +11 -0
  12. package/dist/esm/models/PartnerRequest.js +3 -3
  13. package/dist/esm/models/Snapshot.js +1 -1
  14. package/dist/esm/models/Source.js +2 -2
  15. package/dist/esm/models/SourceCreate.js +2 -2
  16. package/dist/esm/models/SourceInfra.js +1 -1
  17. package/dist/esm/models/SourceUpdate.js +2 -2
  18. package/dist/esm/models/VMs.d.ts +7 -0
  19. package/dist/esm/models/VMs.js +3 -0
  20. package/dist/esm/models/index.d.ts +1 -0
  21. package/dist/esm/models/index.js +1 -0
  22. package/dist/esm/runtime.d.ts +1 -0
  23. package/dist/esm/runtime.js +4 -0
  24. package/dist/models/AgentProxy.js +3 -3
  25. package/dist/models/Datastore.js +1 -1
  26. package/dist/models/Host.js +3 -3
  27. package/dist/models/Identity.js +2 -2
  28. package/dist/models/Info.js +2 -2
  29. package/dist/models/IssuesBreakdown.d.ts +56 -0
  30. package/dist/models/IssuesBreakdown.js +66 -0
  31. package/dist/models/OsInfo.d.ts +16 -0
  32. package/dist/models/OsInfo.js +12 -0
  33. package/dist/models/PartnerRequest.js +3 -3
  34. package/dist/models/Snapshot.js +1 -1
  35. package/dist/models/Source.js +2 -2
  36. package/dist/models/SourceCreate.js +2 -2
  37. package/dist/models/SourceInfra.js +1 -1
  38. package/dist/models/SourceUpdate.js +2 -2
  39. package/dist/models/VMs.d.ts +7 -0
  40. package/dist/models/VMs.js +3 -0
  41. package/dist/models/index.d.ts +1 -0
  42. package/dist/models/index.js +1 -0
  43. package/dist/runtime.d.ts +1 -0
  44. package/dist/runtime.js +5 -0
  45. package/docs/IssuesBreakdown.md +42 -0
  46. package/docs/OsInfo.md +2 -0
  47. package/docs/VMs.md +2 -0
  48. package/package.json +1 -1
  49. package/src/models/AgentProxy.ts +3 -3
  50. package/src/models/Datastore.ts +1 -1
  51. package/src/models/Host.ts +3 -3
  52. package/src/models/Identity.ts +2 -2
  53. package/src/models/Info.ts +2 -2
  54. package/src/models/IssuesBreakdown.ts +102 -0
  55. package/src/models/OsInfo.ts +21 -0
  56. package/src/models/PartnerRequest.ts +3 -3
  57. package/src/models/Snapshot.ts +1 -1
  58. package/src/models/Source.ts +2 -2
  59. package/src/models/SourceCreate.ts +2 -2
  60. package/src/models/SourceInfra.ts +1 -1
  61. package/src/models/SourceUpdate.ts +2 -2
  62. package/src/models/VMs.ts +15 -0
  63. package/src/models/index.ts +1 -0
  64. package/src/runtime.ts +5 -0
  65. package/tsconfig.json +1 -1
@@ -42,6 +42,7 @@ docs/Inventory.md
42
42
  docs/InventoryData.md
43
43
  docs/InventoryTotals.md
44
44
  docs/Ipv4Config.md
45
+ docs/IssuesBreakdown.md
45
46
  docs/Job.md
46
47
  docs/JobApi.md
47
48
  docs/JobStatus.md
@@ -136,6 +137,7 @@ src/models/Inventory.ts
136
137
  src/models/InventoryData.ts
137
138
  src/models/InventoryTotals.ts
138
139
  src/models/Ipv4Config.ts
140
+ src/models/IssuesBreakdown.ts
139
141
  src/models/Job.ts
140
142
  src/models/JobStatus.ts
141
143
  src/models/Label.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/planner-sdk@0.16.0
1
+ # @openshift-migration-advisor/planner-sdk@0.17.0-587c58d24751
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -134,6 +134,7 @@ All URIs are relative to *https://raw.githubusercontent.com*
134
134
  - [InventoryData](docs/InventoryData.md)
135
135
  - [InventoryTotals](docs/InventoryTotals.md)
136
136
  - [Ipv4Config](docs/Ipv4Config.md)
137
+ - [IssuesBreakdown](docs/IssuesBreakdown.md)
137
138
  - [Job](docs/Job.md)
138
139
  - [JobStatus](docs/JobStatus.md)
139
140
  - [Label](docs/Label.md)
@@ -190,7 +191,7 @@ and is automatically generated by the
190
191
  [OpenAPI Generator](https://openapi-generator.tech) project:
191
192
 
192
193
  - API version: `v1alpha1`
193
- - Package version: `0.16.0`
194
+ - Package version: `0.17.0-587c58d24751`
194
195
  - Generator version: `7.24.0-SNAPSHOT`
195
196
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
196
197
 
@@ -25,9 +25,9 @@ export function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
25
25
  return json;
26
26
  }
27
27
  return {
28
- 'httpUrl': json['httpUrl'] == null ? undefined : json['httpUrl'],
29
- 'httpsUrl': json['httpsUrl'] == null ? undefined : json['httpsUrl'],
30
- 'noProxy': json['noProxy'] == null ? undefined : json['noProxy'],
28
+ 'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
29
+ 'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
30
+ 'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
31
31
  };
32
32
  }
33
33
  export function AgentProxyToJSON(json) {
@@ -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) {
@@ -32,9 +32,9 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'id': json['id'] == null ? undefined : json['id'],
33
33
  'vendor': json['vendor'],
34
34
  'model': json['model'],
35
- 'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
36
- 'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
37
- 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
35
+ 'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
36
+ 'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
37
+ 'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
38
38
  };
39
39
  }
40
40
  export function HostToJSON(json) {
@@ -40,8 +40,8 @@ export function IdentityFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'username': json['username'],
42
42
  'kind': json['kind'],
43
- 'groupId': json['groupId'] == null ? undefined : json['groupId'],
44
- 'partnerId': json['partnerId'] == null ? undefined : json['partnerId'],
43
+ 'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
44
+ 'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
45
45
  };
46
46
  }
47
47
  export function IdentityToJSON(json) {
@@ -31,8 +31,8 @@ export function InfoFromJSONTyped(json, ignoreDiscriminator) {
31
31
  return {
32
32
  'gitCommit': json['gitCommit'],
33
33
  'versionName': json['versionName'],
34
- 'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
35
- 'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
34
+ 'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
35
+ 'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
36
36
  };
37
37
  }
38
38
  export function InfoToJSON(json) {
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 IssuesBreakdown
16
+ */
17
+ export interface IssuesBreakdown {
18
+ /**
19
+ * Number of VMs with at least one Critical issue
20
+ * @type {number}
21
+ * @memberof IssuesBreakdown
22
+ */
23
+ critical: number;
24
+ /**
25
+ * Number of VMs with at least one Warning issue
26
+ * @type {number}
27
+ * @memberof IssuesBreakdown
28
+ */
29
+ warning: number;
30
+ /**
31
+ * Number of VMs with at least one Information issue
32
+ * @type {number}
33
+ * @memberof IssuesBreakdown
34
+ */
35
+ information: number;
36
+ /**
37
+ * Number of VMs with at least one Advisory issue
38
+ * @type {number}
39
+ * @memberof IssuesBreakdown
40
+ */
41
+ advisory: number;
42
+ /**
43
+ * Number of VMs with at least one Error issue
44
+ * @type {number}
45
+ * @memberof IssuesBreakdown
46
+ */
47
+ error: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the IssuesBreakdown interface.
51
+ */
52
+ export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
53
+ export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
54
+ export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
55
+ export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
56
+ export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OpenShift Migration Advisor API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1alpha1
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 IssuesBreakdown interface.
16
+ */
17
+ export function instanceOfIssuesBreakdown(value) {
18
+ if (!('critical' in value) || value['critical'] === undefined)
19
+ return false;
20
+ if (!('warning' in value) || value['warning'] === undefined)
21
+ return false;
22
+ if (!('information' in value) || value['information'] === undefined)
23
+ return false;
24
+ if (!('advisory' in value) || value['advisory'] === undefined)
25
+ return false;
26
+ if (!('error' in value) || value['error'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function IssuesBreakdownFromJSON(json) {
31
+ return IssuesBreakdownFromJSONTyped(json, false);
32
+ }
33
+ export function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'critical': json['critical'],
39
+ 'warning': json['warning'],
40
+ 'information': json['information'],
41
+ 'advisory': json['advisory'],
42
+ 'error': json['error'],
43
+ };
44
+ }
45
+ export function IssuesBreakdownToJSON(json) {
46
+ return IssuesBreakdownToJSONTyped(json, false);
47
+ }
48
+ export function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'critical': value['critical'],
54
+ 'warning': value['warning'],
55
+ 'information': value['information'],
56
+ 'advisory': value['advisory'],
57
+ 'error': value['error'],
58
+ };
59
+ }
@@ -27,6 +27,12 @@ export interface OsInfo {
27
27
  * @memberof OsInfo
28
28
  */
29
29
  supported: boolean;
30
+ /**
31
+ * OS support tier per Red Hat KCS article 4234591
32
+ * @type {OsInfoSupportTierEnum}
33
+ * @memberof OsInfo
34
+ */
35
+ supportTier?: OsInfoSupportTierEnum;
30
36
  /**
31
37
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
32
38
  * @type {string}
@@ -34,6 +40,16 @@ export interface OsInfo {
34
40
  */
35
41
  upgradeRecommendation?: string;
36
42
  }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const OsInfoSupportTierEnum: {
47
+ readonly Certified: "certified";
48
+ readonly VendorSupported: "vendor_supported";
49
+ readonly CommunitySupported: "community_supported";
50
+ readonly SpecialHandling: "special_handling";
51
+ };
52
+ export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
37
53
  /**
38
54
  * Check if a given object implements the OsInfo interface.
39
55
  */
@@ -11,6 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const OsInfoSupportTierEnum = {
18
+ Certified: 'certified',
19
+ VendorSupported: 'vendor_supported',
20
+ CommunitySupported: 'community_supported',
21
+ SpecialHandling: 'special_handling'
22
+ };
14
23
  /**
15
24
  * Check if a given object implements the OsInfo interface.
16
25
  */
@@ -31,6 +40,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
31
40
  return {
32
41
  'count': json['count'],
33
42
  'supported': json['supported'],
43
+ 'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
34
44
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
35
45
  };
36
46
  }
@@ -44,6 +54,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
44
54
  return {
45
55
  'count': value['count'],
46
56
  'supported': value['supported'],
57
+ 'supportTier': value['supportTier'],
47
58
  'upgradeRecommendation': value['upgradeRecommendation'],
48
59
  };
49
60
  }
@@ -56,9 +56,9 @@ export function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'contactPhone': json['contactPhone'],
57
57
  'email': json['email'],
58
58
  'location': json['location'],
59
- 'reason': json['reason'] == null ? undefined : json['reason'],
60
- 'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
61
- 'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
59
+ 'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
60
+ 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
61
+ 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
62
62
  'createdAt': (new Date(json['createdAt'])),
63
63
  };
64
64
  }
@@ -33,7 +33,7 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return {
34
34
  'inventory': InventoryFromJSON(json['inventory']),
35
35
  'createdAt': (new Date(json['createdAt'])),
36
- 'subsetInventories': json['subsetInventories'] == null ? undefined : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
36
+ 'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventoryFromJSON)),
37
37
  };
38
38
  }
39
39
  export function SnapshotToJSON(json) {
@@ -55,8 +55,8 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
56
56
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
57
57
  'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
58
- 'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
59
- 'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
58
+ 'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
59
+ 'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
60
60
  'updateType': json['updateType'] == null ? undefined : json['updateType'],
61
61
  };
62
62
  }
@@ -38,9 +38,9 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  return {
40
40
  'name': json['name'],
41
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
41
+ 'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
42
42
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
43
- 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
43
+ 'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
44
44
  'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
45
45
  'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
46
46
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
@@ -28,7 +28,7 @@ export function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
28
28
  }
29
29
  return {
30
30
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
31
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
31
+ 'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
32
32
  'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
33
33
  };
34
34
  }
@@ -37,8 +37,8 @@ export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return {
38
38
  'name': json['name'] == null ? undefined : json['name'],
39
39
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
40
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
41
- 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
40
+ 'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
41
+ 'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
42
42
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
43
43
  'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
44
44
  'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MigrationIssue } from './MigrationIssue.js';
13
13
  import type { OsInfo } from './OsInfo.js';
14
+ import type { IssuesBreakdown } from './IssuesBreakdown.js';
14
15
  import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
15
16
  import type { DiskTypeSummary } from './DiskTypeSummary.js';
16
17
  import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
@@ -177,6 +178,12 @@ export interface VMs {
177
178
  * @memberof VMs
178
179
  */
179
180
  migrationWarnings: Array<MigrationIssue>;
181
+ /**
182
+ *
183
+ * @type {IssuesBreakdown}
184
+ * @memberof VMs
185
+ */
186
+ issuesBreakdown?: IssuesBreakdown;
180
187
  }
181
188
  /**
182
189
  * Check if a given object implements the VMs interface.
@@ -14,6 +14,7 @@
14
14
  import { mapValues } from '../runtime.js';
15
15
  import { MigrationIssueFromJSON, MigrationIssueToJSON, } from './MigrationIssue.js';
16
16
  import { OsInfoFromJSON, OsInfoToJSON, } from './OsInfo.js';
17
+ import { IssuesBreakdownFromJSON, IssuesBreakdownToJSON, } from './IssuesBreakdown.js';
17
18
  import { DiskSizeTierSummaryFromJSON, DiskSizeTierSummaryToJSON, } from './DiskSizeTierSummary.js';
18
19
  import { DiskTypeSummaryFromJSON, DiskTypeSummaryToJSON, } from './DiskTypeSummary.js';
19
20
  import { VMResourceBreakdownFromJSON, VMResourceBreakdownToJSON, } from './VMResourceBreakdown.js';
@@ -71,6 +72,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
71
72
  'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
72
73
  'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssueFromJSON)),
73
74
  'migrationWarnings': (json['migrationWarnings'].map(MigrationIssueFromJSON)),
75
+ 'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
74
76
  };
75
77
  }
76
78
  export function VMsToJSON(json) {
@@ -103,5 +105,6 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
103
105
  'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
104
106
  'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssueToJSON)),
105
107
  'migrationWarnings': (value['migrationWarnings'].map(MigrationIssueToJSON)),
108
+ 'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
106
109
  };
107
110
  }
@@ -33,6 +33,7 @@ export * from './Inventory.js';
33
33
  export * from './InventoryData.js';
34
34
  export * from './InventoryTotals.js';
35
35
  export * from './Ipv4Config.js';
36
+ export * from './IssuesBreakdown.js';
36
37
  export * from './Job.js';
37
38
  export * from './JobStatus.js';
38
39
  export * from './Label.js';
@@ -35,6 +35,7 @@ export * from './Inventory.js';
35
35
  export * from './InventoryData.js';
36
36
  export * from './InventoryTotals.js';
37
37
  export * from './Ipv4Config.js';
38
+ export * from './IssuesBreakdown.js';
38
39
  export * from './Job.js';
39
40
  export * from './JobStatus.js';
40
41
  export * from './Label.js';
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
127
127
  export declare function mapValues(data: any, fn: (item: any) => any): {
128
128
  [key: string]: any;
129
129
  };
130
+ export declare function anyToJSON(value: any): any;
130
131
  export declare function canConsumeForm(consumes: Consume[]): boolean;
131
132
  export interface Consume {
132
133
  contentType: string;
@@ -296,6 +296,10 @@ export function mapValues(data, fn) {
296
296
  }
297
297
  return result;
298
298
  }
299
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
300
+ export function anyToJSON(value) {
301
+ return value;
302
+ }
299
303
  export function canConsumeForm(consumes) {
300
304
  var _a;
301
305
  for (const consume of consumes) {
@@ -32,9 +32,9 @@ function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
- 'httpUrl': json['httpUrl'] == null ? undefined : json['httpUrl'],
36
- 'httpsUrl': json['httpsUrl'] == null ? undefined : json['httpsUrl'],
37
- 'noProxy': json['noProxy'] == null ? undefined : json['noProxy'],
35
+ 'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
36
+ 'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
37
+ 'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
38
38
  };
39
39
  }
40
40
  function AgentProxyToJSON(json) {
@@ -56,7 +56,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
57
57
  'protocolType': json['protocolType'],
58
58
  'model': json['model'],
59
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
59
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
60
60
  };
61
61
  }
62
62
  function DatastoreToJSON(json) {
@@ -39,9 +39,9 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'id': json['id'] == null ? undefined : json['id'],
40
40
  'vendor': json['vendor'],
41
41
  'model': json['model'],
42
- 'cpuCores': json['cpuCores'] == null ? undefined : json['cpuCores'],
43
- 'cpuSockets': json['cpuSockets'] == null ? undefined : json['cpuSockets'],
44
- 'memoryMB': json['memoryMB'] == null ? undefined : json['memoryMB'],
42
+ 'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
43
+ 'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
44
+ 'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
45
  };
46
46
  }
47
47
  function HostToJSON(json) {
@@ -48,8 +48,8 @@ function IdentityFromJSONTyped(json, ignoreDiscriminator) {
48
48
  return {
49
49
  'username': json['username'],
50
50
  'kind': json['kind'],
51
- 'groupId': json['groupId'] == null ? undefined : json['groupId'],
52
- 'partnerId': json['partnerId'] == null ? undefined : json['partnerId'],
51
+ 'groupId': json['groupId'] === undefined ? undefined : json['groupId'] === null ? null : json['groupId'],
52
+ 'partnerId': json['partnerId'] === undefined ? undefined : json['partnerId'] === null ? null : json['partnerId'],
53
53
  };
54
54
  }
55
55
  function IdentityToJSON(json) {
@@ -38,8 +38,8 @@ function InfoFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'gitCommit': json['gitCommit'],
40
40
  'versionName': json['versionName'],
41
- 'agentGitCommit': json['agentGitCommit'] == null ? undefined : json['agentGitCommit'],
42
- 'agentVersionName': json['agentVersionName'] == null ? undefined : json['agentVersionName'],
41
+ 'agentGitCommit': json['agentGitCommit'] === undefined ? undefined : json['agentGitCommit'] === null ? null : json['agentGitCommit'],
42
+ 'agentVersionName': json['agentVersionName'] === undefined ? undefined : json['agentVersionName'] === null ? null : json['agentVersionName'],
43
43
  };
44
44
  }
45
45
  function InfoToJSON(json) {
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 IssuesBreakdown
16
+ */
17
+ export interface IssuesBreakdown {
18
+ /**
19
+ * Number of VMs with at least one Critical issue
20
+ * @type {number}
21
+ * @memberof IssuesBreakdown
22
+ */
23
+ critical: number;
24
+ /**
25
+ * Number of VMs with at least one Warning issue
26
+ * @type {number}
27
+ * @memberof IssuesBreakdown
28
+ */
29
+ warning: number;
30
+ /**
31
+ * Number of VMs with at least one Information issue
32
+ * @type {number}
33
+ * @memberof IssuesBreakdown
34
+ */
35
+ information: number;
36
+ /**
37
+ * Number of VMs with at least one Advisory issue
38
+ * @type {number}
39
+ * @memberof IssuesBreakdown
40
+ */
41
+ advisory: number;
42
+ /**
43
+ * Number of VMs with at least one Error issue
44
+ * @type {number}
45
+ * @memberof IssuesBreakdown
46
+ */
47
+ error: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the IssuesBreakdown interface.
51
+ */
52
+ export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
53
+ export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
54
+ export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
55
+ export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
56
+ export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.instanceOfIssuesBreakdown = instanceOfIssuesBreakdown;
17
+ exports.IssuesBreakdownFromJSON = IssuesBreakdownFromJSON;
18
+ exports.IssuesBreakdownFromJSONTyped = IssuesBreakdownFromJSONTyped;
19
+ exports.IssuesBreakdownToJSON = IssuesBreakdownToJSON;
20
+ exports.IssuesBreakdownToJSONTyped = IssuesBreakdownToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the IssuesBreakdown interface.
23
+ */
24
+ function instanceOfIssuesBreakdown(value) {
25
+ if (!('critical' in value) || value['critical'] === undefined)
26
+ return false;
27
+ if (!('warning' in value) || value['warning'] === undefined)
28
+ return false;
29
+ if (!('information' in value) || value['information'] === undefined)
30
+ return false;
31
+ if (!('advisory' in value) || value['advisory'] === undefined)
32
+ return false;
33
+ if (!('error' in value) || value['error'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function IssuesBreakdownFromJSON(json) {
38
+ return IssuesBreakdownFromJSONTyped(json, false);
39
+ }
40
+ function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'critical': json['critical'],
46
+ 'warning': json['warning'],
47
+ 'information': json['information'],
48
+ 'advisory': json['advisory'],
49
+ 'error': json['error'],
50
+ };
51
+ }
52
+ function IssuesBreakdownToJSON(json) {
53
+ return IssuesBreakdownToJSONTyped(json, false);
54
+ }
55
+ function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'critical': value['critical'],
61
+ 'warning': value['warning'],
62
+ 'information': value['information'],
63
+ 'advisory': value['advisory'],
64
+ 'error': value['error'],
65
+ };
66
+ }