@openshift-migration-advisor/agent-sdk 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +5 -2
- package/dist/apis/DefaultApi.d.ts +38 -0
- package/dist/apis/DefaultApi.js +40 -0
- package/dist/esm/apis/DefaultApi.d.ts +38 -0
- package/dist/esm/apis/DefaultApi.js +40 -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/OsInfo.d.ts +16 -0
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.d.ts +1 -0
- package/dist/esm/runtime.js +4 -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/OsInfo.d.ts +16 -0
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.js +5 -0
- package/docs/CollectorStartRequest.md +3 -2
- package/docs/DefaultApi.md +70 -0
- package/docs/ExportInventory400Response.md +34 -0
- package/docs/ExportInventory500Response.md +34 -0
- package/docs/OsInfo.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +81 -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/OsInfo.ts +21 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +5 -0
- package/tsconfig.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Start collection. Credentials are optional if previously stored via PUT /credentials.
|
|
14
14
|
* @export
|
|
15
15
|
* @interface CollectorStartRequest
|
|
16
16
|
*/
|
|
@@ -20,31 +20,31 @@ export interface CollectorStartRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CollectorStartRequest
|
|
22
22
|
*/
|
|
23
|
-
url
|
|
23
|
+
url?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* vCenter username
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CollectorStartRequest
|
|
28
28
|
*/
|
|
29
|
-
username
|
|
29
|
+
username?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* vCenter password
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CollectorStartRequest
|
|
34
34
|
*/
|
|
35
|
-
password
|
|
35
|
+
password?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {
|
|
37
|
+
* Skip TLS certificate verification
|
|
38
|
+
* @type {boolean}
|
|
39
39
|
* @memberof CollectorStartRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
skipTls?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {
|
|
43
|
+
* PEM-encoded CA certificate bundle
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof CollectorStartRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
cacert?: string;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Check if a given object implements the CollectorStartRequest interface.
|
|
@@ -22,12 +22,6 @@ exports.CollectorStartRequestToJSONTyped = CollectorStartRequestToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the CollectorStartRequest interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfCollectorStartRequest(value) {
|
|
25
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('username' in value) || value['username'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('password' in value) || value['password'] === undefined)
|
|
30
|
-
return false;
|
|
31
25
|
return true;
|
|
32
26
|
}
|
|
33
27
|
function CollectorStartRequestFromJSON(json) {
|
|
@@ -38,11 +32,11 @@ function CollectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
32
|
return json;
|
|
39
33
|
}
|
|
40
34
|
return {
|
|
41
|
-
'url': json['url'],
|
|
42
|
-
'username': json['username'],
|
|
43
|
-
'password': json['password'],
|
|
44
|
-
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
35
|
+
'url': json['url'] == null ? undefined : json['url'],
|
|
36
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
37
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
45
38
|
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
39
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
46
40
|
};
|
|
47
41
|
}
|
|
48
42
|
function CollectorStartRequestToJSON(json) {
|
|
@@ -56,7 +50,7 @@ function CollectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
50
|
'url': value['url'],
|
|
57
51
|
'username': value['username'],
|
|
58
52
|
'password': value['password'],
|
|
59
|
-
'cacert': value['cacert'],
|
|
60
53
|
'skipTls': value['skipTls'],
|
|
54
|
+
'cacert': value['cacert'],
|
|
61
55
|
};
|
|
62
56
|
}
|
package/dist/models/Datastore.js
CHANGED
|
@@ -56,7 +56,7 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'hardwareAcceleratedMove': json['hardwareAcceleratedMove'],
|
|
57
57
|
'protocolType': json['protocolType'],
|
|
58
58
|
'model': json['model'],
|
|
59
|
-
'hostId': json['hostId']
|
|
59
|
+
'hostId': json['hostId'] === undefined ? undefined : json['hostId'] === null ? null : json['hostId'],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function DatastoreToJSON(json) {
|
|
@@ -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 ExportInventory400Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ExportInventory400Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ExportInventory400Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ExportInventory400Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfExportInventory400Response(value: object): value is ExportInventory400Response;
|
|
29
|
+
export declare function ExportInventory400ResponseFromJSON(json: any): ExportInventory400Response;
|
|
30
|
+
export declare function ExportInventory400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportInventory400Response;
|
|
31
|
+
export declare function ExportInventory400ResponseToJSON(json: any): ExportInventory400Response;
|
|
32
|
+
export declare function ExportInventory400ResponseToJSONTyped(value?: ExportInventory400Response | 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.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) {
|
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/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export * from './DeleteLabelGloballyResponse.js';
|
|
|
19
19
|
export * from './DiskSizeTierSummary.js';
|
|
20
20
|
export * from './DiskTypeSummary.js';
|
|
21
21
|
export * from './EstimateRange.js';
|
|
22
|
+
export * from './ExportInventory400Response.js';
|
|
23
|
+
export * from './ExportInventory500Response.js';
|
|
22
24
|
export * from './ForecastStats.js';
|
|
23
25
|
export * from './ForecasterDatastoresRequest.js';
|
|
24
26
|
export * from './ForecasterPairStatus.js';
|
package/dist/models/index.js
CHANGED
|
@@ -37,6 +37,8 @@ __exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
|
|
|
37
37
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
38
38
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
39
39
|
__exportStar(require("./EstimateRange.js"), exports);
|
|
40
|
+
__exportStar(require("./ExportInventory400Response.js"), exports);
|
|
41
|
+
__exportStar(require("./ExportInventory500Response.js"), exports);
|
|
40
42
|
__exportStar(require("./ForecastStats.js"), exports);
|
|
41
43
|
__exportStar(require("./ForecasterDatastoresRequest.js"), exports);
|
|
42
44
|
__exportStar(require("./ForecasterPairStatus.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) {
|
|
@@ -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)
|
package/docs/DefaultApi.md
CHANGED
|
@@ -9,6 +9,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
9
9
|
| [**deleteForecasterRun**](DefaultApi.md#deleteforecasterrun) | **DELETE** /forecaster/runs/{id} | Delete a benchmark run |
|
|
10
10
|
| [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
|
|
11
11
|
| [**deleteLabelGlobally**](DefaultApi.md#deletelabelglobally) | **DELETE** /vms/labels/{label} | Delete label from all VMs |
|
|
12
|
+
| [**exportInventory**](DefaultApi.md#exportinventory) | **GET** /export | Export VM inventory and migration planning data |
|
|
12
13
|
| [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
|
|
13
14
|
| [**getApplications**](DefaultApi.md#getapplications) | **GET** /applications | List detected applications running on VMs |
|
|
14
15
|
| [**getClusterUtilization**](DefaultApi.md#getclusterutilization) | **GET** /clusters/{cluster_id}/utilization | Get latest cluster utilization by cluster ID |
|
|
@@ -385,6 +386,75 @@ No authorization required
|
|
|
385
386
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
386
387
|
|
|
387
388
|
|
|
389
|
+
## exportInventory
|
|
390
|
+
|
|
391
|
+
> Blob exportInventory(scope)
|
|
392
|
+
|
|
393
|
+
Export VM inventory and migration planning data
|
|
394
|
+
|
|
395
|
+
Exports selected data scopes as CSV files packaged in a ZIP archive. Supports flexible scope selection for offline analysis in Excel or custom tools.
|
|
396
|
+
|
|
397
|
+
### Example
|
|
398
|
+
|
|
399
|
+
```ts
|
|
400
|
+
import {
|
|
401
|
+
Configuration,
|
|
402
|
+
DefaultApi,
|
|
403
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
404
|
+
import type { ExportInventoryRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
405
|
+
|
|
406
|
+
async function example() {
|
|
407
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
408
|
+
const api = new DefaultApi();
|
|
409
|
+
|
|
410
|
+
const body = {
|
|
411
|
+
// string | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection (optional)
|
|
412
|
+
scope: overview,hosts,vms,
|
|
413
|
+
} satisfies ExportInventoryRequest;
|
|
414
|
+
|
|
415
|
+
try {
|
|
416
|
+
const data = await api.exportInventory(body);
|
|
417
|
+
console.log(data);
|
|
418
|
+
} catch (error) {
|
|
419
|
+
console.error(error);
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
// Run the test
|
|
424
|
+
example().catch(console.error);
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Parameters
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
| Name | Type | Description | Notes |
|
|
431
|
+
|------------- | ------------- | ------------- | -------------|
|
|
432
|
+
| **scope** | `string` | Comma-separated list of scopes to export (default: overview). Available scopes: overview, hosts, clusters, datastores, vms, network, utilization, storage-forecast, applications, groups, inspection | [Optional] [Defaults to `undefined`] |
|
|
433
|
+
|
|
434
|
+
### Return type
|
|
435
|
+
|
|
436
|
+
**Blob**
|
|
437
|
+
|
|
438
|
+
### Authorization
|
|
439
|
+
|
|
440
|
+
No authorization required
|
|
441
|
+
|
|
442
|
+
### HTTP request headers
|
|
443
|
+
|
|
444
|
+
- **Content-Type**: Not defined
|
|
445
|
+
- **Accept**: `application/zip`, `application/json`
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### HTTP response details
|
|
449
|
+
| Status code | Description | Response headers |
|
|
450
|
+
|-------------|-------------|------------------|
|
|
451
|
+
| **200** | ZIP archive containing CSV files for requested scopes | - |
|
|
452
|
+
| **400** | Invalid scope name | - |
|
|
453
|
+
| **500** | Internal server error | - |
|
|
454
|
+
|
|
455
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
456
|
+
|
|
457
|
+
|
|
388
458
|
## getAgentStatus
|
|
389
459
|
|
|
390
460
|
> AgentStatus getAgentStatus()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ExportInventory400Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`error` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ExportInventory400Response } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"error": invalid scope: unknown,
|
|
19
|
+
} satisfies ExportInventory400Response
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ExportInventory400Response
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ExportInventory500Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`error` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ExportInventory500Response } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"error": null,
|
|
19
|
+
} satisfies ExportInventory500Response
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ExportInventory500Response
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/docs/OsInfo.md
CHANGED
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`count` | number
|
|
10
10
|
`supported` | boolean
|
|
11
|
+
`supportTier` | string
|
|
11
12
|
`upgradeRecommendation` | string
|
|
12
13
|
|
|
13
14
|
## Example
|
|
@@ -19,6 +20,7 @@ import type { OsInfo } from '@openshift-migration-advisor/agent-sdk'
|
|
|
19
20
|
const example = {
|
|
20
21
|
"count": null,
|
|
21
22
|
"supported": null,
|
|
23
|
+
"supportTier": null,
|
|
22
24
|
"upgradeRecommendation": null,
|
|
23
25
|
} satisfies OsInfo
|
|
24
26
|
|