@openshift-migration-advisor/planner-sdk 0.14.0 → 0.15.0-40816ac44039

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 (97) 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/AssessmentSubsetInventory.d.ts +63 -0
  5. package/dist/esm/models/AssessmentSubsetInventory.js +64 -0
  6. package/dist/esm/models/ClusterRequirementsRequest.d.ts +6 -0
  7. package/dist/esm/models/ClusterRequirementsRequest.js +2 -0
  8. package/dist/esm/models/ClusterRequirementsStoredInput.d.ts +6 -0
  9. package/dist/esm/models/ClusterRequirementsStoredInput.js +2 -0
  10. package/dist/esm/models/Datastore.js +1 -1
  11. package/dist/esm/models/Host.js +3 -3
  12. package/dist/esm/models/Identity.js +2 -2
  13. package/dist/esm/models/Info.js +2 -2
  14. package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
  15. package/dist/esm/models/IssuesBreakdown.js +59 -0
  16. package/dist/esm/models/OsInfo.d.ts +16 -0
  17. package/dist/esm/models/OsInfo.js +11 -0
  18. package/dist/esm/models/PartnerRequest.js +3 -3
  19. package/dist/esm/models/Snapshot.d.ts +7 -0
  20. package/dist/esm/models/Snapshot.js +3 -0
  21. package/dist/esm/models/Source.d.ts +14 -0
  22. package/dist/esm/models/Source.js +11 -2
  23. package/dist/esm/models/SourceCreate.js +2 -2
  24. package/dist/esm/models/SourceInfra.js +1 -1
  25. package/dist/esm/models/SourceUpdate.js +2 -2
  26. package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
  27. package/dist/esm/models/StandaloneClusterRequirementsRequest.js +2 -0
  28. package/dist/esm/models/VMs.d.ts +7 -0
  29. package/dist/esm/models/VMs.js +3 -0
  30. package/dist/esm/models/index.d.ts +2 -0
  31. package/dist/esm/models/index.js +2 -0
  32. package/dist/esm/runtime.d.ts +1 -0
  33. package/dist/esm/runtime.js +4 -0
  34. package/dist/models/AgentProxy.js +3 -3
  35. package/dist/models/AssessmentSubsetInventory.d.ts +63 -0
  36. package/dist/models/AssessmentSubsetInventory.js +71 -0
  37. package/dist/models/ClusterRequirementsRequest.d.ts +6 -0
  38. package/dist/models/ClusterRequirementsRequest.js +2 -0
  39. package/dist/models/ClusterRequirementsStoredInput.d.ts +6 -0
  40. package/dist/models/ClusterRequirementsStoredInput.js +2 -0
  41. package/dist/models/Datastore.js +1 -1
  42. package/dist/models/Host.js +3 -3
  43. package/dist/models/Identity.js +2 -2
  44. package/dist/models/Info.js +2 -2
  45. package/dist/models/IssuesBreakdown.d.ts +56 -0
  46. package/dist/models/IssuesBreakdown.js +66 -0
  47. package/dist/models/OsInfo.d.ts +16 -0
  48. package/dist/models/OsInfo.js +12 -0
  49. package/dist/models/PartnerRequest.js +3 -3
  50. package/dist/models/Snapshot.d.ts +7 -0
  51. package/dist/models/Snapshot.js +3 -0
  52. package/dist/models/Source.d.ts +14 -0
  53. package/dist/models/Source.js +12 -2
  54. package/dist/models/SourceCreate.js +2 -2
  55. package/dist/models/SourceInfra.js +1 -1
  56. package/dist/models/SourceUpdate.js +2 -2
  57. package/dist/models/StandaloneClusterRequirementsRequest.d.ts +6 -0
  58. package/dist/models/StandaloneClusterRequirementsRequest.js +2 -0
  59. package/dist/models/VMs.d.ts +7 -0
  60. package/dist/models/VMs.js +3 -0
  61. package/dist/models/index.d.ts +2 -0
  62. package/dist/models/index.js +2 -0
  63. package/dist/runtime.d.ts +1 -0
  64. package/dist/runtime.js +5 -0
  65. package/docs/AssessmentSubsetInventory.md +44 -0
  66. package/docs/ClusterRequirementsRequest.md +2 -0
  67. package/docs/ClusterRequirementsStoredInput.md +2 -0
  68. package/docs/IssuesBreakdown.md +42 -0
  69. package/docs/OsInfo.md +2 -0
  70. package/docs/Snapshot.md +2 -0
  71. package/docs/Source.md +2 -0
  72. package/docs/StandaloneClusterRequirementsRequest.md +2 -0
  73. package/docs/VMs.md +2 -0
  74. package/package.json +1 -1
  75. package/src/models/AgentProxy.ts +3 -3
  76. package/src/models/AssessmentSubsetInventory.ts +119 -0
  77. package/src/models/ClusterRequirementsRequest.ts +8 -0
  78. package/src/models/ClusterRequirementsStoredInput.ts +8 -0
  79. package/src/models/ClusterUtilization.ts +6 -6
  80. package/src/models/Datastore.ts +1 -1
  81. package/src/models/Host.ts +3 -3
  82. package/src/models/Identity.ts +2 -2
  83. package/src/models/Info.ts +2 -2
  84. package/src/models/Inventory.ts +1 -1
  85. package/src/models/IssuesBreakdown.ts +102 -0
  86. package/src/models/OsInfo.ts +21 -0
  87. package/src/models/PartnerRequest.ts +3 -3
  88. package/src/models/Snapshot.ts +15 -0
  89. package/src/models/Source.ts +21 -2
  90. package/src/models/SourceCreate.ts +2 -2
  91. package/src/models/SourceInfra.ts +1 -1
  92. package/src/models/SourceUpdate.ts +2 -2
  93. package/src/models/StandaloneClusterRequirementsRequest.ts +8 -0
  94. package/src/models/VMs.ts +15 -0
  95. package/src/models/index.ts +2 -0
  96. package/src/runtime.ts +5 -0
  97. package/tsconfig.json +1 -1
@@ -85,7 +85,21 @@ export interface Source {
85
85
  * @memberof Source
86
86
  */
87
87
  agentVersionWarning?: string | null;
88
+ /**
89
+ * Indicates whether the inventory was updated automatically by an agent or manually by a user
90
+ * @type {SourceUpdateTypeEnum}
91
+ * @memberof Source
92
+ */
93
+ updateType?: SourceUpdateTypeEnum;
88
94
  }
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const SourceUpdateTypeEnum: {
99
+ readonly Auto: "auto";
100
+ readonly Manual: "manual";
101
+ };
102
+ export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
89
103
  /**
90
104
  * Check if a given object implements the Source interface.
91
105
  */
@@ -13,6 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SourceUpdateTypeEnum = void 0;
16
17
  exports.instanceOfSource = instanceOfSource;
17
18
  exports.SourceFromJSON = SourceFromJSON;
18
19
  exports.SourceFromJSONTyped = SourceFromJSONTyped;
@@ -22,6 +23,13 @@ const SourceInfra_js_1 = require("./SourceInfra.js");
22
23
  const Agent_js_1 = require("./Agent.js");
23
24
  const Label_js_1 = require("./Label.js");
24
25
  const Inventory_js_1 = require("./Inventory.js");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.SourceUpdateTypeEnum = {
30
+ Auto: 'auto',
31
+ Manual: 'manual'
32
+ };
25
33
  /**
26
34
  * Check if a given object implements the Source interface.
27
35
  */
@@ -55,8 +63,9 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
55
63
  'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
56
64
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
57
65
  'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
58
- 'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
59
- '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
+ 'updateType': json['updateType'] == null ? undefined : json['updateType'],
60
69
  };
61
70
  }
62
71
  function SourceToJSON(json) {
@@ -78,5 +87,6 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
78
87
  'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
79
88
  'agentVersion': value['agentVersion'],
80
89
  'agentVersionWarning': value['agentVersionWarning'],
90
+ 'updateType': value['updateType'],
81
91
  };
82
92
  }
@@ -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']),
@@ -95,6 +95,12 @@ export interface StandaloneClusterRequirementsRequest {
95
95
  * @memberof StandaloneClusterRequirementsRequest
96
96
  */
97
97
  hostedControlPlane?: boolean;
98
+ /**
99
+ * If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
100
+ * @type {boolean}
101
+ * @memberof StandaloneClusterRequirementsRequest
102
+ */
103
+ compactMode?: boolean;
98
104
  }
99
105
  /**
100
106
  * @export
@@ -69,6 +69,7 @@ function StandaloneClusterRequirementsRequestFromJSONTyped(json, ignoreDiscrimin
69
69
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
70
70
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
71
71
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
72
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
72
73
  };
73
74
  }
74
75
  function StandaloneClusterRequirementsRequestToJSON(json) {
@@ -92,5 +93,6 @@ function StandaloneClusterRequirementsRequestToJSONTyped(value, ignoreDiscrimina
92
93
  'controlPlaneMemory': value['controlPlaneMemory'],
93
94
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
94
95
  'hostedControlPlane': value['hostedControlPlane'],
96
+ 'compactMode': value['compactMode'],
95
97
  };
96
98
  }
@@ -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
  }
@@ -3,6 +3,7 @@ export * from './AgentProxy.js';
3
3
  export * from './Assessment.js';
4
4
  export * from './AssessmentForm.js';
5
5
  export * from './AssessmentSharing.js';
6
+ export * from './AssessmentSubsetInventory.js';
6
7
  export * from './AssessmentUpdate.js';
7
8
  export * from './ClusterFeatures.js';
8
9
  export * from './ClusterRequirementsRequest.js';
@@ -32,6 +33,7 @@ export * from './Inventory.js';
32
33
  export * from './InventoryData.js';
33
34
  export * from './InventoryTotals.js';
34
35
  export * from './Ipv4Config.js';
36
+ export * from './IssuesBreakdown.js';
35
37
  export * from './Job.js';
36
38
  export * from './JobStatus.js';
37
39
  export * from './Label.js';
@@ -21,6 +21,7 @@ __exportStar(require("./AgentProxy.js"), exports);
21
21
  __exportStar(require("./Assessment.js"), exports);
22
22
  __exportStar(require("./AssessmentForm.js"), exports);
23
23
  __exportStar(require("./AssessmentSharing.js"), exports);
24
+ __exportStar(require("./AssessmentSubsetInventory.js"), exports);
24
25
  __exportStar(require("./AssessmentUpdate.js"), exports);
25
26
  __exportStar(require("./ClusterFeatures.js"), exports);
26
27
  __exportStar(require("./ClusterRequirementsRequest.js"), exports);
@@ -50,6 +51,7 @@ __exportStar(require("./Inventory.js"), exports);
50
51
  __exportStar(require("./InventoryData.js"), exports);
51
52
  __exportStar(require("./InventoryTotals.js"), exports);
52
53
  __exportStar(require("./Ipv4Config.js"), exports);
54
+ __exportStar(require("./IssuesBreakdown.js"), exports);
53
55
  __exportStar(require("./Job.js"), exports);
54
56
  __exportStar(require("./JobStatus.js"), exports);
55
57
  __exportStar(require("./Label.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) {
@@ -0,0 +1,44 @@
1
+
2
+ # AssessmentSubsetInventory
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `vcenterId` | string
12
+ `vmsCount` | number
13
+ `inventory` | [Inventory](Inventory.md)
14
+ `createdAt` | Date
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { AssessmentSubsetInventory } from '@openshift-migration-advisor/planner-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "name": null,
25
+ "vcenterId": null,
26
+ "vmsCount": null,
27
+ "inventory": null,
28
+ "createdAt": null,
29
+ } satisfies AssessmentSubsetInventory
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as AssessmentSubsetInventory
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -18,6 +18,7 @@ Name | Type
18
18
  `controlPlaneMemory` | number
19
19
  `controlPlaneNodeCount` | number
20
20
  `hostedControlPlane` | boolean
21
+ `compactMode` | boolean
21
22
 
22
23
  ## Example
23
24
 
@@ -37,6 +38,7 @@ const example = {
37
38
  "controlPlaneMemory": null,
38
39
  "controlPlaneNodeCount": null,
39
40
  "hostedControlPlane": null,
41
+ "compactMode": null,
40
42
  } satisfies ClusterRequirementsRequest
41
43
 
42
44
  console.log(example)
@@ -18,6 +18,7 @@ Name | Type
18
18
  `controlPlaneMemory` | number
19
19
  `controlPlaneNodeCount` | number
20
20
  `hostedControlPlane` | boolean
21
+ `compactMode` | boolean
21
22
 
22
23
  ## Example
23
24
 
@@ -37,6 +38,7 @@ const example = {
37
38
  "controlPlaneMemory": null,
38
39
  "controlPlaneNodeCount": null,
39
40
  "hostedControlPlane": null,
41
+ "compactMode": null,
40
42
  } satisfies ClusterRequirementsStoredInput
41
43
 
42
44
  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
 
package/docs/Snapshot.md CHANGED
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `inventory` | [Inventory](Inventory.md)
10
10
  `createdAt` | Date
11
+ `subsetInventories` | [Array&lt;AssessmentSubsetInventory&gt;](AssessmentSubsetInventory.md)
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { Snapshot } from '@openshift-migration-advisor/planner-sdk'
18
19
  const example = {
19
20
  "inventory": null,
20
21
  "createdAt": null,
22
+ "subsetInventories": null,
21
23
  } satisfies Snapshot
22
24
 
23
25
  console.log(example)
package/docs/Source.md CHANGED
@@ -17,6 +17,7 @@ Name | Type
17
17
  `infra` | [SourceInfra](SourceInfra.md)
18
18
  `agentVersion` | string
19
19
  `agentVersionWarning` | string
20
+ `updateType` | string
20
21
 
21
22
  ## Example
22
23
 
@@ -36,6 +37,7 @@ const example = {
36
37
  "infra": null,
37
38
  "agentVersion": null,
38
39
  "agentVersionWarning": null,
40
+ "updateType": null,
39
41
  } satisfies Source
40
42
 
41
43
  console.log(example)
@@ -20,6 +20,7 @@ Name | Type
20
20
  `controlPlaneMemory` | number
21
21
  `controlPlaneNodeCount` | number
22
22
  `hostedControlPlane` | boolean
23
+ `compactMode` | boolean
23
24
 
24
25
  ## Example
25
26
 
@@ -41,6 +42,7 @@ const example = {
41
42
  "controlPlaneMemory": null,
42
43
  "controlPlaneNodeCount": null,
43
44
  "hostedControlPlane": null,
45
+ "compactMode": null,
44
46
  } satisfies StandaloneClusterRequirementsRequest
45
47
 
46
48
  console.log(example)
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.14.0",
3
+ "version": "0.15.0-40816ac44039",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/planner-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -56,9 +56,9 @@ export function AgentProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean)
56
56
  }
57
57
  return {
58
58
 
59
- 'httpUrl': json['httpUrl'] == null ? undefined : json['httpUrl'],
60
- 'httpsUrl': json['httpsUrl'] == null ? undefined : json['httpsUrl'],
61
- 'noProxy': json['noProxy'] == null ? undefined : json['noProxy'],
59
+ 'httpUrl': json['httpUrl'] === undefined ? undefined : json['httpUrl'] === null ? null : json['httpUrl'],
60
+ 'httpsUrl': json['httpsUrl'] === undefined ? undefined : json['httpsUrl'] === null ? null : json['httpsUrl'],
61
+ 'noProxy': json['noProxy'] === undefined ? undefined : json['noProxy'] === null ? null : json['noProxy'],
62
62
  };
63
63
  }
64
64
 
@@ -0,0 +1,119 @@
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
+ import type { Inventory } from './Inventory.js';
17
+ import {
18
+ InventoryFromJSON,
19
+ InventoryFromJSONTyped,
20
+ InventoryToJSON,
21
+ InventoryToJSONTyped,
22
+ } from './Inventory.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AssessmentSubsetInventory
28
+ */
29
+ export interface AssessmentSubsetInventory {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AssessmentSubsetInventory
34
+ */
35
+ id: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AssessmentSubsetInventory
40
+ */
41
+ name: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AssessmentSubsetInventory
46
+ */
47
+ vcenterId: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AssessmentSubsetInventory
52
+ */
53
+ vmsCount: number;
54
+ /**
55
+ *
56
+ * @type {Inventory}
57
+ * @memberof AssessmentSubsetInventory
58
+ */
59
+ inventory: Inventory;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof AssessmentSubsetInventory
64
+ */
65
+ createdAt: Date;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the AssessmentSubsetInventory interface.
70
+ */
71
+ export function instanceOfAssessmentSubsetInventory(value: object): value is AssessmentSubsetInventory {
72
+ if (!('id' in value) || value['id'] === undefined) return false;
73
+ if (!('name' in value) || value['name'] === undefined) return false;
74
+ if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
75
+ if (!('vmsCount' in value) || value['vmsCount'] === undefined) return false;
76
+ if (!('inventory' in value) || value['inventory'] === undefined) return false;
77
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function AssessmentSubsetInventoryFromJSON(json: any): AssessmentSubsetInventory {
82
+ return AssessmentSubsetInventoryFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function AssessmentSubsetInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssessmentSubsetInventory {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'id': json['id'],
92
+ 'name': json['name'],
93
+ 'vcenterId': json['vcenterId'],
94
+ 'vmsCount': json['vmsCount'],
95
+ 'inventory': InventoryFromJSON(json['inventory']),
96
+ 'createdAt': (new Date(json['createdAt'])),
97
+ };
98
+ }
99
+
100
+ export function AssessmentSubsetInventoryToJSON(json: any): AssessmentSubsetInventory {
101
+ return AssessmentSubsetInventoryToJSONTyped(json, false);
102
+ }
103
+
104
+ export function AssessmentSubsetInventoryToJSONTyped(value?: AssessmentSubsetInventory | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'id': value['id'],
112
+ 'name': value['name'],
113
+ 'vcenterId': value['vcenterId'],
114
+ 'vmsCount': value['vmsCount'],
115
+ 'inventory': InventoryToJSON(value['inventory']),
116
+ 'createdAt': value['createdAt'].toISOString(),
117
+ };
118
+ }
119
+
@@ -100,6 +100,12 @@ export interface ClusterRequirementsRequest {
100
100
  * @memberof ClusterRequirementsRequest
101
101
  */
102
102
  hostedControlPlane?: boolean;
103
+ /**
104
+ * If true, creates a 3-node compact cluster with no dedicated workers. Requires controlPlaneNodeCount=3 and controlPlaneSchedulable=true. Incompatible with hostedControlPlane=true
105
+ * @type {boolean}
106
+ * @memberof ClusterRequirementsRequest
107
+ */
108
+ compactMode?: boolean;
103
109
  }
104
110
 
105
111
 
@@ -146,6 +152,7 @@ export function ClusterRequirementsRequestFromJSONTyped(json: any, ignoreDiscrim
146
152
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
147
153
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
148
154
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
155
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
149
156
  };
150
157
  }
151
158
 
@@ -171,6 +178,7 @@ export function ClusterRequirementsRequestToJSONTyped(value?: ClusterRequirement
171
178
  'controlPlaneMemory': value['controlPlaneMemory'],
172
179
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
173
180
  'hostedControlPlane': value['hostedControlPlane'],
181
+ 'compactMode': value['compactMode'],
174
182
  };
175
183
  }
176
184
 
@@ -85,6 +85,12 @@ export interface ClusterRequirementsStoredInput {
85
85
  * @memberof ClusterRequirementsStoredInput
86
86
  */
87
87
  hostedControlPlane?: boolean;
88
+ /**
89
+ * If true, creates a 3-node compact cluster with no dedicated workers
90
+ * @type {boolean}
91
+ * @memberof ClusterRequirementsStoredInput
92
+ */
93
+ compactMode?: boolean;
88
94
  }
89
95
 
90
96
 
@@ -149,6 +155,7 @@ export function ClusterRequirementsStoredInputFromJSONTyped(json: any, ignoreDis
149
155
  'controlPlaneMemory': json['controlPlaneMemory'] == null ? undefined : json['controlPlaneMemory'],
150
156
  'controlPlaneNodeCount': json['controlPlaneNodeCount'] == null ? undefined : json['controlPlaneNodeCount'],
151
157
  'hostedControlPlane': json['hostedControlPlane'] == null ? undefined : json['hostedControlPlane'],
158
+ 'compactMode': json['compactMode'] == null ? undefined : json['compactMode'],
152
159
  };
153
160
  }
154
161
 
@@ -174,6 +181,7 @@ export function ClusterRequirementsStoredInputToJSONTyped(value?: ClusterRequire
174
181
  'controlPlaneMemory': value['controlPlaneMemory'],
175
182
  'controlPlaneNodeCount': value['controlPlaneNodeCount'],
176
183
  'hostedControlPlane': value['hostedControlPlane'],
184
+ 'compactMode': value['compactMode'],
177
185
  };
178
186
  }
179
187