@openshift-migration-advisor/agent-sdk 0.8.0-0a190192e598 → 0.8.0-a3f90da0e31d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +15 -14
- package/dist/apis/DefaultApi.d.ts +16 -51
- package/dist/apis/DefaultApi.js +18 -58
- package/dist/esm/apis/DefaultApi.d.ts +16 -51
- package/dist/esm/apis/DefaultApi.js +18 -58
- package/dist/esm/models/InspectorStatus.d.ts +0 -1
- package/dist/esm/models/InspectorStatus.js +0 -1
- package/dist/esm/models/VMs.d.ts +9 -0
- package/dist/esm/models/VMs.js +2 -0
- package/dist/esm/models/VirtualMachine.d.ts +7 -1
- package/dist/esm/models/VirtualMachine.js +4 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +0 -1
- package/dist/models/InspectorStatus.js +0 -1
- package/dist/models/VMs.d.ts +9 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/VirtualMachine.d.ts +7 -1
- package/dist/models/VirtualMachine.js +4 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +22 -89
- package/docs/VMs.md +2 -0
- package/docs/VirtualMachine.md +4 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +29 -103
- package/src/models/InspectorStatus.ts +0 -1
- package/src/models/VMs.ts +9 -0
- package/src/models/VirtualMachine.ts +11 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { VmInspectionConcern } from './VmInspectionConcern.js';
|
|
13
|
+
/**
|
|
14
|
+
* VirtualMachine Inspection results
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VmInspectionResults
|
|
17
|
+
*/
|
|
18
|
+
export interface VmInspectionResults {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<VmInspectionConcern>}
|
|
22
|
+
* @memberof VmInspectionResults
|
|
23
|
+
*/
|
|
24
|
+
concerns?: Array<VmInspectionConcern>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the VmInspectionResults interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfVmInspectionResults(value: object): value is VmInspectionResults;
|
|
30
|
+
export declare function VmInspectionResultsFromJSON(json: any): VmInspectionResults;
|
|
31
|
+
export declare function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults;
|
|
32
|
+
export declare function VmInspectionResultsToJSON(json: any): VmInspectionResults;
|
|
33
|
+
export declare function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfVmInspectionResults = instanceOfVmInspectionResults;
|
|
17
|
+
exports.VmInspectionResultsFromJSON = VmInspectionResultsFromJSON;
|
|
18
|
+
exports.VmInspectionResultsFromJSONTyped = VmInspectionResultsFromJSONTyped;
|
|
19
|
+
exports.VmInspectionResultsToJSON = VmInspectionResultsToJSON;
|
|
20
|
+
exports.VmInspectionResultsToJSONTyped = VmInspectionResultsToJSONTyped;
|
|
21
|
+
const VmInspectionConcern_js_1 = require("./VmInspectionConcern.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the VmInspectionResults interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfVmInspectionResults(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function VmInspectionResultsFromJSON(json) {
|
|
29
|
+
return VmInspectionResultsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function VmInspectionResultsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'concerns': json['concerns'] == null ? undefined : (json['concerns'].map(VmInspectionConcern_js_1.VmInspectionConcernFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function VmInspectionResultsToJSON(json) {
|
|
40
|
+
return VmInspectionResultsToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function VmInspectionResultsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'concerns': value['concerns'] == null ? undefined : (value['concerns'].map(VmInspectionConcern_js_1.VmInspectionConcernToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -43,7 +43,6 @@ export declare const VmInspectionStatusStateEnum: {
|
|
|
43
43
|
readonly VmInspectionStatusStateCompleted: "completed";
|
|
44
44
|
readonly VmInspectionStatusStateCanceled: "canceled";
|
|
45
45
|
readonly VmInspectionStatusStateError: "error";
|
|
46
|
-
readonly VmInspectionStatusStateNotFound: "not_found";
|
|
47
46
|
};
|
|
48
47
|
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
49
48
|
/**
|
|
@@ -27,8 +27,7 @@ exports.VmInspectionStatusStateEnum = {
|
|
|
27
27
|
VmInspectionStatusStateRunning: 'running',
|
|
28
28
|
VmInspectionStatusStateCompleted: 'completed',
|
|
29
29
|
VmInspectionStatusStateCanceled: 'canceled',
|
|
30
|
-
VmInspectionStatusStateError: 'error'
|
|
31
|
-
VmInspectionStatusStateNotFound: 'not_found'
|
|
30
|
+
VmInspectionStatusStateError: 'error'
|
|
32
31
|
};
|
|
33
32
|
/**
|
|
34
33
|
* Check if a given object implements the VmInspectionStatus interface.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -36,4 +36,6 @@ export * from './VersionInfo.js';
|
|
|
36
36
|
export * from './VirtualMachine.js';
|
|
37
37
|
export * from './VirtualMachineDetail.js';
|
|
38
38
|
export * from './VirtualMachineListResponse.js';
|
|
39
|
+
export * from './VmInspectionConcern.js';
|
|
40
|
+
export * from './VmInspectionResults.js';
|
|
39
41
|
export * from './VmInspectionStatus.js';
|
package/dist/models/index.js
CHANGED
|
@@ -54,4 +54,6 @@ __exportStar(require("./VersionInfo.js"), exports);
|
|
|
54
54
|
__exportStar(require("./VirtualMachine.js"), exports);
|
|
55
55
|
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
56
56
|
__exportStar(require("./VirtualMachineListResponse.js"), exports);
|
|
57
|
+
__exportStar(require("./VmInspectionConcern.js"), exports);
|
|
58
|
+
__exportStar(require("./VmInspectionResults.js"), exports);
|
|
57
59
|
__exportStar(require("./VmInspectionStatus.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -219,7 +219,7 @@ class BaseAPI {
|
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
exports.BaseAPI = BaseAPI;
|
|
222
|
-
BaseAPI.jsonRegex =
|
|
222
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
223
223
|
;
|
|
224
224
|
function isBlob(value) {
|
|
225
225
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
package/docs/DefaultApi.md
CHANGED
|
@@ -4,36 +4,35 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**
|
|
7
|
+
| [**addVMToInspection**](DefaultApi.md#addvmtoinspection) | **POST** /vms/{id}/inspection | Add VirtualMachine to inspection queue |
|
|
8
8
|
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
|
|
9
9
|
| [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
|
|
10
10
|
| [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
|
|
11
11
|
| [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
|
|
12
12
|
| [**getGroup**](DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs |
|
|
13
|
-
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /
|
|
13
|
+
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status |
|
|
14
14
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
15
15
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
16
|
-
| [**getVMInspectionStatus**](DefaultApi.md#getvminspectionstatus) | **GET** /vms/{id}/inspector | Get inspection status for a specific VirtualMachine |
|
|
17
16
|
| [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
|
|
18
17
|
| [**getVddkStatus**](DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status |
|
|
19
18
|
| [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
|
|
20
19
|
| [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
|
|
21
|
-
| [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/
|
|
20
|
+
| [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue |
|
|
22
21
|
| [**setAgentMode**](DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode |
|
|
23
22
|
| [**startCollector**](DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection |
|
|
24
|
-
| [**startInspection**](DefaultApi.md#startinspection) | **POST** /
|
|
23
|
+
| [**startInspection**](DefaultApi.md#startinspection) | **POST** /inspector | Start inspection for VMs |
|
|
25
24
|
| [**stopCollector**](DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection |
|
|
26
|
-
| [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /
|
|
25
|
+
| [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely |
|
|
27
26
|
| [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group |
|
|
28
27
|
| [**vddkPost**](DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball |
|
|
29
28
|
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
##
|
|
31
|
+
## addVMToInspection
|
|
33
32
|
|
|
34
|
-
>
|
|
33
|
+
> VmInspectionStatus addVMToInspection(id)
|
|
35
34
|
|
|
36
|
-
Add
|
|
35
|
+
Add VirtualMachine to inspection queue
|
|
37
36
|
|
|
38
37
|
### Example
|
|
39
38
|
|
|
@@ -42,19 +41,19 @@ import {
|
|
|
42
41
|
Configuration,
|
|
43
42
|
DefaultApi,
|
|
44
43
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
45
|
-
import type {
|
|
44
|
+
import type { AddVMToInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
46
45
|
|
|
47
46
|
async function example() {
|
|
48
47
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
49
48
|
const api = new DefaultApi();
|
|
50
49
|
|
|
51
50
|
const body = {
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
} satisfies
|
|
51
|
+
// string
|
|
52
|
+
id: id_example,
|
|
53
|
+
} satisfies AddVMToInspectionRequest;
|
|
55
54
|
|
|
56
55
|
try {
|
|
57
|
-
const data = await api.
|
|
56
|
+
const data = await api.addVMToInspection(body);
|
|
58
57
|
console.log(data);
|
|
59
58
|
} catch (error) {
|
|
60
59
|
console.error(error);
|
|
@@ -70,11 +69,11 @@ example().catch(console.error);
|
|
|
70
69
|
|
|
71
70
|
| Name | Type | Description | Notes |
|
|
72
71
|
|------------- | ------------- | ------------- | -------------|
|
|
73
|
-
| **
|
|
72
|
+
| **id** | `string` | | [Defaults to `undefined`] |
|
|
74
73
|
|
|
75
74
|
### Return type
|
|
76
75
|
|
|
77
|
-
[**
|
|
76
|
+
[**VmInspectionStatus**](VmInspectionStatus.md)
|
|
78
77
|
|
|
79
78
|
### Authorization
|
|
80
79
|
|
|
@@ -82,16 +81,17 @@ No authorization required
|
|
|
82
81
|
|
|
83
82
|
### HTTP request headers
|
|
84
83
|
|
|
85
|
-
- **Content-Type**:
|
|
84
|
+
- **Content-Type**: Not defined
|
|
86
85
|
- **Accept**: `application/json`
|
|
87
86
|
|
|
88
87
|
|
|
89
88
|
### HTTP response details
|
|
90
89
|
| Status code | Description | Response headers |
|
|
91
90
|
|-------------|-------------|------------------|
|
|
92
|
-
| **202** |
|
|
93
|
-
| **400** |
|
|
94
|
-
| **404** |
|
|
91
|
+
| **202** | VM added to inspection queue | - |
|
|
92
|
+
| **400** | Inspector not running | - |
|
|
93
|
+
| **404** | VirtualMachine not found | - |
|
|
94
|
+
| **409** | VM already in inspection queue | - |
|
|
95
95
|
| **500** | Internal server error | - |
|
|
96
96
|
|
|
97
97
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -617,73 +617,6 @@ No authorization required
|
|
|
617
617
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
618
618
|
|
|
619
619
|
|
|
620
|
-
## getVMInspectionStatus
|
|
621
|
-
|
|
622
|
-
> VmInspectionStatus getVMInspectionStatus(id)
|
|
623
|
-
|
|
624
|
-
Get inspection status for a specific VirtualMachine
|
|
625
|
-
|
|
626
|
-
### Example
|
|
627
|
-
|
|
628
|
-
```ts
|
|
629
|
-
import {
|
|
630
|
-
Configuration,
|
|
631
|
-
DefaultApi,
|
|
632
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
633
|
-
import type { GetVMInspectionStatusRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
634
|
-
|
|
635
|
-
async function example() {
|
|
636
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
637
|
-
const api = new DefaultApi();
|
|
638
|
-
|
|
639
|
-
const body = {
|
|
640
|
-
// string | VirtualMachine ID
|
|
641
|
-
id: id_example,
|
|
642
|
-
} satisfies GetVMInspectionStatusRequest;
|
|
643
|
-
|
|
644
|
-
try {
|
|
645
|
-
const data = await api.getVMInspectionStatus(body);
|
|
646
|
-
console.log(data);
|
|
647
|
-
} catch (error) {
|
|
648
|
-
console.error(error);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
// Run the test
|
|
653
|
-
example().catch(console.error);
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
### Parameters
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
| Name | Type | Description | Notes |
|
|
660
|
-
|------------- | ------------- | ------------- | -------------|
|
|
661
|
-
| **id** | `string` | VirtualMachine ID | [Defaults to `undefined`] |
|
|
662
|
-
|
|
663
|
-
### Return type
|
|
664
|
-
|
|
665
|
-
[**VmInspectionStatus**](VmInspectionStatus.md)
|
|
666
|
-
|
|
667
|
-
### Authorization
|
|
668
|
-
|
|
669
|
-
No authorization required
|
|
670
|
-
|
|
671
|
-
### HTTP request headers
|
|
672
|
-
|
|
673
|
-
- **Content-Type**: Not defined
|
|
674
|
-
- **Accept**: `application/json`
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
### HTTP response details
|
|
678
|
-
| Status code | Description | Response headers |
|
|
679
|
-
|-------------|-------------|------------------|
|
|
680
|
-
| **200** | VirtualMachine inspection status | - |
|
|
681
|
-
| **404** | VirtualMachine not found | - |
|
|
682
|
-
| **500** | Internal server error | - |
|
|
683
|
-
|
|
684
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
685
|
-
|
|
686
|
-
|
|
687
620
|
## getVMs
|
|
688
621
|
|
|
689
622
|
> VirtualMachineListResponse getVMs(byExpression, sort, page, pageSize)
|
|
@@ -1010,8 +943,8 @@ No authorization required
|
|
|
1010
943
|
| Status code | Description | Response headers |
|
|
1011
944
|
|-------------|-------------|------------------|
|
|
1012
945
|
| **200** | VMs removed from queue | - |
|
|
1013
|
-
| **400** |
|
|
1014
|
-
| **404** |
|
|
946
|
+
| **400** | Inspector not running or VirtualMachine cannot be canceled | - |
|
|
947
|
+
| **404** | VirtualMachine not found or not in the queue | - |
|
|
1015
948
|
| **500** | Internal server error | - |
|
|
1016
949
|
|
|
1017
950
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
package/docs/VMs.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`distributionByMemoryTier` | { [key: string]: number; }
|
|
18
18
|
`distributionByNicCount` | { [key: string]: number; }
|
|
19
19
|
`distributionByComplexity` | { [key: string]: number; }
|
|
20
|
+
`complexityDistribution` | [{ [key: string]: DiskSizeTierSummary; }](DiskSizeTierSummary.md)
|
|
20
21
|
`ramGB` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
21
22
|
`diskGB` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
22
23
|
`diskCount` | [VMResourceBreakdown](VMResourceBreakdown.md)
|
|
@@ -45,6 +46,7 @@ const example = {
|
|
|
45
46
|
"distributionByMemoryTier": null,
|
|
46
47
|
"distributionByNicCount": null,
|
|
47
48
|
"distributionByComplexity": null,
|
|
49
|
+
"complexityDistribution": null,
|
|
48
50
|
"ramGB": null,
|
|
49
51
|
"diskGB": null,
|
|
50
52
|
"diskCount": null,
|
package/docs/VirtualMachine.md
CHANGED
|
@@ -16,7 +16,8 @@ Name | Type
|
|
|
16
16
|
`issueCount` | number
|
|
17
17
|
`migratable` | boolean
|
|
18
18
|
`template` | boolean
|
|
19
|
-
`
|
|
19
|
+
`inspectionStatus` | [VmInspectionStatus](VmInspectionStatus.md)
|
|
20
|
+
`inspectionConcernCount` | number
|
|
20
21
|
`tags` | Array<string>
|
|
21
22
|
|
|
22
23
|
## Example
|
|
@@ -36,7 +37,8 @@ const example = {
|
|
|
36
37
|
"issueCount": null,
|
|
37
38
|
"migratable": null,
|
|
38
39
|
"template": null,
|
|
39
|
-
"
|
|
40
|
+
"inspectionStatus": null,
|
|
41
|
+
"inspectionConcernCount": null,
|
|
40
42
|
"tags": null,
|
|
41
43
|
} satisfies VirtualMachine
|
|
42
44
|
|
|
@@ -36,7 +36,7 @@ Name | Type
|
|
|
36
36
|
`devices` | [Array<VMDevice>](VMDevice.md)
|
|
37
37
|
`guestNetworks` | [Array<GuestNetwork>](GuestNetwork.md)
|
|
38
38
|
`issues` | [Array<VMIssue>](VMIssue.md)
|
|
39
|
-
`inspection` | [
|
|
39
|
+
`inspection` | [VmInspectionResults](VmInspectionResults.md)
|
|
40
40
|
|
|
41
41
|
## Example
|
|
42
42
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# VmInspectionConcern
|
|
3
|
+
|
|
4
|
+
Represents the structure of vm-migration-detective library inspection concerns
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`label` | string
|
|
11
|
+
`message` | string
|
|
12
|
+
`category` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { VmInspectionConcern } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"label": null,
|
|
22
|
+
"message": null,
|
|
23
|
+
"category": null,
|
|
24
|
+
} satisfies VmInspectionConcern
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as VmInspectionConcern
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# VmInspectionResults
|
|
3
|
+
|
|
4
|
+
VirtualMachine Inspection results
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`concerns` | [Array<VmInspectionConcern>](VmInspectionConcern.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { VmInspectionResults } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"concerns": null,
|
|
20
|
+
} satisfies VmInspectionResults
|
|
21
|
+
|
|
22
|
+
console.log(example)
|
|
23
|
+
|
|
24
|
+
// Convert the instance to a JSON string
|
|
25
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
26
|
+
console.log(exampleJSON)
|
|
27
|
+
|
|
28
|
+
// Parse the JSON string back to an object
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as VmInspectionResults
|
|
30
|
+
console.log(exampleParsed)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
34
|
+
|
|
35
|
+
|
package/package.json
CHANGED