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

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 (38) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +4 -2
  3. package/dist/esm/models/Datastore.d.ts +7 -0
  4. package/dist/esm/models/Datastore.js +3 -0
  5. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  6. package/dist/esm/models/IssuesBreakdown.js +59 -0
  7. package/dist/esm/models/OsInfo.d.ts +16 -0
  8. package/dist/esm/models/OsInfo.js +11 -0
  9. package/dist/esm/models/StorageIoConfiguration.d.ts +58 -0
  10. package/dist/esm/models/StorageIoConfiguration.js +54 -0
  11. package/dist/esm/models/VMs.d.ts +7 -0
  12. package/dist/esm/models/VMs.js +3 -0
  13. package/dist/esm/models/index.d.ts +2 -0
  14. package/dist/esm/models/index.js +2 -0
  15. package/dist/models/Datastore.d.ts +7 -0
  16. package/dist/models/Datastore.js +3 -0
  17. package/dist/models/IssuesBreakdown.d.ts +56 -0
  18. package/dist/models/IssuesBreakdown.js +66 -0
  19. package/dist/models/OsInfo.d.ts +16 -0
  20. package/dist/models/OsInfo.js +12 -0
  21. package/dist/models/StorageIoConfiguration.d.ts +58 -0
  22. package/dist/models/StorageIoConfiguration.js +62 -0
  23. package/dist/models/VMs.d.ts +7 -0
  24. package/dist/models/VMs.js +3 -0
  25. package/dist/models/index.d.ts +2 -0
  26. package/dist/models/index.js +2 -0
  27. package/docs/Datastore.md +2 -0
  28. package/docs/IssuesBreakdown.md +42 -0
  29. package/docs/OsInfo.md +2 -0
  30. package/docs/StorageIoConfiguration.md +40 -0
  31. package/docs/VMs.md +2 -0
  32. package/package.json +1 -1
  33. package/src/models/Datastore.ts +16 -0
  34. package/src/models/IssuesBreakdown.ts +102 -0
  35. package/src/models/OsInfo.ts +21 -0
  36. package/src/models/StorageIoConfiguration.ts +100 -0
  37. package/src/models/VMs.ts +15 -0
  38. package/src/models/index.ts +2 -0
@@ -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
  }
@@ -0,0 +1,58 @@
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 StorageIoConfiguration
16
+ */
17
+ export interface StorageIoConfiguration {
18
+ /**
19
+ * Whether Storage I/O Control is enabled for this datastore
20
+ * @type {boolean}
21
+ * @memberof StorageIoConfiguration
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ * Latency threshold in milliseconds beyond which the storage array is considered congested
26
+ * @type {number}
27
+ * @memberof StorageIoConfiguration
28
+ */
29
+ congestionThreshold?: number;
30
+ /**
31
+ * Mode for congestion threshold calculation
32
+ * @type {StorageIoConfigurationCongestionThresholdModeEnum}
33
+ * @memberof StorageIoConfiguration
34
+ */
35
+ congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
36
+ /**
37
+ * Percent of peak throughput
38
+ * @type {number}
39
+ * @memberof StorageIoConfiguration
40
+ */
41
+ percentOfPeakThroughput?: number;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const StorageIoConfigurationCongestionThresholdModeEnum: {
47
+ readonly Automatic: "automatic";
48
+ readonly Manual: "manual";
49
+ };
50
+ export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
51
+ /**
52
+ * Check if a given object implements the StorageIoConfiguration interface.
53
+ */
54
+ export declare function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration;
55
+ export declare function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration;
56
+ export declare function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration;
57
+ export declare function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration;
58
+ export declare function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.StorageIoConfigurationCongestionThresholdModeEnum = void 0;
17
+ exports.instanceOfStorageIoConfiguration = instanceOfStorageIoConfiguration;
18
+ exports.StorageIoConfigurationFromJSON = StorageIoConfigurationFromJSON;
19
+ exports.StorageIoConfigurationFromJSONTyped = StorageIoConfigurationFromJSONTyped;
20
+ exports.StorageIoConfigurationToJSON = StorageIoConfigurationToJSON;
21
+ exports.StorageIoConfigurationToJSONTyped = StorageIoConfigurationToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.StorageIoConfigurationCongestionThresholdModeEnum = {
26
+ Automatic: 'automatic',
27
+ Manual: 'manual'
28
+ };
29
+ /**
30
+ * Check if a given object implements the StorageIoConfiguration interface.
31
+ */
32
+ function instanceOfStorageIoConfiguration(value) {
33
+ return true;
34
+ }
35
+ function StorageIoConfigurationFromJSON(json) {
36
+ return StorageIoConfigurationFromJSONTyped(json, false);
37
+ }
38
+ function StorageIoConfigurationFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
44
+ 'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
45
+ 'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
46
+ 'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
47
+ };
48
+ }
49
+ function StorageIoConfigurationToJSON(json) {
50
+ return StorageIoConfigurationToJSONTyped(json, false);
51
+ }
52
+ function StorageIoConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'enabled': value['enabled'],
58
+ 'congestionThreshold': value['congestionThreshold'],
59
+ 'congestionThresholdMode': value['congestionThresholdMode'],
60
+ 'percentOfPeakThroughput': value['percentOfPeakThroughput'],
61
+ };
62
+ }
@@ -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';
@@ -71,6 +72,7 @@ export * from './SourceUpdate.js';
71
72
  export * from './StandaloneClusterRequirementsRequest.js';
72
73
  export * from './StandaloneClusterRequirementsResponse.js';
73
74
  export * from './Status.js';
75
+ export * from './StorageIoConfiguration.js';
74
76
  export * from './UpdateInventory.js';
75
77
  export * from './VCenter.js';
76
78
  export * from './VMResourceBreakdown.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);
@@ -89,6 +90,7 @@ __exportStar(require("./SourceUpdate.js"), exports);
89
90
  __exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
90
91
  __exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
91
92
  __exportStar(require("./Status.js"), exports);
93
+ __exportStar(require("./StorageIoConfiguration.js"), exports);
92
94
  __exportStar(require("./UpdateInventory.js"), exports);
93
95
  __exportStar(require("./VCenter.js"), exports);
94
96
  __exportStar(require("./VMResourceBreakdown.js"), exports);
package/docs/Datastore.md CHANGED
@@ -15,6 +15,7 @@ Name | Type
15
15
  `protocolType` | string
16
16
  `model` | string
17
17
  `hostId` | string
18
+ `storageIoConfiguration` | [StorageIoConfiguration](StorageIoConfiguration.md)
18
19
 
19
20
  ## Example
20
21
 
@@ -32,6 +33,7 @@ const example = {
32
33
  "protocolType": null,
33
34
  "model": null,
34
35
  "hostId": null,
36
+ "storageIoConfiguration": null,
35
37
  } satisfies Datastore
36
38
 
37
39
  console.log(example)
@@ -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
 
@@ -0,0 +1,40 @@
1
+
2
+ # StorageIoConfiguration
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `enabled` | boolean
10
+ `congestionThreshold` | number
11
+ `congestionThresholdMode` | string
12
+ `percentOfPeakThroughput` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { StorageIoConfiguration } from '@openshift-migration-advisor/planner-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "enabled": null,
22
+ "congestionThreshold": null,
23
+ "congestionThresholdMode": null,
24
+ "percentOfPeakThroughput": null,
25
+ } satisfies StorageIoConfiguration
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as StorageIoConfiguration
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
package/docs/VMs.md CHANGED
@@ -28,6 +28,7 @@ Name | Type
28
28
  `osInfo` | [{ [key: string]: OsInfo; }](OsInfo.md)
29
29
  `notMigratableReasons` | [Array&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-b5e8e71564be",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime.js';
16
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
17
+ import {
18
+ StorageIoConfigurationFromJSON,
19
+ StorageIoConfigurationFromJSONTyped,
20
+ StorageIoConfigurationToJSON,
21
+ StorageIoConfigurationToJSONTyped,
22
+ } from './StorageIoConfiguration.js';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -73,6 +81,12 @@ export interface Datastore {
73
81
  * @memberof Datastore
74
82
  */
75
83
  hostId?: string | null;
84
+ /**
85
+ *
86
+ * @type {StorageIoConfiguration}
87
+ * @memberof Datastore
88
+ */
89
+ storageIoConfiguration?: StorageIoConfiguration;
76
90
  }
77
91
 
78
92
  /**
@@ -109,6 +123,7 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
109
123
  'protocolType': json['protocolType'],
110
124
  'model': json['model'],
111
125
  'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
126
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : StorageIoConfigurationFromJSON(json['storageIoConfiguration']),
112
127
  };
113
128
  }
114
129
 
@@ -132,6 +147,7 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
132
147
  'protocolType': value['protocolType'],
133
148
  'model': value['model'],
134
149
  'hostId': value['hostId'],
150
+ 'storageIoConfiguration': StorageIoConfigurationToJSON(value['storageIoConfiguration']),
135
151
  };
136
152
  }
137
153
 
@@ -0,0 +1,102 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * 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
  }
@@ -0,0 +1,100 @@
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 StorageIoConfiguration
20
+ */
21
+ export interface StorageIoConfiguration {
22
+ /**
23
+ * Whether Storage I/O Control is enabled for this datastore
24
+ * @type {boolean}
25
+ * @memberof StorageIoConfiguration
26
+ */
27
+ enabled?: boolean;
28
+ /**
29
+ * Latency threshold in milliseconds beyond which the storage array is considered congested
30
+ * @type {number}
31
+ * @memberof StorageIoConfiguration
32
+ */
33
+ congestionThreshold?: number;
34
+ /**
35
+ * Mode for congestion threshold calculation
36
+ * @type {StorageIoConfigurationCongestionThresholdModeEnum}
37
+ * @memberof StorageIoConfiguration
38
+ */
39
+ congestionThresholdMode?: StorageIoConfigurationCongestionThresholdModeEnum;
40
+ /**
41
+ * Percent of peak throughput
42
+ * @type {number}
43
+ * @memberof StorageIoConfiguration
44
+ */
45
+ percentOfPeakThroughput?: number;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const StorageIoConfigurationCongestionThresholdModeEnum = {
53
+ Automatic: 'automatic',
54
+ Manual: 'manual'
55
+ } as const;
56
+ export type StorageIoConfigurationCongestionThresholdModeEnum = typeof StorageIoConfigurationCongestionThresholdModeEnum[keyof typeof StorageIoConfigurationCongestionThresholdModeEnum];
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the StorageIoConfiguration interface.
61
+ */
62
+ export function instanceOfStorageIoConfiguration(value: object): value is StorageIoConfiguration {
63
+ return true;
64
+ }
65
+
66
+ export function StorageIoConfigurationFromJSON(json: any): StorageIoConfiguration {
67
+ return StorageIoConfigurationFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function StorageIoConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageIoConfiguration {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
77
+ 'congestionThreshold': json['congestionThreshold'] == null ? undefined : json['congestionThreshold'],
78
+ 'congestionThresholdMode': json['congestionThresholdMode'] == null ? undefined : json['congestionThresholdMode'],
79
+ 'percentOfPeakThroughput': json['percentOfPeakThroughput'] == null ? undefined : json['percentOfPeakThroughput'],
80
+ };
81
+ }
82
+
83
+ export function StorageIoConfigurationToJSON(json: any): StorageIoConfiguration {
84
+ return StorageIoConfigurationToJSONTyped(json, false);
85
+ }
86
+
87
+ export function StorageIoConfigurationToJSONTyped(value?: StorageIoConfiguration | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'enabled': value['enabled'],
95
+ 'congestionThreshold': value['congestionThreshold'],
96
+ 'congestionThresholdMode': value['congestionThresholdMode'],
97
+ 'percentOfPeakThroughput': value['percentOfPeakThroughput'],
98
+ };
99
+ }
100
+