@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
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -45,6 +45,10 @@ export * from './Host.js';
|
|
|
45
45
|
export * from './HostPhysicalNIC.js';
|
|
46
46
|
export * from './HostStorageAdapter.js';
|
|
47
47
|
export * from './HostStorageLun.js';
|
|
48
|
+
export * from './ImageUpgradeImage.js';
|
|
49
|
+
export * from './ImageUpgradeResult.js';
|
|
50
|
+
export * from './ImageUpgradeStatus.js';
|
|
51
|
+
export * from './ImageUploadStatus.js';
|
|
48
52
|
export * from './Infra.js';
|
|
49
53
|
export * from './InspectionStatus.js';
|
|
50
54
|
export * from './InspectorStatus.js';
|
|
@@ -60,12 +64,14 @@ export * from './PairCapabilityRequest.js';
|
|
|
60
64
|
export * from './Process.js';
|
|
61
65
|
export * from './Product.js';
|
|
62
66
|
export * from './RDMBacking.js';
|
|
67
|
+
export * from './RDMHostLun.js';
|
|
63
68
|
export * from './RightsizingClusterResponse.js';
|
|
64
69
|
export * from './RightsizingClusterUtilization.js';
|
|
65
70
|
export * from './StartForecasterRequest.js';
|
|
66
71
|
export * from './StartInspectionRequest.js';
|
|
67
72
|
export * from './StopForecasterPair202Response.js';
|
|
68
73
|
export * from './StorageIoConfiguration.js';
|
|
74
|
+
export * from './SuccessfulImageUpgrade.js';
|
|
69
75
|
export * from './UpdateGroupRequest.js';
|
|
70
76
|
export * from './UpdateInventory.js';
|
|
71
77
|
export * from './UpdateLabelVMsRequest.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
|
|
@@ -19,6 +19,7 @@ exports.AgentStatusFromJSON = AgentStatusFromJSON;
|
|
|
19
19
|
exports.AgentStatusFromJSONTyped = AgentStatusFromJSONTyped;
|
|
20
20
|
exports.AgentStatusToJSON = AgentStatusToJSON;
|
|
21
21
|
exports.AgentStatusToJSONTyped = AgentStatusToJSONTyped;
|
|
22
|
+
const ImageUpgradeStatus_js_1 = require("./ImageUpgradeStatus.js");
|
|
22
23
|
const AgentStatusConsoleConnection_js_1 = require("./AgentStatusConsoleConnection.js");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -35,6 +36,8 @@ function instanceOfAgentStatus(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
|
|
37
38
|
return false;
|
|
39
|
+
if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined)
|
|
40
|
+
return false;
|
|
38
41
|
return true;
|
|
39
42
|
}
|
|
40
43
|
function AgentStatusFromJSON(json) {
|
|
@@ -48,6 +51,7 @@ function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
'mode': json['mode'],
|
|
49
52
|
'consoleConnection': (0, AgentStatusConsoleConnection_js_1.AgentStatusConsoleConnectionFromJSON)(json['consoleConnection']),
|
|
50
53
|
'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
|
|
54
|
+
'imageUpgradeStatus': (0, ImageUpgradeStatus_js_1.ImageUpgradeStatusFromJSON)(json['imageUpgradeStatus']),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
function AgentStatusToJSON(json) {
|
|
@@ -61,5 +65,6 @@ function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
65
|
'mode': value['mode'],
|
|
62
66
|
'consoleConnection': (0, AgentStatusConsoleConnection_js_1.AgentStatusConsoleConnectionToJSON)(value['consoleConnection']),
|
|
63
67
|
'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
|
|
68
|
+
'imageUpgradeStatus': (0, ImageUpgradeStatus_js_1.ImageUpgradeStatusToJSON)(value['imageUpgradeStatus']),
|
|
64
69
|
};
|
|
65
70
|
}
|
|
@@ -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,54 @@
|
|
|
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.instanceOfImageUpgradeImage = instanceOfImageUpgradeImage;
|
|
17
|
+
exports.ImageUpgradeImageFromJSON = ImageUpgradeImageFromJSON;
|
|
18
|
+
exports.ImageUpgradeImageFromJSONTyped = ImageUpgradeImageFromJSONTyped;
|
|
19
|
+
exports.ImageUpgradeImageToJSON = ImageUpgradeImageToJSON;
|
|
20
|
+
exports.ImageUpgradeImageToJSONTyped = ImageUpgradeImageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfImageUpgradeImage(value) {
|
|
25
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('digest' in value) || value['digest'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ImageUpgradeImageFromJSON(json) {
|
|
32
|
+
return ImageUpgradeImageFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ImageUpgradeImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'version': json['version'],
|
|
40
|
+
'digest': json['digest'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ImageUpgradeImageToJSON(json) {
|
|
44
|
+
return ImageUpgradeImageToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ImageUpgradeImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'version': value['version'],
|
|
52
|
+
'digest': value['digest'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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,79 @@
|
|
|
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.ImageUpgradeResultOutcomeEnum = void 0;
|
|
17
|
+
exports.instanceOfImageUpgradeResult = instanceOfImageUpgradeResult;
|
|
18
|
+
exports.ImageUpgradeResultFromJSON = ImageUpgradeResultFromJSON;
|
|
19
|
+
exports.ImageUpgradeResultFromJSONTyped = ImageUpgradeResultFromJSONTyped;
|
|
20
|
+
exports.ImageUpgradeResultToJSON = ImageUpgradeResultToJSON;
|
|
21
|
+
exports.ImageUpgradeResultToJSONTyped = ImageUpgradeResultToJSONTyped;
|
|
22
|
+
const runtime_js_1 = require("../runtime.js");
|
|
23
|
+
const ImageUpgradeImage_js_1 = require("./ImageUpgradeImage.js");
|
|
24
|
+
const SuccessfulImageUpgrade_js_1 = require("./SuccessfulImageUpgrade.js");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.ImageUpgradeResultOutcomeEnum = {
|
|
29
|
+
Applied: 'applied',
|
|
30
|
+
RolledBack: 'rolled-back',
|
|
31
|
+
Failed: 'failed',
|
|
32
|
+
Unchanged: 'unchanged',
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the ImageUpgradeResult interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfImageUpgradeResult(value) {
|
|
38
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('outcome' in value) || value['outcome'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('time' in value) || value['time'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function ImageUpgradeResultFromJSON(json) {
|
|
47
|
+
return ImageUpgradeResultFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ImageUpgradeResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'file': json['file'],
|
|
55
|
+
'outcome': json['outcome'],
|
|
56
|
+
'time': (json['time'] == null ? json['time'] : (0, runtime_js_1.parseDateTime)(json['time'])),
|
|
57
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
58
|
+
'errorStage': json['errorStage'] == null ? undefined : json['errorStage'],
|
|
59
|
+
'runningImage': json['runningImage'] == null ? undefined : (0, ImageUpgradeImage_js_1.ImageUpgradeImageFromJSON)(json['runningImage']),
|
|
60
|
+
'lastSuccessfulUpdate': json['lastSuccessfulUpdate'] == null ? undefined : (0, SuccessfulImageUpgrade_js_1.SuccessfulImageUpgradeFromJSON)(json['lastSuccessfulUpdate']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function ImageUpgradeResultToJSON(json) {
|
|
64
|
+
return ImageUpgradeResultToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function ImageUpgradeResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'file': value['file'],
|
|
72
|
+
'outcome': value['outcome'],
|
|
73
|
+
'time': value['time'] == null ? value['time'] : (0, runtime_js_1.serializeDateTime)(value['time']),
|
|
74
|
+
'error': value['error'],
|
|
75
|
+
'errorStage': value['errorStage'],
|
|
76
|
+
'runningImage': (0, ImageUpgradeImage_js_1.ImageUpgradeImageToJSON)(value['runningImage']),
|
|
77
|
+
'lastSuccessfulUpdate': (0, SuccessfulImageUpgrade_js_1.SuccessfulImageUpgradeToJSON)(value['lastSuccessfulUpdate']),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfImageUpgradeStatus = instanceOfImageUpgradeStatus;
|
|
17
|
+
exports.ImageUpgradeStatusFromJSON = ImageUpgradeStatusFromJSON;
|
|
18
|
+
exports.ImageUpgradeStatusFromJSONTyped = ImageUpgradeStatusFromJSONTyped;
|
|
19
|
+
exports.ImageUpgradeStatusToJSON = ImageUpgradeStatusToJSON;
|
|
20
|
+
exports.ImageUpgradeStatusToJSONTyped = ImageUpgradeStatusToJSONTyped;
|
|
21
|
+
const ImageUpgradeResult_js_1 = require("./ImageUpgradeResult.js");
|
|
22
|
+
const ImageUploadStatus_js_1 = require("./ImageUploadStatus.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ImageUpgradeStatus interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfImageUpgradeStatus(value) {
|
|
27
|
+
if (!('currentVersion' in value) || value['currentVersion'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('upload' in value) || value['upload'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('upgrade' in value) || value['upgrade'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('upgradeError' in value) || value['upgradeError'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ImageUpgradeStatusFromJSON(json) {
|
|
38
|
+
return ImageUpgradeStatusFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ImageUpgradeStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'currentVersion': json['currentVersion'],
|
|
46
|
+
'upload': (0, ImageUploadStatus_js_1.ImageUploadStatusFromJSON)(json['upload']),
|
|
47
|
+
'upgrade': (0, ImageUpgradeResult_js_1.ImageUpgradeResultFromJSON)(json['upgrade']),
|
|
48
|
+
'upgradeError': json['upgradeError'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ImageUpgradeStatusToJSON(json) {
|
|
52
|
+
return ImageUpgradeStatusToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ImageUpgradeStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'currentVersion': value['currentVersion'],
|
|
60
|
+
'upload': (0, ImageUploadStatus_js_1.ImageUploadStatusToJSON)(value['upload']),
|
|
61
|
+
'upgrade': (0, ImageUpgradeResult_js_1.ImageUpgradeResultToJSON)(value['upgrade']),
|
|
62
|
+
'upgradeError': value['upgradeError'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ImageUploadStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageUploadStatus {
|
|
18
|
+
/**
|
|
19
|
+
* Agent upload activity only; idle does not indicate whether the host is running an upgrade. Unknown means the upload state is unavailable. An unreadable host result does not change this state.
|
|
20
|
+
*/
|
|
21
|
+
state: ImageUploadStatusStateEnum;
|
|
22
|
+
/**
|
|
23
|
+
* Last upload error, or an upload-state availability error when state is unknown. Host result read errors are reported in upgradeError.
|
|
24
|
+
*/
|
|
25
|
+
lastError: string | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const ImageUploadStatusStateEnum: {
|
|
31
|
+
readonly Idle: "idle";
|
|
32
|
+
readonly Uploading: "uploading";
|
|
33
|
+
readonly Validating: "validating";
|
|
34
|
+
readonly Unknown: "unknown";
|
|
35
|
+
};
|
|
36
|
+
export type ImageUploadStatusStateEnum = typeof ImageUploadStatusStateEnum[keyof typeof ImageUploadStatusStateEnum];
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ImageUploadStatus interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfImageUploadStatus(value: object): value is ImageUploadStatus;
|
|
41
|
+
export declare function ImageUploadStatusFromJSON(json: any): ImageUploadStatus;
|
|
42
|
+
export declare function ImageUploadStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUploadStatus;
|
|
43
|
+
export declare function ImageUploadStatusToJSON(json: any): ImageUploadStatus;
|
|
44
|
+
export declare function ImageUploadStatusToJSONTyped(value?: ImageUploadStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.ImageUploadStatusStateEnum = void 0;
|
|
17
|
+
exports.instanceOfImageUploadStatus = instanceOfImageUploadStatus;
|
|
18
|
+
exports.ImageUploadStatusFromJSON = ImageUploadStatusFromJSON;
|
|
19
|
+
exports.ImageUploadStatusFromJSONTyped = ImageUploadStatusFromJSONTyped;
|
|
20
|
+
exports.ImageUploadStatusToJSON = ImageUploadStatusToJSON;
|
|
21
|
+
exports.ImageUploadStatusToJSONTyped = ImageUploadStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ImageUploadStatusStateEnum = {
|
|
26
|
+
Idle: 'idle',
|
|
27
|
+
Uploading: 'uploading',
|
|
28
|
+
Validating: 'validating',
|
|
29
|
+
Unknown: 'unknown',
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ImageUploadStatus interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfImageUploadStatus(value) {
|
|
35
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('lastError' in value) || value['lastError'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ImageUploadStatusFromJSON(json) {
|
|
42
|
+
return ImageUploadStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ImageUploadStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'state': json['state'],
|
|
50
|
+
'lastError': json['lastError'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ImageUploadStatusToJSON(json) {
|
|
54
|
+
return ImageUploadStatusToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ImageUploadStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'state': value['state'],
|
|
62
|
+
'lastError': value['lastError'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RDMHostLun } from './RDMHostLun.js';
|
|
12
13
|
/**
|
|
13
14
|
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
14
15
|
* @export
|
|
@@ -19,7 +20,32 @@ export interface RDMBacking {
|
|
|
19
20
|
* LUN UUID reported directly by the RDM disk backing, when available
|
|
20
21
|
*/
|
|
21
22
|
lunUuid?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Device name reported directly by the RDM disk backing
|
|
25
|
+
*/
|
|
26
|
+
deviceName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Source-normalized RDM compatibility mode
|
|
29
|
+
*/
|
|
30
|
+
compatibilityMode?: RDMBackingCompatibilityModeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* UUID explicitly identifying the RDM backing, when available
|
|
33
|
+
*/
|
|
34
|
+
backingUuid?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
hostLun?: RDMHostLun;
|
|
22
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export declare const RDMBackingCompatibilityModeEnum: {
|
|
44
|
+
readonly Physical: "physical";
|
|
45
|
+
readonly Virtual: "virtual";
|
|
46
|
+
readonly Unknown: "unknown";
|
|
47
|
+
};
|
|
48
|
+
export type RDMBackingCompatibilityModeEnum = typeof RDMBackingCompatibilityModeEnum[keyof typeof RDMBackingCompatibilityModeEnum];
|
|
23
49
|
/**
|
|
24
50
|
* Check if a given object implements the RDMBacking interface.
|
|
25
51
|
*/
|
|
@@ -13,11 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RDMBackingCompatibilityModeEnum = void 0;
|
|
16
17
|
exports.instanceOfRDMBacking = instanceOfRDMBacking;
|
|
17
18
|
exports.RDMBackingFromJSON = RDMBackingFromJSON;
|
|
18
19
|
exports.RDMBackingFromJSONTyped = RDMBackingFromJSONTyped;
|
|
19
20
|
exports.RDMBackingToJSON = RDMBackingToJSON;
|
|
20
21
|
exports.RDMBackingToJSONTyped = RDMBackingToJSONTyped;
|
|
22
|
+
const RDMHostLun_js_1 = require("./RDMHostLun.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.RDMBackingCompatibilityModeEnum = {
|
|
27
|
+
Physical: 'physical',
|
|
28
|
+
Virtual: 'virtual',
|
|
29
|
+
Unknown: 'unknown',
|
|
30
|
+
};
|
|
21
31
|
/**
|
|
22
32
|
* Check if a given object implements the RDMBacking interface.
|
|
23
33
|
*/
|
|
@@ -33,6 +43,10 @@ function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
43
|
}
|
|
34
44
|
return {
|
|
35
45
|
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
46
|
+
'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
|
|
47
|
+
'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
|
|
48
|
+
'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
|
|
49
|
+
'hostLun': json['hostLun'] == null ? undefined : (0, RDMHostLun_js_1.RDMHostLunFromJSON)(json['hostLun']),
|
|
36
50
|
};
|
|
37
51
|
}
|
|
38
52
|
function RDMBackingToJSON(json) {
|
|
@@ -44,5 +58,9 @@ function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
58
|
}
|
|
45
59
|
return {
|
|
46
60
|
'lunUuid': value['lunUuid'],
|
|
61
|
+
'deviceName': value['deviceName'],
|
|
62
|
+
'compatibilityMode': value['compatibilityMode'],
|
|
63
|
+
'backingUuid': value['backingUuid'],
|
|
64
|
+
'hostLun': (0, RDMHostLun_js_1.RDMHostLunToJSON)(value['hostLun']),
|
|
47
65
|
};
|
|
48
66
|
}
|