@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
package/package.json
CHANGED
package/src/models/Datastore.ts
CHANGED
|
@@ -31,6 +31,18 @@ export interface Datastore {
|
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
type: string;
|
|
34
|
+
/**
|
|
35
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
36
|
+
*/
|
|
37
|
+
backingDeviceIds?: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
40
|
+
*/
|
|
41
|
+
filesystemType?: string;
|
|
42
|
+
/**
|
|
43
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
44
|
+
*/
|
|
45
|
+
filesystemMajorVersion?: number;
|
|
34
46
|
/**
|
|
35
47
|
* Storage access category derived from Datastore.Type
|
|
36
48
|
*/
|
|
@@ -48,7 +60,7 @@ export interface Datastore {
|
|
|
48
60
|
*/
|
|
49
61
|
freeCapacityGB: number;
|
|
50
62
|
/**
|
|
51
|
-
*
|
|
63
|
+
* Vendor reported by matching backing devices when available
|
|
52
64
|
*/
|
|
53
65
|
vendor: string;
|
|
54
66
|
/**
|
|
@@ -64,7 +76,7 @@ export interface Datastore {
|
|
|
64
76
|
*/
|
|
65
77
|
protocolType: string;
|
|
66
78
|
/**
|
|
67
|
-
*
|
|
79
|
+
* Model reported by matching backing devices when available
|
|
68
80
|
*/
|
|
69
81
|
model: string;
|
|
70
82
|
/**
|
|
@@ -115,6 +127,9 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
115
127
|
return {
|
|
116
128
|
|
|
117
129
|
'type': json['type'],
|
|
130
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
131
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
132
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
118
133
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
119
134
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
120
135
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -141,6 +156,9 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
141
156
|
return {
|
|
142
157
|
|
|
143
158
|
'type': value['type'],
|
|
159
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
160
|
+
'filesystemType': value['filesystemType'],
|
|
161
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
144
162
|
'storageProtocol': value['storageProtocol'],
|
|
145
163
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
146
164
|
'totalCapacityGB': value['totalCapacityGB'],
|
package/src/models/Inventory1.ts
CHANGED
|
@@ -44,9 +44,13 @@ export interface Inventory1 {
|
|
|
44
44
|
*/
|
|
45
45
|
vcenter?: InventoryData;
|
|
46
46
|
/**
|
|
47
|
-
* Timestamp when the inventory
|
|
47
|
+
* Timestamp when the inventory document was built
|
|
48
48
|
*/
|
|
49
49
|
created_at?: Date;
|
|
50
|
+
/**
|
|
51
|
+
* Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
|
|
52
|
+
*/
|
|
53
|
+
collection_time?: Date | null;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
@@ -73,6 +77,7 @@ export function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
73
77
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
74
78
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
75
79
|
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
80
|
+
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
76
81
|
};
|
|
77
82
|
}
|
|
78
83
|
|
|
@@ -92,6 +97,7 @@ export function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscrimin
|
|
|
92
97
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
93
98
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
94
99
|
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
100
|
+
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
95
101
|
};
|
|
96
102
|
}
|
|
97
103
|
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RDMBacking
|
|
20
|
+
*/
|
|
21
|
+
export interface RDMBacking {
|
|
22
|
+
/**
|
|
23
|
+
* LUN UUID reported directly by the RDM disk backing, when available
|
|
24
|
+
*/
|
|
25
|
+
lunUuid?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the RDMBacking interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfRDMBacking(value: object): value is RDMBacking {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function RDMBackingFromJSON(json: any): RDMBacking {
|
|
36
|
+
return RDMBackingFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function RDMBackingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RDMBacking {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
|
|
45
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RDMBackingToJSON(json: any): RDMBacking {
|
|
50
|
+
return RDMBackingToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RDMBackingToJSONTyped(value?: RDMBacking | null, ignoreDiscriminator: boolean = false): any {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'lunUuid': value['lunUuid'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
@@ -19,6 +19,10 @@ import { mapValues } from '../runtime.js';
|
|
|
19
19
|
* @interface VMFilterOptionsResponse
|
|
20
20
|
*/
|
|
21
21
|
export interface VMFilterOptionsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Distinct metadata values grouped by key, available for VM filtering.
|
|
24
|
+
*/
|
|
25
|
+
metadata: { [key: string]: Array<string>; };
|
|
22
26
|
/**
|
|
23
27
|
* Distinct cluster names
|
|
24
28
|
*/
|
|
@@ -45,6 +49,7 @@ export interface VMFilterOptionsResponse {
|
|
|
45
49
|
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
46
50
|
*/
|
|
47
51
|
export function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse {
|
|
52
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
48
53
|
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
49
54
|
if (!('datacenters' in value) || value['datacenters'] === undefined) return false;
|
|
50
55
|
if (!('concernLabels' in value) || value['concernLabels'] === undefined) return false;
|
|
@@ -63,6 +68,7 @@ export function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
63
68
|
}
|
|
64
69
|
return {
|
|
65
70
|
|
|
71
|
+
'metadata': json['metadata'],
|
|
66
72
|
'clusters': json['clusters'],
|
|
67
73
|
'datacenters': json['datacenters'],
|
|
68
74
|
'concernLabels': json['concernLabels'],
|
|
@@ -82,6 +88,7 @@ export function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsRespon
|
|
|
82
88
|
|
|
83
89
|
return {
|
|
84
90
|
|
|
91
|
+
'metadata': value['metadata'],
|
|
85
92
|
'clusters': value['clusters'],
|
|
86
93
|
'datacenters': value['datacenters'],
|
|
87
94
|
'concernLabels': value['concernLabels'],
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
* Datastore backing this virtual disk
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VirtualMachineDatastore
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineDatastore {
|
|
22
|
+
/**
|
|
23
|
+
* Datastore object ID
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Datastore name
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Datastore type (VMFS, NFS, vSAN, vVol)
|
|
32
|
+
*/
|
|
33
|
+
type?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Datastore filesystem type
|
|
36
|
+
*/
|
|
37
|
+
filesystemType?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Datastore filesystem major version when available
|
|
40
|
+
*/
|
|
41
|
+
filesystemMajorVersion?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Backing storage transport protocol when available (for example FC, iSCSI, or NFS)
|
|
44
|
+
*/
|
|
45
|
+
protocolType?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Datastore storage access category when available (Block, File, or Object)
|
|
48
|
+
*/
|
|
49
|
+
storageProtocol?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
52
|
+
*/
|
|
53
|
+
backingDeviceIds?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Vendor reported by matching backing devices when available
|
|
56
|
+
*/
|
|
57
|
+
vendor?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Model reported by matching backing devices when available
|
|
60
|
+
*/
|
|
61
|
+
model?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfVirtualMachineDatastore(value: object): value is VirtualMachineDatastore {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function VirtualMachineDatastoreFromJSON(json: any): VirtualMachineDatastore {
|
|
72
|
+
return VirtualMachineDatastoreFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineDatastore {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
82
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
83
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
84
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
85
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
86
|
+
'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
|
|
87
|
+
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
88
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
89
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
90
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function VirtualMachineDatastoreToJSON(json: any): VirtualMachineDatastore {
|
|
95
|
+
return VirtualMachineDatastoreToJSONTyped(json, false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatastore | null, ignoreDiscriminator: boolean = false): any {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'id': value['id'],
|
|
106
|
+
'name': value['name'],
|
|
107
|
+
'type': value['type'],
|
|
108
|
+
'filesystemType': value['filesystemType'],
|
|
109
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
110
|
+
'protocolType': value['protocolType'],
|
|
111
|
+
'storageProtocol': value['storageProtocol'],
|
|
112
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
113
|
+
'vendor': value['vendor'],
|
|
114
|
+
'model': value['model'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -187,6 +187,10 @@ export interface VirtualMachineDetail {
|
|
|
187
187
|
* Whether Fault Tolerance is enabled
|
|
188
188
|
*/
|
|
189
189
|
faultToleranceEnabled?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* 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.
|
|
192
|
+
*/
|
|
193
|
+
readonly metadata?: { [key: string]: Array<string>; };
|
|
190
194
|
/**
|
|
191
195
|
* Whether nested virtualization is enabled
|
|
192
196
|
*/
|
|
@@ -203,6 +207,10 @@ export interface VirtualMachineDetail {
|
|
|
203
207
|
*
|
|
204
208
|
*/
|
|
205
209
|
disks: Array<VirtualMachineDisk>;
|
|
210
|
+
/**
|
|
211
|
+
* Adapter count reported by the source; 0 when unavailable
|
|
212
|
+
*/
|
|
213
|
+
nicCount: number;
|
|
206
214
|
/**
|
|
207
215
|
*
|
|
208
216
|
*/
|
|
@@ -246,6 +254,7 @@ export function instanceOfVirtualMachineDetail(value: object): value is VirtualM
|
|
|
246
254
|
if (!('coresPerSocket' in value) || value['coresPerSocket'] === undefined) return false;
|
|
247
255
|
if (!('memoryMB' in value) || value['memoryMB'] === undefined) return false;
|
|
248
256
|
if (!('disks' in value) || value['disks'] === undefined) return false;
|
|
257
|
+
if (!('nicCount' in value) || value['nicCount'] === undefined) return false;
|
|
249
258
|
if (!('nics' in value) || value['nics'] === undefined) return false;
|
|
250
259
|
return true;
|
|
251
260
|
}
|
|
@@ -286,10 +295,12 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
286
295
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : InspectionStatusFromJSON(json['inspectionStatus']),
|
|
287
296
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
288
297
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
298
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
289
299
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
290
300
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
291
301
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
292
302
|
'disks': ((json['disks'] as Array<any>).map(VirtualMachineDiskFromJSON)),
|
|
303
|
+
'nicCount': json['nicCount'],
|
|
293
304
|
'nics': ((json['nics'] as Array<any>).map(VirtualMachineNICFromJSON)),
|
|
294
305
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VirtualMachineDeviceFromJSON)),
|
|
295
306
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
@@ -304,7 +315,7 @@ export function VirtualMachineDetailToJSON(json: any): VirtualMachineDetail {
|
|
|
304
315
|
return VirtualMachineDetailToJSONTyped(json, false);
|
|
305
316
|
}
|
|
306
317
|
|
|
307
|
-
export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | null, ignoreDiscriminator: boolean = false): any {
|
|
318
|
+
export function VirtualMachineDetailToJSONTyped(value?: Omit<VirtualMachineDetail, 'metadata'> | null, ignoreDiscriminator: boolean = false): any {
|
|
308
319
|
if (value == null) {
|
|
309
320
|
return value;
|
|
310
321
|
}
|
|
@@ -341,6 +352,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
341
352
|
'toolsStatus': value['toolsStatus'],
|
|
342
353
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
343
354
|
'disks': ((value['disks'] as Array<any>).map(VirtualMachineDiskToJSON)),
|
|
355
|
+
'nicCount': value['nicCount'],
|
|
344
356
|
'nics': ((value['nics'] as Array<any>).map(VirtualMachineNICToJSON)),
|
|
345
357
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VirtualMachineDeviceToJSON)),
|
|
346
358
|
'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
|
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RDMBacking } from './RDMBacking.js';
|
|
17
|
+
import {
|
|
18
|
+
RDMBackingFromJSON,
|
|
19
|
+
RDMBackingFromJSONTyped,
|
|
20
|
+
RDMBackingToJSON,
|
|
21
|
+
RDMBackingToJSONTyped,
|
|
22
|
+
} from './RDMBacking.js';
|
|
23
|
+
import type { VirtualMachineDatastore } from './VirtualMachineDatastore.js';
|
|
24
|
+
import {
|
|
25
|
+
VirtualMachineDatastoreFromJSON,
|
|
26
|
+
VirtualMachineDatastoreFromJSONTyped,
|
|
27
|
+
VirtualMachineDatastoreToJSON,
|
|
28
|
+
VirtualMachineDatastoreToJSONTyped,
|
|
29
|
+
} from './VirtualMachineDatastore.js';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -39,6 +54,10 @@ export interface VirtualMachineDisk {
|
|
|
39
54
|
* Whether this is a Raw Device Mapping
|
|
40
55
|
*/
|
|
41
56
|
rdm?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
rdmBacking?: RDMBacking;
|
|
42
61
|
/**
|
|
43
62
|
* Bus type (scsi, ide, sata, nvme)
|
|
44
63
|
*/
|
|
@@ -47,6 +66,10 @@ export interface VirtualMachineDisk {
|
|
|
47
66
|
* Disk mode (persistent, independent_persistent, independent_nonpersistent)
|
|
48
67
|
*/
|
|
49
68
|
mode?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
datastore?: VirtualMachineDatastore;
|
|
50
73
|
}
|
|
51
74
|
|
|
52
75
|
/**
|
|
@@ -71,8 +94,10 @@ export function VirtualMachineDiskFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
71
94
|
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
72
95
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
73
96
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
97
|
+
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
74
98
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
75
99
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
100
|
+
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
76
101
|
};
|
|
77
102
|
}
|
|
78
103
|
|
|
@@ -92,8 +117,10 @@ export function VirtualMachineDiskToJSONTyped(value?: VirtualMachineDisk | null,
|
|
|
92
117
|
'capacity': value['capacity'],
|
|
93
118
|
'shared': value['shared'],
|
|
94
119
|
'rdm': value['rdm'],
|
|
120
|
+
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
95
121
|
'bus': value['bus'],
|
|
96
122
|
'mode': value['mode'],
|
|
123
|
+
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
|
97
124
|
};
|
|
98
125
|
}
|
|
99
126
|
|
|
@@ -19,6 +19,10 @@ import { mapValues } from '../runtime.js';
|
|
|
19
19
|
* @interface VirtualMachineNIC
|
|
20
20
|
*/
|
|
21
21
|
export interface VirtualMachineNIC {
|
|
22
|
+
/**
|
|
23
|
+
* Virtual adapter model, such as Vmxnet3 or E1000
|
|
24
|
+
*/
|
|
25
|
+
adapter?: string;
|
|
22
26
|
/**
|
|
23
27
|
* MAC address
|
|
24
28
|
*/
|
|
@@ -50,6 +54,7 @@ export function VirtualMachineNICFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
50
54
|
}
|
|
51
55
|
return {
|
|
52
56
|
|
|
57
|
+
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
53
58
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
54
59
|
'network': json['network'] == null ? undefined : json['network'],
|
|
55
60
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -67,6 +72,7 @@ export function VirtualMachineNICToJSONTyped(value?: VirtualMachineNIC | null, i
|
|
|
67
72
|
|
|
68
73
|
return {
|
|
69
74
|
|
|
75
|
+
'adapter': value['adapter'],
|
|
70
76
|
'mac': value['mac'],
|
|
71
77
|
'network': value['network'],
|
|
72
78
|
'index': value['index'],
|
package/src/models/index.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from './OsInfo.js';
|
|
|
53
53
|
export * from './PairCapability.js';
|
|
54
54
|
export * from './PairCapabilityRequest.js';
|
|
55
55
|
export * from './Process.js';
|
|
56
|
+
export * from './RDMBacking.js';
|
|
56
57
|
export * from './RightsizingClusterResponse.js';
|
|
57
58
|
export * from './RightsizingClusterUtilization.js';
|
|
58
59
|
export * from './StartForecasterRequest.js';
|
|
@@ -71,6 +72,7 @@ export * from './VcenterCredentials.js';
|
|
|
71
72
|
export * from './VddkProperties.js';
|
|
72
73
|
export * from './VersionInfo.js';
|
|
73
74
|
export * from './VirtualMachine.js';
|
|
75
|
+
export * from './VirtualMachineDatastore.js';
|
|
74
76
|
export * from './VirtualMachineDetail.js';
|
|
75
77
|
export * from './VirtualMachineDevice.js';
|
|
76
78
|
export * from './VirtualMachineDisk.js';
|