@openshift-migration-advisor/agent-sdk 0.8.0-7c64128a18e3 → 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 +5 -3
- 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/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/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/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
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,8 @@ docs/VersionInfo.md
|
|
|
41
41
|
docs/VirtualMachine.md
|
|
42
42
|
docs/VirtualMachineDetail.md
|
|
43
43
|
docs/VirtualMachineListResponse.md
|
|
44
|
+
docs/VmInspectionConcern.md
|
|
45
|
+
docs/VmInspectionResults.md
|
|
44
46
|
docs/VmInspectionStatus.md
|
|
45
47
|
package.json
|
|
46
48
|
src/apis/DefaultApi.ts
|
|
@@ -84,6 +86,8 @@ src/models/VersionInfo.ts
|
|
|
84
86
|
src/models/VirtualMachine.ts
|
|
85
87
|
src/models/VirtualMachineDetail.ts
|
|
86
88
|
src/models/VirtualMachineListResponse.ts
|
|
89
|
+
src/models/VmInspectionConcern.ts
|
|
90
|
+
src/models/VmInspectionResults.ts
|
|
87
91
|
src/models/VmInspectionStatus.ts
|
|
88
92
|
src/models/index.ts
|
|
89
93
|
src/runtime.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.22.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.8.0-
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.8.0-a3f90da0e31d
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -113,6 +113,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
113
113
|
- [VirtualMachine](docs/VirtualMachine.md)
|
|
114
114
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
115
115
|
- [VirtualMachineListResponse](docs/VirtualMachineListResponse.md)
|
|
116
|
+
- [VmInspectionConcern](docs/VmInspectionConcern.md)
|
|
117
|
+
- [VmInspectionResults](docs/VmInspectionResults.md)
|
|
116
118
|
- [VmInspectionStatus](docs/VmInspectionStatus.md)
|
|
117
119
|
|
|
118
120
|
### Authorization
|
|
@@ -127,8 +129,8 @@ and is automatically generated by the
|
|
|
127
129
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
128
130
|
|
|
129
131
|
- API version: `v1`
|
|
130
|
-
- Package version: `0.8.0-
|
|
131
|
-
- Generator version: `7.
|
|
132
|
+
- Package version: `0.8.0-a3f90da0e31d`
|
|
133
|
+
- Generator version: `7.22.0-SNAPSHOT`
|
|
132
134
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
133
135
|
|
|
134
136
|
The generated npm module supports the following:
|
|
@@ -81,7 +81,13 @@ export interface VirtualMachine {
|
|
|
81
81
|
* @type {VmInspectionStatus}
|
|
82
82
|
* @memberof VirtualMachine
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
inspectionStatus?: VmInspectionStatus;
|
|
85
|
+
/**
|
|
86
|
+
* Number of inspection concerns recorded for the latest persisted inspection result
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof VirtualMachine
|
|
89
|
+
*/
|
|
90
|
+
inspectionConcernCount?: number;
|
|
85
91
|
/**
|
|
86
92
|
* Tags aggregated from matching groups
|
|
87
93
|
* @type {Array<string>}
|
|
@@ -32,8 +32,6 @@ export function instanceOfVirtualMachine(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('issueCount' in value) || value['issueCount'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('inspection' in value) || value['inspection'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
return true;
|
|
38
36
|
}
|
|
39
37
|
export function VirtualMachineFromJSON(json) {
|
|
@@ -54,7 +52,8 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'issueCount': json['issueCount'],
|
|
55
53
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
56
54
|
'template': json['template'] == null ? undefined : json['template'],
|
|
57
|
-
'
|
|
55
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
56
|
+
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
58
57
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
59
58
|
};
|
|
60
59
|
}
|
|
@@ -76,7 +75,8 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
76
75
|
'issueCount': value['issueCount'],
|
|
77
76
|
'migratable': value['migratable'],
|
|
78
77
|
'template': value['template'],
|
|
79
|
-
'
|
|
78
|
+
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
79
|
+
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
80
80
|
'tags': value['tags'],
|
|
81
81
|
};
|
|
82
82
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VMNIC } from './VMNIC.js';
|
|
13
|
-
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
14
13
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
15
14
|
import type { VMIssue } from './VMIssue.js';
|
|
16
15
|
import type { VMDevice } from './VMDevice.js';
|
|
17
16
|
import type { VMDisk } from './VMDisk.js';
|
|
17
|
+
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @export
|
|
@@ -203,10 +203,10 @@ export interface VirtualMachineDetail {
|
|
|
203
203
|
issues?: Array<VMIssue>;
|
|
204
204
|
/**
|
|
205
205
|
*
|
|
206
|
-
* @type {
|
|
206
|
+
* @type {VmInspectionResults}
|
|
207
207
|
* @memberof VirtualMachineDetail
|
|
208
208
|
*/
|
|
209
|
-
inspection?:
|
|
209
|
+
inspection?: VmInspectionResults;
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
|
|
15
|
-
import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
|
|
16
15
|
import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
|
|
17
16
|
import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
|
|
18
17
|
import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
|
|
19
18
|
import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
|
|
19
|
+
import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
|
|
20
20
|
/**
|
|
21
21
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
22
22
|
*/
|
|
@@ -79,7 +79,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDeviceFromJSON)),
|
|
80
80
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
|
|
81
81
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
|
|
82
|
-
'inspection': json['inspection'] == null ? undefined :
|
|
82
|
+
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
export function VirtualMachineDetailToJSON(json) {
|
|
@@ -120,6 +120,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
120
120
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDeviceToJSON)),
|
|
121
121
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
|
|
122
122
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
|
|
123
|
-
'inspection':
|
|
123
|
+
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
124
124
|
};
|
|
125
125
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Represents the structure of vm-migration-detective library inspection concerns
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VmInspectionConcern
|
|
16
|
+
*/
|
|
17
|
+
export interface VmInspectionConcern {
|
|
18
|
+
/**
|
|
19
|
+
* Short label identifying the concern
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VmInspectionConcern
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VmInspectionConcern
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VmInspectionConcern
|
|
34
|
+
*/
|
|
35
|
+
category: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the VmInspectionConcern interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern;
|
|
41
|
+
export declare function VmInspectionConcernFromJSON(json: any): VmInspectionConcern;
|
|
42
|
+
export declare function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern;
|
|
43
|
+
export declare function VmInspectionConcernToJSON(json: any): VmInspectionConcern;
|
|
44
|
+
export declare function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VmInspectionConcern interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVmInspectionConcern(value) {
|
|
18
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function VmInspectionConcernFromJSON(json) {
|
|
27
|
+
return VmInspectionConcernFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'label': json['label'],
|
|
35
|
+
'message': json['message'],
|
|
36
|
+
'category': json['category'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function VmInspectionConcernToJSON(json) {
|
|
40
|
+
return VmInspectionConcernToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'label': value['label'],
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
'category': value['category'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { VmInspectionConcernFromJSON, VmInspectionConcernToJSON, } from './VmInspectionConcern.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the VmInspectionResults interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfVmInspectionResults(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function VmInspectionResultsFromJSON(json) {
|
|
22
|
+
return VmInspectionResultsFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function VmInspectionResultsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'concerns': json['concerns'] == null ? undefined : (json['concerns'].map(VmInspectionConcernFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function VmInspectionResultsToJSON(json) {
|
|
33
|
+
return VmInspectionResultsToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function VmInspectionResultsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'concerns': value['concerns'] == null ? undefined : (value['concerns'].map(VmInspectionConcernToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -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 VmInspectionStatusStateNotStarted: "not_started";
|
|
47
46
|
};
|
|
48
47
|
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
49
48
|
/**
|
|
@@ -19,8 +19,7 @@ export const VmInspectionStatusStateEnum = {
|
|
|
19
19
|
VmInspectionStatusStateRunning: 'running',
|
|
20
20
|
VmInspectionStatusStateCompleted: 'completed',
|
|
21
21
|
VmInspectionStatusStateCanceled: 'canceled',
|
|
22
|
-
VmInspectionStatusStateError: 'error'
|
|
23
|
-
VmInspectionStatusStateNotStarted: 'not_started'
|
|
22
|
+
VmInspectionStatusStateError: 'error'
|
|
24
23
|
};
|
|
25
24
|
/**
|
|
26
25
|
* Check if a given object implements the VmInspectionStatus interface.
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -38,4 +38,6 @@ export * from './VersionInfo.js';
|
|
|
38
38
|
export * from './VirtualMachine.js';
|
|
39
39
|
export * from './VirtualMachineDetail.js';
|
|
40
40
|
export * from './VirtualMachineListResponse.js';
|
|
41
|
+
export * from './VmInspectionConcern.js';
|
|
42
|
+
export * from './VmInspectionResults.js';
|
|
41
43
|
export * from './VmInspectionStatus.js';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -210,7 +210,7 @@ export class BaseAPI {
|
|
|
210
210
|
return next;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
BaseAPI.jsonRegex =
|
|
213
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
214
214
|
;
|
|
215
215
|
function isBlob(value) {
|
|
216
216
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
@@ -81,7 +81,13 @@ export interface VirtualMachine {
|
|
|
81
81
|
* @type {VmInspectionStatus}
|
|
82
82
|
* @memberof VirtualMachine
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
inspectionStatus?: VmInspectionStatus;
|
|
85
|
+
/**
|
|
86
|
+
* Number of inspection concerns recorded for the latest persisted inspection result
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof VirtualMachine
|
|
89
|
+
*/
|
|
90
|
+
inspectionConcernCount?: number;
|
|
85
91
|
/**
|
|
86
92
|
* Tags aggregated from matching groups
|
|
87
93
|
* @type {Array<string>}
|
|
@@ -39,8 +39,6 @@ function instanceOfVirtualMachine(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('issueCount' in value) || value['issueCount'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('inspection' in value) || value['inspection'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
return true;
|
|
45
43
|
}
|
|
46
44
|
function VirtualMachineFromJSON(json) {
|
|
@@ -61,7 +59,8 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'issueCount': json['issueCount'],
|
|
62
60
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
63
61
|
'template': json['template'] == null ? undefined : json['template'],
|
|
64
|
-
'
|
|
62
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
|
|
63
|
+
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
65
64
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
66
65
|
};
|
|
67
66
|
}
|
|
@@ -83,7 +82,8 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
82
|
'issueCount': value['issueCount'],
|
|
84
83
|
'migratable': value['migratable'],
|
|
85
84
|
'template': value['template'],
|
|
86
|
-
'
|
|
85
|
+
'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
|
|
86
|
+
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
87
87
|
'tags': value['tags'],
|
|
88
88
|
};
|
|
89
89
|
}
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VMNIC } from './VMNIC.js';
|
|
13
|
-
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
14
13
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
15
14
|
import type { VMIssue } from './VMIssue.js';
|
|
16
15
|
import type { VMDevice } from './VMDevice.js';
|
|
17
16
|
import type { VMDisk } from './VMDisk.js';
|
|
17
|
+
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @export
|
|
@@ -203,10 +203,10 @@ export interface VirtualMachineDetail {
|
|
|
203
203
|
issues?: Array<VMIssue>;
|
|
204
204
|
/**
|
|
205
205
|
*
|
|
206
|
-
* @type {
|
|
206
|
+
* @type {VmInspectionResults}
|
|
207
207
|
* @memberof VirtualMachineDetail
|
|
208
208
|
*/
|
|
209
|
-
inspection?:
|
|
209
|
+
inspection?: VmInspectionResults;
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
212
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -19,11 +19,11 @@ exports.VirtualMachineDetailFromJSONTyped = VirtualMachineDetailFromJSONTyped;
|
|
|
19
19
|
exports.VirtualMachineDetailToJSON = VirtualMachineDetailToJSON;
|
|
20
20
|
exports.VirtualMachineDetailToJSONTyped = VirtualMachineDetailToJSONTyped;
|
|
21
21
|
const VMNIC_js_1 = require("./VMNIC.js");
|
|
22
|
-
const VmInspectionStatus_js_1 = require("./VmInspectionStatus.js");
|
|
23
22
|
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
24
23
|
const VMIssue_js_1 = require("./VMIssue.js");
|
|
25
24
|
const VMDevice_js_1 = require("./VMDevice.js");
|
|
26
25
|
const VMDisk_js_1 = require("./VMDisk.js");
|
|
26
|
+
const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
|
|
27
27
|
/**
|
|
28
28
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
29
29
|
*/
|
|
@@ -86,7 +86,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
86
|
'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDevice_js_1.VMDeviceFromJSON)),
|
|
87
87
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
|
|
88
88
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
|
|
89
|
-
'inspection': json['inspection'] == null ? undefined : (0,
|
|
89
|
+
'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
function VirtualMachineDetailToJSON(json) {
|
|
@@ -127,6 +127,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
127
127
|
'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDevice_js_1.VMDeviceToJSON)),
|
|
128
128
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
|
|
129
129
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
|
|
130
|
-
'inspection': (0,
|
|
130
|
+
'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Represents the structure of vm-migration-detective library inspection concerns
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VmInspectionConcern
|
|
16
|
+
*/
|
|
17
|
+
export interface VmInspectionConcern {
|
|
18
|
+
/**
|
|
19
|
+
* Short label identifying the concern
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VmInspectionConcern
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VmInspectionConcern
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VmInspectionConcern
|
|
34
|
+
*/
|
|
35
|
+
category: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the VmInspectionConcern interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern;
|
|
41
|
+
export declare function VmInspectionConcernFromJSON(json: any): VmInspectionConcern;
|
|
42
|
+
export declare function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern;
|
|
43
|
+
export declare function VmInspectionConcernToJSON(json: any): VmInspectionConcern;
|
|
44
|
+
export declare function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfVmInspectionConcern = instanceOfVmInspectionConcern;
|
|
17
|
+
exports.VmInspectionConcernFromJSON = VmInspectionConcernFromJSON;
|
|
18
|
+
exports.VmInspectionConcernFromJSONTyped = VmInspectionConcernFromJSONTyped;
|
|
19
|
+
exports.VmInspectionConcernToJSON = VmInspectionConcernToJSON;
|
|
20
|
+
exports.VmInspectionConcernToJSONTyped = VmInspectionConcernToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VmInspectionConcern interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVmInspectionConcern(value) {
|
|
25
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function VmInspectionConcernFromJSON(json) {
|
|
34
|
+
return VmInspectionConcernFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'label': json['label'],
|
|
42
|
+
'message': json['message'],
|
|
43
|
+
'category': json['category'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function VmInspectionConcernToJSON(json) {
|
|
47
|
+
return VmInspectionConcernToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'label': value['label'],
|
|
55
|
+
'message': value['message'],
|
|
56
|
+
'category': value['category'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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 VmInspectionStatusStateNotStarted: "not_started";
|
|
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
|
-
VmInspectionStatusStateNotStarted: 'not_started'
|
|
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/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
|
@@ -92,7 +92,13 @@ export interface VirtualMachine {
|
|
|
92
92
|
* @type {VmInspectionStatus}
|
|
93
93
|
* @memberof VirtualMachine
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
inspectionStatus?: VmInspectionStatus;
|
|
96
|
+
/**
|
|
97
|
+
* Number of inspection concerns recorded for the latest persisted inspection result
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof VirtualMachine
|
|
100
|
+
*/
|
|
101
|
+
inspectionConcernCount?: number;
|
|
96
102
|
/**
|
|
97
103
|
* Tags aggregated from matching groups
|
|
98
104
|
* @type {Array<string>}
|
|
@@ -113,7 +119,6 @@ export function instanceOfVirtualMachine(value: object): value is VirtualMachine
|
|
|
113
119
|
if (!('diskSize' in value) || value['diskSize'] === undefined) return false;
|
|
114
120
|
if (!('memory' in value) || value['memory'] === undefined) return false;
|
|
115
121
|
if (!('issueCount' in value) || value['issueCount'] === undefined) return false;
|
|
116
|
-
if (!('inspection' in value) || value['inspection'] === undefined) return false;
|
|
117
122
|
return true;
|
|
118
123
|
}
|
|
119
124
|
|
|
@@ -137,7 +142,8 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
137
142
|
'issueCount': json['issueCount'],
|
|
138
143
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
139
144
|
'template': json['template'] == null ? undefined : json['template'],
|
|
140
|
-
'
|
|
145
|
+
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
146
|
+
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
141
147
|
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
142
148
|
};
|
|
143
149
|
}
|
|
@@ -163,7 +169,8 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
163
169
|
'issueCount': value['issueCount'],
|
|
164
170
|
'migratable': value['migratable'],
|
|
165
171
|
'template': value['template'],
|
|
166
|
-
'
|
|
172
|
+
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
173
|
+
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
167
174
|
'tags': value['tags'],
|
|
168
175
|
};
|
|
169
176
|
}
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
VMNICToJSON,
|
|
21
21
|
VMNICToJSONTyped,
|
|
22
22
|
} from './VMNIC.js';
|
|
23
|
-
import type { VmInspectionStatus } from './VmInspectionStatus.js';
|
|
24
|
-
import {
|
|
25
|
-
VmInspectionStatusFromJSON,
|
|
26
|
-
VmInspectionStatusFromJSONTyped,
|
|
27
|
-
VmInspectionStatusToJSON,
|
|
28
|
-
VmInspectionStatusToJSONTyped,
|
|
29
|
-
} from './VmInspectionStatus.js';
|
|
30
23
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
31
24
|
import {
|
|
32
25
|
GuestNetworkFromJSON,
|
|
@@ -55,6 +48,13 @@ import {
|
|
|
55
48
|
VMDiskToJSON,
|
|
56
49
|
VMDiskToJSONTyped,
|
|
57
50
|
} from './VMDisk.js';
|
|
51
|
+
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
52
|
+
import {
|
|
53
|
+
VmInspectionResultsFromJSON,
|
|
54
|
+
VmInspectionResultsFromJSONTyped,
|
|
55
|
+
VmInspectionResultsToJSON,
|
|
56
|
+
VmInspectionResultsToJSONTyped,
|
|
57
|
+
} from './VmInspectionResults.js';
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
@@ -244,10 +244,10 @@ export interface VirtualMachineDetail {
|
|
|
244
244
|
issues?: Array<VMIssue>;
|
|
245
245
|
/**
|
|
246
246
|
*
|
|
247
|
-
* @type {
|
|
247
|
+
* @type {VmInspectionResults}
|
|
248
248
|
* @memberof VirtualMachineDetail
|
|
249
249
|
*/
|
|
250
|
-
inspection?:
|
|
250
|
+
inspection?: VmInspectionResults;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
/**
|
|
@@ -306,7 +306,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
306
306
|
'devices': json['devices'] == null ? undefined : ((json['devices'] as Array<any>).map(VMDeviceFromJSON)),
|
|
307
307
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
308
308
|
'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
|
|
309
|
-
'inspection': json['inspection'] == null ? undefined :
|
|
309
|
+
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
|
|
@@ -351,7 +351,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
351
351
|
'devices': value['devices'] == null ? undefined : ((value['devices'] as Array<any>).map(VMDeviceToJSON)),
|
|
352
352
|
'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
|
|
353
353
|
'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
|
|
354
|
-
'inspection':
|
|
354
|
+
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Represents the structure of vm-migration-detective library inspection concerns
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VmInspectionConcern
|
|
20
|
+
*/
|
|
21
|
+
export interface VmInspectionConcern {
|
|
22
|
+
/**
|
|
23
|
+
* Short label identifying the concern
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VmInspectionConcern
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmInspectionConcern
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof VmInspectionConcern
|
|
38
|
+
*/
|
|
39
|
+
category: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the VmInspectionConcern interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern {
|
|
46
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
47
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
48
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VmInspectionConcernFromJSON(json: any): VmInspectionConcern {
|
|
53
|
+
return VmInspectionConcernFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'label': json['label'],
|
|
63
|
+
'message': json['message'],
|
|
64
|
+
'category': json['category'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function VmInspectionConcernToJSON(json: any): VmInspectionConcern {
|
|
69
|
+
return VmInspectionConcernToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'label': value['label'],
|
|
80
|
+
'message': value['message'],
|
|
81
|
+
'category': value['category'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VmInspectionConcern } from './VmInspectionConcern.js';
|
|
17
|
+
import {
|
|
18
|
+
VmInspectionConcernFromJSON,
|
|
19
|
+
VmInspectionConcernFromJSONTyped,
|
|
20
|
+
VmInspectionConcernToJSON,
|
|
21
|
+
VmInspectionConcernToJSONTyped,
|
|
22
|
+
} from './VmInspectionConcern.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* VirtualMachine Inspection results
|
|
26
|
+
* @export
|
|
27
|
+
* @interface VmInspectionResults
|
|
28
|
+
*/
|
|
29
|
+
export interface VmInspectionResults {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<VmInspectionConcern>}
|
|
33
|
+
* @memberof VmInspectionResults
|
|
34
|
+
*/
|
|
35
|
+
concerns?: Array<VmInspectionConcern>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the VmInspectionResults interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfVmInspectionResults(value: object): value is VmInspectionResults {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VmInspectionResultsFromJSON(json: any): VmInspectionResults {
|
|
46
|
+
return VmInspectionResultsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'concerns': json['concerns'] == null ? undefined : ((json['concerns'] as Array<any>).map(VmInspectionConcernFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VmInspectionResultsToJSON(json: any): VmInspectionResults {
|
|
60
|
+
return VmInspectionResultsToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'concerns': value['concerns'] == null ? undefined : ((value['concerns'] as Array<any>).map(VmInspectionConcernToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -48,8 +48,7 @@ export const VmInspectionStatusStateEnum = {
|
|
|
48
48
|
VmInspectionStatusStateRunning: 'running',
|
|
49
49
|
VmInspectionStatusStateCompleted: 'completed',
|
|
50
50
|
VmInspectionStatusStateCanceled: 'canceled',
|
|
51
|
-
VmInspectionStatusStateError: 'error'
|
|
52
|
-
VmInspectionStatusStateNotStarted: 'not_started'
|
|
51
|
+
VmInspectionStatusStateError: 'error'
|
|
53
52
|
} as const;
|
|
54
53
|
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
55
54
|
|
package/src/models/index.ts
CHANGED
|
@@ -38,4 +38,6 @@ export * from './VersionInfo.js';
|
|
|
38
38
|
export * from './VirtualMachine.js';
|
|
39
39
|
export * from './VirtualMachineDetail.js';
|
|
40
40
|
export * from './VirtualMachineListResponse.js';
|
|
41
|
+
export * from './VmInspectionConcern.js';
|
|
42
|
+
export * from './VmInspectionResults.js';
|
|
41
43
|
export * from './VmInspectionStatus.js';
|
package/src/runtime.ts
CHANGED
|
@@ -91,7 +91,7 @@ export const DefaultConfig = new Configuration();
|
|
|
91
91
|
*/
|
|
92
92
|
export class BaseAPI {
|
|
93
93
|
|
|
94
|
-
private static readonly jsonRegex =
|
|
94
|
+
private static readonly jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
95
95
|
private middleware: Middleware[];
|
|
96
96
|
|
|
97
97
|
constructor(protected configuration = DefaultConfig) {
|