@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-b4969275f1eb
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 +18 -2
- package/README.md +12 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- 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/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/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +8 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/esm/models/VirtualMachineNIC.js +6 -0
- package/dist/esm/models/index.d.ts +8 -1
- package/dist/esm/models/index.js +8 -1
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- 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/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/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/models/VirtualMachineDetail.js +8 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/docs/{Inventory1.md → Appliance.md} +16 -16
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +68 -0
- 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/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachineNIC.md +6 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/apis/index.ts +1 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/CollectedInventory.ts +72 -0
- 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/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +8 -1
- package/dist/esm/models/Inventory1.d.ts +0 -53
- package/dist/esm/models/Inventory1.js +0 -57
- package/dist/models/Inventory1.d.ts +0 -53
- package/dist/models/Inventory1.js +0 -64
- package/src/models/Inventory1.ts +0 -103
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# Appliance
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`
|
|
14
|
-
`
|
|
9
|
+
`name` | string
|
|
10
|
+
`vendor` | string
|
|
11
|
+
`version` | string
|
|
12
|
+
`confidence` | number
|
|
13
|
+
`vmCount` | number
|
|
14
|
+
`vms` | [Array<VirtualMachineIdentity>](VirtualMachineIdentity.md)
|
|
15
15
|
|
|
16
16
|
## Example
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import type {
|
|
19
|
+
import type { Appliance } from '@openshift-migration-advisor/agent-sdk'
|
|
20
20
|
|
|
21
21
|
// TODO: Update the object below with actual values
|
|
22
22
|
const example = {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
} satisfies
|
|
23
|
+
"name": null,
|
|
24
|
+
"vendor": null,
|
|
25
|
+
"version": null,
|
|
26
|
+
"confidence": null,
|
|
27
|
+
"vmCount": null,
|
|
28
|
+
"vms": null,
|
|
29
|
+
} satisfies Appliance
|
|
30
30
|
|
|
31
31
|
console.log(example)
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
35
35
|
console.log(exampleJSON)
|
|
36
36
|
|
|
37
37
|
// Parse the JSON string back to an object
|
|
38
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as Appliance
|
|
39
39
|
console.log(exampleParsed)
|
|
40
40
|
```
|
|
41
41
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`appliances` | [Array<Appliance>](Appliance.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApplianceListResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"appliances": null,
|
|
19
|
+
} satisfies ApplianceListResponse
|
|
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 ApplianceListResponse
|
|
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
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# AppliancesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**listAppliances**](AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## listAppliances
|
|
12
|
+
|
|
13
|
+
> ApplianceListResponse listAppliances(id)
|
|
14
|
+
|
|
15
|
+
List detected appliances in a collection
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
AppliancesApi,
|
|
23
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
24
|
+
import type { ListAppliancesRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
28
|
+
const api = new AppliancesApi();
|
|
29
|
+
|
|
30
|
+
const body = {
|
|
31
|
+
// string | Collection ID
|
|
32
|
+
id: id_example,
|
|
33
|
+
} satisfies ListAppliancesRequest;
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
const data = await api.listAppliances(body);
|
|
37
|
+
console.log(data);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error(error);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Run the test
|
|
44
|
+
example().catch(console.error);
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
| Name | Type | Description | Notes |
|
|
51
|
+
|------------- | ------------- | ------------- | -------------|
|
|
52
|
+
| **id** | `string` | Collection ID | [Defaults to `undefined`] |
|
|
53
|
+
|
|
54
|
+
### Return type
|
|
55
|
+
|
|
56
|
+
[**ApplianceListResponse**](ApplianceListResponse.md)
|
|
57
|
+
|
|
58
|
+
### Authorization
|
|
59
|
+
|
|
60
|
+
No authorization required
|
|
61
|
+
|
|
62
|
+
### HTTP request headers
|
|
63
|
+
|
|
64
|
+
- **Content-Type**: Not defined
|
|
65
|
+
- **Accept**: `application/json`
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### HTTP response details
|
|
69
|
+
| Status code | Description | Response headers |
|
|
70
|
+
|-------------|-------------|------------------|
|
|
71
|
+
| **200** | List of detected appliances | - |
|
|
72
|
+
| **404** | Collection not found | - |
|
|
73
|
+
| **500** | Internal server error | - |
|
|
74
|
+
|
|
75
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
|
+
|
|
@@ -8,6 +8,10 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
|
+
`vendor` | string
|
|
12
|
+
`category` | string
|
|
13
|
+
`confidence` | number
|
|
14
|
+
`containerizationCandidate` | boolean
|
|
11
15
|
`vmCount` | number
|
|
12
16
|
`vms` | [Array<ApplicationVM>](ApplicationVM.md)
|
|
13
17
|
|
|
@@ -20,6 +24,10 @@ import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk
|
|
|
20
24
|
const example = {
|
|
21
25
|
"name": null,
|
|
22
26
|
"description": null,
|
|
27
|
+
"vendor": null,
|
|
28
|
+
"category": null,
|
|
29
|
+
"confidence": null,
|
|
30
|
+
"containerizationCandidate": null,
|
|
23
31
|
"vmCount": null,
|
|
24
32
|
"vms": null,
|
|
25
33
|
} satisfies ApplicationOverview
|
|
@@ -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/CollectorApi.md
CHANGED
|
@@ -6,7 +6,6 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**getCollectorStatus**](CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
|
|
8
8
|
| [**startCollector**](CollectorApi.md#startcollector) | **POST** /collector | Start a collection |
|
|
9
|
-
| [**startRvtoolsCollector**](CollectorApi.md#startrvtoolscollector) | **POST** /collector/rvtools | Start a collection from RVTools files |
|
|
10
9
|
| [**stopCollector**](CollectorApi.md#stopcollector) | **DELETE** /collector | Stop collector |
|
|
11
10
|
|
|
12
11
|
|
|
@@ -129,75 +128,6 @@ No authorization required
|
|
|
129
128
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
130
129
|
|
|
131
130
|
|
|
132
|
-
## startRvtoolsCollector
|
|
133
|
-
|
|
134
|
-
> CollectorStatus startRvtoolsCollector(files)
|
|
135
|
-
|
|
136
|
-
Start a collection from RVTools files
|
|
137
|
-
|
|
138
|
-
### Example
|
|
139
|
-
|
|
140
|
-
```ts
|
|
141
|
-
import {
|
|
142
|
-
Configuration,
|
|
143
|
-
CollectorApi,
|
|
144
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
145
|
-
import type { StartRvtoolsCollectorRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
146
|
-
|
|
147
|
-
async function example() {
|
|
148
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
149
|
-
const api = new CollectorApi();
|
|
150
|
-
|
|
151
|
-
const body = {
|
|
152
|
-
// Array<Blob>
|
|
153
|
-
files: [new Blob(['example file content'], { type: 'application/octet-stream' })],
|
|
154
|
-
} satisfies StartRvtoolsCollectorRequest;
|
|
155
|
-
|
|
156
|
-
try {
|
|
157
|
-
const data = await api.startRvtoolsCollector(body);
|
|
158
|
-
console.log(data);
|
|
159
|
-
} catch (error) {
|
|
160
|
-
console.error(error);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// Run the test
|
|
165
|
-
example().catch(console.error);
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Parameters
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
| Name | Type | Description | Notes |
|
|
172
|
-
|------------- | ------------- | ------------- | -------------|
|
|
173
|
-
| **files** | `Array<Blob>` | | |
|
|
174
|
-
|
|
175
|
-
### Return type
|
|
176
|
-
|
|
177
|
-
[**CollectorStatus**](CollectorStatus.md)
|
|
178
|
-
|
|
179
|
-
### Authorization
|
|
180
|
-
|
|
181
|
-
No authorization required
|
|
182
|
-
|
|
183
|
-
### HTTP request headers
|
|
184
|
-
|
|
185
|
-
- **Content-Type**: `multipart/form-data`
|
|
186
|
-
- **Accept**: `application/json`
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
### HTTP response details
|
|
190
|
-
| Status code | Description | Response headers |
|
|
191
|
-
|-------------|-------------|------------------|
|
|
192
|
-
| **202** | Collection started | - |
|
|
193
|
-
| **400** | No files provided | - |
|
|
194
|
-
| **409** | Collection already in progress | - |
|
|
195
|
-
| **500** | Internal server error | - |
|
|
196
|
-
| **501** | RVTools mode is not enabled | - |
|
|
197
|
-
|
|
198
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
199
|
-
|
|
200
|
-
|
|
201
131
|
## stopCollector
|
|
202
132
|
|
|
203
133
|
> stopCollector()
|
package/docs/GroupResponse.md
CHANGED
package/docs/GroupsApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
8
8
|
| [**deleteLatestGroup**](GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection |
|
|
9
9
|
| [**getGroup**](GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines |
|
|
10
10
|
| [**getLatestGroup**](GroupsApi.md#getlatestgroup) | **GET** /groups/{groupId} | Get group by ID from the latest collection |
|
|
11
|
+
| [**listGroupAppliances**](GroupsApi.md#listgroupappliances) | **GET** /groups/{groupId}/appliances | List detected appliances for a group |
|
|
11
12
|
| [**listGroupApplications**](GroupsApi.md#listgroupapplications) | **GET** /groups/{groupId}/applications | List detected applications for a group |
|
|
12
13
|
| [**listGroups**](GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection |
|
|
13
14
|
| [**listLatestGroups**](GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection |
|
|
@@ -305,6 +306,73 @@ No authorization required
|
|
|
305
306
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
306
307
|
|
|
307
308
|
|
|
309
|
+
## listGroupAppliances
|
|
310
|
+
|
|
311
|
+
> ApplianceListResponse listGroupAppliances(groupId)
|
|
312
|
+
|
|
313
|
+
List detected appliances for a group
|
|
314
|
+
|
|
315
|
+
### Example
|
|
316
|
+
|
|
317
|
+
```ts
|
|
318
|
+
import {
|
|
319
|
+
Configuration,
|
|
320
|
+
GroupsApi,
|
|
321
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
322
|
+
import type { ListGroupAppliancesRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
323
|
+
|
|
324
|
+
async function example() {
|
|
325
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
326
|
+
const api = new GroupsApi();
|
|
327
|
+
|
|
328
|
+
const body = {
|
|
329
|
+
// string | Group ID
|
|
330
|
+
groupId: groupId_example,
|
|
331
|
+
} satisfies ListGroupAppliancesRequest;
|
|
332
|
+
|
|
333
|
+
try {
|
|
334
|
+
const data = await api.listGroupAppliances(body);
|
|
335
|
+
console.log(data);
|
|
336
|
+
} catch (error) {
|
|
337
|
+
console.error(error);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Run the test
|
|
342
|
+
example().catch(console.error);
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Parameters
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
| Name | Type | Description | Notes |
|
|
349
|
+
|------------- | ------------- | ------------- | -------------|
|
|
350
|
+
| **groupId** | `string` | Group ID | [Defaults to `undefined`] |
|
|
351
|
+
|
|
352
|
+
### Return type
|
|
353
|
+
|
|
354
|
+
[**ApplianceListResponse**](ApplianceListResponse.md)
|
|
355
|
+
|
|
356
|
+
### Authorization
|
|
357
|
+
|
|
358
|
+
No authorization required
|
|
359
|
+
|
|
360
|
+
### HTTP request headers
|
|
361
|
+
|
|
362
|
+
- **Content-Type**: Not defined
|
|
363
|
+
- **Accept**: `application/json`
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
### HTTP response details
|
|
367
|
+
| Status code | Description | Response headers |
|
|
368
|
+
|-------------|-------------|------------------|
|
|
369
|
+
| **200** | List of detected appliances | - |
|
|
370
|
+
| **404** | No collections or group not found | - |
|
|
371
|
+
| **500** | Internal server error | - |
|
|
372
|
+
|
|
373
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
374
|
+
|
|
375
|
+
|
|
308
376
|
## listGroupApplications
|
|
309
377
|
|
|
310
378
|
> ApplicationListResponse listGroupApplications(groupId)
|
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
|
+
|