@openshift-migration-advisor/agent-sdk 0.33.0 → 0.33.1-d63d5073ca08
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/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/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/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/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/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/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,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'],
|
|
@@ -58,6 +58,14 @@ export interface VirtualMachineDisk {
|
|
|
58
58
|
*
|
|
59
59
|
*/
|
|
60
60
|
rdmBacking?: RDMBacking;
|
|
61
|
+
/**
|
|
62
|
+
* Source-reported thin provisioning; omitted when unavailable
|
|
63
|
+
*/
|
|
64
|
+
thinProvisioned?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Source-reported eager scrubbing; omitted when unavailable
|
|
67
|
+
*/
|
|
68
|
+
eagerlyScrubbed?: boolean;
|
|
61
69
|
/**
|
|
62
70
|
* Bus type (scsi, ide, sata, nvme)
|
|
63
71
|
*/
|
|
@@ -95,6 +103,8 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
95
103
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
96
104
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
97
105
|
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
106
|
+
'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
|
|
107
|
+
'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
|
|
98
108
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
99
109
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
100
110
|
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
@@ -118,6 +128,8 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
|
|
|
118
128
|
'shared': value['shared'],
|
|
119
129
|
'rdm': value['rdm'],
|
|
120
130
|
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
131
|
+
'thinProvisioned': value['thinProvisioned'],
|
|
132
|
+
'eagerlyScrubbed': value['eagerlyScrubbed'],
|
|
121
133
|
'bus': value['bus'],
|
|
122
134
|
'mode': value['mode'],
|
|
123
135
|
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
package/src/models/index.ts
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';
|