@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.0-65f4a2a64a85
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 +8 -0
- package/README.md +13 -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/VMs.d.ts +7 -0
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -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/VMs.d.ts +7 -0
- package/dist/models/VMs.js +3 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -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/VMs.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/VMs.ts +15 -0
- package/src/models/index.ts +4 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfExportInventory400Response = instanceOfExportInventory400Response;
|
|
17
|
+
exports.ExportInventory400ResponseFromJSON = ExportInventory400ResponseFromJSON;
|
|
18
|
+
exports.ExportInventory400ResponseFromJSONTyped = ExportInventory400ResponseFromJSONTyped;
|
|
19
|
+
exports.ExportInventory400ResponseToJSON = ExportInventory400ResponseToJSON;
|
|
20
|
+
exports.ExportInventory400ResponseToJSONTyped = ExportInventory400ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ExportInventory400Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfExportInventory400Response(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ExportInventory400ResponseFromJSON(json) {
|
|
28
|
+
return ExportInventory400ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ExportInventory400ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ExportInventory400ResponseToJSON(json) {
|
|
39
|
+
return ExportInventory400ResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ExportInventory400ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'error': value['error'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,48 @@
|
|
|
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.instanceOfExportInventory500Response = instanceOfExportInventory500Response;
|
|
17
|
+
exports.ExportInventory500ResponseFromJSON = ExportInventory500ResponseFromJSON;
|
|
18
|
+
exports.ExportInventory500ResponseFromJSONTyped = ExportInventory500ResponseFromJSONTyped;
|
|
19
|
+
exports.ExportInventory500ResponseToJSON = ExportInventory500ResponseToJSON;
|
|
20
|
+
exports.ExportInventory500ResponseToJSONTyped = ExportInventory500ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ExportInventory500Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfExportInventory500Response(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ExportInventory500ResponseFromJSON(json) {
|
|
28
|
+
return ExportInventory500ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ExportInventory500ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function ExportInventory500ResponseToJSON(json) {
|
|
39
|
+
return ExportInventory500ResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ExportInventory500ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'error': value['error'],
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/models/Host.js
CHANGED
|
@@ -39,9 +39,9 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
40
|
'vendor': json['vendor'],
|
|
41
41
|
'model': json['model'],
|
|
42
|
-
'cpuCores': json['cpuCores']
|
|
43
|
-
'cpuSockets': json['cpuSockets']
|
|
44
|
-
'memoryMB': json['memoryMB']
|
|
42
|
+
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
43
|
+
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
44
|
+
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
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,66 @@
|
|
|
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.instanceOfIssuesBreakdown = instanceOfIssuesBreakdown;
|
|
17
|
+
exports.IssuesBreakdownFromJSON = IssuesBreakdownFromJSON;
|
|
18
|
+
exports.IssuesBreakdownFromJSONTyped = IssuesBreakdownFromJSONTyped;
|
|
19
|
+
exports.IssuesBreakdownToJSON = IssuesBreakdownToJSON;
|
|
20
|
+
exports.IssuesBreakdownToJSONTyped = IssuesBreakdownToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IssuesBreakdown interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIssuesBreakdown(value) {
|
|
25
|
+
if (!('critical' in value) || value['critical'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('warning' in value) || value['warning'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('information' in value) || value['information'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('advisory' in value) || value['advisory'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function IssuesBreakdownFromJSON(json) {
|
|
38
|
+
return IssuesBreakdownFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function IssuesBreakdownFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'critical': json['critical'],
|
|
46
|
+
'warning': json['warning'],
|
|
47
|
+
'information': json['information'],
|
|
48
|
+
'advisory': json['advisory'],
|
|
49
|
+
'error': json['error'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function IssuesBreakdownToJSON(json) {
|
|
53
|
+
return IssuesBreakdownToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function IssuesBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'critical': value['critical'],
|
|
61
|
+
'warning': value['warning'],
|
|
62
|
+
'information': value['information'],
|
|
63
|
+
'advisory': value['advisory'],
|
|
64
|
+
'error': value['error'],
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/OsInfo.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/models/OsInfo.js
CHANGED
|
@@ -13,11 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.OsInfoSupportTierEnum = void 0;
|
|
16
17
|
exports.instanceOfOsInfo = instanceOfOsInfo;
|
|
17
18
|
exports.OsInfoFromJSON = OsInfoFromJSON;
|
|
18
19
|
exports.OsInfoFromJSONTyped = OsInfoFromJSONTyped;
|
|
19
20
|
exports.OsInfoToJSON = OsInfoToJSON;
|
|
20
21
|
exports.OsInfoToJSONTyped = OsInfoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.OsInfoSupportTierEnum = {
|
|
26
|
+
Certified: 'certified',
|
|
27
|
+
VendorSupported: 'vendor_supported',
|
|
28
|
+
CommunitySupported: 'community_supported',
|
|
29
|
+
SpecialHandling: 'special_handling'
|
|
30
|
+
};
|
|
21
31
|
/**
|
|
22
32
|
* Check if a given object implements the OsInfo interface.
|
|
23
33
|
*/
|
|
@@ -38,6 +48,7 @@ function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
48
|
return {
|
|
39
49
|
'count': json['count'],
|
|
40
50
|
'supported': json['supported'],
|
|
51
|
+
'supportTier': json['supportTier'] == null ? undefined : json['supportTier'],
|
|
41
52
|
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
42
53
|
};
|
|
43
54
|
}
|
|
@@ -51,6 +62,7 @@ function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
62
|
return {
|
|
52
63
|
'count': value['count'],
|
|
53
64
|
'supported': value['supported'],
|
|
65
|
+
'supportTier': value['supportTier'],
|
|
54
66
|
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
55
67
|
};
|
|
56
68
|
}
|
package/dist/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/models/VMs.js
CHANGED
|
@@ -21,6 +21,7 @@ exports.VMsToJSONTyped = VMsToJSONTyped;
|
|
|
21
21
|
const runtime_js_1 = require("../runtime.js");
|
|
22
22
|
const MigrationIssue_js_1 = require("./MigrationIssue.js");
|
|
23
23
|
const OsInfo_js_1 = require("./OsInfo.js");
|
|
24
|
+
const IssuesBreakdown_js_1 = require("./IssuesBreakdown.js");
|
|
24
25
|
const DiskSizeTierSummary_js_1 = require("./DiskSizeTierSummary.js");
|
|
25
26
|
const DiskTypeSummary_js_1 = require("./DiskTypeSummary.js");
|
|
26
27
|
const VMResourceBreakdown_js_1 = require("./VMResourceBreakdown.js");
|
|
@@ -78,6 +79,7 @@ function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
79
|
'osInfo': json['osInfo'] == null ? undefined : ((0, runtime_js_1.mapValues)(json['osInfo'], OsInfo_js_1.OsInfoFromJSON)),
|
|
79
80
|
'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssue_js_1.MigrationIssueFromJSON)),
|
|
80
81
|
'migrationWarnings': (json['migrationWarnings'].map(MigrationIssue_js_1.MigrationIssueFromJSON)),
|
|
82
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : (0, IssuesBreakdown_js_1.IssuesBreakdownFromJSON)(json['issuesBreakdown']),
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
85
|
function VMsToJSON(json) {
|
|
@@ -110,5 +112,6 @@ function VMsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
110
112
|
'osInfo': value['osInfo'] == null ? undefined : ((0, runtime_js_1.mapValues)(value['osInfo'], OsInfo_js_1.OsInfoToJSON)),
|
|
111
113
|
'notMigratableReasons': (value['notMigratableReasons'].map(MigrationIssue_js_1.MigrationIssueToJSON)),
|
|
112
114
|
'migrationWarnings': (value['migrationWarnings'].map(MigrationIssue_js_1.MigrationIssueToJSON)),
|
|
115
|
+
'issuesBreakdown': (0, IssuesBreakdown_js_1.IssuesBreakdownToJSON)(value['issuesBreakdown']),
|
|
113
116
|
};
|
|
114
117
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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,6 +38,7 @@ 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';
|
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AgentStatus.js"), exports);
|
|
|
21
21
|
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
22
22
|
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
23
23
|
__exportStar(require("./ApplicationVM.js"), exports);
|
|
24
|
+
__exportStar(require("./BatchUpdateExclusionRequest.js"), exports);
|
|
24
25
|
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
25
26
|
__exportStar(require("./CapabilityStatus.js"), exports);
|
|
26
27
|
__exportStar(require("./CapabilityStatusCapabilities.js"), exports);
|
|
@@ -37,6 +38,8 @@ __exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
|
|
|
37
38
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
38
39
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
39
40
|
__exportStar(require("./EstimateRange.js"), exports);
|
|
41
|
+
__exportStar(require("./ExportInventory400Response.js"), exports);
|
|
42
|
+
__exportStar(require("./ExportInventory500Response.js"), exports);
|
|
40
43
|
__exportStar(require("./ForecastStats.js"), exports);
|
|
41
44
|
__exportStar(require("./ForecasterDatastoresRequest.js"), exports);
|
|
42
45
|
__exportStar(require("./ForecasterPairStatus.js"), exports);
|
|
@@ -53,6 +56,7 @@ __exportStar(require("./Infra.js"), exports);
|
|
|
53
56
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
54
57
|
__exportStar(require("./Inventory.js"), exports);
|
|
55
58
|
__exportStar(require("./InventoryData.js"), exports);
|
|
59
|
+
__exportStar(require("./IssuesBreakdown.js"), exports);
|
|
56
60
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
57
61
|
__exportStar(require("./Network.js"), exports);
|
|
58
62
|
__exportStar(require("./OperationCapability.js"), exports);
|
package/dist/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/runtime.js
CHANGED
|
@@ -26,6 +26,7 @@ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = ex
|
|
|
26
26
|
exports.querystring = querystring;
|
|
27
27
|
exports.exists = exists;
|
|
28
28
|
exports.mapValues = mapValues;
|
|
29
|
+
exports.anyToJSON = anyToJSON;
|
|
29
30
|
exports.canConsumeForm = canConsumeForm;
|
|
30
31
|
exports.BASE_PATH = "https://raw.githubusercontent.com/api/v1".replace(/\/+$/, "");
|
|
31
32
|
class Configuration {
|
|
@@ -308,6 +309,10 @@ function mapValues(data, fn) {
|
|
|
308
309
|
}
|
|
309
310
|
return result;
|
|
310
311
|
}
|
|
312
|
+
// Pass-through serializer for `any`-typed properties in form data. See #1877.
|
|
313
|
+
function anyToJSON(value) {
|
|
314
|
+
return value;
|
|
315
|
+
}
|
|
311
316
|
function canConsumeForm(consumes) {
|
|
312
317
|
var _a;
|
|
313
318
|
for (const consume of consumes) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# BatchUpdateExclusionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`vmIds` | Array<string>
|
|
10
|
+
`migrationExcluded` | boolean
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { BatchUpdateExclusionRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"vmIds": null,
|
|
20
|
+
"migrationExcluded": null,
|
|
21
|
+
} satisfies BatchUpdateExclusionRequest
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as BatchUpdateExclusionRequest
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
# CollectorStartRequest
|
|
3
3
|
|
|
4
|
+
Start collection. Credentials are optional if previously stored via PUT /credentials.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
@@ -9,8 +10,8 @@ Name | Type
|
|
|
9
10
|
`url` | string
|
|
10
11
|
`username` | string
|
|
11
12
|
`password` | string
|
|
12
|
-
`cacert` | string
|
|
13
13
|
`skipTls` | boolean
|
|
14
|
+
`cacert` | string
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -22,8 +23,8 @@ const example = {
|
|
|
22
23
|
"url": null,
|
|
23
24
|
"username": null,
|
|
24
25
|
"password": null,
|
|
25
|
-
"cacert": null,
|
|
26
26
|
"skipTls": null,
|
|
27
|
+
"cacert": null,
|
|
27
28
|
} satisfies CollectorStartRequest
|
|
28
29
|
|
|
29
30
|
console.log(example)
|