@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890
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 +20 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -17
- package/dist/apis/DefaultApi.d.ts +260 -130
- package/dist/apis/DefaultApi.js +313 -172
- package/dist/esm/apis/DefaultApi.d.ts +260 -130
- package/dist/esm/apis/DefaultApi.js +295 -154
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -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/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -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/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +368 -163
- package/docs/InspectorStatus.md +4 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +564 -285
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -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/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +10 -1
- package/src/runtime.ts +1 -2
- 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
|
@@ -0,0 +1,81 @@
|
|
|
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 { RightsizingVMReport } from './RightsizingVMReport.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingReport
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingReport {
|
|
19
|
+
/**
|
|
20
|
+
* UUID of the report
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingReport
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* vCenter URL used for this collection
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RightsizingReport
|
|
29
|
+
*/
|
|
30
|
+
vcenter: string;
|
|
31
|
+
/**
|
|
32
|
+
* MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RightsizingReport
|
|
35
|
+
*/
|
|
36
|
+
clusterId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof RightsizingReport
|
|
41
|
+
*/
|
|
42
|
+
windowStart: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof RightsizingReport
|
|
47
|
+
*/
|
|
48
|
+
windowEnd: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingReport
|
|
53
|
+
*/
|
|
54
|
+
intervalId: number;
|
|
55
|
+
/**
|
|
56
|
+
* Theoretical maximum samples for the window (lookback / interval)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof RightsizingReport
|
|
59
|
+
*/
|
|
60
|
+
expectedSampleCount: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<RightsizingVMReport>}
|
|
64
|
+
* @memberof RightsizingReport
|
|
65
|
+
*/
|
|
66
|
+
vms: Array<RightsizingVMReport>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof RightsizingReport
|
|
71
|
+
*/
|
|
72
|
+
createdAt: Date;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the RightsizingReport interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfRightsizingReport(value: object): value is RightsizingReport;
|
|
78
|
+
export declare function RightsizingReportFromJSON(json: any): RightsizingReport;
|
|
79
|
+
export declare function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReport;
|
|
80
|
+
export declare function RightsizingReportToJSON(json: any): RightsizingReport;
|
|
81
|
+
export declare function RightsizingReportToJSONTyped(value?: RightsizingReport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.instanceOfRightsizingReport = instanceOfRightsizingReport;
|
|
17
|
+
exports.RightsizingReportFromJSON = RightsizingReportFromJSON;
|
|
18
|
+
exports.RightsizingReportFromJSONTyped = RightsizingReportFromJSONTyped;
|
|
19
|
+
exports.RightsizingReportToJSON = RightsizingReportToJSON;
|
|
20
|
+
exports.RightsizingReportToJSONTyped = RightsizingReportToJSONTyped;
|
|
21
|
+
const RightsizingVMReport_js_1 = require("./RightsizingVMReport.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingReport interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingReport(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('windowStart' in value) || value['windowStart'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('windowEnd' in value) || value['windowEnd'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('intervalId' in value) || value['intervalId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function RightsizingReportFromJSON(json) {
|
|
47
|
+
return RightsizingReportFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'vcenter': json['vcenter'],
|
|
56
|
+
'clusterId': json['cluster_id'],
|
|
57
|
+
'windowStart': (new Date(json['window_start'])),
|
|
58
|
+
'windowEnd': (new Date(json['window_end'])),
|
|
59
|
+
'intervalId': json['interval_id'],
|
|
60
|
+
'expectedSampleCount': json['expected_sample_count'],
|
|
61
|
+
'vms': (json['vms'].map(RightsizingVMReport_js_1.RightsizingVMReportFromJSON)),
|
|
62
|
+
'createdAt': (new Date(json['created_at'])),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function RightsizingReportToJSON(json) {
|
|
66
|
+
return RightsizingReportToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'vcenter': value['vcenter'],
|
|
75
|
+
'cluster_id': value['clusterId'],
|
|
76
|
+
'window_start': value['windowStart'].toISOString(),
|
|
77
|
+
'window_end': value['windowEnd'].toISOString(),
|
|
78
|
+
'interval_id': value['intervalId'],
|
|
79
|
+
'expected_sample_count': value['expectedSampleCount'],
|
|
80
|
+
'vms': (value['vms'].map(RightsizingVMReport_js_1.RightsizingVMReportToJSON)),
|
|
81
|
+
'created_at': value['createdAt'].toISOString(),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { RightsizingReportSummary } from './RightsizingReportSummary.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingReportListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingReportListResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of report summaries. Use GET /rightsizing/{id} for full VM metrics.
|
|
21
|
+
* @type {Array<RightsizingReportSummary>}
|
|
22
|
+
* @memberof RightsizingReportListResponse
|
|
23
|
+
*/
|
|
24
|
+
reports: Array<RightsizingReportSummary>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of stored reports
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof RightsizingReportListResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingReportListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingReportListResponse(value: object): value is RightsizingReportListResponse;
|
|
36
|
+
export declare function RightsizingReportListResponseFromJSON(json: any): RightsizingReportListResponse;
|
|
37
|
+
export declare function RightsizingReportListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportListResponse;
|
|
38
|
+
export declare function RightsizingReportListResponseToJSON(json: any): RightsizingReportListResponse;
|
|
39
|
+
export declare function RightsizingReportListResponseToJSONTyped(value?: RightsizingReportListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfRightsizingReportListResponse = instanceOfRightsizingReportListResponse;
|
|
17
|
+
exports.RightsizingReportListResponseFromJSON = RightsizingReportListResponseFromJSON;
|
|
18
|
+
exports.RightsizingReportListResponseFromJSONTyped = RightsizingReportListResponseFromJSONTyped;
|
|
19
|
+
exports.RightsizingReportListResponseToJSON = RightsizingReportListResponseToJSON;
|
|
20
|
+
exports.RightsizingReportListResponseToJSONTyped = RightsizingReportListResponseToJSONTyped;
|
|
21
|
+
const RightsizingReportSummary_js_1 = require("./RightsizingReportSummary.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingReportListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingReportListResponse(value) {
|
|
26
|
+
if (!('reports' in value) || value['reports'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function RightsizingReportListResponseFromJSON(json) {
|
|
33
|
+
return RightsizingReportListResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function RightsizingReportListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'reports': (json['reports'].map(RightsizingReportSummary_js_1.RightsizingReportSummaryFromJSON)),
|
|
41
|
+
'total': json['total'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function RightsizingReportListResponseToJSON(json) {
|
|
45
|
+
return RightsizingReportListResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RightsizingReportListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'reports': (value['reports'].map(RightsizingReportSummary_js_1.RightsizingReportSummaryToJSON)),
|
|
53
|
+
'total': value['total'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
* Rightsizing report metadata without VM metrics. Use GET /rightsizing/{id} to retrieve the full report including metrics.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RightsizingReportSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingReportSummary {
|
|
18
|
+
/**
|
|
19
|
+
* UUID of the report
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RightsizingReportSummary
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* vCenter URL used for this collection
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RightsizingReportSummary
|
|
28
|
+
*/
|
|
29
|
+
vcenter: string;
|
|
30
|
+
/**
|
|
31
|
+
* MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RightsizingReportSummary
|
|
34
|
+
*/
|
|
35
|
+
clusterId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof RightsizingReportSummary
|
|
40
|
+
*/
|
|
41
|
+
windowStart: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof RightsizingReportSummary
|
|
46
|
+
*/
|
|
47
|
+
windowEnd: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingReportSummary
|
|
52
|
+
*/
|
|
53
|
+
intervalId: number;
|
|
54
|
+
/**
|
|
55
|
+
* Theoretical maximum samples for the window (lookback / interval)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof RightsizingReportSummary
|
|
58
|
+
*/
|
|
59
|
+
expectedSampleCount: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof RightsizingReportSummary
|
|
64
|
+
*/
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the RightsizingReportSummary interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfRightsizingReportSummary(value: object): value is RightsizingReportSummary;
|
|
71
|
+
export declare function RightsizingReportSummaryFromJSON(json: any): RightsizingReportSummary;
|
|
72
|
+
export declare function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReportSummary;
|
|
73
|
+
export declare function RightsizingReportSummaryToJSON(json: any): RightsizingReportSummary;
|
|
74
|
+
export declare function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.instanceOfRightsizingReportSummary = instanceOfRightsizingReportSummary;
|
|
17
|
+
exports.RightsizingReportSummaryFromJSON = RightsizingReportSummaryFromJSON;
|
|
18
|
+
exports.RightsizingReportSummaryFromJSONTyped = RightsizingReportSummaryFromJSONTyped;
|
|
19
|
+
exports.RightsizingReportSummaryToJSON = RightsizingReportSummaryToJSON;
|
|
20
|
+
exports.RightsizingReportSummaryToJSONTyped = RightsizingReportSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingReportSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingReportSummary(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('windowStart' in value) || value['windowStart'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('windowEnd' in value) || value['windowEnd'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('intervalId' in value) || value['intervalId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function RightsizingReportSummaryFromJSON(json) {
|
|
44
|
+
return RightsizingReportSummaryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'vcenter': json['vcenter'],
|
|
53
|
+
'clusterId': json['cluster_id'],
|
|
54
|
+
'windowStart': (new Date(json['window_start'])),
|
|
55
|
+
'windowEnd': (new Date(json['window_end'])),
|
|
56
|
+
'intervalId': json['interval_id'],
|
|
57
|
+
'expectedSampleCount': json['expected_sample_count'],
|
|
58
|
+
'createdAt': (new Date(json['created_at'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function RightsizingReportSummaryToJSON(json) {
|
|
62
|
+
return RightsizingReportSummaryToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'vcenter': value['vcenter'],
|
|
71
|
+
'cluster_id': value['clusterId'],
|
|
72
|
+
'window_start': value['windowStart'].toISOString(),
|
|
73
|
+
'window_end': value['windowEnd'].toISOString(),
|
|
74
|
+
'interval_id': value['intervalId'],
|
|
75
|
+
'expected_sample_count': value['expectedSampleCount'],
|
|
76
|
+
'created_at': value['createdAt'].toISOString(),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { RightsizingMetricStats } from './RightsizingMetricStats.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingVMReport
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingVMReport {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingVMReport
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RightsizingVMReport
|
|
29
|
+
*/
|
|
30
|
+
moid: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {{ [key: string]: RightsizingMetricStats; }}
|
|
34
|
+
* @memberof RightsizingVMReport
|
|
35
|
+
*/
|
|
36
|
+
metrics: {
|
|
37
|
+
[key: string]: RightsizingMetricStats;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Non-empty when the VM was queried but had no historical metrics data.
|
|
41
|
+
* @type {Array<string>}
|
|
42
|
+
* @memberof RightsizingVMReport
|
|
43
|
+
*/
|
|
44
|
+
warnings: Array<string>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the RightsizingVMReport interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfRightsizingVMReport(value: object): value is RightsizingVMReport;
|
|
50
|
+
export declare function RightsizingVMReportFromJSON(json: any): RightsizingVMReport;
|
|
51
|
+
export declare function RightsizingVMReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingVMReport;
|
|
52
|
+
export declare function RightsizingVMReportToJSON(json: any): RightsizingVMReport;
|
|
53
|
+
export declare function RightsizingVMReportToJSONTyped(value?: RightsizingVMReport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfRightsizingVMReport = instanceOfRightsizingVMReport;
|
|
17
|
+
exports.RightsizingVMReportFromJSON = RightsizingVMReportFromJSON;
|
|
18
|
+
exports.RightsizingVMReportFromJSONTyped = RightsizingVMReportFromJSONTyped;
|
|
19
|
+
exports.RightsizingVMReportToJSON = RightsizingVMReportToJSON;
|
|
20
|
+
exports.RightsizingVMReportToJSONTyped = RightsizingVMReportToJSONTyped;
|
|
21
|
+
const runtime_js_1 = require("../runtime.js");
|
|
22
|
+
const RightsizingMetricStats_js_1 = require("./RightsizingMetricStats.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the RightsizingVMReport interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfRightsizingVMReport(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('moid' in value) || value['moid'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('warnings' in value) || value['warnings'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function RightsizingVMReportFromJSON(json) {
|
|
38
|
+
return RightsizingVMReportFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function RightsizingVMReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'moid': json['moid'],
|
|
47
|
+
'metrics': ((0, runtime_js_1.mapValues)(json['metrics'], RightsizingMetricStats_js_1.RightsizingMetricStatsFromJSON)),
|
|
48
|
+
'warnings': json['warnings'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function RightsizingVMReportToJSON(json) {
|
|
52
|
+
return RightsizingVMReportToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function RightsizingVMReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'name': value['name'],
|
|
60
|
+
'moid': value['moid'],
|
|
61
|
+
'metrics': ((0, runtime_js_1.mapValues)(value['metrics'], RightsizingMetricStats_js_1.RightsizingMetricStatsToJSON)),
|
|
62
|
+
'warnings': value['warnings'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Array of VirtualMachine id
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StartInspectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StartInspectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof StartInspectionRequest
|
|
22
|
+
*/
|
|
23
|
+
vmIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
|
|
29
|
+
export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
|
|
30
|
+
export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
|
|
31
|
+
export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
|
|
32
|
+
export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfStartInspectionRequest = instanceOfStartInspectionRequest;
|
|
17
|
+
exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
|
|
18
|
+
exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
|
|
19
|
+
exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
|
|
20
|
+
exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStartInspectionRequest(value) {
|
|
25
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StartInspectionRequestFromJSON(json) {
|
|
30
|
+
return StartInspectionRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'vmIds': json['vmIds'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function StartInspectionRequestToJSON(json) {
|
|
41
|
+
return StartInspectionRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'vmIds': value['vmIds'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/VMs.d.ts
CHANGED
|
@@ -58,6 +58,15 @@ export interface VMs {
|
|
|
58
58
|
diskSizeTier?: {
|
|
59
59
|
[key: string]: DiskSizeTierSummary;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
|
|
63
|
+
*
|
|
64
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
65
|
+
* @memberof VMs
|
|
66
|
+
*/
|
|
67
|
+
diskComplexityTier?: {
|
|
68
|
+
[key: string]: DiskSizeTierSummary;
|
|
69
|
+
};
|
|
61
70
|
/**
|
|
62
71
|
*
|
|
63
72
|
* @type {{ [key: string]: DiskTypeSummary; }}
|
|
@@ -94,10 +103,19 @@ export interface VMs {
|
|
|
94
103
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
104
|
* @type {{ [key: string]: number; }}
|
|
96
105
|
* @memberof VMs
|
|
106
|
+
* @deprecated
|
|
97
107
|
*/
|
|
98
108
|
distributionByComplexity?: {
|
|
99
109
|
[key: string]: number;
|
|
100
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
113
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
114
|
+
* @memberof VMs
|
|
115
|
+
*/
|
|
116
|
+
complexityDistribution?: {
|
|
117
|
+
[key: string]: DiskSizeTierSummary;
|
|
118
|
+
};
|
|
101
119
|
/**
|
|
102
120
|
*
|
|
103
121
|
* @type {VMResourceBreakdown}
|