@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0
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 +6 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +19 -17
- package/dist/apis/DefaultApi.d.ts +141 -133
- package/dist/apis/DefaultApi.js +168 -163
- package/dist/esm/apis/DefaultApi.d.ts +141 -133
- package/dist/esm/apis/DefaultApi.js +169 -164
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -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 +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -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 +3 -1
- package/dist/models/index.js +3 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +191 -179
- package/docs/InspectorStatus.md +4 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -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 +302 -283
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -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 +3 -1
- package/src/runtime.ts +1 -1
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
package/dist/esm/models/VMs.js
CHANGED
|
@@ -55,11 +55,13 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
|
|
56
56
|
'cpuCores': VMResourceBreakdownFromJSON(json['cpuCores']),
|
|
57
57
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : (mapValues(json['diskSizeTier'], DiskSizeTierSummaryFromJSON)),
|
|
58
|
+
'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : (mapValues(json['diskComplexityTier'], DiskSizeTierSummaryFromJSON)),
|
|
58
59
|
'diskTypes': json['diskTypes'] == null ? undefined : (mapValues(json['diskTypes'], DiskTypeSummaryFromJSON)),
|
|
59
60
|
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
60
61
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
61
62
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
62
63
|
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
64
|
+
'complexityDistribution': json['complexityDistribution'] == null ? undefined : (mapValues(json['complexityDistribution'], DiskSizeTierSummaryFromJSON)),
|
|
63
65
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
64
66
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
65
67
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
@@ -85,11 +87,13 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
87
|
'totalWithSharedDisks': value['totalWithSharedDisks'],
|
|
86
88
|
'cpuCores': VMResourceBreakdownToJSON(value['cpuCores']),
|
|
87
89
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : (mapValues(value['diskSizeTier'], DiskSizeTierSummaryToJSON)),
|
|
90
|
+
'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : (mapValues(value['diskComplexityTier'], DiskSizeTierSummaryToJSON)),
|
|
88
91
|
'diskTypes': value['diskTypes'] == null ? undefined : (mapValues(value['diskTypes'], DiskTypeSummaryToJSON)),
|
|
89
92
|
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
90
93
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
91
94
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
92
95
|
'distributionByComplexity': value['distributionByComplexity'],
|
|
96
|
+
'complexityDistribution': value['complexityDistribution'] == null ? undefined : (mapValues(value['complexityDistribution'], DiskSizeTierSummaryToJSON)),
|
|
93
97
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
94
98
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
95
99
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
|
@@ -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 VmInspectionStatusStateNotFound: "not_found";
|
|
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
|
-
VmInspectionStatusStateNotFound: 'not_found'
|
|
22
|
+
VmInspectionStatusStateError: 'error'
|
|
24
23
|
};
|
|
25
24
|
/**
|
|
26
25
|
* Check if a given object implements the VmInspectionStatus interface.
|
|
@@ -14,13 +14,13 @@ export * from './GuestNetwork.js';
|
|
|
14
14
|
export * from './Histogram.js';
|
|
15
15
|
export * from './Host.js';
|
|
16
16
|
export * from './Infra.js';
|
|
17
|
-
export * from './InspectorStartRequest.js';
|
|
18
17
|
export * from './InspectorStatus.js';
|
|
19
18
|
export * from './Inventory.js';
|
|
20
19
|
export * from './InventoryData.js';
|
|
21
20
|
export * from './MigrationIssue.js';
|
|
22
21
|
export * from './Network.js';
|
|
23
22
|
export * from './OsInfo.js';
|
|
23
|
+
export * from './StartInspectionRequest.js';
|
|
24
24
|
export * from './UpdateGroupRequest.js';
|
|
25
25
|
export * from './UpdateInventory.js';
|
|
26
26
|
export * from './VCenter.js';
|
|
@@ -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
|
@@ -16,13 +16,13 @@ export * from './GuestNetwork.js';
|
|
|
16
16
|
export * from './Histogram.js';
|
|
17
17
|
export * from './Host.js';
|
|
18
18
|
export * from './Infra.js';
|
|
19
|
-
export * from './InspectorStartRequest.js';
|
|
20
19
|
export * from './InspectorStatus.js';
|
|
21
20
|
export * from './Inventory.js';
|
|
22
21
|
export * from './InventoryData.js';
|
|
23
22
|
export * from './MigrationIssue.js';
|
|
24
23
|
export * from './Network.js';
|
|
25
24
|
export * from './OsInfo.js';
|
|
25
|
+
export * from './StartInspectionRequest.js';
|
|
26
26
|
export * from './UpdateGroupRequest.js';
|
|
27
27
|
export * from './UpdateInventory.js';
|
|
28
28
|
export * from './VCenter.js';
|
|
@@ -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;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -21,6 +23,18 @@ export interface InspectorStatus {
|
|
|
21
23
|
* @memberof InspectorStatus
|
|
22
24
|
*/
|
|
23
25
|
state: InspectorStatusStateEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {VcenterCredentials}
|
|
29
|
+
* @memberof InspectorStatus
|
|
30
|
+
*/
|
|
31
|
+
credentials?: VcenterCredentials;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {VddkProperties}
|
|
35
|
+
* @memberof InspectorStatus
|
|
36
|
+
*/
|
|
37
|
+
vddk?: VddkProperties;
|
|
24
38
|
/**
|
|
25
39
|
* Error message when state is error
|
|
26
40
|
* @type {string}
|
|
@@ -32,13 +46,12 @@ export interface InspectorStatus {
|
|
|
32
46
|
* @export
|
|
33
47
|
*/
|
|
34
48
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly InspectorStatusStateRunning: "error";
|
|
49
|
+
readonly InspectorStatusStateReady: "ready";
|
|
50
|
+
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
|
+
readonly InspectorStatusStateRunning: "running";
|
|
52
|
+
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
+
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
+
readonly InspectorStatusStateError: "error";
|
|
42
55
|
};
|
|
43
56
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
57
|
/**
|
|
@@ -19,17 +19,18 @@ exports.InspectorStatusFromJSON = InspectorStatusFromJSON;
|
|
|
19
19
|
exports.InspectorStatusFromJSONTyped = InspectorStatusFromJSONTyped;
|
|
20
20
|
exports.InspectorStatusToJSON = InspectorStatusToJSON;
|
|
21
21
|
exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
22
|
+
const VddkProperties_js_1 = require("./VddkProperties.js");
|
|
23
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
24
|
/**
|
|
23
25
|
* @export
|
|
24
26
|
*/
|
|
25
27
|
exports.InspectorStatusStateEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
InspectorStatusStateRunning: 'error'
|
|
28
|
+
InspectorStatusStateReady: 'ready',
|
|
29
|
+
InspectorStatusStateInitiating: 'Initiating',
|
|
30
|
+
InspectorStatusStateRunning: 'running',
|
|
31
|
+
InspectorStatusStateCanceled: 'canceled',
|
|
32
|
+
InspectorStatusStateCompleted: 'completed',
|
|
33
|
+
InspectorStatusStateError: 'error'
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -48,6 +49,8 @@ function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
'state': json['state'],
|
|
52
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
53
|
+
'vddk': json['vddk'] == null ? undefined : (0, VddkProperties_js_1.VddkPropertiesFromJSON)(json['vddk']),
|
|
51
54
|
'error': json['error'] == null ? undefined : json['error'],
|
|
52
55
|
};
|
|
53
56
|
}
|
|
@@ -60,6 +63,8 @@ function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
63
|
}
|
|
61
64
|
return {
|
|
62
65
|
'state': value['state'],
|
|
66
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
67
|
+
'vddk': (0, VddkProperties_js_1.VddkPropertiesToJSON)(value['vddk']),
|
|
63
68
|
'error': value['error'],
|
|
64
69
|
};
|
|
65
70
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Array of VirtualMachine id
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StartInspectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StartInspectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof StartInspectionRequest
|
|
22
|
+
*/
|
|
23
|
+
vmIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
|
|
29
|
+
export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
|
|
30
|
+
export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
|
|
31
|
+
export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
|
|
32
|
+
export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfStartInspectionRequest = instanceOfStartInspectionRequest;
|
|
17
|
+
exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
|
|
18
|
+
exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
|
|
19
|
+
exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
|
|
20
|
+
exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStartInspectionRequest(value) {
|
|
25
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StartInspectionRequestFromJSON(json) {
|
|
30
|
+
return StartInspectionRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'vmIds': json['vmIds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function StartInspectionRequestToJSON(json) {
|
|
41
|
+
return StartInspectionRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'vmIds': value['vmIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -58,6 +58,15 @@ export interface VMs {
|
|
|
58
58
|
diskSizeTier?: {
|
|
59
59
|
[key: string]: DiskSizeTierSummary;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
|
|
63
|
+
*
|
|
64
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
65
|
+
* @memberof VMs
|
|
66
|
+
*/
|
|
67
|
+
diskComplexityTier?: {
|
|
68
|
+
[key: string]: DiskSizeTierSummary;
|
|
69
|
+
};
|
|
61
70
|
/**
|
|
62
71
|
*
|
|
63
72
|
* @type {{ [key: string]: DiskTypeSummary; }}
|
|
@@ -94,10 +103,19 @@ export interface VMs {
|
|
|
94
103
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
104
|
* @type {{ [key: string]: number; }}
|
|
96
105
|
* @memberof VMs
|
|
106
|
+
* @deprecated
|
|
97
107
|
*/
|
|
98
108
|
distributionByComplexity?: {
|
|
99
109
|
[key: string]: number;
|
|
100
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
113
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
114
|
+
* @memberof VMs
|
|
115
|
+
*/
|
|
116
|
+
complexityDistribution?: {
|
|
117
|
+
[key: string]: DiskSizeTierSummary;
|
|
118
|
+
};
|
|
101
119
|
/**
|
|
102
120
|
*
|
|
103
121
|
* @type {VMResourceBreakdown}
|
package/dist/models/VMs.js
CHANGED
|
@@ -62,11 +62,13 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'totalWithSharedDisks': json['totalWithSharedDisks'] == null ? undefined : json['totalWithSharedDisks'],
|
|
63
63
|
'cpuCores': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['cpuCores']),
|
|
64
64
|
'diskSizeTier': json['diskSizeTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskSizeTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
65
|
+
'diskComplexityTier': json['diskComplexityTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskComplexityTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
65
66
|
'diskTypes': json['diskTypes'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['diskTypes'], DiskTypeSummary_js_1.DiskTypeSummaryFromJSON)),
|
|
66
67
|
'distributionByCpuTier': json['distributionByCpuTier'] == null ? undefined : json['distributionByCpuTier'],
|
|
67
68
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
68
69
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
69
70
|
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
71
|
+
'complexityDistribution': json['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
70
72
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['ramGB']),
|
|
71
73
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskGB']),
|
|
72
74
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskCount']),
|
|
@@ -92,11 +94,13 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
92
94
|
'totalWithSharedDisks': value['totalWithSharedDisks'],
|
|
93
95
|
'cpuCores': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['cpuCores']),
|
|
94
96
|
'diskSizeTier': value['diskSizeTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskSizeTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
|
97
|
+
'diskComplexityTier': value['diskComplexityTier'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskComplexityTier'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
|
95
98
|
'diskTypes': value['diskTypes'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['diskTypes'], DiskTypeSummary_js_1.DiskTypeSummaryToJSON)),
|
|
96
99
|
'distributionByCpuTier': value['distributionByCpuTier'],
|
|
97
100
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
98
101
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
99
102
|
'distributionByComplexity': value['distributionByComplexity'],
|
|
103
|
+
'complexityDistribution': value['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
|
100
104
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['ramGB']),
|
|
101
105
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskGB']),
|
|
102
106
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskCount']),
|
|
@@ -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>}
|