@openshift-migration-advisor/agent-sdk 0.29.0 → 0.30.0-25fcb31470f7
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 +4 -0
- package/README.md +4 -2
- package/dist/esm/models/Datastore.d.ts +14 -2
- package/dist/esm/models/Datastore.js +6 -0
- package/dist/esm/models/Inventory1.d.ts +5 -1
- package/dist/esm/models/Inventory1.js +2 -0
- package/dist/esm/models/RDMBacking.d.ts +30 -0
- package/dist/esm/models/RDMBacking.js +41 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +4 -0
- package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
- package/dist/esm/models/VirtualMachineDatastore.js +59 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +11 -1
- package/dist/esm/models/VirtualMachineDetail.js +5 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +10 -0
- package/dist/esm/models/VirtualMachineDisk.js +6 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +4 -0
- package/dist/esm/models/VirtualMachineNIC.js +2 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Datastore.d.ts +14 -2
- package/dist/models/Datastore.js +6 -0
- package/dist/models/Inventory1.d.ts +5 -1
- package/dist/models/Inventory1.js +2 -0
- package/dist/models/RDMBacking.d.ts +30 -0
- package/dist/models/RDMBacking.js +48 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +6 -0
- package/dist/models/VMFilterOptionsResponse.js +4 -0
- package/dist/models/VirtualMachineDatastore.d.ts +66 -0
- package/dist/models/VirtualMachineDatastore.js +66 -0
- package/dist/models/VirtualMachineDetail.d.ts +11 -1
- package/dist/models/VirtualMachineDetail.js +5 -0
- package/dist/models/VirtualMachineDisk.d.ts +10 -0
- package/dist/models/VirtualMachineDisk.js +6 -0
- package/dist/models/VirtualMachineNIC.d.ts +4 -0
- package/dist/models/VirtualMachineNIC.js +2 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/Datastore.md +6 -0
- package/docs/Inventory1.md +2 -0
- package/docs/RDMBacking.md +35 -0
- package/docs/VMFilterOptionsResponse.md +2 -0
- package/docs/VirtualMachineDatastore.md +53 -0
- package/docs/VirtualMachineDetail.md +4 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineNIC.md +2 -0
- package/package.json +1 -1
- package/src/models/Datastore.ts +20 -2
- package/src/models/Inventory1.ts +7 -1
- package/src/models/RDMBacking.ts +63 -0
- package/src/models/VMFilterOptionsResponse.ts +7 -0
- package/src/models/VirtualMachineDatastore.ts +117 -0
- package/src/models/VirtualMachineDetail.ts +13 -1
- package/src/models/VirtualMachineDisk.ts +27 -0
- package/src/models/VirtualMachineNIC.ts +6 -0
- package/src/models/index.ts +2 -0
|
@@ -43,6 +43,7 @@ function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
44
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
45
45
|
'created_at': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
|
|
46
|
+
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
49
|
function Inventory1ToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
59
60
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
60
61
|
'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
|
|
62
|
+
'collection_time': value['collection_time'] == null ? value['collection_time'] : (0, runtime_js_1.serializeDateTime)(value['collection_time']),
|
|
61
63
|
};
|
|
62
64
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RDMBacking
|
|
16
|
+
*/
|
|
17
|
+
export interface RDMBacking {
|
|
18
|
+
/**
|
|
19
|
+
* LUN UUID reported directly by the RDM disk backing, when available
|
|
20
|
+
*/
|
|
21
|
+
lunUuid?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the RDMBacking interface.
|
|
25
|
+
*/
|
|
26
|
+
export declare function instanceOfRDMBacking(value: object): value is RDMBacking;
|
|
27
|
+
export declare function RDMBackingFromJSON(json: any): RDMBacking;
|
|
28
|
+
export declare function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking;
|
|
29
|
+
export declare function RDMBackingToJSON(json: any): RDMBacking;
|
|
30
|
+
export declare function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfRDMBacking = instanceOfRDMBacking;
|
|
17
|
+
exports.RDMBackingFromJSON = RDMBackingFromJSON;
|
|
18
|
+
exports.RDMBackingFromJSONTyped = RDMBackingFromJSONTyped;
|
|
19
|
+
exports.RDMBackingToJSON = RDMBackingToJSON;
|
|
20
|
+
exports.RDMBackingToJSONTyped = RDMBackingToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RDMBacking interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRDMBacking(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RDMBackingFromJSON(json) {
|
|
28
|
+
return RDMBackingFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function RDMBackingToJSON(json) {
|
|
39
|
+
return RDMBackingToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'lunUuid': value['lunUuid'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
* @interface VMFilterOptionsResponse
|
|
16
16
|
*/
|
|
17
17
|
export interface VMFilterOptionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Distinct metadata values grouped by key, available for VM filtering.
|
|
20
|
+
*/
|
|
21
|
+
metadata: {
|
|
22
|
+
[key: string]: Array<string>;
|
|
23
|
+
};
|
|
18
24
|
/**
|
|
19
25
|
* Distinct cluster names
|
|
20
26
|
*/
|
|
@@ -22,6 +22,8 @@ exports.VMFilterOptionsResponseToJSONTyped = VMFilterOptionsResponseToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfVMFilterOptionsResponse(value) {
|
|
25
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('datacenters' in value) || value['datacenters'] === undefined)
|
|
@@ -42,6 +44,7 @@ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return json;
|
|
43
45
|
}
|
|
44
46
|
return {
|
|
47
|
+
'metadata': json['metadata'],
|
|
45
48
|
'clusters': json['clusters'],
|
|
46
49
|
'datacenters': json['datacenters'],
|
|
47
50
|
'concernLabels': json['concernLabels'],
|
|
@@ -57,6 +60,7 @@ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
57
60
|
return value;
|
|
58
61
|
}
|
|
59
62
|
return {
|
|
63
|
+
'metadata': value['metadata'],
|
|
60
64
|
'clusters': value['clusters'],
|
|
61
65
|
'datacenters': value['datacenters'],
|
|
62
66
|
'concernLabels': value['concernLabels'],
|
|
@@ -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
|
+
/**
|
|
13
|
+
* Datastore backing this virtual disk
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VirtualMachineDatastore
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualMachineDatastore {
|
|
18
|
+
/**
|
|
19
|
+
* Datastore object ID
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Datastore name
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Datastore type (VMFS, NFS, vSAN, vVol)
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Datastore filesystem type
|
|
32
|
+
*/
|
|
33
|
+
filesystemType?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Datastore filesystem major version when available
|
|
36
|
+
*/
|
|
37
|
+
filesystemMajorVersion?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
|
|
40
|
+
*/
|
|
41
|
+
protocolType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Datastore storage access category when available (Block, File, or Object)
|
|
44
|
+
*/
|
|
45
|
+
storageProtocol?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
48
|
+
*/
|
|
49
|
+
backingDeviceIds?: Array<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Vendor reported by matching backing devices when available
|
|
52
|
+
*/
|
|
53
|
+
vendor?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Model reported by matching backing devices when available
|
|
56
|
+
*/
|
|
57
|
+
model?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore;
|
|
63
|
+
export declare function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore;
|
|
64
|
+
export declare function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore;
|
|
65
|
+
export declare function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore;
|
|
66
|
+
export declare function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfVirtualMachineDatastore = instanceOfVirtualMachineDatastore;
|
|
17
|
+
exports.VirtualMachineDatastoreFromJSON = VirtualMachineDatastoreFromJSON;
|
|
18
|
+
exports.VirtualMachineDatastoreFromJSONTyped = VirtualMachineDatastoreFromJSONTyped;
|
|
19
|
+
exports.VirtualMachineDatastoreToJSON = VirtualMachineDatastoreToJSON;
|
|
20
|
+
exports.VirtualMachineDatastoreToJSONTyped = VirtualMachineDatastoreToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVirtualMachineDatastore(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function VirtualMachineDatastoreFromJSON(json) {
|
|
28
|
+
return VirtualMachineDatastoreFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
38
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
39
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
40
|
+
'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
|
|
41
|
+
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
42
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
43
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
44
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function VirtualMachineDatastoreToJSON(json) {
|
|
48
|
+
return VirtualMachineDatastoreToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'type': value['type'],
|
|
58
|
+
'filesystemType': value['filesystemType'],
|
|
59
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
60
|
+
'protocolType': value['protocolType'],
|
|
61
|
+
'storageProtocol': value['storageProtocol'],
|
|
62
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
63
|
+
'vendor': value['vendor'],
|
|
64
|
+
'model': value['model'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -128,6 +128,12 @@ export interface VirtualMachineDetail {
|
|
|
128
128
|
* Whether Fault Tolerance is enabled
|
|
129
129
|
*/
|
|
130
130
|
faultToleranceEnabled?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Tags and custom attributes collected from vCenter or RVTools, grouped by tag category name, custom attribute name, or RVTools column header. Empty object when absent. vCenter tags with unresolved category names are omitted.
|
|
133
|
+
*/
|
|
134
|
+
readonly metadata?: {
|
|
135
|
+
[key: string]: Array<string>;
|
|
136
|
+
};
|
|
131
137
|
/**
|
|
132
138
|
* Whether nested virtualization is enabled
|
|
133
139
|
*/
|
|
@@ -144,6 +150,10 @@ export interface VirtualMachineDetail {
|
|
|
144
150
|
*
|
|
145
151
|
*/
|
|
146
152
|
disks: Array<VirtualMachineDisk>;
|
|
153
|
+
/**
|
|
154
|
+
* Adapter count reported by the source; 0 when unavailable
|
|
155
|
+
*/
|
|
156
|
+
nicCount: number;
|
|
147
157
|
/**
|
|
148
158
|
*
|
|
149
159
|
*/
|
|
@@ -180,4 +190,4 @@ export declare function instanceOfVirtualMachineDetail(value: object): value is
|
|
|
180
190
|
export declare function VirtualMachineDetailFromJSON(json: any): VirtualMachineDetail;
|
|
181
191
|
export declare function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDetail;
|
|
182
192
|
export declare function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail;
|
|
183
|
-
export declare function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator?: boolean): any;
|
|
193
|
+
export declare function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetail, 'metadata'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -49,6 +49,8 @@ function instanceOfVirtualMachineDetail(value) {
|
|
|
49
49
|
return false;
|
|
50
50
|
if (!('disks' in value) || value['disks'] === undefined)
|
|
51
51
|
return false;
|
|
52
|
+
if (!('nicCount' in value) || value['nicCount'] === undefined)
|
|
53
|
+
return false;
|
|
52
54
|
if (!('nics' in value) || value['nics'] === undefined)
|
|
53
55
|
return false;
|
|
54
56
|
return true;
|
|
@@ -87,10 +89,12 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
89
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, InspectionStatus_js_1.InspectionStatusFromJSON)(json['inspectionStatus']),
|
|
88
90
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
89
91
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
92
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
90
93
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
91
94
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
92
95
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
93
96
|
'disks': (json['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskFromJSON)),
|
|
97
|
+
'nicCount': json['nicCount'],
|
|
94
98
|
'nics': (json['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICFromJSON)),
|
|
95
99
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceFromJSON)),
|
|
96
100
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
|
|
@@ -138,6 +142,7 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
138
142
|
'toolsStatus': value['toolsStatus'],
|
|
139
143
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
140
144
|
'disks': (value['disks'].map(VirtualMachineDisk_js_1.VirtualMachineDiskToJSON)),
|
|
145
|
+
'nicCount': value['nicCount'],
|
|
141
146
|
'nics': (value['nics'].map(VirtualMachineNIC_js_1.VirtualMachineNICToJSON)),
|
|
142
147
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDevice_js_1.VirtualMachineDeviceToJSON)),
|
|
143
148
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { RDMBacking } from './RDMBacking.js';
|
|
13
|
+
import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -35,6 +37,10 @@ export interface VirtualMachineDisk {
|
|
|
35
37
|
* Whether this is a Raw Device Mapping
|
|
36
38
|
*/
|
|
37
39
|
rdm?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
rdmBacking?: RDMBacking;
|
|
38
44
|
/**
|
|
39
45
|
* Bus type (scsi, ide, sata, nvme)
|
|
40
46
|
*/
|
|
@@ -43,6 +49,10 @@ export interface VirtualMachineDisk {
|
|
|
43
49
|
* Disk mode (persistent, independent_persistent, independent_nonpersistent)
|
|
44
50
|
*/
|
|
45
51
|
mode?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
datastore?: VirtualMachineDatastore;
|
|
46
56
|
}
|
|
47
57
|
/**
|
|
48
58
|
* Check if a given object implements the VirtualMachineDisk interface.
|
|
@@ -18,6 +18,8 @@ exports.VirtualMachineDiskFromJSON = VirtualMachineDiskFromJSON;
|
|
|
18
18
|
exports.VirtualMachineDiskFromJSONTyped = VirtualMachineDiskFromJSONTyped;
|
|
19
19
|
exports.VirtualMachineDiskToJSON = VirtualMachineDiskToJSON;
|
|
20
20
|
exports.VirtualMachineDiskToJSONTyped = VirtualMachineDiskToJSONTyped;
|
|
21
|
+
const RDMBacking_js_1 = require("./RDMBacking.js");
|
|
22
|
+
const VirtualMachineDatastore_js_1 = require("./VirtualMachineDatastore.js");
|
|
21
23
|
/**
|
|
22
24
|
* Check if a given object implements the VirtualMachineDisk interface.
|
|
23
25
|
*/
|
|
@@ -37,8 +39,10 @@ function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
39
|
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
38
40
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
39
41
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
42
|
+
'rdmBacking': json['rdmBacking'] == null ? undefined : (0, RDMBacking_js_1.RDMBackingFromJSON)(json['rdmBacking']),
|
|
40
43
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
41
44
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
45
|
+
'datastore': json['datastore'] == null ? undefined : (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreFromJSON)(json['datastore']),
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
function VirtualMachineDiskToJSON(json) {
|
|
@@ -54,7 +58,9 @@ function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
58
|
'capacity': value['capacity'],
|
|
55
59
|
'shared': value['shared'],
|
|
56
60
|
'rdm': value['rdm'],
|
|
61
|
+
'rdmBacking': (0, RDMBacking_js_1.RDMBackingToJSON)(value['rdmBacking']),
|
|
57
62
|
'bus': value['bus'],
|
|
58
63
|
'mode': value['mode'],
|
|
64
|
+
'datastore': (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreToJSON)(value['datastore']),
|
|
59
65
|
};
|
|
60
66
|
}
|
|
@@ -32,6 +32,7 @@ function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
+
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
35
36
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
36
37
|
'network': json['network'] == null ? undefined : json['network'],
|
|
37
38
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -45,6 +46,7 @@ function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
46
|
return value;
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
49
|
+
'adapter': value['adapter'],
|
|
48
50
|
'mac': value['mac'],
|
|
49
51
|
'network': value['network'],
|
|
50
52
|
'index': value['index'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export * from './OsInfo.js';
|
|
|
51
51
|
export * from './PairCapability.js';
|
|
52
52
|
export * from './PairCapabilityRequest.js';
|
|
53
53
|
export * from './Process.js';
|
|
54
|
+
export * from './RDMBacking.js';
|
|
54
55
|
export * from './RightsizingClusterResponse.js';
|
|
55
56
|
export * from './RightsizingClusterUtilization.js';
|
|
56
57
|
export * from './StartForecasterRequest.js';
|
|
@@ -69,6 +70,7 @@ export * from './VcenterCredentials.js';
|
|
|
69
70
|
export * from './VddkProperties.js';
|
|
70
71
|
export * from './VersionInfo.js';
|
|
71
72
|
export * from './VirtualMachine.js';
|
|
73
|
+
export * from './VirtualMachineDatastore.js';
|
|
72
74
|
export * from './VirtualMachineDetail.js';
|
|
73
75
|
export * from './VirtualMachineDevice.js';
|
|
74
76
|
export * from './VirtualMachineDisk.js';
|
package/dist/models/index.js
CHANGED
|
@@ -69,6 +69,7 @@ __exportStar(require("./OsInfo.js"), exports);
|
|
|
69
69
|
__exportStar(require("./PairCapability.js"), exports);
|
|
70
70
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
71
71
|
__exportStar(require("./Process.js"), exports);
|
|
72
|
+
__exportStar(require("./RDMBacking.js"), exports);
|
|
72
73
|
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
73
74
|
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
74
75
|
__exportStar(require("./StartForecasterRequest.js"), exports);
|
|
@@ -87,6 +88,7 @@ __exportStar(require("./VcenterCredentials.js"), exports);
|
|
|
87
88
|
__exportStar(require("./VddkProperties.js"), exports);
|
|
88
89
|
__exportStar(require("./VersionInfo.js"), exports);
|
|
89
90
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
91
|
+
__exportStar(require("./VirtualMachineDatastore.js"), exports);
|
|
90
92
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
91
93
|
__exportStar(require("./VirtualMachineDevice.js"), exports);
|
|
92
94
|
__exportStar(require("./VirtualMachineDisk.js"), exports);
|
package/docs/Datastore.md
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`type` | string
|
|
10
|
+
`backingDeviceIds` | Array<string>
|
|
11
|
+
`filesystemType` | string
|
|
12
|
+
`filesystemMajorVersion` | number
|
|
10
13
|
`storageProtocol` | string
|
|
11
14
|
`vsanSnapshotSupport` | boolean
|
|
12
15
|
`totalCapacityGB` | number
|
|
@@ -27,6 +30,9 @@ import type { Datastore } from '@openshift-migration-advisor/agent-sdk'
|
|
|
27
30
|
// TODO: Update the object below with actual values
|
|
28
31
|
const example = {
|
|
29
32
|
"type": null,
|
|
33
|
+
"backingDeviceIds": null,
|
|
34
|
+
"filesystemType": null,
|
|
35
|
+
"filesystemMajorVersion": null,
|
|
30
36
|
"storageProtocol": null,
|
|
31
37
|
"vsanSnapshotSupport": null,
|
|
32
38
|
"totalCapacityGB": null,
|
package/docs/Inventory1.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
12
12
|
`vcenter` | [InventoryData](InventoryData.md)
|
|
13
13
|
`created_at` | Date
|
|
14
|
+
`collection_time` | Date
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"clusters": null,
|
|
25
26
|
"vcenter": null,
|
|
26
27
|
"created_at": null,
|
|
28
|
+
"collection_time": null,
|
|
27
29
|
} satisfies Inventory1
|
|
28
30
|
|
|
29
31
|
console.log(example)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# RDMBacking
|
|
3
|
+
|
|
4
|
+
Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`lunUuid` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { RDMBacking } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"lunUuid": null,
|
|
20
|
+
} satisfies RDMBacking
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as RDMBacking
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`metadata` | { [key: string]: Array<string>; }
|
|
9
10
|
`clusters` | Array<string>
|
|
10
11
|
`datacenters` | Array<string>
|
|
11
12
|
`concernLabels` | Array<string>
|
|
@@ -19,6 +20,7 @@ import type { VMFilterOptionsResponse } from '@openshift-migration-advisor/agent
|
|
|
19
20
|
|
|
20
21
|
// TODO: Update the object below with actual values
|
|
21
22
|
const example = {
|
|
23
|
+
"metadata": null,
|
|
22
24
|
"clusters": null,
|
|
23
25
|
"datacenters": null,
|
|
24
26
|
"concernLabels": null,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
# VirtualMachineDatastore
|
|
3
|
+
|
|
4
|
+
Datastore backing this virtual disk
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`id` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`filesystemType` | string
|
|
14
|
+
`filesystemMajorVersion` | number
|
|
15
|
+
`protocolType` | string
|
|
16
|
+
`storageProtocol` | string
|
|
17
|
+
`backingDeviceIds` | Array<string>
|
|
18
|
+
`vendor` | string
|
|
19
|
+
`model` | string
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { VirtualMachineDatastore } from '@openshift-migration-advisor/agent-sdk'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"id": null,
|
|
29
|
+
"name": null,
|
|
30
|
+
"type": null,
|
|
31
|
+
"filesystemType": null,
|
|
32
|
+
"filesystemMajorVersion": null,
|
|
33
|
+
"protocolType": null,
|
|
34
|
+
"storageProtocol": null,
|
|
35
|
+
"backingDeviceIds": null,
|
|
36
|
+
"vendor": null,
|
|
37
|
+
"model": null,
|
|
38
|
+
} satisfies VirtualMachineDatastore
|
|
39
|
+
|
|
40
|
+
console.log(example)
|
|
41
|
+
|
|
42
|
+
// Convert the instance to a JSON string
|
|
43
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
44
|
+
console.log(exampleJSON)
|
|
45
|
+
|
|
46
|
+
// Parse the JSON string back to an object
|
|
47
|
+
const exampleParsed = JSON.parse(exampleJSON) as VirtualMachineDatastore
|
|
48
|
+
console.log(exampleParsed)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
52
|
+
|
|
53
|
+
|
|
@@ -32,10 +32,12 @@ Name | Type
|
|
|
32
32
|
`inspectionStatus` | [InspectionStatus](InspectionStatus.md)
|
|
33
33
|
`labels` | Array<string>
|
|
34
34
|
`faultToleranceEnabled` | boolean
|
|
35
|
+
`metadata` | { [key: string]: Array<string>; }
|
|
35
36
|
`nestedHVEnabled` | boolean
|
|
36
37
|
`toolsStatus` | string
|
|
37
38
|
`toolsRunningStatus` | string
|
|
38
39
|
`disks` | [Array<VirtualMachineDisk>](VirtualMachineDisk.md)
|
|
40
|
+
`nicCount` | number
|
|
39
41
|
`nics` | [Array<VirtualMachineNIC>](VirtualMachineNIC.md)
|
|
40
42
|
`devices` | [Array<VirtualMachineDevice>](VirtualMachineDevice.md)
|
|
41
43
|
`guestNetworks` | [Array<GuestNetwork>](GuestNetwork.md)
|
|
@@ -77,10 +79,12 @@ const example = {
|
|
|
77
79
|
"inspectionStatus": null,
|
|
78
80
|
"labels": null,
|
|
79
81
|
"faultToleranceEnabled": null,
|
|
82
|
+
"metadata": null,
|
|
80
83
|
"nestedHVEnabled": null,
|
|
81
84
|
"toolsStatus": null,
|
|
82
85
|
"toolsRunningStatus": null,
|
|
83
86
|
"disks": null,
|
|
87
|
+
"nicCount": null,
|
|
84
88
|
"nics": null,
|
|
85
89
|
"devices": null,
|
|
86
90
|
"guestNetworks": null,
|
|
@@ -11,8 +11,10 @@ Name | Type
|
|
|
11
11
|
`capacity` | number
|
|
12
12
|
`shared` | boolean
|
|
13
13
|
`rdm` | boolean
|
|
14
|
+
`rdmBacking` | [RDMBacking](RDMBacking.md)
|
|
14
15
|
`bus` | string
|
|
15
16
|
`mode` | string
|
|
17
|
+
`datastore` | [VirtualMachineDatastore](VirtualMachineDatastore.md)
|
|
16
18
|
|
|
17
19
|
## Example
|
|
18
20
|
|
|
@@ -26,8 +28,10 @@ const example = {
|
|
|
26
28
|
"capacity": null,
|
|
27
29
|
"shared": null,
|
|
28
30
|
"rdm": null,
|
|
31
|
+
"rdmBacking": null,
|
|
29
32
|
"bus": null,
|
|
30
33
|
"mode": null,
|
|
34
|
+
"datastore": null,
|
|
31
35
|
} satisfies VirtualMachineDisk
|
|
32
36
|
|
|
33
37
|
console.log(example)
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`adapter` | string
|
|
9
10
|
`mac` | string
|
|
10
11
|
`network` | string
|
|
11
12
|
`index` | number
|
|
@@ -17,6 +18,7 @@ import type { VirtualMachineNIC } from '@openshift-migration-advisor/agent-sdk'
|
|
|
17
18
|
|
|
18
19
|
// TODO: Update the object below with actual values
|
|
19
20
|
const example = {
|
|
21
|
+
"adapter": null,
|
|
20
22
|
"mac": null,
|
|
21
23
|
"network": null,
|
|
22
24
|
"index": null,
|