@openshift-migration-advisor/agent-sdk 0.30.0 → 0.31.0-91c2f03b4968
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 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +10 -4
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/CollectedInventory.d.ts +31 -0
- package/dist/esm/models/CollectedInventory.js +44 -0
- package/dist/esm/models/Datastore.d.ts +14 -2
- package/dist/esm/models/Datastore.js +6 -0
- package/dist/esm/models/GroupResponse.d.ts +2 -2
- package/dist/esm/models/GroupResponse.js +3 -3
- package/dist/esm/models/Host.d.ts +10 -0
- package/dist/esm/models/Host.js +6 -0
- package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/esm/models/HostPhysicalNIC.js +45 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Inventory.d.ts +24 -2
- package/dist/esm/models/Inventory.js +17 -4
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +30 -0
- package/dist/esm/models/RDMBacking.js +41 -0
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDatastore.d.ts +66 -0
- package/dist/esm/models/VirtualMachineDatastore.js +59 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +18 -0
- package/dist/esm/models/VirtualMachineDetail.js +12 -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 +16 -0
- package/dist/esm/models/VirtualMachineNIC.js +8 -0
- package/dist/esm/models/index.d.ts +7 -1
- package/dist/esm/models/index.js +7 -1
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/Datastore.d.ts +14 -2
- package/dist/models/Datastore.js +6 -0
- package/dist/models/GroupResponse.d.ts +2 -2
- package/dist/models/GroupResponse.js +3 -3
- package/dist/models/Host.d.ts +10 -0
- package/dist/models/Host.js +6 -0
- package/dist/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/models/HostPhysicalNIC.js +52 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Inventory.d.ts +24 -2
- package/dist/models/Inventory.js +17 -4
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +30 -0
- package/dist/models/RDMBacking.js +48 -0
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDatastore.d.ts +66 -0
- package/dist/models/VirtualMachineDatastore.js +66 -0
- package/dist/models/VirtualMachineDetail.d.ts +18 -0
- package/dist/models/VirtualMachineDetail.js +12 -0
- package/dist/models/VirtualMachineDisk.d.ts +10 -0
- package/dist/models/VirtualMachineDisk.js +6 -0
- package/dist/models/VirtualMachineNIC.d.ts +16 -0
- package/dist/models/VirtualMachineNIC.js +8 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/Datastore.md +6 -0
- package/docs/GroupResponse.md +1 -1
- package/docs/Host.md +4 -0
- package/docs/HostPhysicalNIC.md +36 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/InventoriesApi.md +4 -4
- package/docs/Inventory.md +12 -2
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/{Inventory1.md → RDMBacking.md} +7 -14
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDatastore.md +53 -0
- package/docs/VirtualMachineDetail.md +8 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineNIC.md +8 -0
- package/package.json +1 -1
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/Datastore.ts +20 -2
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +27 -0
- package/src/models/HostPhysicalNIC.ts +70 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +42 -11
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +63 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDatastore.ts +117 -0
- package/src/models/VirtualMachineDetail.ts +39 -0
- package/src/models/VirtualMachineDisk.ts +27 -0
- package/src/models/VirtualMachineNIC.ts +24 -0
- package/src/models/index.ts +7 -1
- package/dist/esm/models/Inventory1.d.ts +0 -49
- package/dist/esm/models/Inventory1.js +0 -55
- package/dist/models/Inventory1.d.ts +0 -49
- package/dist/models/Inventory1.js +0 -62
- package/src/models/Inventory1.ts +0 -97
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CollectedInventory
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`inventory` | [UpdateInventory](UpdateInventory.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CollectedInventory } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"inventory": null,
|
|
19
|
+
} satisfies CollectedInventory
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CollectedInventory
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
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/GroupResponse.md
CHANGED
package/docs/Host.md
CHANGED
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`memoryMB` | number
|
|
15
15
|
`vmotionSupported` | boolean
|
|
16
16
|
`storageVmotionSupported` | boolean
|
|
17
|
+
`storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
|
|
18
|
+
`storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
|
|
17
19
|
|
|
18
20
|
## Example
|
|
19
21
|
|
|
@@ -30,6 +32,8 @@ const example = {
|
|
|
30
32
|
"memoryMB": null,
|
|
31
33
|
"vmotionSupported": null,
|
|
32
34
|
"storageVmotionSupported": null,
|
|
35
|
+
"storageAdapters": null,
|
|
36
|
+
"storageLuns": null,
|
|
33
37
|
} satisfies Host
|
|
34
38
|
|
|
35
39
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# HostPhysicalNIC
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`linkSpeedMbps` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { HostPhysicalNIC } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"linkSpeedMbps": null,
|
|
21
|
+
} satisfies HostPhysicalNIC
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostPhysicalNIC
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
# HostStorageAdapter
|
|
3
|
+
|
|
4
|
+
Source-provided adapter facts. Missing or conflicting values are omitted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`device` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`protocol` | string
|
|
14
|
+
`model` | string
|
|
15
|
+
`driver` | string
|
|
16
|
+
`nodeWwn` | string
|
|
17
|
+
`portWwn` | string
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { HostStorageAdapter } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"device": null,
|
|
27
|
+
"key": null,
|
|
28
|
+
"type": null,
|
|
29
|
+
"protocol": null,
|
|
30
|
+
"model": null,
|
|
31
|
+
"driver": null,
|
|
32
|
+
"nodeWwn": null,
|
|
33
|
+
"portWwn": null,
|
|
34
|
+
} satisfies HostStorageAdapter
|
|
35
|
+
|
|
36
|
+
console.log(example)
|
|
37
|
+
|
|
38
|
+
// Convert the instance to a JSON string
|
|
39
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
40
|
+
console.log(exampleJSON)
|
|
41
|
+
|
|
42
|
+
// Parse the JSON string back to an object
|
|
43
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostStorageAdapter
|
|
44
|
+
console.log(exampleParsed)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
48
|
+
|
|
49
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
# HostStorageLun
|
|
3
|
+
|
|
4
|
+
A host-visible LUN; missing or conflicting identity/metadata fields are omitted.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`canonicalName` | string
|
|
11
|
+
`key` | string
|
|
12
|
+
`lunUuid` | string
|
|
13
|
+
`vendor` | string
|
|
14
|
+
`model` | string
|
|
15
|
+
`adapterDevices` | Array<string>
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { HostStorageLun } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"canonicalName": null,
|
|
25
|
+
"key": null,
|
|
26
|
+
"lunUuid": null,
|
|
27
|
+
"vendor": null,
|
|
28
|
+
"model": null,
|
|
29
|
+
"adapterDevices": null,
|
|
30
|
+
} satisfies HostStorageLun
|
|
31
|
+
|
|
32
|
+
console.log(example)
|
|
33
|
+
|
|
34
|
+
// Convert the instance to a JSON string
|
|
35
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
36
|
+
console.log(exampleJSON)
|
|
37
|
+
|
|
38
|
+
// Parse the JSON string back to an object
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as HostStorageLun
|
|
40
|
+
console.log(exampleParsed)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
44
|
+
|
|
45
|
+
|
package/docs/InventoriesApi.md
CHANGED
|
@@ -11,7 +11,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
11
11
|
|
|
12
12
|
## getInventory
|
|
13
13
|
|
|
14
|
-
>
|
|
14
|
+
> CollectedInventory getInventory(id)
|
|
15
15
|
|
|
16
16
|
Get collected inventory for a collection
|
|
17
17
|
|
|
@@ -54,7 +54,7 @@ example().catch(console.error);
|
|
|
54
54
|
|
|
55
55
|
### Return type
|
|
56
56
|
|
|
57
|
-
[**
|
|
57
|
+
[**CollectedInventory**](CollectedInventory.md)
|
|
58
58
|
|
|
59
59
|
### Authorization
|
|
60
60
|
|
|
@@ -78,7 +78,7 @@ No authorization required
|
|
|
78
78
|
|
|
79
79
|
## getLatestInventory
|
|
80
80
|
|
|
81
|
-
>
|
|
81
|
+
> CollectedInventory getLatestInventory(scope)
|
|
82
82
|
|
|
83
83
|
Get inventory from the latest collection
|
|
84
84
|
|
|
@@ -121,7 +121,7 @@ example().catch(console.error);
|
|
|
121
121
|
|
|
122
122
|
### Return type
|
|
123
123
|
|
|
124
|
-
[**
|
|
124
|
+
[**CollectedInventory**](CollectedInventory.md)
|
|
125
125
|
|
|
126
126
|
### Authorization
|
|
127
127
|
|
package/docs/Inventory.md
CHANGED
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
9
|
+
`vcenter_id` | string
|
|
10
|
+
`vcenter_version` | string
|
|
11
|
+
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
12
|
+
`vcenter` | [InventoryData](InventoryData.md)
|
|
13
|
+
`created_at` | Date
|
|
14
|
+
`collection_time` | Date
|
|
10
15
|
|
|
11
16
|
## Example
|
|
12
17
|
|
|
@@ -15,7 +20,12 @@ import type { Inventory } from '@openshift-migration-advisor/agent-sdk'
|
|
|
15
20
|
|
|
16
21
|
// TODO: Update the object below with actual values
|
|
17
22
|
const example = {
|
|
18
|
-
"
|
|
23
|
+
"vcenter_id": null,
|
|
24
|
+
"vcenter_version": null,
|
|
25
|
+
"clusters": null,
|
|
26
|
+
"vcenter": null,
|
|
27
|
+
"created_at": null,
|
|
28
|
+
"collection_time": null,
|
|
19
29
|
} satisfies Inventory
|
|
20
30
|
|
|
21
31
|
console.log(example)
|
package/docs/OsInfo.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`count` | number
|
|
10
10
|
`supported` | boolean
|
|
11
11
|
`supportTier` | string
|
|
12
|
+
`mtvStatus` | string
|
|
12
13
|
`upgradeRecommendation` | string
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const example = {
|
|
|
21
22
|
"count": null,
|
|
22
23
|
"supported": null,
|
|
23
24
|
"supportTier": null,
|
|
25
|
+
"mtvStatus": null,
|
|
24
26
|
"upgradeRecommendation": null,
|
|
25
27
|
} satisfies OsInfo
|
|
26
28
|
|
package/docs/Product.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# Product
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`key` | number
|
|
10
|
+
`classId` | string
|
|
11
|
+
`instanceId` | string
|
|
12
|
+
`name` | string
|
|
13
|
+
`vendor` | string
|
|
14
|
+
`version` | string
|
|
15
|
+
`fullVersion` | string
|
|
16
|
+
`vendorUrl` | string
|
|
17
|
+
`productUrl` | string
|
|
18
|
+
`appUrl` | string
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { Product } from '@openshift-migration-advisor/agent-sdk'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"key": null,
|
|
28
|
+
"classId": null,
|
|
29
|
+
"instanceId": null,
|
|
30
|
+
"name": null,
|
|
31
|
+
"vendor": null,
|
|
32
|
+
"version": null,
|
|
33
|
+
"fullVersion": null,
|
|
34
|
+
"vendorUrl": null,
|
|
35
|
+
"productUrl": null,
|
|
36
|
+
"appUrl": null,
|
|
37
|
+
} satisfies Product
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as Product
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# RDMBacking
|
|
3
3
|
|
|
4
|
+
Source-provided backing identity for an RDM disk; omitted when unavailable
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`vcenter_version` | string
|
|
11
|
-
`clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
|
|
12
|
-
`vcenter` | [InventoryData](InventoryData.md)
|
|
13
|
-
`created_at` | Date
|
|
10
|
+
`lunUuid` | string
|
|
14
11
|
|
|
15
12
|
## Example
|
|
16
13
|
|
|
17
14
|
```typescript
|
|
18
|
-
import type {
|
|
15
|
+
import type { RDMBacking } from '@openshift-migration-advisor/agent-sdk'
|
|
19
16
|
|
|
20
17
|
// TODO: Update the object below with actual values
|
|
21
18
|
const example = {
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"clusters": null,
|
|
25
|
-
"vcenter": null,
|
|
26
|
-
"created_at": null,
|
|
27
|
-
} satisfies Inventory1
|
|
19
|
+
"lunUuid": null,
|
|
20
|
+
} satisfies RDMBacking
|
|
28
21
|
|
|
29
22
|
console.log(example)
|
|
30
23
|
|
|
@@ -33,7 +26,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
33
26
|
console.log(exampleJSON)
|
|
34
27
|
|
|
35
28
|
// Parse the JSON string back to an object
|
|
36
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as RDMBacking
|
|
37
30
|
console.log(exampleParsed)
|
|
38
31
|
```
|
|
39
32
|
|
package/docs/UpdateInventory.md
CHANGED
|
@@ -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
|
+
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | string
|
|
10
10
|
`name` | string
|
|
11
|
+
`annotation` | string
|
|
11
12
|
`vCenterID` | string
|
|
12
13
|
`uuid` | string
|
|
13
14
|
`firmware` | string
|
|
@@ -37,6 +38,8 @@ Name | Type
|
|
|
37
38
|
`toolsStatus` | string
|
|
38
39
|
`toolsRunningStatus` | string
|
|
39
40
|
`disks` | [Array<VirtualMachineDisk>](VirtualMachineDisk.md)
|
|
41
|
+
`hostPhysicalNics` | [Array<HostPhysicalNIC>](HostPhysicalNIC.md)
|
|
42
|
+
`nicCount` | number
|
|
40
43
|
`nics` | [Array<VirtualMachineNIC>](VirtualMachineNIC.md)
|
|
41
44
|
`devices` | [Array<VirtualMachineDevice>](VirtualMachineDevice.md)
|
|
42
45
|
`guestNetworks` | [Array<GuestNetwork>](GuestNetwork.md)
|
|
@@ -44,6 +47,7 @@ Name | Type
|
|
|
44
47
|
`inspection` | [VirtualMachineInspectionResults](VirtualMachineInspectionResults.md)
|
|
45
48
|
`utilization` | [VmUtilizationDetails](VmUtilizationDetails.md)
|
|
46
49
|
`processes` | [Array<Process>](Process.md)
|
|
50
|
+
`products` | [Array<Product>](Product.md)
|
|
47
51
|
|
|
48
52
|
## Example
|
|
49
53
|
|
|
@@ -54,6 +58,7 @@ import type { VirtualMachineDetail } from '@openshift-migration-advisor/agent-sd
|
|
|
54
58
|
const example = {
|
|
55
59
|
"id": null,
|
|
56
60
|
"name": null,
|
|
61
|
+
"annotation": null,
|
|
57
62
|
"vCenterID": null,
|
|
58
63
|
"uuid": null,
|
|
59
64
|
"firmware": null,
|
|
@@ -83,6 +88,8 @@ const example = {
|
|
|
83
88
|
"toolsStatus": null,
|
|
84
89
|
"toolsRunningStatus": null,
|
|
85
90
|
"disks": null,
|
|
91
|
+
"hostPhysicalNics": null,
|
|
92
|
+
"nicCount": null,
|
|
86
93
|
"nics": null,
|
|
87
94
|
"devices": null,
|
|
88
95
|
"guestNetworks": null,
|
|
@@ -90,6 +97,7 @@ const example = {
|
|
|
90
97
|
"inspection": null,
|
|
91
98
|
"utilization": null,
|
|
92
99
|
"processes": null,
|
|
100
|
+
"products": null,
|
|
93
101
|
} satisfies VirtualMachineDetail
|
|
94
102
|
|
|
95
103
|
console.log(example)
|
|
@@ -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,10 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`adapter` | string
|
|
10
|
+
`vlanId` | string
|
|
11
|
+
`ipv4Addresses` | Array<string>
|
|
12
|
+
`ipv6Addresses` | Array<string>
|
|
9
13
|
`mac` | string
|
|
10
14
|
`network` | string
|
|
11
15
|
`index` | number
|
|
@@ -17,6 +21,10 @@ import type { VirtualMachineNIC } from '@openshift-migration-advisor/agent-sdk'
|
|
|
17
21
|
|
|
18
22
|
// TODO: Update the object below with actual values
|
|
19
23
|
const example = {
|
|
24
|
+
"adapter": null,
|
|
25
|
+
"vlanId": null,
|
|
26
|
+
"ipv4Addresses": null,
|
|
27
|
+
"ipv6Addresses": null,
|
|
20
28
|
"mac": null,
|
|
21
29
|
"network": null,
|
|
22
30
|
"index": null,
|
package/package.json
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
import * as runtime from '../runtime.js';
|
|
16
16
|
import {
|
|
17
|
-
type
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from '../models/
|
|
17
|
+
type CollectedInventory,
|
|
18
|
+
CollectedInventoryFromJSON,
|
|
19
|
+
CollectedInventoryToJSON,
|
|
20
|
+
} from '../models/CollectedInventory.js';
|
|
21
21
|
|
|
22
22
|
export interface GetInventoryRequest {
|
|
23
23
|
/**
|
|
@@ -56,12 +56,12 @@ export interface InventoriesApiInterface {
|
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
* @memberof InventoriesApiInterface
|
|
58
58
|
*/
|
|
59
|
-
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
59
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Get collected inventory for a collection
|
|
63
63
|
*/
|
|
64
|
-
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
64
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Creates request options for getLatestInventory without sending the request
|
|
@@ -79,12 +79,12 @@ export interface InventoriesApiInterface {
|
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
* @memberof InventoriesApiInterface
|
|
81
81
|
*/
|
|
82
|
-
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
82
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Get inventory from the latest collection
|
|
86
86
|
*/
|
|
87
|
-
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
87
|
+
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
88
88
|
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -123,17 +123,17 @@ export class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInt
|
|
|
123
123
|
/**
|
|
124
124
|
* Get collected inventory for a collection
|
|
125
125
|
*/
|
|
126
|
-
async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
126
|
+
async getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>> {
|
|
127
127
|
const requestOptions = await this.getInventoryRequestOpts(requestParameters);
|
|
128
128
|
const response = await this.request(requestOptions, initOverrides);
|
|
129
129
|
|
|
130
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Get collected inventory for a collection
|
|
135
135
|
*/
|
|
136
|
-
async getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
136
|
+
async getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory> {
|
|
137
137
|
const response = await this.getInventoryRaw(requestParameters, initOverrides);
|
|
138
138
|
return await response.value();
|
|
139
139
|
}
|
|
@@ -164,17 +164,17 @@ export class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInt
|
|
|
164
164
|
/**
|
|
165
165
|
* Get inventory from the latest collection
|
|
166
166
|
*/
|
|
167
|
-
async getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
167
|
+
async getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>> {
|
|
168
168
|
const requestOptions = await this.getLatestInventoryRequestOpts(requestParameters);
|
|
169
169
|
const response = await this.request(requestOptions, initOverrides);
|
|
170
170
|
|
|
171
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CollectedInventoryFromJSON(jsonValue));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* Get inventory from the latest collection
|
|
176
176
|
*/
|
|
177
|
-
async getLatestInventory(requestParameters: GetLatestInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
177
|
+
async getLatestInventory(requestParameters: GetLatestInventoryRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory> {
|
|
178
178
|
const response = await this.getLatestInventoryRaw(requestParameters, initOverrides);
|
|
179
179
|
return await response.value();
|
|
180
180
|
}
|