@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.0-a72771aca4b0
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 +10 -0
- package/README.md +14 -9
- package/dist/apis/DefaultApi.d.ts +74 -85
- package/dist/apis/DefaultApi.js +80 -86
- package/dist/esm/apis/DefaultApi.d.ts +74 -85
- package/dist/esm/apis/DefaultApi.js +80 -86
- package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/esm/models/BatchUpdateExclusionRequest.js +47 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -12
- package/dist/esm/models/CollectorStartRequest.js +5 -11
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/ExportInventory400Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory400Response.js +41 -0
- package/dist/esm/models/ExportInventory500Response.d.ts +32 -0
- package/dist/esm/models/ExportInventory500Response.js +41 -0
- package/dist/esm/models/Host.js +3 -3
- package/dist/esm/models/IssuesBreakdown.d.ts +56 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/Process.d.ts +38 -0
- package/dist/esm/models/Process.js +45 -0
- package/dist/esm/models/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -0
- package/dist/models/BatchUpdateExclusionRequest.d.ts +38 -0
- package/dist/models/BatchUpdateExclusionRequest.js +54 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -12
- package/dist/models/CollectorStartRequest.js +5 -11
- package/dist/models/Datastore.js +1 -1
- package/dist/models/ExportInventory400Response.d.ts +32 -0
- package/dist/models/ExportInventory400Response.js +48 -0
- package/dist/models/ExportInventory500Response.d.ts +32 -0
- package/dist/models/ExportInventory500Response.js +48 -0
- package/dist/models/Host.js +3 -3
- package/dist/models/IssuesBreakdown.d.ts +56 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/Process.d.ts +38 -0
- package/dist/models/Process.js +52 -0
- package/dist/models/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/BatchUpdateExclusionRequest.md +36 -0
- package/docs/CollectorStartRequest.md +3 -2
- package/docs/DefaultApi.md +139 -139
- package/docs/ExportInventory400Response.md +34 -0
- package/docs/ExportInventory500Response.md +34 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Process.md +36 -0
- package/docs/VMs.md +2 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +159 -159
- package/src/models/BatchUpdateExclusionRequest.ts +75 -0
- package/src/models/CollectorStartRequest.ts +17 -20
- package/src/models/Datastore.ts +1 -1
- package/src/models/ExportInventory400Response.ts +65 -0
- package/src/models/ExportInventory500Response.ts +65 -0
- package/src/models/Host.ts +3 -3
- package/src/models/IssuesBreakdown.ts +102 -0
- package/src/models/OsInfo.ts +21 -0
- package/src/models/Process.ts +74 -0
- package/src/models/VMs.ts +15 -0
- package/src/models/VirtualMachineDetail.ts +15 -0
- package/src/models/index.ts +5 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
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 ExportInventory400Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfExportInventory400Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ExportInventory400ResponseFromJSON(json) {
|
|
21
|
+
return ExportInventory400ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ExportInventory400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ExportInventory400ResponseToJSON(json) {
|
|
32
|
+
return ExportInventory400ResponseToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ExportInventory400ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'error': value['error'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExportInventory500Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportInventory500Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExportInventory500Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ExportInventory500Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfExportInventory500Response(value: object): value is ExportInventory500Response;
|
|
29
|
+
export declare function ExportInventory500ResponseFromJSON(json: any): ExportInventory500Response;
|
|
30
|
+
export declare function ExportInventory500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory500Response;
|
|
31
|
+
export declare function ExportInventory500ResponseToJSON(json: any): ExportInventory500Response;
|
|
32
|
+
export declare function ExportInventory500ResponseToJSONTyped(value?: ExportInventory500Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 ExportInventory500Response interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfExportInventory500Response(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ExportInventory500ResponseFromJSON(json) {
|
|
21
|
+
return ExportInventory500ResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ExportInventory500ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function ExportInventory500ResponseToJSON(json) {
|
|
32
|
+
return ExportInventory500ResponseToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ExportInventory500ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'error': value['error'],
|
|
40
|
+
};
|
|
41
|
+
}
|
package/dist/esm/models/Host.js
CHANGED
|
@@ -32,9 +32,9 @@ export function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
'id': json['id'] == null ? undefined : json['id'],
|
|
33
33
|
'vendor': json['vendor'],
|
|
34
34
|
'model': json['model'],
|
|
35
|
-
'cpuCores': json['cpuCores']
|
|
36
|
-
'cpuSockets': json['cpuSockets']
|
|
37
|
-
'memoryMB': json['memoryMB']
|
|
35
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
36
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
37
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
export function HostToJSON(json) {
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IssuesBreakdown
|
|
16
|
+
*/
|
|
17
|
+
export interface IssuesBreakdown {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs with at least one Critical issue
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IssuesBreakdown
|
|
22
|
+
*/
|
|
23
|
+
critical: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of VMs with at least one Warning issue
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof IssuesBreakdown
|
|
28
|
+
*/
|
|
29
|
+
warning: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of VMs with at least one Information issue
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IssuesBreakdown
|
|
34
|
+
*/
|
|
35
|
+
information: number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of VMs with at least one Advisory issue
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IssuesBreakdown
|
|
40
|
+
*/
|
|
41
|
+
advisory: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of VMs with at least one Error issue
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof IssuesBreakdown
|
|
46
|
+
*/
|
|
47
|
+
error: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfIssuesBreakdown(value: object): value is IssuesBreakdown;
|
|
53
|
+
export declare function IssuesBreakdownFromJSON(json: any): IssuesBreakdown;
|
|
54
|
+
export declare function IssuesBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuesBreakdown;
|
|
55
|
+
export declare function IssuesBreakdownToJSON(json: any): IssuesBreakdown;
|
|
56
|
+
export declare function IssuesBreakdownToJSONTyped(value?: IssuesBreakdown | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 IssuesBreakdown interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIssuesBreakdown(value) {
|
|
18
|
+
if (!('critical' in value) || value['critical'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('information' in value) || value['information'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('advisory' in value) || value['advisory'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function IssuesBreakdownFromJSON(json) {
|
|
31
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'critical': json['critical'],
|
|
39
|
+
'warning': json['warning'],
|
|
40
|
+
'information': json['information'],
|
|
41
|
+
'advisory': json['advisory'],
|
|
42
|
+
'error': json['error'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function IssuesBreakdownToJSON(json) {
|
|
46
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'critical': value['critical'],
|
|
54
|
+
'warning': value['warning'],
|
|
55
|
+
'information': value['information'],
|
|
56
|
+
'advisory': value['advisory'],
|
|
57
|
+
'error': value['error'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface OsInfo {
|
|
|
27
27
|
* @memberof OsInfo
|
|
28
28
|
*/
|
|
29
29
|
supported: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* OS support tier per Red Hat KCS article 4234591
|
|
32
|
+
* @type {OsInfoSupportTierEnum}
|
|
33
|
+
* @memberof OsInfo
|
|
34
|
+
*/
|
|
35
|
+
supportTier?: OsInfoSupportTierEnum;
|
|
30
36
|
/**
|
|
31
37
|
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
38
|
* @type {string}
|
|
@@ -34,6 +40,16 @@ export interface OsInfo {
|
|
|
34
40
|
*/
|
|
35
41
|
upgradeRecommendation?: string;
|
|
36
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const OsInfoSupportTierEnum: {
|
|
47
|
+
readonly Certified: "certified";
|
|
48
|
+
readonly VendorSupported: "vendor_supported";
|
|
49
|
+
readonly CommunitySupported: "community_supported";
|
|
50
|
+
readonly SpecialHandling: "special_handling";
|
|
51
|
+
};
|
|
52
|
+
export type OsInfoSupportTierEnum = typeof OsInfoSupportTierEnum[keyof typeof OsInfoSupportTierEnum];
|
|
37
53
|
/**
|
|
38
54
|
* Check if a given object implements the OsInfo interface.
|
|
39
55
|
*/
|
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const OsInfoSupportTierEnum = {
|
|
18
|
+
Certified: 'certified',
|
|
19
|
+
VendorSupported: 'vendor_supported',
|
|
20
|
+
CommunitySupported: 'community_supported',
|
|
21
|
+
SpecialHandling: 'special_handling'
|
|
22
|
+
};
|
|
14
23
|
/**
|
|
15
24
|
* Check if a given object implements the OsInfo interface.
|
|
16
25
|
*/
|
|
@@ -31,6 +40,7 @@ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
40
|
return {
|
|
32
41
|
'count': json['count'],
|
|
33
42
|
'supported': json['supported'],
|
|
43
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
34
44
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
35
45
|
};
|
|
36
46
|
}
|
|
@@ -44,6 +54,7 @@ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
54
|
return {
|
|
45
55
|
'count': value['count'],
|
|
46
56
|
'supported': value['supported'],
|
|
57
|
+
'supportTier': value['supportTier'],
|
|
47
58
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
48
59
|
};
|
|
49
60
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Process
|
|
16
|
+
*/
|
|
17
|
+
export interface Process {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the process
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Process
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Version of the process
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Process
|
|
28
|
+
*/
|
|
29
|
+
version?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Process interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfProcess(value: object): value is Process;
|
|
35
|
+
export declare function ProcessFromJSON(json: any): Process;
|
|
36
|
+
export declare function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process;
|
|
37
|
+
export declare function ProcessToJSON(json: any): Process;
|
|
38
|
+
export declare function ProcessToJSONTyped(value?: Process | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 Process interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfProcess(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ProcessFromJSON(json) {
|
|
23
|
+
return ProcessFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ProcessFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
'version': json['version'] == null ? undefined : json['version'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ProcessToJSON(json) {
|
|
35
|
+
return ProcessToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ProcessToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
'version': value['version'],
|
|
44
|
+
};
|
|
45
|
+
}
|
package/dist/esm/models/VMs.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { MigrationIssue } from './MigrationIssue.js';
|
|
13
13
|
import type { OsInfo } from './OsInfo.js';
|
|
14
|
+
import type { IssuesBreakdown } from './IssuesBreakdown.js';
|
|
14
15
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
|
|
15
16
|
import type { DiskTypeSummary } from './DiskTypeSummary.js';
|
|
16
17
|
import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
|
|
@@ -177,6 +178,12 @@ export interface VMs {
|
|
|
177
178
|
* @memberof VMs
|
|
178
179
|
*/
|
|
179
180
|
migrationWarnings: Array<MigrationIssue>;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {IssuesBreakdown}
|
|
184
|
+
* @memberof VMs
|
|
185
|
+
*/
|
|
186
|
+
issuesBreakdown?: IssuesBreakdown;
|
|
180
187
|
}
|
|
181
188
|
/**
|
|
182
189
|
* Check if a given object implements the VMs interface.
|
package/dist/esm/models/VMs.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { mapValues } from '../runtime.js';
|
|
15
15
|
import { MigrationIssueFromJSON, MigrationIssueToJSON, } from './MigrationIssue.js';
|
|
16
16
|
import { OsInfoFromJSON, OsInfoToJSON, } from './OsInfo.js';
|
|
17
|
+
import { IssuesBreakdownFromJSON, IssuesBreakdownToJSON, } from './IssuesBreakdown.js';
|
|
17
18
|
import { DiskSizeTierSummaryFromJSON, DiskSizeTierSummaryToJSON, } from './DiskSizeTierSummary.js';
|
|
18
19
|
import { DiskTypeSummaryFromJSON, DiskTypeSummaryToJSON, } from './DiskTypeSummary.js';
|
|
19
20
|
import { VMResourceBreakdownFromJSON, VMResourceBreakdownToJSON, } from './VMResourceBreakdown.js';
|
|
@@ -71,6 +72,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
72
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
72
73
|
'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssueFromJSON)),
|
|
73
74
|
'migrationWarnings': (json['migrationWarnings'].map(MigrationIssueFromJSON)),
|
|
75
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
export function VMsToJSON(json) {
|
|
@@ -103,5 +105,6 @@ export function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
105
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
|
104
106
|
'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssueToJSON)),
|
|
105
107
|
'migrationWarnings': (value['migrationWarnings'].map(MigrationIssueToJSON)),
|
|
108
|
+
'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
|
|
106
109
|
};
|
|
107
110
|
}
|
|
@@ -14,6 +14,7 @@ import type { GuestNetwork } from './GuestNetwork.js';
|
|
|
14
14
|
import type { VMIssue } from './VMIssue.js';
|
|
15
15
|
import type { VMDevice } from './VMDevice.js';
|
|
16
16
|
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
17
|
+
import type { Process } from './Process.js';
|
|
17
18
|
import type { VMDisk } from './VMDisk.js';
|
|
18
19
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
19
20
|
/**
|
|
@@ -226,6 +227,12 @@ export interface VirtualMachineDetail {
|
|
|
226
227
|
* @memberof VirtualMachineDetail
|
|
227
228
|
*/
|
|
228
229
|
utilization?: VmUtilizationDetails;
|
|
230
|
+
/**
|
|
231
|
+
* List of processes detected on this VM
|
|
232
|
+
* @type {Array<Process>}
|
|
233
|
+
* @memberof VirtualMachineDetail
|
|
234
|
+
*/
|
|
235
|
+
processes?: Array<Process>;
|
|
229
236
|
}
|
|
230
237
|
/**
|
|
231
238
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -16,6 +16,7 @@ import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
|
|
|
16
16
|
import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
|
|
17
17
|
import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
|
|
18
18
|
import { VmUtilizationDetailsFromJSON, VmUtilizationDetailsToJSON, } from './VmUtilizationDetails.js';
|
|
19
|
+
import { ProcessFromJSON, ProcessToJSON, } from './Process.js';
|
|
19
20
|
import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
|
|
20
21
|
import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
|
|
21
22
|
/**
|
|
@@ -84,6 +85,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
85
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
|
|
85
86
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
86
87
|
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
88
|
+
'processes': json['processes'] == null ? undefined : (json['processes'].map(ProcessFromJSON)),
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
export function VirtualMachineDetailToJSON(json) {
|
|
@@ -128,5 +130,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
128
130
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
|
|
129
131
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
130
132
|
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
133
|
+
'processes': value['processes'] == null ? undefined : (value['processes'].map(ProcessToJSON)),
|
|
131
134
|
};
|
|
132
135
|
}
|
|
@@ -3,6 +3,7 @@ export * from './AgentStatus.js';
|
|
|
3
3
|
export * from './ApplicationListResponse.js';
|
|
4
4
|
export * from './ApplicationOverview.js';
|
|
5
5
|
export * from './ApplicationVM.js';
|
|
6
|
+
export * from './BatchUpdateExclusionRequest.js';
|
|
6
7
|
export * from './BenchmarkRun.js';
|
|
7
8
|
export * from './CapabilityStatus.js';
|
|
8
9
|
export * from './CapabilityStatusCapabilities.js';
|
|
@@ -19,6 +20,8 @@ export * from './DeleteLabelGloballyResponse.js';
|
|
|
19
20
|
export * from './DiskSizeTierSummary.js';
|
|
20
21
|
export * from './DiskTypeSummary.js';
|
|
21
22
|
export * from './EstimateRange.js';
|
|
23
|
+
export * from './ExportInventory400Response.js';
|
|
24
|
+
export * from './ExportInventory500Response.js';
|
|
22
25
|
export * from './ForecastStats.js';
|
|
23
26
|
export * from './ForecasterDatastoresRequest.js';
|
|
24
27
|
export * from './ForecasterPairStatus.js';
|
|
@@ -35,12 +38,14 @@ export * from './Infra.js';
|
|
|
35
38
|
export * from './InspectorStatus.js';
|
|
36
39
|
export * from './Inventory.js';
|
|
37
40
|
export * from './InventoryData.js';
|
|
41
|
+
export * from './IssuesBreakdown.js';
|
|
38
42
|
export * from './MigrationIssue.js';
|
|
39
43
|
export * from './Network.js';
|
|
40
44
|
export * from './OperationCapability.js';
|
|
41
45
|
export * from './OsInfo.js';
|
|
42
46
|
export * from './PairCapability.js';
|
|
43
47
|
export * from './PairCapabilityRequest.js';
|
|
48
|
+
export * from './Process.js';
|
|
44
49
|
export * from './PutForecasterCredentials403Response.js';
|
|
45
50
|
export * from './RightsizingClusterListResponse.js';
|
|
46
51
|
export * from './RightsizingClusterResponse.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from './AgentStatus.js';
|
|
|
5
5
|
export * from './ApplicationListResponse.js';
|
|
6
6
|
export * from './ApplicationOverview.js';
|
|
7
7
|
export * from './ApplicationVM.js';
|
|
8
|
+
export * from './BatchUpdateExclusionRequest.js';
|
|
8
9
|
export * from './BenchmarkRun.js';
|
|
9
10
|
export * from './CapabilityStatus.js';
|
|
10
11
|
export * from './CapabilityStatusCapabilities.js';
|
|
@@ -21,6 +22,8 @@ export * from './DeleteLabelGloballyResponse.js';
|
|
|
21
22
|
export * from './DiskSizeTierSummary.js';
|
|
22
23
|
export * from './DiskTypeSummary.js';
|
|
23
24
|
export * from './EstimateRange.js';
|
|
25
|
+
export * from './ExportInventory400Response.js';
|
|
26
|
+
export * from './ExportInventory500Response.js';
|
|
24
27
|
export * from './ForecastStats.js';
|
|
25
28
|
export * from './ForecasterDatastoresRequest.js';
|
|
26
29
|
export * from './ForecasterPairStatus.js';
|
|
@@ -37,12 +40,14 @@ export * from './Infra.js';
|
|
|
37
40
|
export * from './InspectorStatus.js';
|
|
38
41
|
export * from './Inventory.js';
|
|
39
42
|
export * from './InventoryData.js';
|
|
43
|
+
export * from './IssuesBreakdown.js';
|
|
40
44
|
export * from './MigrationIssue.js';
|
|
41
45
|
export * from './Network.js';
|
|
42
46
|
export * from './OperationCapability.js';
|
|
43
47
|
export * from './OsInfo.js';
|
|
44
48
|
export * from './PairCapability.js';
|
|
45
49
|
export * from './PairCapabilityRequest.js';
|
|
50
|
+
export * from './Process.js';
|
|
46
51
|
export * from './PutForecasterCredentials403Response.js';
|
|
47
52
|
export * from './RightsizingClusterListResponse.js';
|
|
48
53
|
export * from './RightsizingClusterResponse.js';
|
package/dist/esm/runtime.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export declare function exists(json: any, key: string): boolean;
|
|
|
127
127
|
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
128
|
[key: string]: any;
|
|
129
129
|
};
|
|
130
|
+
export declare function anyToJSON(value: any): any;
|
|
130
131
|
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
132
|
export interface Consume {
|
|
132
133
|
contentType: string;
|
package/dist/esm/runtime.js
CHANGED
|
@@ -296,6 +296,10 @@ export function mapValues(data, fn) {
|
|
|
296
296
|
}
|
|
297
297
|
return result;
|
|
298
298
|
}
|
|
299
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
300
|
+
export function anyToJSON(value) {
|
|
301
|
+
return value;
|
|
302
|
+
}
|
|
299
303
|
export function canConsumeForm(consumes) {
|
|
300
304
|
var _a;
|
|
301
305
|
for (const consume of consumes) {
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BatchUpdateExclusionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface BatchUpdateExclusionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* VM IDs to update
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof BatchUpdateExclusionRequest
|
|
22
|
+
*/
|
|
23
|
+
vmIds: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Exclusion state to set for all VMs
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof BatchUpdateExclusionRequest
|
|
28
|
+
*/
|
|
29
|
+
migrationExcluded: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the BatchUpdateExclusionRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfBatchUpdateExclusionRequest(value: object): value is BatchUpdateExclusionRequest;
|
|
35
|
+
export declare function BatchUpdateExclusionRequestFromJSON(json: any): BatchUpdateExclusionRequest;
|
|
36
|
+
export declare function BatchUpdateExclusionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchUpdateExclusionRequest;
|
|
37
|
+
export declare function BatchUpdateExclusionRequestToJSON(json: any): BatchUpdateExclusionRequest;
|
|
38
|
+
export declare function BatchUpdateExclusionRequestToJSONTyped(value?: BatchUpdateExclusionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfBatchUpdateExclusionRequest = instanceOfBatchUpdateExclusionRequest;
|
|
17
|
+
exports.BatchUpdateExclusionRequestFromJSON = BatchUpdateExclusionRequestFromJSON;
|
|
18
|
+
exports.BatchUpdateExclusionRequestFromJSONTyped = BatchUpdateExclusionRequestFromJSONTyped;
|
|
19
|
+
exports.BatchUpdateExclusionRequestToJSON = BatchUpdateExclusionRequestToJSON;
|
|
20
|
+
exports.BatchUpdateExclusionRequestToJSONTyped = BatchUpdateExclusionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BatchUpdateExclusionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBatchUpdateExclusionRequest(value) {
|
|
25
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('migrationExcluded' in value) || value['migrationExcluded'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function BatchUpdateExclusionRequestFromJSON(json) {
|
|
32
|
+
return BatchUpdateExclusionRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function BatchUpdateExclusionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'vmIds': json['vmIds'],
|
|
40
|
+
'migrationExcluded': json['migrationExcluded'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function BatchUpdateExclusionRequestToJSON(json) {
|
|
44
|
+
return BatchUpdateExclusionRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function BatchUpdateExclusionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'vmIds': value['vmIds'],
|
|
52
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
53
|
+
};
|
|
54
|
+
}
|