@openshift-migration-advisor/planner-sdk 0.17.0 → 0.18.0

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.
@@ -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.17.0
1
+ # @openshift-migration-advisor/planner-sdk@0.18.0
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.17.0`
194
+ - Package version: `0.18.0`
194
195
  - Generator version: `7.24.0-SNAPSHOT`
195
196
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
196
197
 
@@ -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
  }
@@ -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';
@@ -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
+ }
@@ -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
  */
@@ -13,11 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OsInfoSupportTierEnum = void 0;
16
17
  exports.instanceOfOsInfo = instanceOfOsInfo;
17
18
  exports.OsInfoFromJSON = OsInfoFromJSON;
18
19
  exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
19
20
  exports.OsInfoToJSON = OsInfoToJSON;
20
21
  exports.OsInfoToJSONTyped = OsInfoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.OsInfoSupportTierEnum = {
26
+ Certified: 'certified',
27
+ VendorSupported: 'vendor_supported',
28
+ CommunitySupported: 'community_supported',
29
+ SpecialHandling: 'special_handling'
30
+ };
21
31
  /**
22
32
  * Check if a given object implements the OsInfo interface.
23
33
  */
@@ -38,6 +48,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
38
48
  return {
39
49
  'count': json['count'],
40
50
  'supported': json['supported'],
51
+ 'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
41
52
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
42
53
  };
43
54
  }
@@ -51,6 +62,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
51
62
  return {
52
63
  'count': value['count'],
53
64
  'supported': value['supported'],
65
+ 'supportTier': value['supportTier'],
54
66
  'upgradeRecommendation': value['upgradeRecommendation'],
55
67
  };
56
68
  }
@@ -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.
@@ -21,6 +21,7 @@ exports.VMsToJSONTyped = VMsToJSONTyped;
21
21
  const runtime_js_1 = require("../runtime.js");
22
22
  const MigrationIssue_js_1 = require("./MigrationIssue.js");
23
23
  const OsInfo_js_1 = require("./OsInfo.js");
24
+ const IssuesBreakdown_js_1 = require("./IssuesBreakdown.js");
24
25
  const DiskSizeTierSummary_js_1 = require("./DiskSizeTierSummary.js");
25
26
  const DiskTypeSummary_js_1 = require("./DiskTypeSummary.js");
26
27
  const VMResourceBreakdown_js_1 = require("./VMResourceBreakdown.js");
@@ -78,6 +79,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
78
79
  'osInfo': json['osInfo'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['osInfo'], OsInfo_js_1.OsInfoFromJSON)),
79
80
  'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssue_js_1.MigrationIssueFromJSON)),
80
81
  'migrationWarnings': (json['migrationWarnings'].map(MigrationIssue_js_1.MigrationIssueFromJSON)),
82
+ 'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : (0, IssuesBreakdown_js_1.IssuesBreakdownFromJSON)(json['issuesBreakdown']),
81
83
  };
82
84
  }
83
85
  function VMsToJSON(json) {
@@ -110,5 +112,6 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
110
112
  'osInfo': value['osInfo'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['osInfo'], OsInfo_js_1.OsInfoToJSON)),
111
113
  'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssue_js_1.MigrationIssueToJSON)),
112
114
  'migrationWarnings': (value['migrationWarnings'].map(MigrationIssue_js_1.MigrationIssueToJSON)),
115
+ 'issuesBreakdown': (0, IssuesBreakdown_js_1.IssuesBreakdownToJSON)(value['issuesBreakdown']),
113
116
  };
114
117
  }
@@ -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';
@@ -51,6 +51,7 @@ __exportStar(require("./Inventory.js"), exports);
51
51
  __exportStar(require("./InventoryData.js"), exports);
52
52
  __exportStar(require("./InventoryTotals.js"), exports);
53
53
  __exportStar(require("./Ipv4Config.js"), exports);
54
+ __exportStar(require("./IssuesBreakdown.js"), exports);
54
55
  __exportStar(require("./Job.js"), exports);
55
56
  __exportStar(require("./JobStatus.js"), exports);
56
57
  __exportStar(require("./Label.js"), exports);
@@ -0,0 +1,42 @@
1
+
2
+ # IssuesBreakdown
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `critical` | number
10
+ `warning` | number
11
+ `information` | number
12
+ `advisory` | number
13
+ `error` | number
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { IssuesBreakdown } from '@openshift-migration-advisor/planner-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "critical": null,
23
+ "warning": null,
24
+ "information": null,
25
+ "advisory": null,
26
+ "error": null,
27
+ } satisfies IssuesBreakdown
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as IssuesBreakdown
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
package/docs/OsInfo.md CHANGED
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `count` | number
10
10
  `supported` | boolean
11
+ `supportTier` | string
11
12
  `upgradeRecommendation` | string
12
13
 
13
14
  ## Example
@@ -19,6 +20,7 @@ import type { OsInfo } from '@openshift-migration-advisor/planner-sdk'
19
20
  const example = {
20
21
  "count": null,
21
22
  "supported": null,
23
+ "supportTier": null,
22
24
  "upgradeRecommendation": null,
23
25
  } satisfies OsInfo
24
26
 
package/docs/VMs.md CHANGED
@@ -28,6 +28,7 @@ Name | Type
28
28
  `osInfo` | [{ [key: string]: OsInfo; }](OsInfo.md)
29
29
  `notMigratableReasons` | [Array&lt;MigrationIssue&gt;](MigrationIssue.md)
30
30
  `migrationWarnings` | [Array&lt;MigrationIssue&gt;](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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/planner-sdk",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,102 @@
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
+ 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
+
@@ -31,6 +31,12 @@ export interface OsInfo {
31
31
  * @memberof OsInfo
32
32
  */
33
33
  supported: boolean;
34
+ /**
35
+ * OS support tier per Red Hat KCS article 4234591
36
+ * @type {OsInfoSupportTierEnum}
37
+ * @memberof OsInfo
38
+ */
39
+ supportTier?: OsInfoSupportTierEnum;
34
40
  /**
35
41
  * Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
36
42
  * @type {string}
@@ -39,6 +45,19 @@ export interface OsInfo {
39
45
  upgradeRecommendation?: string;
40
46
  }
41
47
 
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const OsInfoSupportTierEnum = {
53
+ Certified: 'certified',
54
+ VendorSupported: 'vendor_supported',
55
+ CommunitySupported: 'community_supported',
56
+ SpecialHandling: 'special_handling'
57
+ } as const;
58
+ export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
59
+
60
+
42
61
  /**
43
62
  * Check if a given object implements the OsInfo interface.
44
63
  */
@@ -60,6 +79,7 @@ export function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): Os
60
79
 
61
80
  'count': json['count'],
62
81
  'supported': json['supported'],
82
+ 'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
63
83
  'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
64
84
  };
65
85
  }
@@ -77,6 +97,7 @@ export function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator: bo
77
97
 
78
98
  'count': value['count'],
79
99
  'supported': value['supported'],
100
+ 'supportTier': value['supportTier'],
80
101
  'upgradeRecommendation': value['upgradeRecommendation'],
81
102
  };
82
103
  }
package/src/models/VMs.ts CHANGED
@@ -27,6 +27,13 @@ import {
27
27
  OsInfoToJSON,
28
28
  OsInfoToJSONTyped,
29
29
  } from './OsInfo.js';
30
+ import type { IssuesBreakdown } from './IssuesBreakdown.js';
31
+ import {
32
+ IssuesBreakdownFromJSON,
33
+ IssuesBreakdownFromJSONTyped,
34
+ IssuesBreakdownToJSON,
35
+ IssuesBreakdownToJSONTyped,
36
+ } from './IssuesBreakdown.js';
30
37
  import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
31
38
  import {
32
39
  DiskSizeTierSummaryFromJSON,
@@ -190,6 +197,12 @@ export interface VMs {
190
197
  * @memberof VMs
191
198
  */
192
199
  migrationWarnings: Array<MigrationIssue>;
200
+ /**
201
+ *
202
+ * @type {IssuesBreakdown}
203
+ * @memberof VMs
204
+ */
205
+ issuesBreakdown?: IssuesBreakdown;
193
206
  }
194
207
 
195
208
  /**
@@ -240,6 +253,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
240
253
  'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
241
254
  'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
242
255
  'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
256
+ 'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
243
257
  };
244
258
  }
245
259
 
@@ -276,6 +290,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
276
290
  'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
277
291
  'notMigratableReasons': ((value['notMigratableReasons'] as Array<any>).map(MigrationIssueToJSON)),
278
292
  'migrationWarnings': ((value['migrationWarnings'] as Array<any>).map(MigrationIssueToJSON)),
293
+ 'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
279
294
  };
280
295
  }
281
296
 
@@ -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';