@openshift-migration-advisor/planner-sdk 0.16.0 → 0.17.0-147463a194bf

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 (74) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +4 -2
  3. package/dist/esm/models/AgentProxy.js +3 -3
  4. package/dist/esm/models/Datastore.d.ts +7 -0
  5. package/dist/esm/models/Datastore.js +4 -1
  6. package/dist/esm/models/Host.js +3 -3
  7. package/dist/esm/models/Identity.js +2 -2
  8. package/dist/esm/models/Info.js +2 -2
  9. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  10. package/dist/esm/models/IssuesBreakdown.js +59 -0
  11. package/dist/esm/models/OsInfo.d.ts +16 -0
  12. package/dist/esm/models/OsInfo.js +11 -0
  13. package/dist/esm/models/PartnerRequest.js +3 -3
  14. package/dist/esm/models/Snapshot.js +1 -1
  15. package/dist/esm/models/Source.js +2 -2
  16. package/dist/esm/models/SourceCreate.js +2 -2
  17. package/dist/esm/models/SourceInfra.js +1 -1
  18. package/dist/esm/models/SourceUpdate.js +2 -2
  19. package/dist/esm/models/StorageIoConfiguration.d.ts +58 -0
  20. package/dist/esm/models/StorageIoConfiguration.js +54 -0
  21. package/dist/esm/models/VMs.d.ts +7 -0
  22. package/dist/esm/models/VMs.js +3 -0
  23. package/dist/esm/models/index.d.ts +2 -0
  24. package/dist/esm/models/index.js +2 -0
  25. package/dist/esm/runtime.d.ts +1 -0
  26. package/dist/esm/runtime.js +4 -0
  27. package/dist/models/AgentProxy.js +3 -3
  28. package/dist/models/Datastore.d.ts +7 -0
  29. package/dist/models/Datastore.js +4 -1
  30. package/dist/models/Host.js +3 -3
  31. package/dist/models/Identity.js +2 -2
  32. package/dist/models/Info.js +2 -2
  33. package/dist/models/IssuesBreakdown.d.ts +56 -0
  34. package/dist/models/IssuesBreakdown.js +66 -0
  35. package/dist/models/OsInfo.d.ts +16 -0
  36. package/dist/models/OsInfo.js +12 -0
  37. package/dist/models/PartnerRequest.js +3 -3
  38. package/dist/models/Snapshot.js +1 -1
  39. package/dist/models/Source.js +2 -2
  40. package/dist/models/SourceCreate.js +2 -2
  41. package/dist/models/SourceInfra.js +1 -1
  42. package/dist/models/SourceUpdate.js +2 -2
  43. package/dist/models/StorageIoConfiguration.d.ts +58 -0
  44. package/dist/models/StorageIoConfiguration.js +62 -0
  45. package/dist/models/VMs.d.ts +7 -0
  46. package/dist/models/VMs.js +3 -0
  47. package/dist/models/index.d.ts +2 -0
  48. package/dist/models/index.js +2 -0
  49. package/dist/runtime.d.ts +1 -0
  50. package/dist/runtime.js +5 -0
  51. package/docs/Datastore.md +2 -0
  52. package/docs/IssuesBreakdown.md +42 -0
  53. package/docs/OsInfo.md +2 -0
  54. package/docs/StorageIoConfiguration.md +40 -0
  55. package/docs/VMs.md +2 -0
  56. package/package.json +1 -1
  57. package/src/models/AgentProxy.ts +3 -3
  58. package/src/models/Datastore.ts +17 -1
  59. package/src/models/Host.ts +3 -3
  60. package/src/models/Identity.ts +2 -2
  61. package/src/models/Info.ts +2 -2
  62. package/src/models/IssuesBreakdown.ts +102 -0
  63. package/src/models/OsInfo.ts +21 -0
  64. package/src/models/PartnerRequest.ts +3 -3
  65. package/src/models/Snapshot.ts +1 -1
  66. package/src/models/Source.ts +2 -2
  67. package/src/models/SourceCreate.ts +2 -2
  68. package/src/models/SourceInfra.ts +1 -1
  69. package/src/models/SourceUpdate.ts +2 -2
  70. package/src/models/StorageIoConfiguration.ts +100 -0
  71. package/src/models/VMs.ts +15 -0
  72. package/src/models/index.ts +2 -0
  73. package/src/runtime.ts +5 -0
  74. package/tsconfig.json +1 -1
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -69,6 +70,12 @@ export interface Datastore {
69
70
  * @memberof Datastore
70
71
  */
71
72
  hostId?: string | null;
73
+ /**
74
+ *
75
+ * @type {StorageIoConfiguration}
76
+ * @memberof Datastore
77
+ */
78
+ storageIoConfiguration?: StorageIoConfiguration;
72
79
  }
73
80
  /**
74
81
  * Check if a given object implements the Datastore interface.
@@ -18,6 +18,7 @@ exports.DatastoreFromJSON = DatastoreFromJSON;
18
18
  exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
19
19
  exports.DatastoreToJSON = DatastoreToJSON;
20
20
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
21
+ const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
21
22
  /**
22
23
  * Check if a given object implements the Datastore interface.
23
24
  */
@@ -56,7 +57,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
56
57
  'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
57
58
  'protocolType': json['protocolType'],
58
59
  'model': json['model'],
59
- 'hostId': json['hostId'] == null ? undefined : json['hostId'],
60
+ 'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
61
+ 'storageIoConfiguration': json['storageIoConfiguration'] == null ? undefined : (0, StorageIoConfiguration_js_1.StorageIoConfigurationFromJSON)(json['storageIoConfiguration']),
60
62
  };
61
63
  }
62
64
  function DatastoreToJSON(json) {
@@ -76,5 +78,6 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
76
78
  'protocolType': value['protocolType'],
77
79
  'model': value['model'],
78
80
  'hostId': value['hostId'],
81
+ 'storageIoConfiguration': (0, StorageIoConfiguration_js_1.StorageIoConfigurationToJSON)(value['storageIoConfiguration']),
79
82
  };
80
83
  }
@@ -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
+ }
@@ -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
  }
@@ -63,9 +63,9 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'contactPhone': json['contactPhone'],
64
64
  'email': json['email'],
65
65
  'location': json['location'],
66
- 'reason': json['reason'] == null ? undefined : json['reason'],
67
- 'acceptedAt': json['acceptedAt'] == null ? undefined : (new Date(json['acceptedAt'])),
68
- 'terminatedAt': json['terminatedAt'] == null ? undefined : (new Date(json['terminatedAt'])),
66
+ 'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
67
+ 'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
68
+ 'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
69
69
  'createdAt': (new Date(json['createdAt'])),
70
70
  };
71
71
  }
@@ -40,7 +40,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
42
42
  'createdAt': (new Date(json['createdAt'])),
43
- 'subsetInventories': json['subsetInventories'] == null ? undefined : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
43
+ 'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
44
44
  };
45
45
  }
46
46
  function SnapshotToJSON(json) {
@@ -63,8 +63,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
64
64
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
65
65
  'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
66
- 'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
67
- 'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
66
+ 'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
67
+ 'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
68
68
  'updateType': json['updateType'] == null ? undefined : json['updateType'],
69
69
  };
70
70
  }
@@ -46,9 +46,9 @@ function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
46
46
  }
47
47
  return {
48
48
  'name': json['name'],
49
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
49
+ 'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
50
50
  'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
51
- 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
51
+ 'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
52
52
  'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
53
53
  'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
54
54
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
@@ -35,7 +35,7 @@ function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
38
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
38
+ 'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
39
39
  'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
40
40
  };
41
41
  }
@@ -45,8 +45,8 @@ function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
45
45
  return {
46
46
  'name': json['name'] == null ? undefined : json['name'],
47
47
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
48
- 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
49
- 'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
48
+ 'sshPublicKey': json['sshPublicKey'] === undefined ? undefined : json['sshPublicKey'] === null ? null : json['sshPublicKey'],
49
+ 'certificateChain': json['certificateChain'] === undefined ? undefined : json['certificateChain'] === null ? null : json['certificateChain'],
50
50
  'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
51
51
  'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
52
52
  'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
@@ -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/dist/runtime.d.ts CHANGED
@@ -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;
package/dist/runtime.js CHANGED
@@ -26,6 +26,7 @@ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = ex
26
26
  exports.querystring = querystring;
27
27
  exports.exists = exists;
28
28
  exports.mapValues = mapValues;
29
+ exports.anyToJSON = anyToJSON;
29
30
  exports.canConsumeForm = canConsumeForm;
30
31
  exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
31
32
  class Configuration {
@@ -308,6 +309,10 @@ function mapValues(data, fn) {
308
309
  }
309
310
  return result;
310
311
  }
312
+ // Pass-through serializer for `any`-typed properties in form data. See #1877.
313
+ function anyToJSON(value) {
314
+ return value;
315
+ }
311
316
  function canConsumeForm(consumes) {
312
317
  var _a;
313
318
  for (const consume of consumes) {
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