@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
package/dist/esm/apis/index.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AgentApi.js';
|
|
4
|
+
export * from './AppliancesApi.js';
|
|
4
5
|
export * from './ApplicationsApi.js';
|
|
5
6
|
export * from './CollectionsApi.js';
|
|
6
7
|
export * from './CollectorApi.js';
|
|
7
8
|
export * from './CredentialsApi.js';
|
|
8
9
|
export * from './ForecasterApi.js';
|
|
9
10
|
export * from './GroupsApi.js';
|
|
11
|
+
export * from './ImageUpgradeApi.js';
|
|
10
12
|
export * from './InspectorApi.js';
|
|
11
13
|
export * from './InventoriesApi.js';
|
|
12
14
|
export * from './RightsizingApi.js';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
|
|
12
13
|
import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -28,6 +29,10 @@ export interface AgentStatus {
|
|
|
28
29
|
* RVTool mode enabled
|
|
29
30
|
*/
|
|
30
31
|
rvtoolsModeEnabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
imageUpgradeStatus: ImageUpgradeStatus;
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
38
|
* @export
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ImageUpgradeStatusFromJSON, ImageUpgradeStatusToJSON, } from './ImageUpgradeStatus.js';
|
|
14
15
|
import { AgentStatusConsoleConnectionFromJSON, AgentStatusConsoleConnectionToJSON, } from './AgentStatusConsoleConnection.js';
|
|
15
16
|
/**
|
|
16
17
|
* @export
|
|
@@ -27,6 +28,8 @@ export function instanceOfAgentStatus(value) {
|
|
|
27
28
|
return false;
|
|
28
29
|
if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
|
|
29
30
|
return false;
|
|
31
|
+
if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined)
|
|
32
|
+
return false;
|
|
30
33
|
return true;
|
|
31
34
|
}
|
|
32
35
|
export function AgentStatusFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ export function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
'mode': json['mode'],
|
|
41
44
|
'consoleConnection': AgentStatusConsoleConnectionFromJSON(json['consoleConnection']),
|
|
42
45
|
'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
|
|
46
|
+
'imageUpgradeStatus': ImageUpgradeStatusFromJSON(json['imageUpgradeStatus']),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
export function AgentStatusToJSON(json) {
|
|
@@ -53,5 +57,6 @@ export function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
57
|
'mode': value['mode'],
|
|
54
58
|
'consoleConnection': AgentStatusConsoleConnectionToJSON(value['consoleConnection']),
|
|
55
59
|
'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
|
|
60
|
+
'imageUpgradeStatus': ImageUpgradeStatusToJSON(value['imageUpgradeStatus']),
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
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
|
+
import type { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Appliance
|
|
17
|
+
*/
|
|
18
|
+
export interface Appliance {
|
|
19
|
+
/**
|
|
20
|
+
* Appliance product name
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* Appliance vendor; defaults to Unknown when not reported
|
|
25
|
+
*/
|
|
26
|
+
vendor: string;
|
|
27
|
+
/**
|
|
28
|
+
* Appliance product version; defaults to empty when not reported
|
|
29
|
+
*/
|
|
30
|
+
version: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
confidence: number;
|
|
35
|
+
/**
|
|
36
|
+
* Number of VMs running this appliance
|
|
37
|
+
*/
|
|
38
|
+
vmCount: number;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
vms: Array<VirtualMachineIdentity>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the Appliance interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAppliance(value: object): value is Appliance;
|
|
48
|
+
export declare function ApplianceFromJSON(json: any): Appliance;
|
|
49
|
+
export declare function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance;
|
|
50
|
+
export declare function ApplianceToJSON(json: any): Appliance;
|
|
51
|
+
export declare function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
import { VirtualMachineIdentityFromJSON, VirtualMachineIdentityToJSON, } from './VirtualMachineIdentity.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Appliance interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAppliance(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function ApplianceFromJSON(json) {
|
|
34
|
+
return ApplianceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'vendor': json['vendor'],
|
|
43
|
+
'version': json['version'],
|
|
44
|
+
'confidence': json['confidence'],
|
|
45
|
+
'vmCount': json['vmCount'],
|
|
46
|
+
'vms': (json['vms'].map(VirtualMachineIdentityFromJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function ApplianceToJSON(json) {
|
|
50
|
+
return ApplianceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'vendor': value['vendor'],
|
|
59
|
+
'version': value['version'],
|
|
60
|
+
'confidence': value['confidence'],
|
|
61
|
+
'vmCount': value['vmCount'],
|
|
62
|
+
'vms': (value['vms'].map(VirtualMachineIdentityToJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
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
|
+
import type { Appliance } from './Appliance.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplianceListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplianceListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
appliances: Array<Appliance>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse;
|
|
28
|
+
export declare function ApplianceListResponseFromJSON(json: any): ApplianceListResponse;
|
|
29
|
+
export declare function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse;
|
|
30
|
+
export declare function ApplianceListResponseToJSON(json: any): ApplianceListResponse;
|
|
31
|
+
export declare function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { ApplianceFromJSON, ApplianceToJSON, } from './Appliance.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ApplianceListResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfApplianceListResponse(value) {
|
|
19
|
+
if (!('appliances' in value) || value['appliances'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function ApplianceListResponseFromJSON(json) {
|
|
24
|
+
return ApplianceListResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'appliances': (json['appliances'].map(ApplianceFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ApplianceListResponseToJSON(json) {
|
|
35
|
+
return ApplianceListResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'appliances': (value['appliances'].map(ApplianceToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -24,6 +24,22 @@ export interface ApplicationOverview {
|
|
|
24
24
|
* Application description
|
|
25
25
|
*/
|
|
26
26
|
description: string;
|
|
27
|
+
/**
|
|
28
|
+
* Application vendor
|
|
29
|
+
*/
|
|
30
|
+
vendor: string;
|
|
31
|
+
/**
|
|
32
|
+
* Application category
|
|
33
|
+
*/
|
|
34
|
+
category: string;
|
|
35
|
+
/**
|
|
36
|
+
* Detection confidence percentage; defaults to 0 when omitted
|
|
37
|
+
*/
|
|
38
|
+
confidence?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the application has a known container deployment option
|
|
41
|
+
*/
|
|
42
|
+
containerizationCandidate?: boolean;
|
|
27
43
|
/**
|
|
28
44
|
* Number of VMs running this application
|
|
29
45
|
*/
|
|
@@ -20,6 +20,10 @@ export function instanceOfApplicationOverview(value) {
|
|
|
20
20
|
return false;
|
|
21
21
|
if (!('description' in value) || value['description'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
26
|
+
return false;
|
|
23
27
|
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
24
28
|
return false;
|
|
25
29
|
if (!('vms' in value) || value['vms'] === undefined)
|
|
@@ -36,6 +40,10 @@ export function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
40
|
return {
|
|
37
41
|
'name': json['name'],
|
|
38
42
|
'description': json['description'],
|
|
43
|
+
'vendor': json['vendor'],
|
|
44
|
+
'category': json['category'],
|
|
45
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
46
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
39
47
|
'vmCount': json['vmCount'],
|
|
40
48
|
'vms': (json['vms'].map(ApplicationVMFromJSON)),
|
|
41
49
|
};
|
|
@@ -50,6 +58,10 @@ export function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
50
58
|
return {
|
|
51
59
|
'name': value['name'],
|
|
52
60
|
'description': value['description'],
|
|
61
|
+
'vendor': value['vendor'],
|
|
62
|
+
'category': value['category'],
|
|
63
|
+
'confidence': value['confidence'],
|
|
64
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
53
65
|
'vmCount': value['vmCount'],
|
|
54
66
|
'vms': (value['vms'].map(ApplicationVMToJSON)),
|
|
55
67
|
};
|
|
@@ -29,6 +29,22 @@ export interface Host {
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
model: string;
|
|
32
|
+
/**
|
|
33
|
+
* Source datacenter name, when available.
|
|
34
|
+
*/
|
|
35
|
+
datacenter?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source cluster name; omitted for standalone hosts.
|
|
38
|
+
*/
|
|
39
|
+
cluster?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Source-reported CPU model, when available.
|
|
42
|
+
*/
|
|
43
|
+
cpuModel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
46
|
+
*/
|
|
47
|
+
serialNumber?: string;
|
|
32
48
|
/**
|
|
33
49
|
* Number of CPU cores
|
|
34
50
|
*/
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -34,6 +34,10 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'id': json['id'] == null ? undefined : json['id'],
|
|
35
35
|
'vendor': json['vendor'],
|
|
36
36
|
'model': json['model'],
|
|
37
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
38
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
39
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
40
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
37
41
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
38
42
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
39
43
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
@@ -54,6 +58,10 @@ export function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
58
|
'id': value['id'],
|
|
55
59
|
'vendor': value['vendor'],
|
|
56
60
|
'model': value['model'],
|
|
61
|
+
'datacenter': value['datacenter'],
|
|
62
|
+
'cluster': value['cluster'],
|
|
63
|
+
'cpuModel': value['cpuModel'],
|
|
64
|
+
'serialNumber': value['serialNumber'],
|
|
57
65
|
'cpuCores': value['cpuCores'],
|
|
58
66
|
'cpuSockets': value['cpuSockets'],
|
|
59
67
|
'memoryMB': value['memoryMB'],
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
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 ImageUpgradeImage
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageUpgradeImage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
version: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
digest: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage;
|
|
31
|
+
export declare function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage;
|
|
32
|
+
export declare function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage;
|
|
33
|
+
export declare function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage;
|
|
34
|
+
export declare function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfImageUpgradeImage(value) {
|
|
18
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('digest' in value) || value['digest'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ImageUpgradeImageFromJSON(json) {
|
|
25
|
+
return ImageUpgradeImageFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ImageUpgradeImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'version': json['version'],
|
|
33
|
+
'digest': json['digest'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ImageUpgradeImageToJSON(json) {
|
|
37
|
+
return ImageUpgradeImageToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ImageUpgradeImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'version': value['version'],
|
|
45
|
+
'digest': value['digest'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
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
|
+
import type { ImageUpgradeImage } from './ImageUpgradeImage.js';
|
|
13
|
+
import type { SuccessfulImageUpgrade } from './SuccessfulImageUpgrade.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ImageUpgradeResult
|
|
18
|
+
*/
|
|
19
|
+
export interface ImageUpgradeResult {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
file: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
outcome: ImageUpgradeResultOutcomeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
time: Date;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
error?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
errorStage?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
runningImage?: ImageUpgradeImage;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
lastSuccessfulUpdate?: SuccessfulImageUpgrade;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const ImageUpgradeResultOutcomeEnum: {
|
|
53
|
+
readonly Applied: "applied";
|
|
54
|
+
readonly RolledBack: "rolled-back";
|
|
55
|
+
readonly Failed: "failed";
|
|
56
|
+
readonly Unchanged: "unchanged";
|
|
57
|
+
};
|
|
58
|
+
export type ImageUpgradeResultOutcomeEnum = typeof ImageUpgradeResultOutcomeEnum[keyof typeof ImageUpgradeResultOutcomeEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ImageUpgradeResult interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfImageUpgradeResult(value: object): value is ImageUpgradeResult;
|
|
63
|
+
export declare function ImageUpgradeResultFromJSON(json: any): ImageUpgradeResult;
|
|
64
|
+
export declare function ImageUpgradeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeResult;
|
|
65
|
+
export declare function ImageUpgradeResultToJSON(json: any): ImageUpgradeResult;
|
|
66
|
+
export declare function ImageUpgradeResultToJSONTyped(value?: ImageUpgradeResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
import { parseDateTime, serializeDateTime } from '../runtime.js';
|
|
15
|
+
import { ImageUpgradeImageFromJSON, ImageUpgradeImageToJSON, } from './ImageUpgradeImage.js';
|
|
16
|
+
import { SuccessfulImageUpgradeFromJSON, SuccessfulImageUpgradeToJSON, } from './SuccessfulImageUpgrade.js';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ImageUpgradeResultOutcomeEnum = {
|
|
21
|
+
Applied: 'applied',
|
|
22
|
+
RolledBack: 'rolled-back',
|
|
23
|
+
Failed: 'failed',
|
|
24
|
+
Unchanged: 'unchanged',
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ImageUpgradeResult interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfImageUpgradeResult(value) {
|
|
30
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('outcome' in value) || value['outcome'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('time' in value) || value['time'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
export function ImageUpgradeResultFromJSON(json) {
|
|
39
|
+
return ImageUpgradeResultFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ImageUpgradeResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'file': json['file'],
|
|
47
|
+
'outcome': json['outcome'],
|
|
48
|
+
'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
|
|
49
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
50
|
+
'errorStage': json['errorStage'] == null ? undefined : json['errorStage'],
|
|
51
|
+
'runningImage': json['runningImage'] == null ? undefined : ImageUpgradeImageFromJSON(json['runningImage']),
|
|
52
|
+
'lastSuccessfulUpdate': json['lastSuccessfulUpdate'] == null ? undefined : SuccessfulImageUpgradeFromJSON(json['lastSuccessfulUpdate']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function ImageUpgradeResultToJSON(json) {
|
|
56
|
+
return ImageUpgradeResultToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function ImageUpgradeResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'file': value['file'],
|
|
64
|
+
'outcome': value['outcome'],
|
|
65
|
+
'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
|
|
66
|
+
'error': value['error'],
|
|
67
|
+
'errorStage': value['errorStage'],
|
|
68
|
+
'runningImage': ImageUpgradeImageToJSON(value['runningImage']),
|
|
69
|
+
'lastSuccessfulUpdate': SuccessfulImageUpgradeToJSON(value['lastSuccessfulUpdate']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
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
|
+
import type { ImageUpgradeResult } from './ImageUpgradeResult.js';
|
|
13
|
+
import type { ImageUploadStatus } from './ImageUploadStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ImageUpgradeStatus
|
|
18
|
+
*/
|
|
19
|
+
export interface ImageUpgradeStatus {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
currentVersion: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
upload: ImageUploadStatus;
|
|
28
|
+
/**
|
|
29
|
+
* Last host upgrade result, or null if it is missing or cannot be read.
|
|
30
|
+
*/
|
|
31
|
+
upgrade: ImageUpgradeResult | null;
|
|
32
|
+
/**
|
|
33
|
+
* Error reading the host upgrade result, independent of upload errors. Null when there is no read error.
|
|
34
|
+
*/
|
|
35
|
+
upgradeError: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ImageUpgradeStatus interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfImageUpgradeStatus(value: object): value is ImageUpgradeStatus;
|
|
41
|
+
export declare function ImageUpgradeStatusFromJSON(json: any): ImageUpgradeStatus;
|
|
42
|
+
export declare function ImageUpgradeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeStatus;
|
|
43
|
+
export declare function ImageUpgradeStatusToJSON(json: any): ImageUpgradeStatus;
|
|
44
|
+
export declare function ImageUpgradeStatusToJSONTyped(value?: ImageUpgradeStatus | null, ignoreDiscriminator?: boolean): any;
|