@openshift-migration-advisor/agent-sdk 0.33.0 → 0.33.1-693656015cf9
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 +26 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +21 -3
- package/dist/apis/AppliancesApi.d.ts +194 -0
- package/dist/apis/AppliancesApi.js +201 -0
- package/dist/apis/GroupsApi.d.ts +6 -6
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +194 -0
- package/dist/esm/apis/AppliancesApi.js +201 -0
- package/dist/esm/apis/GroupsApi.d.ts +6 -6
- package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/esm/apis/ImageUpgradeApi.js +86 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
- 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/ApplianceRule.d.ts +90 -0
- package/dist/esm/models/ApplianceRule.js +98 -0
- package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/esm/models/ApplianceRuleCondition.js +48 -0
- package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/esm/models/ApplianceRuleFunction.js +46 -0
- package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
- package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/esm/models/ApplianceRuleRequest.js +85 -0
- package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/esm/models/DiskGeometryCondition.js +58 -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 +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -0
- package/dist/models/ApplianceRule.d.ts +90 -0
- package/dist/models/ApplianceRule.js +106 -0
- package/dist/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/models/ApplianceRuleCondition.js +55 -0
- package/dist/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/models/ApplianceRuleFunction.js +53 -0
- package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/models/ApplianceRuleListResponse.js +51 -0
- package/dist/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/models/ApplianceRuleRequest.js +93 -0
- package/dist/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/models/DiskGeometryCondition.js +66 -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 +12 -0
- package/dist/models/index.js +12 -0
- package/docs/AgentStatus.md +2 -0
- package/docs/ApplianceRule.md +50 -0
- package/docs/ApplianceRuleCondition.md +39 -0
- package/docs/ApplianceRuleFunction.md +37 -0
- package/docs/ApplianceRuleListResponse.md +34 -0
- package/docs/ApplianceRuleRequest.md +46 -0
- package/docs/AppliancesApi.md +338 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +4 -4
- 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/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +393 -0
- package/src/apis/GroupsApi.ts +6 -6
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- package/src/apis/index.ts +1 -0
- package/src/models/AgentStatus.ts +14 -0
- package/src/models/ApplianceRule.ts +159 -0
- package/src/models/ApplianceRuleCondition.ts +87 -0
- package/src/models/ApplianceRuleFunction.ts +80 -0
- package/src/models/ApplianceRuleListResponse.ts +72 -0
- package/src/models/ApplianceRuleRequest.ts +137 -0
- package/src/models/DiskGeometryCondition.ts +90 -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 +12 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ImageUpgradeImage
|
|
20
|
+
*/
|
|
21
|
+
export interface ImageUpgradeImage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
version: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
digest: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage {
|
|
36
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
37
|
+
if (!('digest' in value) || value['digest'] === undefined) return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage {
|
|
42
|
+
return ImageUpgradeImageFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
|
|
51
|
+
'version': json['version'],
|
|
52
|
+
'digest': json['digest'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage {
|
|
57
|
+
return ImageUpgradeImageToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator: boolean = false): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'version': value['version'],
|
|
68
|
+
'digest': value['digest'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
import type { ImageUpgradeImage } from './ImageUpgradeImage.js';
|
|
17
|
+
import {
|
|
18
|
+
ImageUpgradeImageFromJSON,
|
|
19
|
+
ImageUpgradeImageFromJSONTyped,
|
|
20
|
+
ImageUpgradeImageToJSON,
|
|
21
|
+
ImageUpgradeImageToJSONTyped,
|
|
22
|
+
} from './ImageUpgradeImage.js';
|
|
23
|
+
import type { SuccessfulImageUpgrade } from './SuccessfulImageUpgrade.js';
|
|
24
|
+
import {
|
|
25
|
+
SuccessfulImageUpgradeFromJSON,
|
|
26
|
+
SuccessfulImageUpgradeFromJSONTyped,
|
|
27
|
+
SuccessfulImageUpgradeToJSON,
|
|
28
|
+
SuccessfulImageUpgradeToJSONTyped,
|
|
29
|
+
} from './SuccessfulImageUpgrade.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ImageUpgradeResult
|
|
35
|
+
*/
|
|
36
|
+
export interface ImageUpgradeResult {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
file: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
outcome: ImageUpgradeResultOutcomeEnum;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
time: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
error?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
errorStage?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
runningImage?: ImageUpgradeImage;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
lastSuccessfulUpdate?: SuccessfulImageUpgrade;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export const ImageUpgradeResultOutcomeEnum = {
|
|
72
|
+
Applied: 'applied',
|
|
73
|
+
RolledBack: 'rolled-back',
|
|
74
|
+
Failed: 'failed',
|
|
75
|
+
Unchanged: 'unchanged',
|
|
76
|
+
} as const;
|
|
77
|
+
export type ImageUpgradeResultOutcomeEnum = typeof ImageUpgradeResultOutcomeEnum[keyof typeof ImageUpgradeResultOutcomeEnum];
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the ImageUpgradeResult interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfImageUpgradeResult(value: object): value is ImageUpgradeResult {
|
|
84
|
+
if (!('file' in value) || value['file'] === undefined) return false;
|
|
85
|
+
if (!('outcome' in value) || value['outcome'] === undefined) return false;
|
|
86
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ImageUpgradeResultFromJSON(json: any): ImageUpgradeResult {
|
|
91
|
+
return ImageUpgradeResultFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ImageUpgradeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeResult {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'file': json['file'],
|
|
101
|
+
'outcome': json['outcome'],
|
|
102
|
+
'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
|
|
103
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
104
|
+
'errorStage': json['errorStage'] == null ? undefined : json['errorStage'],
|
|
105
|
+
'runningImage': json['runningImage'] == null ? undefined : ImageUpgradeImageFromJSON(json['runningImage']),
|
|
106
|
+
'lastSuccessfulUpdate': json['lastSuccessfulUpdate'] == null ? undefined : SuccessfulImageUpgradeFromJSON(json['lastSuccessfulUpdate']),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ImageUpgradeResultToJSON(json: any): ImageUpgradeResult {
|
|
111
|
+
return ImageUpgradeResultToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ImageUpgradeResultToJSONTyped(value?: ImageUpgradeResult | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'file': value['file'],
|
|
122
|
+
'outcome': value['outcome'],
|
|
123
|
+
'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
|
|
124
|
+
'error': value['error'],
|
|
125
|
+
'errorStage': value['errorStage'],
|
|
126
|
+
'runningImage': ImageUpgradeImageToJSON(value['runningImage']),
|
|
127
|
+
'lastSuccessfulUpdate': SuccessfulImageUpgradeToJSON(value['lastSuccessfulUpdate']),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { ImageUpgradeResult } from './ImageUpgradeResult.js';
|
|
17
|
+
import {
|
|
18
|
+
ImageUpgradeResultFromJSON,
|
|
19
|
+
ImageUpgradeResultFromJSONTyped,
|
|
20
|
+
ImageUpgradeResultToJSON,
|
|
21
|
+
ImageUpgradeResultToJSONTyped,
|
|
22
|
+
} from './ImageUpgradeResult.js';
|
|
23
|
+
import type { ImageUploadStatus } from './ImageUploadStatus.js';
|
|
24
|
+
import {
|
|
25
|
+
ImageUploadStatusFromJSON,
|
|
26
|
+
ImageUploadStatusFromJSONTyped,
|
|
27
|
+
ImageUploadStatusToJSON,
|
|
28
|
+
ImageUploadStatusToJSONTyped,
|
|
29
|
+
} from './ImageUploadStatus.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface ImageUpgradeStatus
|
|
35
|
+
*/
|
|
36
|
+
export interface ImageUpgradeStatus {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
currentVersion: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
upload: ImageUploadStatus;
|
|
45
|
+
/**
|
|
46
|
+
* Last host upgrade result, or null if it is missing or cannot be read.
|
|
47
|
+
*/
|
|
48
|
+
upgrade: ImageUpgradeResult | null;
|
|
49
|
+
/**
|
|
50
|
+
* Error reading the host upgrade result, independent of upload errors. Null when there is no read error.
|
|
51
|
+
*/
|
|
52
|
+
upgradeError: string | null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ImageUpgradeStatus interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfImageUpgradeStatus(value: object): value is ImageUpgradeStatus {
|
|
59
|
+
if (!('currentVersion' in value) || value['currentVersion'] === undefined) return false;
|
|
60
|
+
if (!('upload' in value) || value['upload'] === undefined) return false;
|
|
61
|
+
if (!('upgrade' in value) || value['upgrade'] === undefined) return false;
|
|
62
|
+
if (!('upgradeError' in value) || value['upgradeError'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ImageUpgradeStatusFromJSON(json: any): ImageUpgradeStatus {
|
|
67
|
+
return ImageUpgradeStatusFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ImageUpgradeStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeStatus {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'currentVersion': json['currentVersion'],
|
|
77
|
+
'upload': ImageUploadStatusFromJSON(json['upload']),
|
|
78
|
+
'upgrade': ImageUpgradeResultFromJSON(json['upgrade']),
|
|
79
|
+
'upgradeError': json['upgradeError'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ImageUpgradeStatusToJSON(json: any): ImageUpgradeStatus {
|
|
84
|
+
return ImageUpgradeStatusToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ImageUpgradeStatusToJSONTyped(value?: ImageUpgradeStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'currentVersion': value['currentVersion'],
|
|
95
|
+
'upload': ImageUploadStatusToJSON(value['upload']),
|
|
96
|
+
'upgrade': ImageUpgradeResultToJSON(value['upgrade']),
|
|
97
|
+
'upgradeError': value['upgradeError'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ImageUploadStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface ImageUploadStatus {
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
state: ImageUploadStatusStateEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Last upload error, or an upload-state availability error when state is unknown. Host result read errors are reported in upgradeError.
|
|
28
|
+
*/
|
|
29
|
+
lastError: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export const ImageUploadStatusStateEnum = {
|
|
37
|
+
Idle: 'idle',
|
|
38
|
+
Uploading: 'uploading',
|
|
39
|
+
Validating: 'validating',
|
|
40
|
+
Unknown: 'unknown',
|
|
41
|
+
} as const;
|
|
42
|
+
export type ImageUploadStatusStateEnum = typeof ImageUploadStatusStateEnum[keyof typeof ImageUploadStatusStateEnum];
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ImageUploadStatus interface.
|
|
47
|
+
*/
|
|
48
|
+
export function instanceOfImageUploadStatus(value: object): value is ImageUploadStatus {
|
|
49
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
50
|
+
if (!('lastError' in value) || value['lastError'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ImageUploadStatusFromJSON(json: any): ImageUploadStatus {
|
|
55
|
+
return ImageUploadStatusFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ImageUploadStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUploadStatus {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'state': json['state'],
|
|
65
|
+
'lastError': json['lastError'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ImageUploadStatusToJSON(json: any): ImageUploadStatus {
|
|
70
|
+
return ImageUploadStatusToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ImageUploadStatusToJSONTyped(value?: ImageUploadStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'state': value['state'],
|
|
81
|
+
'lastError': value['lastError'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/RDMBacking.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RDMHostLun } from './RDMHostLun.js';
|
|
17
|
+
import {
|
|
18
|
+
RDMHostLunFromJSON,
|
|
19
|
+
RDMHostLunFromJSONTyped,
|
|
20
|
+
RDMHostLunToJSON,
|
|
21
|
+
RDMHostLunToJSONTyped,
|
|
22
|
+
} from './RDMHostLun.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
18
26
|
* @export
|
|
@@ -23,8 +31,36 @@ export interface RDMBacking {
|
|
|
23
31
|
* LUN UUID reported directly by the RDM disk backing, when available
|
|
24
32
|
*/
|
|
25
33
|
lunUuid?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Device name reported directly by the RDM disk backing
|
|
36
|
+
*/
|
|
37
|
+
deviceName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Source-normalized RDM compatibility mode
|
|
40
|
+
*/
|
|
41
|
+
compatibilityMode?: RDMBackingCompatibilityModeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* UUID explicitly identifying the RDM backing, when available
|
|
44
|
+
*/
|
|
45
|
+
backingUuid?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
hostLun?: RDMHostLun;
|
|
26
50
|
}
|
|
27
51
|
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export const RDMBackingCompatibilityModeEnum = {
|
|
57
|
+
Physical: 'physical',
|
|
58
|
+
Virtual: 'virtual',
|
|
59
|
+
Unknown: 'unknown',
|
|
60
|
+
} as const;
|
|
61
|
+
export type RDMBackingCompatibilityModeEnum = typeof RDMBackingCompatibilityModeEnum[keyof typeof RDMBackingCompatibilityModeEnum];
|
|
62
|
+
|
|
63
|
+
|
|
28
64
|
/**
|
|
29
65
|
* Check if a given object implements the RDMBacking interface.
|
|
30
66
|
*/
|
|
@@ -43,6 +79,10 @@ export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
43
79
|
return {
|
|
44
80
|
|
|
45
81
|
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
82
|
+
'deviceName': json['deviceName'] == null ? undefined : json['deviceName'],
|
|
83
|
+
'compatibilityMode': json['compatibilityMode'] == null ? undefined : json['compatibilityMode'],
|
|
84
|
+
'backingUuid': json['backingUuid'] == null ? undefined : json['backingUuid'],
|
|
85
|
+
'hostLun': json['hostLun'] == null ? undefined : RDMHostLunFromJSON(json['hostLun']),
|
|
46
86
|
};
|
|
47
87
|
}
|
|
48
88
|
|
|
@@ -58,6 +98,10 @@ export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscrimin
|
|
|
58
98
|
return {
|
|
59
99
|
|
|
60
100
|
'lunUuid': value['lunUuid'],
|
|
101
|
+
'deviceName': value['deviceName'],
|
|
102
|
+
'compatibilityMode': value['compatibilityMode'],
|
|
103
|
+
'backingUuid': value['backingUuid'],
|
|
104
|
+
'hostLun': RDMHostLunToJSON(value['hostLun']),
|
|
61
105
|
};
|
|
62
106
|
}
|
|
63
107
|
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Host LUN matched to the RDM disk backing through a verified identifier relationship and the VM's running host
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RDMHostLun
|
|
20
|
+
*/
|
|
21
|
+
export interface RDMHostLun {
|
|
22
|
+
/**
|
|
23
|
+
* Object ID of the uniquely resolved running host that owns the matched LUN
|
|
24
|
+
*/
|
|
25
|
+
hostId: string;
|
|
26
|
+
/**
|
|
27
|
+
* SCSI disk key of the matched host LUN, when available
|
|
28
|
+
*/
|
|
29
|
+
key?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Canonical name (e.g. NAA) of the matched host LUN, when available
|
|
32
|
+
*/
|
|
33
|
+
canonicalName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* LUN UUID of the matched host LUN, when available
|
|
36
|
+
*/
|
|
37
|
+
lunUuid?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the RDMHostLun interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfRDMHostLun(value: object): value is RDMHostLun {
|
|
44
|
+
if (!('hostId' in value) || value['hostId'] === undefined) return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function RDMHostLunFromJSON(json: any): RDMHostLun {
|
|
49
|
+
return RDMHostLunFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RDMHostLunFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMHostLun {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
|
|
58
|
+
'hostId': json['hostId'],
|
|
59
|
+
'key': json['key'] == null ? undefined : json['key'],
|
|
60
|
+
'canonicalName': json['canonicalName'] == null ? undefined : json['canonicalName'],
|
|
61
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function RDMHostLunToJSON(json: any): RDMHostLun {
|
|
66
|
+
return RDMHostLunToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RDMHostLunToJSONTyped(value?: RDMHostLun | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'hostId': value['hostId'],
|
|
77
|
+
'key': value['key'],
|
|
78
|
+
'canonicalName': value['canonicalName'],
|
|
79
|
+
'lunUuid': value['lunUuid'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SuccessfulImageUpgrade
|
|
20
|
+
*/
|
|
21
|
+
export interface SuccessfulImageUpgrade {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
version: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
digest: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
time: Date;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SuccessfulImageUpgrade interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSuccessfulImageUpgrade(value: object): value is SuccessfulImageUpgrade {
|
|
40
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
41
|
+
if (!('digest' in value) || value['digest'] === undefined) return false;
|
|
42
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SuccessfulImageUpgradeFromJSON(json: any): SuccessfulImageUpgrade {
|
|
47
|
+
return SuccessfulImageUpgradeFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SuccessfulImageUpgradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SuccessfulImageUpgrade {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'version': json['version'],
|
|
57
|
+
'digest': json['digest'],
|
|
58
|
+
'time': (json['time'] == null ? json['time'] : parseDateTime(json['time'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function SuccessfulImageUpgradeToJSON(json: any): SuccessfulImageUpgrade {
|
|
63
|
+
return SuccessfulImageUpgradeToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SuccessfulImageUpgradeToJSONTyped(value?: SuccessfulImageUpgrade | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'version': value['version'],
|
|
74
|
+
'digest': value['digest'],
|
|
75
|
+
'time': value['time'] == null ? value['time'] : serializeDateTime(value['time']),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -43,6 +43,14 @@ export interface VMFilterOptionsResponse {
|
|
|
43
43
|
* Distinct detected application names
|
|
44
44
|
*/
|
|
45
45
|
applications: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Distinct guest OS values from VM configuration (os_config)
|
|
48
|
+
*/
|
|
49
|
+
osConfigs: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Distinct guest OS values reported by VMware Tools (os_tools)
|
|
52
|
+
*/
|
|
53
|
+
osTools: Array<string>;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
/**
|
|
@@ -55,6 +63,8 @@ export function instanceOfVMFilterOptionsResponse(value: object): value is VMFil
|
|
|
55
63
|
if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
|
|
56
64
|
if (!('concernCategories' in value) || value['concernCategories'] === undefined) return false;
|
|
57
65
|
if (!('applications' in value) || value['applications'] === undefined) return false;
|
|
66
|
+
if (!('osConfigs' in value) || value['osConfigs'] === undefined) return false;
|
|
67
|
+
if (!('osTools' in value) || value['osTools'] === undefined) return false;
|
|
58
68
|
return true;
|
|
59
69
|
}
|
|
60
70
|
|
|
@@ -74,6 +84,8 @@ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
74
84
|
'concernLabels': json['concernLabels'],
|
|
75
85
|
'concernCategories': json['concernCategories'],
|
|
76
86
|
'applications': json['applications'],
|
|
87
|
+
'osConfigs': json['osConfigs'],
|
|
88
|
+
'osTools': json['osTools'],
|
|
77
89
|
};
|
|
78
90
|
}
|
|
79
91
|
|
|
@@ -94,6 +106,8 @@ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsRespon
|
|
|
94
106
|
'concernLabels': value['concernLabels'],
|
|
95
107
|
'concernCategories': value['concernCategories'],
|
|
96
108
|
'applications': value['applications'],
|
|
109
|
+
'osConfigs': value['osConfigs'],
|
|
110
|
+
'osTools': value['osTools'],
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -91,6 +91,14 @@ export interface VirtualMachine {
|
|
|
91
91
|
* User-defined labels for this VM
|
|
92
92
|
*/
|
|
93
93
|
labels?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Guest OS according to the VM configuration file (inventory os_config)
|
|
96
|
+
*/
|
|
97
|
+
guestName?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Guest OS reported by VMware Tools (inventory os_tools)
|
|
100
|
+
*/
|
|
101
|
+
guestNameFromVmwareTools?: string;
|
|
94
102
|
/**
|
|
95
103
|
* CPU utilization at p95 (%); absent when no utilization data
|
|
96
104
|
*/
|
|
@@ -159,6 +167,8 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
159
167
|
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
160
168
|
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
161
169
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
170
|
+
'guestName': json['guestName'] == null ? undefined : json['guestName'],
|
|
171
|
+
'guestNameFromVmwareTools': json['guestNameFromVmwareTools'] == null ? undefined : json['guestNameFromVmwareTools'],
|
|
162
172
|
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
163
173
|
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
164
174
|
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
@@ -195,6 +205,8 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
195
205
|
'migrationExcluded': value['migrationExcluded'],
|
|
196
206
|
'groups': value['groups'],
|
|
197
207
|
'labels': value['labels'],
|
|
208
|
+
'guestName': value['guestName'],
|
|
209
|
+
'guestNameFromVmwareTools': value['guestNameFromVmwareTools'],
|
|
198
210
|
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
199
211
|
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
200
212
|
'utilization_cpu_max': value['utilization_cpu_max'],
|