@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0
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/.openapi-generator/VERSION +1 -1
- package/README.md +5 -3
- 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/VirtualMachineDatastore.d.ts +66 -0
- package/dist/esm/models/VirtualMachineDatastore.js +59 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +4 -0
- package/dist/esm/models/VirtualMachineDetail.js +4 -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/VirtualMachineDatastore.d.ts +66 -0
- package/dist/models/VirtualMachineDatastore.js +66 -0
- package/dist/models/VirtualMachineDetail.d.ts +4 -0
- package/dist/models/VirtualMachineDetail.js +4 -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/VirtualMachineDatastore.md +53 -0
- package/docs/VirtualMachineDetail.md +2 -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/VirtualMachineDatastore.ts +117 -0
- package/src/models/VirtualMachineDetail.ts +7 -0
- package/src/models/VirtualMachineDisk.ts +27 -0
- package/src/models/VirtualMachineNIC.ts +6 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -64,6 +64,7 @@ docs/OsInfo.md
|
|
|
64
64
|
docs/PairCapability.md
|
|
65
65
|
docs/PairCapabilityRequest.md
|
|
66
66
|
docs/Process.md
|
|
67
|
+
docs/RDMBacking.md
|
|
67
68
|
docs/RightsizingApi.md
|
|
68
69
|
docs/RightsizingClusterResponse.md
|
|
69
70
|
docs/RightsizingClusterUtilization.md
|
|
@@ -84,6 +85,7 @@ docs/VddkProperties.md
|
|
|
84
85
|
docs/VersionApi.md
|
|
85
86
|
docs/VersionInfo.md
|
|
86
87
|
docs/VirtualMachine.md
|
|
88
|
+
docs/VirtualMachineDatastore.md
|
|
87
89
|
docs/VirtualMachineDetail.md
|
|
88
90
|
docs/VirtualMachineDevice.md
|
|
89
91
|
docs/VirtualMachineDisk.md
|
|
@@ -163,6 +165,7 @@ src/models/OsInfo.ts
|
|
|
163
165
|
src/models/PairCapability.ts
|
|
164
166
|
src/models/PairCapabilityRequest.ts
|
|
165
167
|
src/models/Process.ts
|
|
168
|
+
src/models/RDMBacking.ts
|
|
166
169
|
src/models/RightsizingClusterResponse.ts
|
|
167
170
|
src/models/RightsizingClusterUtilization.ts
|
|
168
171
|
src/models/StartForecasterRequest.ts
|
|
@@ -181,6 +184,7 @@ src/models/VcenterCredentials.ts
|
|
|
181
184
|
src/models/VddkProperties.ts
|
|
182
185
|
src/models/VersionInfo.ts
|
|
183
186
|
src/models/VirtualMachine.ts
|
|
187
|
+
src/models/VirtualMachineDatastore.ts
|
|
184
188
|
src/models/VirtualMachineDetail.ts
|
|
185
189
|
src/models/VirtualMachineDevice.ts
|
|
186
190
|
src/models/VirtualMachineDisk.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.28.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.31.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -159,6 +159,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
159
159
|
- [PairCapability](docs/PairCapability.md)
|
|
160
160
|
- [PairCapabilityRequest](docs/PairCapabilityRequest.md)
|
|
161
161
|
- [Process](docs/Process.md)
|
|
162
|
+
- [RDMBacking](docs/RDMBacking.md)
|
|
162
163
|
- [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
|
|
163
164
|
- [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
|
|
164
165
|
- [StartForecasterRequest](docs/StartForecasterRequest.md)
|
|
@@ -177,6 +178,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
177
178
|
- [VddkProperties](docs/VddkProperties.md)
|
|
178
179
|
- [VersionInfo](docs/VersionInfo.md)
|
|
179
180
|
- [VirtualMachine](docs/VirtualMachine.md)
|
|
181
|
+
- [VirtualMachineDatastore](docs/VirtualMachineDatastore.md)
|
|
180
182
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
181
183
|
- [VirtualMachineDevice](docs/VirtualMachineDevice.md)
|
|
182
184
|
- [VirtualMachineDisk](docs/VirtualMachineDisk.md)
|
|
@@ -200,8 +202,8 @@ and is automatically generated by the
|
|
|
200
202
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
201
203
|
|
|
202
204
|
- API version: `v2`
|
|
203
|
-
- Package version: `0.
|
|
204
|
-
- Generator version: `7.
|
|
205
|
+
- Package version: `0.31.0`
|
|
206
|
+
- Generator version: `7.28.0-SNAPSHOT`
|
|
205
207
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
206
208
|
|
|
207
209
|
The generated npm module supports the following:
|
|
@@ -20,6 +20,18 @@ export interface Datastore {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
type: string;
|
|
23
|
+
/**
|
|
24
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
25
|
+
*/
|
|
26
|
+
backingDeviceIds?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
29
|
+
*/
|
|
30
|
+
filesystemType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
33
|
+
*/
|
|
34
|
+
filesystemMajorVersion?: number;
|
|
23
35
|
/**
|
|
24
36
|
* Storage access category derived from Datastore.Type
|
|
25
37
|
*/
|
|
@@ -37,7 +49,7 @@ export interface Datastore {
|
|
|
37
49
|
*/
|
|
38
50
|
freeCapacityGB: number;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
52
|
+
* Vendor reported by matching backing devices when available
|
|
41
53
|
*/
|
|
42
54
|
vendor: string;
|
|
43
55
|
/**
|
|
@@ -53,7 +65,7 @@ export interface Datastore {
|
|
|
53
65
|
*/
|
|
54
66
|
protocolType: string;
|
|
55
67
|
/**
|
|
56
|
-
*
|
|
68
|
+
* Model reported by matching backing devices when available
|
|
57
69
|
*/
|
|
58
70
|
model: string;
|
|
59
71
|
/**
|
|
@@ -51,6 +51,9 @@ export function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
53
|
'type': json['type'],
|
|
54
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
55
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
56
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
54
57
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
55
58
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
56
59
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -73,6 +76,9 @@ export function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
76
|
}
|
|
74
77
|
return {
|
|
75
78
|
'type': value['type'],
|
|
79
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
80
|
+
'filesystemType': value['filesystemType'],
|
|
81
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
76
82
|
'storageProtocol': value['storageProtocol'],
|
|
77
83
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
78
84
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
@@ -35,9 +35,13 @@ export interface Inventory1 {
|
|
|
35
35
|
*/
|
|
36
36
|
vcenter?: InventoryData;
|
|
37
37
|
/**
|
|
38
|
-
* Timestamp when the inventory
|
|
38
|
+
* Timestamp when the inventory document was built
|
|
39
39
|
*/
|
|
40
40
|
created_at?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
*/
|
|
44
|
+
collection_time?: Date | null;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Check if a given object implements the Inventory1 interface.
|
|
@@ -36,6 +36,7 @@ export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
|
|
37
37
|
'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
|
|
38
38
|
'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
|
|
39
|
+
'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
|
|
39
40
|
};
|
|
40
41
|
}
|
|
41
42
|
export function Inventory1ToJSON(json) {
|
|
@@ -51,5 +52,6 @@ export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
|
|
52
53
|
'vcenter': InventoryDataToJSON(value['vcenter']),
|
|
53
54
|
'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
|
|
55
|
+
'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -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,41 @@
|
|
|
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
|
+
* Check if a given object implements the RDMBacking interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRDMBacking(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function RDMBackingFromJSON(json) {
|
|
21
|
+
return RDMBackingFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function RDMBackingFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'lunUuid': json['lunUuid'] == null ? undefined : json['lunUuid'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function RDMBackingToJSON(json) {
|
|
32
|
+
return RDMBackingToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function RDMBackingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'lunUuid': value['lunUuid'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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,59 @@
|
|
|
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
|
+
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVirtualMachineDatastore(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function VirtualMachineDatastoreFromJSON(json) {
|
|
21
|
+
return VirtualMachineDatastoreFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
31
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
32
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
33
|
+
'protocolType': json['protocolType'] == null ? undefined : json['protocolType'],
|
|
34
|
+
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
35
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
36
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
37
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function VirtualMachineDatastoreToJSON(json) {
|
|
41
|
+
return VirtualMachineDatastoreToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'type': value['type'],
|
|
51
|
+
'filesystemType': value['filesystemType'],
|
|
52
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
53
|
+
'protocolType': value['protocolType'],
|
|
54
|
+
'storageProtocol': value['storageProtocol'],
|
|
55
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
56
|
+
'vendor': value['vendor'],
|
|
57
|
+
'model': value['model'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -42,6 +42,8 @@ export function instanceOfVirtualMachineDetail(value) {
|
|
|
42
42
|
return false;
|
|
43
43
|
if (!('disks' in value) || value['disks'] === undefined)
|
|
44
44
|
return false;
|
|
45
|
+
if (!('nicCount' in value) || value['nicCount'] === undefined)
|
|
46
|
+
return false;
|
|
45
47
|
if (!('nics' in value) || value['nics'] === undefined)
|
|
46
48
|
return false;
|
|
47
49
|
return true;
|
|
@@ -85,6 +87,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
87
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
86
88
|
'toolsRunningStatus': json['toolsRunningStatus'] == null ? undefined : json['toolsRunningStatus'],
|
|
87
89
|
'disks': (json['disks'].map(VirtualMachineDiskFromJSON)),
|
|
90
|
+
'nicCount': json['nicCount'],
|
|
88
91
|
'nics': (json['nics'].map(VirtualMachineNICFromJSON)),
|
|
89
92
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VirtualMachineDeviceFromJSON)),
|
|
90
93
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
|
|
@@ -132,6 +135,7 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
132
135
|
'toolsStatus': value['toolsStatus'],
|
|
133
136
|
'toolsRunningStatus': value['toolsRunningStatus'],
|
|
134
137
|
'disks': (value['disks'].map(VirtualMachineDiskToJSON)),
|
|
138
|
+
'nicCount': value['nicCount'],
|
|
135
139
|
'nics': (value['nics'].map(VirtualMachineNICToJSON)),
|
|
136
140
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VirtualMachineDeviceToJSON)),
|
|
137
141
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(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.
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { RDMBackingFromJSON, RDMBackingToJSON, } from './RDMBacking.js';
|
|
15
|
+
import { VirtualMachineDatastoreFromJSON, VirtualMachineDatastoreToJSON, } from './VirtualMachineDatastore.js';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the VirtualMachineDisk interface.
|
|
16
18
|
*/
|
|
@@ -30,8 +32,10 @@ export function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
32
|
'capacity': json['capacity'] == null ? undefined : json['capacity'],
|
|
31
33
|
'shared': json['shared'] == null ? undefined : json['shared'],
|
|
32
34
|
'rdm': json['rdm'] == null ? undefined : json['rdm'],
|
|
35
|
+
'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
|
|
33
36
|
'bus': json['bus'] == null ? undefined : json['bus'],
|
|
34
37
|
'mode': json['mode'] == null ? undefined : json['mode'],
|
|
38
|
+
'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
|
|
35
39
|
};
|
|
36
40
|
}
|
|
37
41
|
export function VirtualMachineDiskToJSON(json) {
|
|
@@ -47,7 +51,9 @@ export function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false
|
|
|
47
51
|
'capacity': value['capacity'],
|
|
48
52
|
'shared': value['shared'],
|
|
49
53
|
'rdm': value['rdm'],
|
|
54
|
+
'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
|
|
50
55
|
'bus': value['bus'],
|
|
51
56
|
'mode': value['mode'],
|
|
57
|
+
'datastore': VirtualMachineDatastoreToJSON(value['datastore']),
|
|
52
58
|
};
|
|
53
59
|
}
|
|
@@ -25,6 +25,7 @@ export function VirtualMachineNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
+
'adapter': json['adapter'] == null ? undefined : json['adapter'],
|
|
28
29
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
29
30
|
'network': json['network'] == null ? undefined : json['network'],
|
|
30
31
|
'index': json['index'] == null ? undefined : json['index'],
|
|
@@ -38,6 +39,7 @@ export function VirtualMachineNICToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
38
39
|
return value;
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
42
|
+
'adapter': value['adapter'],
|
|
41
43
|
'mac': value['mac'],
|
|
42
44
|
'network': value['network'],
|
|
43
45
|
'index': value['index'],
|
|
@@ -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/esm/models/index.js
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';
|
|
@@ -20,6 +20,18 @@ export interface Datastore {
|
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
22
|
type: string;
|
|
23
|
+
/**
|
|
24
|
+
* Canonical identifiers for devices backing the datastore (for example, an NAA identifier for a SCSI LUN); may be unavailable for some datastore types
|
|
25
|
+
*/
|
|
26
|
+
backingDeviceIds?: Array<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Filesystem type reported by the datastore, such as VMFS, NFS, or NFS41
|
|
29
|
+
*/
|
|
30
|
+
filesystemType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* VMFS major version when reported; omitted when unknown or not applicable
|
|
33
|
+
*/
|
|
34
|
+
filesystemMajorVersion?: number;
|
|
23
35
|
/**
|
|
24
36
|
* Storage access category derived from Datastore.Type
|
|
25
37
|
*/
|
|
@@ -37,7 +49,7 @@ export interface Datastore {
|
|
|
37
49
|
*/
|
|
38
50
|
freeCapacityGB: number;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
52
|
+
* Vendor reported by matching backing devices when available
|
|
41
53
|
*/
|
|
42
54
|
vendor: string;
|
|
43
55
|
/**
|
|
@@ -53,7 +65,7 @@ export interface Datastore {
|
|
|
53
65
|
*/
|
|
54
66
|
protocolType: string;
|
|
55
67
|
/**
|
|
56
|
-
*
|
|
68
|
+
* Model reported by matching backing devices when available
|
|
57
69
|
*/
|
|
58
70
|
model: string;
|
|
59
71
|
/**
|
package/dist/models/Datastore.js
CHANGED
|
@@ -59,6 +59,9 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
61
|
'type': json['type'],
|
|
62
|
+
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
63
|
+
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
64
|
+
'filesystemMajorVersion': json['filesystemMajorVersion'] == null ? undefined : json['filesystemMajorVersion'],
|
|
62
65
|
'storageProtocol': json['storageProtocol'] == null ? undefined : json['storageProtocol'],
|
|
63
66
|
'vsanSnapshotSupport': json['vsanSnapshotSupport'] == null ? undefined : json['vsanSnapshotSupport'],
|
|
64
67
|
'totalCapacityGB': json['totalCapacityGB'],
|
|
@@ -81,6 +84,9 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
84
|
}
|
|
82
85
|
return {
|
|
83
86
|
'type': value['type'],
|
|
87
|
+
'backingDeviceIds': value['backingDeviceIds'],
|
|
88
|
+
'filesystemType': value['filesystemType'],
|
|
89
|
+
'filesystemMajorVersion': value['filesystemMajorVersion'],
|
|
84
90
|
'storageProtocol': value['storageProtocol'],
|
|
85
91
|
'vsanSnapshotSupport': value['vsanSnapshotSupport'],
|
|
86
92
|
'totalCapacityGB': value['totalCapacityGB'],
|
|
@@ -35,9 +35,13 @@ export interface Inventory1 {
|
|
|
35
35
|
*/
|
|
36
36
|
vcenter?: InventoryData;
|
|
37
37
|
/**
|
|
38
|
-
* Timestamp when the inventory
|
|
38
|
+
* Timestamp when the inventory document was built
|
|
39
39
|
*/
|
|
40
40
|
created_at?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
*/
|
|
44
|
+
collection_time?: Date | null;
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
47
|
* Check if a given object implements the Inventory1 interface.
|
|
@@ -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;
|