@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-84c734aba511
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 +24 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +16 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/esm/apis/ImageUpgradeApi.js +86 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AgentStatus.d.ts +5 -0
- package/dist/esm/models/AgentStatus.js +5 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/esm/models/ImageUpgradeImage.js +47 -0
- package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/esm/models/ImageUpgradeResult.js +71 -0
- package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/esm/models/ImageUpgradeStatus.js +57 -0
- package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
- package/dist/esm/models/ImageUploadStatus.js +56 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
- package/dist/esm/models/VirtualMachine.d.ts +8 -0
- package/dist/esm/models/VirtualMachine.js +4 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -0
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/models/ImageUpgradeImage.js +54 -0
- package/dist/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/models/ImageUpgradeResult.js +79 -0
- package/dist/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/models/ImageUpgradeStatus.js +64 -0
- package/dist/models/ImageUploadStatus.d.ts +44 -0
- package/dist/models/ImageUploadStatus.js +64 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/models/SuccessfulImageUpgrade.js +59 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/models/VMFilterOptionsResponse.js +8 -0
- package/dist/models/VirtualMachine.d.ts +8 -0
- package/dist/models/VirtualMachine.js +4 -0
- package/dist/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/runtime.js +4 -3
- package/docs/AgentStatus.md +2 -0
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +8 -0
- package/docs/ImageUpgradeApi.md +82 -0
- package/docs/ImageUpgradeImage.md +36 -0
- package/docs/ImageUpgradeResult.md +46 -0
- package/docs/ImageUpgradeStatus.md +40 -0
- package/docs/ImageUploadStatus.md +36 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/RDMHostLun.md +41 -0
- package/docs/SuccessfulImageUpgrade.md +38 -0
- package/docs/VMFilterOptionsResponse.md +4 -0
- package/docs/VirtualMachine.md +4 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AgentStatus.ts +14 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/Host.ts +24 -0
- package/src/models/ImageUpgradeImage.ts +71 -0
- package/src/models/ImageUpgradeResult.ts +130 -0
- package/src/models/ImageUpgradeStatus.ts +100 -0
- package/src/models/ImageUploadStatus.ts +84 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/SuccessfulImageUpgrade.ts +78 -0
- package/src/models/VMFilterOptionsResponse.ts +14 -0
- package/src/models/VirtualMachine.ts +12 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +10 -0
- package/src/runtime.ts +3 -3
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
|
|
17
|
+
import {
|
|
18
|
+
ImageUpgradeStatusFromJSON,
|
|
19
|
+
ImageUpgradeStatusFromJSONTyped,
|
|
20
|
+
ImageUpgradeStatusToJSON,
|
|
21
|
+
ImageUpgradeStatusToJSONTyped,
|
|
22
|
+
} from './ImageUpgradeStatus.js';
|
|
16
23
|
import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
|
|
17
24
|
import {
|
|
18
25
|
AgentStatusConsoleConnectionFromJSON,
|
|
@@ -39,6 +46,10 @@ export interface AgentStatus {
|
|
|
39
46
|
* RVTool mode enabled
|
|
40
47
|
*/
|
|
41
48
|
rvtoolsModeEnabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Always present in both connected and disconnected modes, including while the console is unreachable. Includes upload activity and the last host image upgrade result. Image upgrade status errors do not fail the agent-status response.
|
|
51
|
+
*/
|
|
52
|
+
imageUpgradeStatus: ImageUpgradeStatus;
|
|
42
53
|
}
|
|
43
54
|
|
|
44
55
|
|
|
@@ -58,6 +69,7 @@ export type AgentStatusModeEnum = typeof AgentStatusModeEnum[keyof typeof AgentS
|
|
|
58
69
|
export function instanceOfAgentStatus(value: object): value is AgentStatus {
|
|
59
70
|
if (!('mode' in value) || value['mode'] === undefined) return false;
|
|
60
71
|
if (!('consoleConnection' in value) || value['consoleConnection'] === undefined) return false;
|
|
72
|
+
if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined) return false;
|
|
61
73
|
return true;
|
|
62
74
|
}
|
|
63
75
|
|
|
@@ -74,6 +86,7 @@ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
74
86
|
'mode': json['mode'],
|
|
75
87
|
'consoleConnection': AgentStatusConsoleConnectionFromJSON(json['consoleConnection']),
|
|
76
88
|
'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
|
|
89
|
+
'imageUpgradeStatus': ImageUpgradeStatusFromJSON(json['imageUpgradeStatus']),
|
|
77
90
|
};
|
|
78
91
|
}
|
|
79
92
|
|
|
@@ -91,6 +104,7 @@ export function AgentStatusToJSONTyped(value?: AgentStatus | null, ignoreDiscrim
|
|
|
91
104
|
'mode': value['mode'],
|
|
92
105
|
'consoleConnection': AgentStatusConsoleConnectionToJSON(value['consoleConnection']),
|
|
93
106
|
'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
|
|
107
|
+
'imageUpgradeStatus': ImageUpgradeStatusToJSON(value['imageUpgradeStatus']),
|
|
94
108
|
};
|
|
95
109
|
}
|
|
96
110
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
|
|
17
|
+
import {
|
|
18
|
+
VirtualMachineIdentityFromJSON,
|
|
19
|
+
VirtualMachineIdentityFromJSONTyped,
|
|
20
|
+
VirtualMachineIdentityToJSON,
|
|
21
|
+
VirtualMachineIdentityToJSONTyped,
|
|
22
|
+
} from './VirtualMachineIdentity.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Appliance
|
|
28
|
+
*/
|
|
29
|
+
export interface Appliance {
|
|
30
|
+
/**
|
|
31
|
+
* Appliance product name
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Appliance vendor; defaults to Unknown when not reported
|
|
36
|
+
*/
|
|
37
|
+
vendor: string;
|
|
38
|
+
/**
|
|
39
|
+
* Appliance product version; defaults to empty when not reported
|
|
40
|
+
*/
|
|
41
|
+
version: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
confidence: number;
|
|
46
|
+
/**
|
|
47
|
+
* Number of VMs running this appliance
|
|
48
|
+
*/
|
|
49
|
+
vmCount: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
vms: Array<VirtualMachineIdentity>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the Appliance interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfAppliance(value: object): value is Appliance {
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
62
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
63
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
64
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
65
|
+
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ApplianceFromJSON(json: any): Appliance {
|
|
70
|
+
return ApplianceFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'name': json['name'],
|
|
80
|
+
'vendor': json['vendor'],
|
|
81
|
+
'version': json['version'],
|
|
82
|
+
'confidence': json['confidence'],
|
|
83
|
+
'vmCount': json['vmCount'],
|
|
84
|
+
'vms': ((json['vms'] as Array<any>).map(VirtualMachineIdentityFromJSON)),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ApplianceToJSON(json: any): Appliance {
|
|
89
|
+
return ApplianceToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'vendor': value['vendor'],
|
|
101
|
+
'version': value['version'],
|
|
102
|
+
'confidence': value['confidence'],
|
|
103
|
+
'vmCount': value['vmCount'],
|
|
104
|
+
'vms': ((value['vms'] as Array<any>).map(VirtualMachineIdentityToJSON)),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 { Appliance } from './Appliance.js';
|
|
17
|
+
import {
|
|
18
|
+
ApplianceFromJSON,
|
|
19
|
+
ApplianceFromJSONTyped,
|
|
20
|
+
ApplianceToJSON,
|
|
21
|
+
ApplianceToJSONTyped,
|
|
22
|
+
} from './Appliance.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApplianceListResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplianceListResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
appliances: Array<Appliance>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse {
|
|
40
|
+
if (!('appliances' in value) || value['appliances'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ApplianceListResponseFromJSON(json: any): ApplianceListResponse {
|
|
45
|
+
return ApplianceListResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'appliances': ((json['appliances'] as Array<any>).map(ApplianceFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ApplianceListResponseToJSON(json: any): ApplianceListResponse {
|
|
59
|
+
return ApplianceListResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'appliances': ((value['appliances'] as Array<any>).map(ApplianceToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -35,6 +35,22 @@ export interface ApplicationOverview {
|
|
|
35
35
|
* Application description
|
|
36
36
|
*/
|
|
37
37
|
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Application vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor: string;
|
|
42
|
+
/**
|
|
43
|
+
* Application category
|
|
44
|
+
*/
|
|
45
|
+
category: string;
|
|
46
|
+
/**
|
|
47
|
+
* Detection confidence percentage; defaults to 0 when omitted
|
|
48
|
+
*/
|
|
49
|
+
confidence?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the application has a known container deployment option
|
|
52
|
+
*/
|
|
53
|
+
containerizationCandidate?: boolean;
|
|
38
54
|
/**
|
|
39
55
|
* Number of VMs running this application
|
|
40
56
|
*/
|
|
@@ -51,6 +67,8 @@ export interface ApplicationOverview {
|
|
|
51
67
|
export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
|
|
52
68
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
69
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
70
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
71
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
54
72
|
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
55
73
|
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
56
74
|
return true;
|
|
@@ -68,6 +86,10 @@ export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
68
86
|
|
|
69
87
|
'name': json['name'],
|
|
70
88
|
'description': json['description'],
|
|
89
|
+
'vendor': json['vendor'],
|
|
90
|
+
'category': json['category'],
|
|
91
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
92
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
71
93
|
'vmCount': json['vmCount'],
|
|
72
94
|
'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
|
|
73
95
|
};
|
|
@@ -86,6 +108,10 @@ export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | nul
|
|
|
86
108
|
|
|
87
109
|
'name': value['name'],
|
|
88
110
|
'description': value['description'],
|
|
111
|
+
'vendor': value['vendor'],
|
|
112
|
+
'category': value['category'],
|
|
113
|
+
'confidence': value['confidence'],
|
|
114
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
89
115
|
'vmCount': value['vmCount'],
|
|
90
116
|
'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
|
|
91
117
|
};
|
package/src/models/Host.ts
CHANGED
|
@@ -46,6 +46,22 @@ export interface Host {
|
|
|
46
46
|
*
|
|
47
47
|
*/
|
|
48
48
|
model: string;
|
|
49
|
+
/**
|
|
50
|
+
* Source datacenter name, when available.
|
|
51
|
+
*/
|
|
52
|
+
datacenter?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Source cluster name; omitted for standalone hosts.
|
|
55
|
+
*/
|
|
56
|
+
cluster?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Source-reported CPU model, when available.
|
|
59
|
+
*/
|
|
60
|
+
cpuModel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
63
|
+
*/
|
|
64
|
+
serialNumber?: string;
|
|
49
65
|
/**
|
|
50
66
|
* Number of CPU cores
|
|
51
67
|
*/
|
|
@@ -98,6 +114,10 @@ export function HostFromJSONTyped(json: any, ignoreDiscriminator: boolean): Host
|
|
|
98
114
|
'id': json['id'] == null ? undefined : json['id'],
|
|
99
115
|
'vendor': json['vendor'],
|
|
100
116
|
'model': json['model'],
|
|
117
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
118
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
119
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
120
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
101
121
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
102
122
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
103
123
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
@@ -122,6 +142,10 @@ export function HostToJSONTyped(value?: Host | null, ignoreDiscriminator: boolea
|
|
|
122
142
|
'id': value['id'],
|
|
123
143
|
'vendor': value['vendor'],
|
|
124
144
|
'model': value['model'],
|
|
145
|
+
'datacenter': value['datacenter'],
|
|
146
|
+
'cluster': value['cluster'],
|
|
147
|
+
'cpuModel': value['cpuModel'],
|
|
148
|
+
'serialNumber': value['serialNumber'],
|
|
125
149
|
'cpuCores': value['cpuCores'],
|
|
126
150
|
'cpuSockets': value['cpuSockets'],
|
|
127
151
|
'memoryMB': value['memoryMB'],
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 ImageUpgradeImage
|
|
20
|
+
*/
|
|
21
|
+
export interface ImageUpgradeImage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
version: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
digest: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage {
|
|
36
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
37
|
+
if (!('digest' in value) || value['digest'] === undefined) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage {
|
|
42
|
+
return ImageUpgradeImageFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'version': json['version'],
|
|
52
|
+
'digest': json['digest'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage {
|
|
57
|
+
return ImageUpgradeImageToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'version': value['version'],
|
|
68
|
+
'digest': value['digest'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
import type { ImageUpgradeImage } from './ImageUpgradeImage.js';
|
|
17
|
+
import {
|
|
18
|
+
ImageUpgradeImageFromJSON,
|
|
19
|
+
ImageUpgradeImageFromJSONTyped,
|
|
20
|
+
ImageUpgradeImageToJSON,
|
|
21
|
+
ImageUpgradeImageToJSONTyped,
|
|
22
|
+
} from './ImageUpgradeImage.js';
|
|
23
|
+
import type { SuccessfulImageUpgrade } from './SuccessfulImageUpgrade.js';
|
|
24
|
+
import {
|
|
25
|
+
SuccessfulImageUpgradeFromJSON,
|
|
26
|
+
SuccessfulImageUpgradeFromJSONTyped,
|
|
27
|
+
SuccessfulImageUpgradeToJSON,
|
|
28
|
+
SuccessfulImageUpgradeToJSONTyped,
|
|
29
|
+
} from './SuccessfulImageUpgrade.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ImageUpgradeResult
|
|
35
|
+
*/
|
|
36
|
+
export interface ImageUpgradeResult {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
file: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
outcome: ImageUpgradeResultOutcomeEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
time: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
error?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
errorStage?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
runningImage?: ImageUpgradeImage;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
lastSuccessfulUpdate?: SuccessfulImageUpgrade;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const ImageUpgradeResultOutcomeEnum = {
|
|
72
|
+
Applied: 'applied',
|
|
73
|
+
RolledBack: 'rolled-back',
|
|
74
|
+
Failed: 'failed',
|
|
75
|
+
Unchanged: 'unchanged',
|
|
76
|
+
} as const;
|
|
77
|
+
export type ImageUpgradeResultOutcomeEnum = typeof ImageUpgradeResultOutcomeEnum[keyof typeof ImageUpgradeResultOutcomeEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ImageUpgradeResult interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfImageUpgradeResult(value: object): value is ImageUpgradeResult {
|
|
84
|
+
if (!('file' in value) || value['file'] === undefined) return false;
|
|
85
|
+
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
86
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ImageUpgradeResultFromJSON(json: any): ImageUpgradeResult {
|
|
91
|
+
return ImageUpgradeResultFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ImageUpgradeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeResult {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'file': json['file'],
|
|
101
|
+
'outcome': json['outcome'],
|
|
102
|
+
'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
|
|
103
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
104
|
+
'errorStage': json['errorStage'] == null ? undefined : json['errorStage'],
|
|
105
|
+
'runningImage': json['runningImage'] == null ? undefined : ImageUpgradeImageFromJSON(json['runningImage']),
|
|
106
|
+
'lastSuccessfulUpdate': json['lastSuccessfulUpdate'] == null ? undefined : SuccessfulImageUpgradeFromJSON(json['lastSuccessfulUpdate']),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ImageUpgradeResultToJSON(json: any): ImageUpgradeResult {
|
|
111
|
+
return ImageUpgradeResultToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ImageUpgradeResultToJSONTyped(value?: ImageUpgradeResult | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'file': value['file'],
|
|
122
|
+
'outcome': value['outcome'],
|
|
123
|
+
'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
|
|
124
|
+
'error': value['error'],
|
|
125
|
+
'errorStage': value['errorStage'],
|
|
126
|
+
'runningImage': ImageUpgradeImageToJSON(value['runningImage']),
|
|
127
|
+
'lastSuccessfulUpdate': SuccessfulImageUpgradeToJSON(value['lastSuccessfulUpdate']),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
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 { ImageUpgradeResult } from './ImageUpgradeResult.js';
|
|
17
|
+
import {
|
|
18
|
+
ImageUpgradeResultFromJSON,
|
|
19
|
+
ImageUpgradeResultFromJSONTyped,
|
|
20
|
+
ImageUpgradeResultToJSON,
|
|
21
|
+
ImageUpgradeResultToJSONTyped,
|
|
22
|
+
} from './ImageUpgradeResult.js';
|
|
23
|
+
import type { ImageUploadStatus } from './ImageUploadStatus.js';
|
|
24
|
+
import {
|
|
25
|
+
ImageUploadStatusFromJSON,
|
|
26
|
+
ImageUploadStatusFromJSONTyped,
|
|
27
|
+
ImageUploadStatusToJSON,
|
|
28
|
+
ImageUploadStatusToJSONTyped,
|
|
29
|
+
} from './ImageUploadStatus.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ImageUpgradeStatus
|
|
35
|
+
*/
|
|
36
|
+
export interface ImageUpgradeStatus {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
currentVersion: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
upload: ImageUploadStatus;
|
|
45
|
+
/**
|
|
46
|
+
* Last host upgrade result, or null if it is missing or cannot be read.
|
|
47
|
+
*/
|
|
48
|
+
upgrade: ImageUpgradeResult | null;
|
|
49
|
+
/**
|
|
50
|
+
* Error reading the host upgrade result, independent of upload errors. Null when there is no read error.
|
|
51
|
+
*/
|
|
52
|
+
upgradeError: string | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ImageUpgradeStatus interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfImageUpgradeStatus(value: object): value is ImageUpgradeStatus {
|
|
59
|
+
if (!('currentVersion' in value) || value['currentVersion'] === undefined) return false;
|
|
60
|
+
if (!('upload' in value) || value['upload'] === undefined) return false;
|
|
61
|
+
if (!('upgrade' in value) || value['upgrade'] === undefined) return false;
|
|
62
|
+
if (!('upgradeError' in value) || value['upgradeError'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ImageUpgradeStatusFromJSON(json: any): ImageUpgradeStatus {
|
|
67
|
+
return ImageUpgradeStatusFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ImageUpgradeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeStatus {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'currentVersion': json['currentVersion'],
|
|
77
|
+
'upload': ImageUploadStatusFromJSON(json['upload']),
|
|
78
|
+
'upgrade': ImageUpgradeResultFromJSON(json['upgrade']),
|
|
79
|
+
'upgradeError': json['upgradeError'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ImageUpgradeStatusToJSON(json: any): ImageUpgradeStatus {
|
|
84
|
+
return ImageUpgradeStatusToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ImageUpgradeStatusToJSONTyped(value?: ImageUpgradeStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'currentVersion': value['currentVersion'],
|
|
95
|
+
'upload': ImageUploadStatusToJSON(value['upload']),
|
|
96
|
+
'upgrade': ImageUpgradeResultToJSON(value['upgrade']),
|
|
97
|
+
'upgradeError': value['upgradeError'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|