@openshift-migration-advisor/planner-sdk 0.16.0 → 0.17.0-587c58d24751
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +3 -2
- package/dist/esm/models/AgentProxy.js +3 -3
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/Identity.js +2 -2
- package/dist/esm/models/Info.js +2 -2
- package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/PartnerRequest.js +3 -3
- package/dist/esm/models/Snapshot.js +1 -1
- package/dist/esm/models/Source.js +2 -2
- package/dist/esm/models/SourceCreate.js +2 -2
- package/dist/esm/models/SourceInfra.js +1 -1
- package/dist/esm/models/SourceUpdate.js +2 -2
- package/dist/esm/models/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/AgentProxy.js +3 -3
- package/dist/models/Datastore.js +1 -1
- package/dist/models/Host.js +3 -3
- package/dist/models/Identity.js +2 -2
- package/dist/models/Info.js +2 -2
- package/dist/models/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/PartnerRequest.js +3 -3
- package/dist/models/Snapshot.js +1 -1
- package/dist/models/Source.js +2 -2
- package/dist/models/SourceCreate.js +2 -2
- package/dist/models/SourceInfra.js +1 -1
- package/dist/models/SourceUpdate.js +2 -2
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/OsInfo.md +2 -0
- package/docs/VMs.md +2 -0
- package/package.json +1 -1
- package/src/models/AgentProxy.ts +3 -3
- package/src/models/Datastore.ts +1 -1
- package/src/models/Host.ts +3 -3
- package/src/models/Identity.ts +2 -2
- package/src/models/Info.ts +2 -2
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/OsInfo.ts +21 -0
- package/src/models/PartnerRequest.ts +3 -3
- package/src/models/Snapshot.ts +1 -1
- package/src/models/Source.ts +2 -2
- package/src/models/SourceCreate.ts +2 -2
- package/src/models/SourceInfra.ts +1 -1
- package/src/models/SourceUpdate.ts +2 -2
- package/src/models/VMs.ts +15 -0
- package/src/models/index.ts +1 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
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
|
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|
package/src/runtime.ts
CHANGED
|
@@ -367,6 +367,11 @@ export function mapValues(data: any, fn: (item: any) => any) {
|
|
|
367
367
|
return result;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
371
|
+
export function anyToJSON(value: any): any {
|
|
372
|
+
return value;
|
|
373
|
+
}
|
|
374
|
+
|
|
370
375
|
export function canConsumeForm(consumes: Consume[]): boolean {
|
|
371
376
|
for (const consume of consumes) {
|
|
372
377
|
if (consume.contentType?.startsWith('multipart/form-data') == true) {
|