@openshift-migration-advisor/agent-sdk 0.8.0-0a190192e598 → 0.8.0-89b5466bbbac
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 +163 -158
- package/dist/esm/apis/DefaultApi.d.ts +141 -133
- package/dist/esm/apis/DefaultApi.js +164 -159
- package/dist/esm/models/InspectorStatus.d.ts +14 -1
- package/dist/esm/models/InspectorStatus.js +6 -1
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- 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 +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +14 -1
- package/dist/models/InspectorStatus.js +6 -1
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- 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 +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 +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 +297 -278
- package/src/models/InspectorStatus.ts +31 -1
- package/src/models/StartInspectionRequest.ts +66 -0
- 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 +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
|
@@ -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}
|
|
@@ -35,7 +49,6 @@ export declare const InspectorStatusStateEnum: {
|
|
|
35
49
|
readonly InspectorStatusStateReady: "ready";
|
|
36
50
|
readonly InspectorStatusStateInitiating: "Initiating";
|
|
37
51
|
readonly InspectorStatusStateRunning: "running";
|
|
38
|
-
readonly InspectorStatusStateCanceling: "canceling";
|
|
39
52
|
readonly InspectorStatusStateCanceled: "canceled";
|
|
40
53
|
readonly InspectorStatusStateCompleted: "completed";
|
|
41
54
|
readonly InspectorStatusStateError: "error";
|
|
@@ -19,6 +19,8 @@ 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
|
*/
|
|
@@ -26,7 +28,6 @@ exports.InspectorStatusStateEnum = {
|
|
|
26
28
|
InspectorStatusStateReady: 'ready',
|
|
27
29
|
InspectorStatusStateInitiating: 'Initiating',
|
|
28
30
|
InspectorStatusStateRunning: 'running',
|
|
29
|
-
InspectorStatusStateCanceling: 'canceling',
|
|
30
31
|
InspectorStatusStateCanceled: 'canceled',
|
|
31
32
|
InspectorStatusStateCompleted: 'completed',
|
|
32
33
|
InspectorStatusStateError: 'error'
|
|
@@ -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
|
@@ -94,10 +94,19 @@ export interface VMs {
|
|
|
94
94
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
95
|
* @type {{ [key: string]: number; }}
|
|
96
96
|
* @memberof VMs
|
|
97
|
+
* @deprecated
|
|
97
98
|
*/
|
|
98
99
|
distributionByComplexity?: {
|
|
99
100
|
[key: string]: number;
|
|
100
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
104
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
105
|
+
* @memberof VMs
|
|
106
|
+
*/
|
|
107
|
+
complexityDistribution?: {
|
|
108
|
+
[key: string]: DiskSizeTierSummary;
|
|
109
|
+
};
|
|
101
110
|
/**
|
|
102
111
|
*
|
|
103
112
|
* @type {VMResourceBreakdown}
|
package/dist/models/VMs.js
CHANGED
|
@@ -67,6 +67,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'distributionByMemoryTier': json['distributionByMemoryTier'] == null ? undefined : json['distributionByMemoryTier'],
|
|
68
68
|
'distributionByNicCount': json['distributionByNicCount'] == null ? undefined : json['distributionByNicCount'],
|
|
69
69
|
'distributionByComplexity': json['distributionByComplexity'] == null ? undefined : json['distributionByComplexity'],
|
|
70
|
+
'complexityDistribution': json['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryFromJSON)),
|
|
70
71
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['ramGB']),
|
|
71
72
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskGB']),
|
|
72
73
|
'diskCount': (0, VMResourceBreakdown_js_1.VMResourceBreakdownFromJSON)(json['diskCount']),
|
|
@@ -97,6 +98,7 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
97
98
|
'distributionByMemoryTier': value['distributionByMemoryTier'],
|
|
98
99
|
'distributionByNicCount': value['distributionByNicCount'],
|
|
99
100
|
'distributionByComplexity': value['distributionByComplexity'],
|
|
101
|
+
'complexityDistribution': value['complexityDistribution'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['complexityDistribution'], DiskSizeTierSummary_js_1.DiskSizeTierSummaryToJSON)),
|
|
100
102
|
'ramGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['ramGB']),
|
|
101
103
|
'diskGB': (0, VMResourceBreakdown_js_1.VMResourceBreakdownToJSON)(value['diskGB']),
|
|
102
104
|
'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>}
|
|
@@ -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;
|