@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-347af06813e6
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 +26 -0
- package/dist/esm/models/Host.js +14 -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/esm/runtime.js +4 -3
- 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 +26 -0
- package/dist/models/Host.js +14 -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/dist/runtime.js +4 -3
- 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 +12 -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 +51 -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/src/runtime.ts +3 -3
- 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
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
3
|
export * from './AgentStatusConsoleConnection.js';
|
|
4
|
+
export * from './Appliance.js';
|
|
5
|
+
export * from './ApplianceListResponse.js';
|
|
4
6
|
export * from './ApplicationListResponse.js';
|
|
5
7
|
export * from './ApplicationOverview.js';
|
|
6
8
|
export * from './ApplicationVM.js';
|
|
@@ -10,6 +12,7 @@ export * from './CapabilityStatus.js';
|
|
|
10
12
|
export * from './CapabilityStatusCapabilities.js';
|
|
11
13
|
export * from './ClusterFeatures.js';
|
|
12
14
|
export * from './ClusterUtilization.js';
|
|
15
|
+
export * from './CollectedInventory.js';
|
|
13
16
|
export * from './Collection.js';
|
|
14
17
|
export * from './CollectionAggregate.js';
|
|
15
18
|
export * from './CollectionComparisonDiff.js';
|
|
@@ -37,11 +40,13 @@ export * from './GroupResponse.js';
|
|
|
37
40
|
export * from './GuestNetwork.js';
|
|
38
41
|
export * from './Histogram.js';
|
|
39
42
|
export * from './Host.js';
|
|
43
|
+
export * from './HostPhysicalNIC.js';
|
|
44
|
+
export * from './HostStorageAdapter.js';
|
|
45
|
+
export * from './HostStorageLun.js';
|
|
40
46
|
export * from './Infra.js';
|
|
41
47
|
export * from './InspectionStatus.js';
|
|
42
48
|
export * from './InspectorStatus.js';
|
|
43
49
|
export * from './Inventory.js';
|
|
44
|
-
export * from './Inventory1.js';
|
|
45
50
|
export * from './InventoryData.js';
|
|
46
51
|
export * from './IssuesBreakdown.js';
|
|
47
52
|
export * from './MigrationIssue.js';
|
|
@@ -51,6 +56,7 @@ export * from './OsInfo.js';
|
|
|
51
56
|
export * from './PairCapability.js';
|
|
52
57
|
export * from './PairCapabilityRequest.js';
|
|
53
58
|
export * from './Process.js';
|
|
59
|
+
export * from './Product.js';
|
|
54
60
|
export * from './RDMBacking.js';
|
|
55
61
|
export * from './RightsizingClusterResponse.js';
|
|
56
62
|
export * from './RightsizingClusterUtilization.js';
|
|
@@ -74,6 +80,7 @@ export * from './VirtualMachineDatastore.js';
|
|
|
74
80
|
export * from './VirtualMachineDetail.js';
|
|
75
81
|
export * from './VirtualMachineDevice.js';
|
|
76
82
|
export * from './VirtualMachineDisk.js';
|
|
83
|
+
export * from './VirtualMachineIdentity.js';
|
|
77
84
|
export * from './VirtualMachineInspectionConcern.js';
|
|
78
85
|
export * from './VirtualMachineInspectionResults.js';
|
|
79
86
|
export * from './VirtualMachineIssue.js';
|
package/dist/models/index.js
CHANGED
|
@@ -19,6 +19,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
21
|
__exportStar(require("./AgentStatusConsoleConnection.js"), exports);
|
|
22
|
+
__exportStar(require("./Appliance.js"), exports);
|
|
23
|
+
__exportStar(require("./ApplianceListResponse.js"), exports);
|
|
22
24
|
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
23
25
|
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
24
26
|
__exportStar(require("./ApplicationVM.js"), exports);
|
|
@@ -28,6 +30,7 @@ __exportStar(require("./CapabilityStatus.js"), exports);
|
|
|
28
30
|
__exportStar(require("./CapabilityStatusCapabilities.js"), exports);
|
|
29
31
|
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
30
32
|
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
33
|
+
__exportStar(require("./CollectedInventory.js"), exports);
|
|
31
34
|
__exportStar(require("./Collection.js"), exports);
|
|
32
35
|
__exportStar(require("./CollectionAggregate.js"), exports);
|
|
33
36
|
__exportStar(require("./CollectionComparisonDiff.js"), exports);
|
|
@@ -55,11 +58,13 @@ __exportStar(require("./GroupResponse.js"), exports);
|
|
|
55
58
|
__exportStar(require("./GuestNetwork.js"), exports);
|
|
56
59
|
__exportStar(require("./Histogram.js"), exports);
|
|
57
60
|
__exportStar(require("./Host.js"), exports);
|
|
61
|
+
__exportStar(require("./HostPhysicalNIC.js"), exports);
|
|
62
|
+
__exportStar(require("./HostStorageAdapter.js"), exports);
|
|
63
|
+
__exportStar(require("./HostStorageLun.js"), exports);
|
|
58
64
|
__exportStar(require("./Infra.js"), exports);
|
|
59
65
|
__exportStar(require("./InspectionStatus.js"), exports);
|
|
60
66
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
61
67
|
__exportStar(require("./Inventory.js"), exports);
|
|
62
|
-
__exportStar(require("./Inventory1.js"), exports);
|
|
63
68
|
__exportStar(require("./InventoryData.js"), exports);
|
|
64
69
|
__exportStar(require("./IssuesBreakdown.js"), exports);
|
|
65
70
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
@@ -69,6 +74,7 @@ __exportStar(require("./OsInfo.js"), exports);
|
|
|
69
74
|
__exportStar(require("./PairCapability.js"), exports);
|
|
70
75
|
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
71
76
|
__exportStar(require("./Process.js"), exports);
|
|
77
|
+
__exportStar(require("./Product.js"), exports);
|
|
72
78
|
__exportStar(require("./RDMBacking.js"), exports);
|
|
73
79
|
__exportStar(require("./RightsizingClusterResponse.js"), exports);
|
|
74
80
|
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
@@ -92,6 +98,7 @@ __exportStar(require("./VirtualMachineDatastore.js"), exports);
|
|
|
92
98
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
93
99
|
__exportStar(require("./VirtualMachineDevice.js"), exports);
|
|
94
100
|
__exportStar(require("./VirtualMachineDisk.js"), exports);
|
|
101
|
+
__exportStar(require("./VirtualMachineIdentity.js"), exports);
|
|
95
102
|
__exportStar(require("./VirtualMachineInspectionConcern.js"), exports);
|
|
96
103
|
__exportStar(require("./VirtualMachineInspectionResults.js"), exports);
|
|
97
104
|
__exportStar(require("./VirtualMachineIssue.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
|
|
|
440
440
|
function decodeExtValue(value) {
|
|
441
441
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
442
442
|
try {
|
|
443
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
443
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
444
444
|
}
|
|
445
445
|
catch (_a) {
|
|
446
446
|
return undefined;
|
|
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
|
|
|
452
452
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
453
453
|
*/
|
|
454
454
|
function parseHeaderParameters(value) {
|
|
455
|
+
var _a, _b;
|
|
455
456
|
const params = new Map();
|
|
456
457
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
457
458
|
let match;
|
|
458
459
|
while ((match = parameter.exec(value)) !== null) {
|
|
459
|
-
const name = match[1].toLowerCase();
|
|
460
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
460
461
|
if (!params.has(name)) {
|
|
461
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
462
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
return params;
|
|
@@ -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
|
@@ -9,11 +9,17 @@ Name | Type
|
|
|
9
9
|
`id` | string
|
|
10
10
|
`vendor` | string
|
|
11
11
|
`model` | string
|
|
12
|
+
`datacenter` | string
|
|
13
|
+
`cluster` | string
|
|
14
|
+
`cpuModel` | string
|
|
15
|
+
`serialNumber` | string
|
|
12
16
|
`cpuCores` | number
|
|
13
17
|
`cpuSockets` | number
|
|
14
18
|
`memoryMB` | number
|
|
15
19
|
`vmotionSupported` | boolean
|
|
16
20
|
`storageVmotionSupported` | boolean
|
|
21
|
+
`storageAdapters` | [Array<HostStorageAdapter>](HostStorageAdapter.md)
|
|
22
|
+
`storageLuns` | [Array<HostStorageLun>](HostStorageLun.md)
|
|
17
23
|
|
|
18
24
|
## Example
|
|
19
25
|
|
|
@@ -25,11 +31,17 @@ const example = {
|
|
|
25
31
|
"id": null,
|
|
26
32
|
"vendor": null,
|
|
27
33
|
"model": null,
|
|
34
|
+
"datacenter": null,
|
|
35
|
+
"cluster": null,
|
|
36
|
+
"cpuModel": null,
|
|
37
|
+
"serialNumber": null,
|
|
28
38
|
"cpuCores": null,
|
|
29
39
|
"cpuSockets": null,
|
|
30
40
|
"memoryMB": null,
|
|
31
41
|
"vmotionSupported": null,
|
|
32
42
|
"storageVmotionSupported": null,
|
|
43
|
+
"storageAdapters": null,
|
|
44
|
+
"storageLuns": null,
|
|
33
45
|
} satisfies Host
|
|
34
46
|
|
|
35
47
|
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
|
+
|