@openshift-migration-advisor/agent-sdk 0.33.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 +14 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +10 -3
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -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 +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentStatus.d.ts +5 -0
- package/dist/esm/models/AgentStatus.js +5 -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/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/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -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/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/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/AgentStatus.md +2 -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/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/VirtualMachineDisk.md +4 -0
- package/package.json +1 -1
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AgentStatus.ts +14 -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/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/VirtualMachineDisk.ts +12 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RDMHostLun
|
|
16
|
+
*/
|
|
17
|
+
export interface RDMHostLun {
|
|
18
|
+
/**
|
|
19
|
+
* Object ID of the uniquely resolved running host that owns the matched LUN
|
|
20
|
+
*/
|
|
21
|
+
hostId: string;
|
|
22
|
+
/**
|
|
23
|
+
* SCSI disk key of the matched host LUN, when available
|
|
24
|
+
*/
|
|
25
|
+
key?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Canonical name (e.g. NAA) of the matched host LUN, when available
|
|
28
|
+
*/
|
|
29
|
+
canonicalName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* LUN UUID of the matched host LUN, when available
|
|
32
|
+
*/
|
|
33
|
+
lunUuid?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfRDMHostLun(value: object): value is RDMHostLun;
|
|
39
|
+
export declare function RDMHostLunFromJSON(json: any): RDMHostLun;
|
|
40
|
+
export declare function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun;
|
|
41
|
+
export declare function RDMHostLunToJSON(json: any): RDMHostLun;
|
|
42
|
+
export declare function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRDMHostLun = instanceOfRDMHostLun;
|
|
17
|
+
exports.RDMHostLunFromJSON = RDMHostLunFromJSON;
|
|
18
|
+
exports.RDMHostLunFromJSONTyped = RDMHostLunFromJSONTyped;
|
|
19
|
+
exports.RDMHostLunToJSON = RDMHostLunToJSON;
|
|
20
|
+
exports.RDMHostLunToJSONTyped = RDMHostLunToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRDMHostLun(value) {
|
|
25
|
+
if (!('hostId' in value) || value['hostId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function RDMHostLunFromJSON(json) {
|
|
30
|
+
return RDMHostLunFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function RDMHostLunFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'hostId': json['hostId'],
|
|
38
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
39
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
40
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RDMHostLunToJSON(json) {
|
|
44
|
+
return RDMHostLunToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RDMHostLunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'hostId': value['hostId'],
|
|
52
|
+
'key': value['key'],
|
|
53
|
+
'canonicalName': value['canonicalName'],
|
|
54
|
+
'lunUuid': value['lunUuid'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 SuccessfulImageUpgrade
|
|
16
|
+
*/
|
|
17
|
+
export interface SuccessfulImageUpgrade {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
version: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
digest: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
time: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SuccessfulImageUpgrade interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSuccessfulImageUpgrade(value: object): value is SuccessfulImageUpgrade;
|
|
35
|
+
export declare function SuccessfulImageUpgradeFromJSON(json: any): SuccessfulImageUpgrade;
|
|
36
|
+
export declare function SuccessfulImageUpgradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessfulImageUpgrade;
|
|
37
|
+
export declare function SuccessfulImageUpgradeToJSON(json: any): SuccessfulImageUpgrade;
|
|
38
|
+
export declare function SuccessfulImageUpgradeToJSONTyped(value?: SuccessfulImageUpgrade | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSuccessfulImageUpgrade = instanceOfSuccessfulImageUpgrade;
|
|
17
|
+
exports.SuccessfulImageUpgradeFromJSON = SuccessfulImageUpgradeFromJSON;
|
|
18
|
+
exports.SuccessfulImageUpgradeFromJSONTyped = SuccessfulImageUpgradeFromJSONTyped;
|
|
19
|
+
exports.SuccessfulImageUpgradeToJSON = SuccessfulImageUpgradeToJSON;
|
|
20
|
+
exports.SuccessfulImageUpgradeToJSONTyped = SuccessfulImageUpgradeToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SuccessfulImageUpgrade interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSuccessfulImageUpgrade(value) {
|
|
26
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('digest' in value) || value['digest'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('time' in value) || value['time'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function SuccessfulImageUpgradeFromJSON(json) {
|
|
35
|
+
return SuccessfulImageUpgradeFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function SuccessfulImageUpgradeFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'version': json['version'],
|
|
43
|
+
'digest': json['digest'],
|
|
44
|
+
'time': (json['time'] == null ? json['time'] : (0, runtime_js_1.parseDateTime)(json['time'])),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function SuccessfulImageUpgradeToJSON(json) {
|
|
48
|
+
return SuccessfulImageUpgradeToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function SuccessfulImageUpgradeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'version': value['version'],
|
|
56
|
+
'digest': value['digest'],
|
|
57
|
+
'time': value['time'] == null ? value['time'] : (0, runtime_js_1.serializeDateTime)(value['time']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -41,6 +41,14 @@ export interface VMFilterOptionsResponse {
|
|
|
41
41
|
* Distinct detected application names
|
|
42
42
|
*/
|
|
43
43
|
applications: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Distinct guest OS values from VM configuration (os_config)
|
|
46
|
+
*/
|
|
47
|
+
osConfigs: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Distinct guest OS values reported by VMware Tools (os_tools)
|
|
50
|
+
*/
|
|
51
|
+
osTools: Array<string>;
|
|
44
52
|
}
|
|
45
53
|
/**
|
|
46
54
|
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
@@ -34,6 +34,10 @@ function instanceOfVMFilterOptionsResponse(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('applications' in value) || value['applications'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('osConfigs' in value) || value['osConfigs'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('osTools' in value) || value['osTools'] === undefined)
|
|
40
|
+
return false;
|
|
37
41
|
return true;
|
|
38
42
|
}
|
|
39
43
|
function VMFilterOptionsResponseFromJSON(json) {
|
|
@@ -50,6 +54,8 @@ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'concernLabels': json['concernLabels'],
|
|
51
55
|
'concernCategories': json['concernCategories'],
|
|
52
56
|
'applications': json['applications'],
|
|
57
|
+
'osConfigs': json['osConfigs'],
|
|
58
|
+
'osTools': json['osTools'],
|
|
53
59
|
};
|
|
54
60
|
}
|
|
55
61
|
function VMFilterOptionsResponseToJSON(json) {
|
|
@@ -66,5 +72,7 @@ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
66
72
|
'concernLabels': value['concernLabels'],
|
|
67
73
|
'concernCategories': value['concernCategories'],
|
|
68
74
|
'applications': value['applications'],
|
|
75
|
+
'osConfigs': value['osConfigs'],
|
|
76
|
+
'osTools': value['osTools'],
|
|
69
77
|
};
|
|
70
78
|
}
|
|
@@ -80,6 +80,14 @@ export interface VirtualMachine {
|
|
|
80
80
|
* User-defined labels for this VM
|
|
81
81
|
*/
|
|
82
82
|
labels?: Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Guest OS according to the VM configuration file (inventory os_config)
|
|
85
|
+
*/
|
|
86
|
+
guestName?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Guest OS reported by VMware Tools (inventory os_tools)
|
|
89
|
+
*/
|
|
90
|
+
guestNameFromVmwareTools?: string;
|
|
83
91
|
/**
|
|
84
92
|
* CPU utilization at p95 (%); absent when no utilization data
|
|
85
93
|
*/
|
|
@@ -67,6 +67,8 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
68
68
|
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
69
69
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
70
|
+
'guestName': json['guestName'] == null ? undefined : json['guestName'],
|
|
71
|
+
'guestNameFromVmwareTools': json['guestNameFromVmwareTools'] == null ? undefined : json['guestNameFromVmwareTools'],
|
|
70
72
|
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
71
73
|
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
72
74
|
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
@@ -99,6 +101,8 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
99
101
|
'migrationExcluded': value['migrationExcluded'],
|
|
100
102
|
'groups': value['groups'],
|
|
101
103
|
'labels': value['labels'],
|
|
104
|
+
'guestName': value['guestName'],
|
|
105
|
+
'guestNameFromVmwareTools': value['guestNameFromVmwareTools'],
|
|
102
106
|
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
103
107
|
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
104
108
|
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
@@ -41,6 +41,14 @@ export interface VirtualMachineDisk {
|
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
rdmBacking?: RDMBacking;
|
|
44
|
+
/**
|
|
45
|
+
* Source-reported thin provisioning; omitted when unavailable
|
|
46
|
+
*/
|
|
47
|
+
thinProvisioned?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Source-reported eager scrubbing; omitted when unavailable
|
|
50
|
+
*/
|
|
51
|
+
eagerlyScrubbed?: boolean;
|
|
44
52
|
/**
|
|
45
53
|
* Bus type (scsi, ide, sata, nvme)
|
|
46
54
|
*/
|
|
@@ -40,6 +40,8 @@ function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
41
41
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
42
42
|
'rdmBacking': json['rdmBacking'] == null ? undefined : (0, RDMBacking_js_1.RDMBackingFromJSON)(json['rdmBacking']),
|
|
43
|
+
'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
|
|
44
|
+
'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
|
|
43
45
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
44
46
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
45
47
|
'datastore': json['datastore'] == null ? undefined : (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreFromJSON)(json['datastore']),
|
|
@@ -59,6 +61,8 @@ function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
61
|
'shared': value['shared'],
|
|
60
62
|
'rdm': value['rdm'],
|
|
61
63
|
'rdmBacking': (0, RDMBacking_js_1.RDMBackingToJSON)(value['rdmBacking']),
|
|
64
|
+
'thinProvisioned': value['thinProvisioned'],
|
|
65
|
+
'eagerlyScrubbed': value['eagerlyScrubbed'],
|
|
62
66
|
'bus': value['bus'],
|
|
63
67
|
'mode': value['mode'],
|
|
64
68
|
'datastore': (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreToJSON)(value['datastore']),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -43,6 +43,10 @@ export * from './Host.js';
|
|
|
43
43
|
export * from './HostPhysicalNIC.js';
|
|
44
44
|
export * from './HostStorageAdapter.js';
|
|
45
45
|
export * from './HostStorageLun.js';
|
|
46
|
+
export * from './ImageUpgradeImage.js';
|
|
47
|
+
export * from './ImageUpgradeResult.js';
|
|
48
|
+
export * from './ImageUpgradeStatus.js';
|
|
49
|
+
export * from './ImageUploadStatus.js';
|
|
46
50
|
export * from './Infra.js';
|
|
47
51
|
export * from './InspectionStatus.js';
|
|
48
52
|
export * from './InspectorStatus.js';
|
|
@@ -58,12 +62,14 @@ export * from './PairCapabilityRequest.js';
|
|
|
58
62
|
export * from './Process.js';
|
|
59
63
|
export * from './Product.js';
|
|
60
64
|
export * from './RDMBacking.js';
|
|
65
|
+
export * from './RDMHostLun.js';
|
|
61
66
|
export * from './RightsizingClusterResponse.js';
|
|
62
67
|
export * from './RightsizingClusterUtilization.js';
|
|
63
68
|
export * from './StartForecasterRequest.js';
|
|
64
69
|
export * from './StartInspectionRequest.js';
|
|
65
70
|
export * from './StopForecasterPair202Response.js';
|
|
66
71
|
export * from './StorageIoConfiguration.js';
|
|
72
|
+
export * from './SuccessfulImageUpgrade.js';
|
|
67
73
|
export * from './UpdateGroupRequest.js';
|
|
68
74
|
export * from './UpdateInventory.js';
|
|
69
75
|
export * from './UpdateLabelVMsRequest.js';
|
package/dist/models/index.js
CHANGED
|
@@ -61,6 +61,10 @@ __exportStar(require("./Host.js"), exports);
|
|
|
61
61
|
__exportStar(require("./HostPhysicalNIC.js"), exports);
|
|
62
62
|
__exportStar(require("./HostStorageAdapter.js"), exports);
|
|
63
63
|
__exportStar(require("./HostStorageLun.js"), exports);
|
|
64
|
+
__exportStar(require("./ImageUpgradeImage.js"), exports);
|
|
65
|
+
__exportStar(require("./ImageUpgradeResult.js"), exports);
|
|
66
|
+
__exportStar(require("./ImageUpgradeStatus.js"), exports);
|
|
67
|
+
__exportStar(require("./ImageUploadStatus.js"), exports);
|
|
64
68
|
__exportStar(require("./Infra.js"), exports);
|
|
65
69
|
__exportStar(require("./InspectionStatus.js"), exports);
|
|
66
70
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
@@ -76,12 +80,14 @@ __exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
|
76
80
|
__exportStar(require("./Process.js"), exports);
|
|
77
81
|
__exportStar(require("./Product.js"), exports);
|
|
78
82
|
__exportStar(require("./RDMBacking.js"), exports);
|
|
83
|
+
__exportStar(require("./RDMHostLun.js"), exports);
|
|
79
84
|
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
80
85
|
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
81
86
|
__exportStar(require("./StartForecasterRequest.js"), exports);
|
|
82
87
|
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
83
88
|
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
84
89
|
__exportStar(require("./StorageIoConfiguration.js"), exports);
|
|
90
|
+
__exportStar(require("./SuccessfulImageUpgrade.js"), exports);
|
|
85
91
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
86
92
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
87
93
|
__exportStar(require("./UpdateLabelVMsRequest.js"), exports);
|
package/docs/AgentStatus.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`mode` | string
|
|
10
10
|
`consoleConnection` | [AgentStatusConsoleConnection](AgentStatusConsoleConnection.md)
|
|
11
11
|
`rvtoolsModeEnabled` | boolean
|
|
12
|
+
`imageUpgradeStatus` | [ImageUpgradeStatus](ImageUpgradeStatus.md)
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const example = {
|
|
|
20
21
|
"mode": null,
|
|
21
22
|
"consoleConnection": null,
|
|
22
23
|
"rvtoolsModeEnabled": null,
|
|
24
|
+
"imageUpgradeStatus": null,
|
|
23
25
|
} satisfies AgentStatus
|
|
24
26
|
|
|
25
27
|
console.log(example)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# ImageUpgradeApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**postImageUpgrade**](ImageUpgradeApi.md#postimageupgrade) | **POST** /image-upgrades | Upload an OCI image for a disconnected appliance image upgrade |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## postImageUpgrade
|
|
12
|
+
|
|
13
|
+
> postImageUpgrade(file)
|
|
14
|
+
|
|
15
|
+
Upload an OCI image for a disconnected appliance image upgrade
|
|
16
|
+
|
|
17
|
+
Validate the complete upload and atomically place the archive in the watched directory. The host owns upgrade execution. Read imageUpgradeStatus in GET /agent for upload activity and the last host result.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
ImageUpgradeApi,
|
|
25
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
26
|
+
import type { PostImageUpgradeRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
30
|
+
const api = new ImageUpgradeApi();
|
|
31
|
+
|
|
32
|
+
const body = {
|
|
33
|
+
// Blob | OCI archive; maximum file payload is 3 GiB
|
|
34
|
+
file: BINARY_DATA_HERE,
|
|
35
|
+
} satisfies PostImageUpgradeRequest;
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
const data = await api.postImageUpgrade(body);
|
|
39
|
+
console.log(data);
|
|
40
|
+
} catch (error) {
|
|
41
|
+
console.error(error);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Run the test
|
|
46
|
+
example().catch(console.error);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Parameters
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
| Name | Type | Description | Notes |
|
|
53
|
+
|------------- | ------------- | ------------- | -------------|
|
|
54
|
+
| **file** | `Blob` | OCI archive; maximum file payload is 3 GiB | [Defaults to `undefined`] |
|
|
55
|
+
|
|
56
|
+
### Return type
|
|
57
|
+
|
|
58
|
+
`void` (Empty response body)
|
|
59
|
+
|
|
60
|
+
### Authorization
|
|
61
|
+
|
|
62
|
+
No authorization required
|
|
63
|
+
|
|
64
|
+
### HTTP request headers
|
|
65
|
+
|
|
66
|
+
- **Content-Type**: `multipart/form-data`
|
|
67
|
+
- **Accept**: Not defined
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### HTTP response details
|
|
71
|
+
| Status code | Description | Response headers |
|
|
72
|
+
|-------------|-------------|------------------|
|
|
73
|
+
| **202** | Validated image handed to the host; installation is asynchronous and may restart the agent | - |
|
|
74
|
+
| **400** | Invalid multipart input, OCI image, platform, or upgrade version | - |
|
|
75
|
+
| **409** | Connected mode, another image upload in progress, or a published archive still pending host resolution | - |
|
|
76
|
+
| **413** | File exceeds 3 GiB or multipart framing exceeds 1 MiB | - |
|
|
77
|
+
| **507** | Insufficient storage; preparation requires three times the archive size | - |
|
|
78
|
+
| **500** | Internal error | - |
|
|
79
|
+
| **503** | Image upgrade service unavailable, or upload interrupted by cancellation or timeout | - |
|
|
80
|
+
|
|
81
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
82
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ImageUpgradeImage
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`version` | string
|
|
10
|
+
`digest` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ImageUpgradeImage } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"version": null,
|
|
20
|
+
"digest": null,
|
|
21
|
+
} satisfies ImageUpgradeImage
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ImageUpgradeImage
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ImageUpgradeResult
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`file` | string
|
|
10
|
+
`outcome` | string
|
|
11
|
+
`time` | Date
|
|
12
|
+
`error` | string
|
|
13
|
+
`errorStage` | string
|
|
14
|
+
`runningImage` | [ImageUpgradeImage](ImageUpgradeImage.md)
|
|
15
|
+
`lastSuccessfulUpdate` | [SuccessfulImageUpgrade](SuccessfulImageUpgrade.md)
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ImageUpgradeResult } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"file": null,
|
|
25
|
+
"outcome": null,
|
|
26
|
+
"time": null,
|
|
27
|
+
"error": null,
|
|
28
|
+
"errorStage": null,
|
|
29
|
+
"runningImage": null,
|
|
30
|
+
"lastSuccessfulUpdate": null,
|
|
31
|
+
} satisfies ImageUpgradeResult
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as ImageUpgradeResult
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ImageUpgradeStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`currentVersion` | string
|
|
10
|
+
`upload` | [ImageUploadStatus](ImageUploadStatus.md)
|
|
11
|
+
`upgrade` | [ImageUpgradeResult](ImageUpgradeResult.md)
|
|
12
|
+
`upgradeError` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ImageUpgradeStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"currentVersion": null,
|
|
22
|
+
"upload": null,
|
|
23
|
+
"upgrade": null,
|
|
24
|
+
"upgradeError": null,
|
|
25
|
+
} satisfies ImageUpgradeStatus
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ImageUpgradeStatus
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ImageUploadStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`state` | string
|
|
10
|
+
`lastError` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ImageUploadStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"state": null,
|
|
20
|
+
"lastError": null,
|
|
21
|
+
} satisfies ImageUploadStatus
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ImageUploadStatus
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
package/docs/RDMBacking.md
CHANGED
|
@@ -8,6 +8,10 @@ Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`lunUuid` | string
|
|
11
|
+
`deviceName` | string
|
|
12
|
+
`compatibilityMode` | string
|
|
13
|
+
`backingUuid` | string
|
|
14
|
+
`hostLun` | [RDMHostLun](RDMHostLun.md)
|
|
11
15
|
|
|
12
16
|
## Example
|
|
13
17
|
|
|
@@ -17,6 +21,10 @@ import type { RDMBacking } from '@openshift-migration-advisor/agent-sdk'
|
|
|
17
21
|
// TODO: Update the object below with actual values
|
|
18
22
|
const example = {
|
|
19
23
|
"lunUuid": null,
|
|
24
|
+
"deviceName": null,
|
|
25
|
+
"compatibilityMode": null,
|
|
26
|
+
"backingUuid": null,
|
|
27
|
+
"hostLun": null,
|
|
20
28
|
} satisfies RDMBacking
|
|
21
29
|
|
|
22
30
|
console.log(example)
|