@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-d5edcd6935f2
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 +30 -0
- package/README.md +29 -2
- package/dist/apis/DefaultApi.d.ts +450 -3
- package/dist/apis/DefaultApi.js +490 -3
- package/dist/esm/apis/DefaultApi.d.ts +450 -3
- package/dist/esm/apis/DefaultApi.js +490 -3
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/DatastoreDetail.d.ts +90 -0
- package/dist/esm/models/DatastoreDetail.js +74 -0
- package/dist/esm/models/DatastorePair.d.ts +50 -0
- package/dist/esm/models/DatastorePair.js +53 -0
- package/dist/esm/models/EstimateRange.d.ts +44 -0
- package/dist/esm/models/EstimateRange.js +45 -0
- package/dist/esm/models/ForecastStats.d.ts +87 -0
- package/dist/esm/models/ForecastStats.js +64 -0
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/esm/models/ForecasterPairStatus.js +82 -0
- package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/esm/models/ForecasterStartRequest.js +53 -0
- package/dist/esm/models/ForecasterStatus.d.ts +47 -0
- package/dist/esm/models/ForecasterStatus.js +53 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/PairCapability.d.ts +60 -0
- package/dist/esm/models/PairCapability.js +64 -0
- package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/esm/models/PairCapabilityRequest.js +47 -0
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/esm/models/VmUtilizationDetails.js +12 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/DatastoreDetail.d.ts +90 -0
- package/dist/models/DatastoreDetail.js +82 -0
- package/dist/models/DatastorePair.d.ts +50 -0
- package/dist/models/DatastorePair.js +60 -0
- package/dist/models/EstimateRange.d.ts +44 -0
- package/dist/models/EstimateRange.js +52 -0
- package/dist/models/ForecastStats.d.ts +87 -0
- package/dist/models/ForecastStats.js +71 -0
- package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +98 -0
- package/dist/models/ForecasterPairStatus.js +90 -0
- package/dist/models/ForecasterStartRequest.d.ts +58 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +47 -0
- package/dist/models/ForecasterStatus.js +61 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/PairCapability.d.ts +60 -0
- package/dist/models/PairCapability.js +72 -0
- package/dist/models/PairCapabilityRequest.d.ts +40 -0
- package/dist/models/PairCapabilityRequest.js +54 -0
- package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/VirtualMachineDetail.d.ts +7 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VmUtilizationDetails.d.ts +18 -0
- package/dist/models/VmUtilizationDetails.js +12 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +977 -160
- package/docs/EstimateRange.md +39 -0
- package/docs/ForecastStats.md +52 -0
- package/docs/ForecasterDatastoresRequest.md +34 -0
- package/docs/ForecasterPairStatus.md +52 -0
- package/docs/ForecasterStartRequest.md +42 -0
- package/docs/ForecasterStatus.md +36 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/PairCapability.md +40 -0
- package/docs/PairCapabilityRequest.md +36 -0
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -0
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VmUtilizationDetails.md +6 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +933 -21
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/EstimateRange.ts +81 -0
- package/src/models/ForecastStats.ts +147 -0
- package/src/models/ForecasterDatastoresRequest.ts +73 -0
- package/src/models/ForecasterPairStatus.ts +158 -0
- package/src/models/ForecasterStartRequest.ts +113 -0
- package/src/models/ForecasterStatus.ts +93 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/PairCapability.ts +106 -0
- package/src/models/PairCapabilityRequest.ts +89 -0
- package/src/models/PutForecasterCredentials403Response.ts +73 -0
- package/src/models/RightsizingClusterListResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/VirtualMachineDetail.ts +15 -0
- package/src/models/VmUtilizationDetails.ts +27 -0
- package/src/models/index.ts +15 -0
|
@@ -0,0 +1,102 @@
|
|
|
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.instanceOfRightsizingClusterUtilization = instanceOfRightsizingClusterUtilization;
|
|
17
|
+
exports.RightsizingClusterUtilizationFromJSON = RightsizingClusterUtilizationFromJSON;
|
|
18
|
+
exports.RightsizingClusterUtilizationFromJSONTyped = RightsizingClusterUtilizationFromJSONTyped;
|
|
19
|
+
exports.RightsizingClusterUtilizationToJSON = RightsizingClusterUtilizationToJSON;
|
|
20
|
+
exports.RightsizingClusterUtilizationToJSONTyped = RightsizingClusterUtilizationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingClusterUtilization(value) {
|
|
25
|
+
if (!('clusterId' in value) || value['clusterId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('clusterName' in value) || value['clusterName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('memP95' in value) || value['memP95'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('memMax' in value) || value['memMax'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('totalProvisionedCpus' in value) || value['totalProvisionedCpus'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('totalProvisionedMemoryMb' in value) || value['totalProvisionedMemoryMb'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('totalProvisionedDiskKb' in value) || value['totalProvisionedDiskKb'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function RightsizingClusterUtilizationFromJSON(json) {
|
|
56
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'clusterId': json['cluster_id'],
|
|
64
|
+
'clusterName': json['cluster_name'],
|
|
65
|
+
'vmCount': json['vm_count'],
|
|
66
|
+
'cpuAvg': json['cpu_avg'],
|
|
67
|
+
'cpuP95': json['cpu_p95'],
|
|
68
|
+
'cpuMax': json['cpu_max'],
|
|
69
|
+
'memAvg': json['mem_avg'],
|
|
70
|
+
'memP95': json['mem_p95'],
|
|
71
|
+
'memMax': json['mem_max'],
|
|
72
|
+
'disk': json['disk'],
|
|
73
|
+
'confidence': json['confidence'],
|
|
74
|
+
'totalProvisionedCpus': json['total_provisioned_cpus'],
|
|
75
|
+
'totalProvisionedMemoryMb': json['total_provisioned_memory_mb'],
|
|
76
|
+
'totalProvisionedDiskKb': json['total_provisioned_disk_kb'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function RightsizingClusterUtilizationToJSON(json) {
|
|
80
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
'cluster_id': value['clusterId'],
|
|
88
|
+
'cluster_name': value['clusterName'],
|
|
89
|
+
'vm_count': value['vmCount'],
|
|
90
|
+
'cpu_avg': value['cpuAvg'],
|
|
91
|
+
'cpu_p95': value['cpuP95'],
|
|
92
|
+
'cpu_max': value['cpuMax'],
|
|
93
|
+
'mem_avg': value['memAvg'],
|
|
94
|
+
'mem_p95': value['memP95'],
|
|
95
|
+
'mem_max': value['memMax'],
|
|
96
|
+
'disk': value['disk'],
|
|
97
|
+
'confidence': value['confidence'],
|
|
98
|
+
'total_provisioned_cpus': value['totalProvisionedCpus'],
|
|
99
|
+
'total_provisioned_memory_mb': value['totalProvisionedMemoryMb'],
|
|
100
|
+
'total_provisioned_disk_kb': value['totalProvisionedDiskKb'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Start inspection request
|
|
14
15
|
* @export
|
|
15
16
|
* @interface StartInspectionRequest
|
|
16
17
|
*/
|
|
@@ -21,6 +22,12 @@ export interface StartInspectionRequest {
|
|
|
21
22
|
* @memberof StartInspectionRequest
|
|
22
23
|
*/
|
|
23
24
|
vmIds: Array<string>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {VcenterCredentials}
|
|
28
|
+
* @memberof StartInspectionRequest
|
|
29
|
+
*/
|
|
30
|
+
credentials: VcenterCredentials;
|
|
24
31
|
}
|
|
25
32
|
/**
|
|
26
33
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
@@ -18,12 +18,15 @@ exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
|
|
|
18
18
|
exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
|
|
19
19
|
exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
|
|
20
20
|
exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the StartInspectionRequest interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfStartInspectionRequest(value) {
|
|
25
26
|
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
26
27
|
return false;
|
|
28
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
29
|
+
return false;
|
|
27
30
|
return true;
|
|
28
31
|
}
|
|
29
32
|
function StartInspectionRequestFromJSON(json) {
|
|
@@ -35,6 +38,7 @@ function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
38
|
}
|
|
36
39
|
return {
|
|
37
40
|
'vmIds': json['vmIds'],
|
|
41
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
44
|
function StartInspectionRequestToJSON(json) {
|
|
@@ -46,5 +50,6 @@ function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
50
|
}
|
|
47
51
|
return {
|
|
48
52
|
'vmIds': value['vmIds'],
|
|
53
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
49
54
|
};
|
|
50
55
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 StopForecasterPair202Response
|
|
16
|
+
*/
|
|
17
|
+
export interface StopForecasterPair202Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StopForecasterPair202Response
|
|
22
|
+
*/
|
|
23
|
+
pairName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {StopForecasterPair202ResponseStateEnum}
|
|
27
|
+
* @memberof StopForecasterPair202Response
|
|
28
|
+
*/
|
|
29
|
+
state?: StopForecasterPair202ResponseStateEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const StopForecasterPair202ResponseStateEnum: {
|
|
35
|
+
readonly Canceled: "canceled";
|
|
36
|
+
};
|
|
37
|
+
export type StopForecasterPair202ResponseStateEnum = typeof StopForecasterPair202ResponseStateEnum[keyof typeof StopForecasterPair202ResponseStateEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfStopForecasterPair202Response(value: object): value is StopForecasterPair202Response;
|
|
42
|
+
export declare function StopForecasterPair202ResponseFromJSON(json: any): StopForecasterPair202Response;
|
|
43
|
+
export declare function StopForecasterPair202ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StopForecasterPair202Response;
|
|
44
|
+
export declare function StopForecasterPair202ResponseToJSON(json: any): StopForecasterPair202Response;
|
|
45
|
+
export declare function StopForecasterPair202ResponseToJSONTyped(value?: StopForecasterPair202Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.StopForecasterPair202ResponseStateEnum = void 0;
|
|
17
|
+
exports.instanceOfStopForecasterPair202Response = instanceOfStopForecasterPair202Response;
|
|
18
|
+
exports.StopForecasterPair202ResponseFromJSON = StopForecasterPair202ResponseFromJSON;
|
|
19
|
+
exports.StopForecasterPair202ResponseFromJSONTyped = StopForecasterPair202ResponseFromJSONTyped;
|
|
20
|
+
exports.StopForecasterPair202ResponseToJSON = StopForecasterPair202ResponseToJSON;
|
|
21
|
+
exports.StopForecasterPair202ResponseToJSONTyped = StopForecasterPair202ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.StopForecasterPair202ResponseStateEnum = {
|
|
26
|
+
Canceled: 'canceled'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the StopForecasterPair202Response interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfStopForecasterPair202Response(value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function StopForecasterPair202ResponseFromJSON(json) {
|
|
35
|
+
return StopForecasterPair202ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function StopForecasterPair202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'pairName': json['pairName'] == null ? undefined : json['pairName'],
|
|
43
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function StopForecasterPair202ResponseToJSON(json) {
|
|
47
|
+
return StopForecasterPair202ResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function StopForecasterPair202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'pairName': value['pairName'],
|
|
55
|
+
'state': value['state'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -13,6 +13,7 @@ import type { VMNIC } from './VMNIC.js';
|
|
|
13
13
|
import type { GuestNetwork } from './GuestNetwork.js';
|
|
14
14
|
import type { VMIssue } from './VMIssue.js';
|
|
15
15
|
import type { VMDevice } from './VMDevice.js';
|
|
16
|
+
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
16
17
|
import type { VMDisk } from './VMDisk.js';
|
|
17
18
|
import type { VmInspectionResults } from './VmInspectionResults.js';
|
|
18
19
|
/**
|
|
@@ -207,6 +208,12 @@ export interface VirtualMachineDetail {
|
|
|
207
208
|
* @memberof VirtualMachineDetail
|
|
208
209
|
*/
|
|
209
210
|
inspection?: VmInspectionResults;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {VmUtilizationDetails}
|
|
214
|
+
* @memberof VirtualMachineDetail
|
|
215
|
+
*/
|
|
216
|
+
utilization?: VmUtilizationDetails;
|
|
210
217
|
}
|
|
211
218
|
/**
|
|
212
219
|
* Check if a given object implements the VirtualMachineDetail interface.
|
|
@@ -22,6 +22,7 @@ const VMNIC_js_1 = require("./VMNIC.js");
|
|
|
22
22
|
const GuestNetwork_js_1 = require("./GuestNetwork.js");
|
|
23
23
|
const VMIssue_js_1 = require("./VMIssue.js");
|
|
24
24
|
const VMDevice_js_1 = require("./VMDevice.js");
|
|
25
|
+
const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
|
|
25
26
|
const VMDisk_js_1 = require("./VMDisk.js");
|
|
26
27
|
const VmInspectionResults_js_1 = require("./VmInspectionResults.js");
|
|
27
28
|
/**
|
|
@@ -87,6 +88,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
87
88
|
'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkFromJSON)),
|
|
88
89
|
'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssue_js_1.VMIssueFromJSON)),
|
|
89
90
|
'inspection': json['inspection'] == null ? undefined : (0, VmInspectionResults_js_1.VmInspectionResultsFromJSON)(json['inspection']),
|
|
91
|
+
'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
|
|
90
92
|
};
|
|
91
93
|
}
|
|
92
94
|
function VirtualMachineDetailToJSON(json) {
|
|
@@ -128,5 +130,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
128
130
|
'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetwork_js_1.GuestNetworkToJSON)),
|
|
129
131
|
'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssue_js_1.VMIssueToJSON)),
|
|
130
132
|
'inspection': (0, VmInspectionResults_js_1.VmInspectionResultsToJSON)(value['inspection']),
|
|
133
|
+
'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
|
|
131
134
|
};
|
|
132
135
|
}
|
|
@@ -27,6 +27,24 @@ export interface VmUtilizationDetails {
|
|
|
27
27
|
* @memberof VmUtilizationDetails
|
|
28
28
|
*/
|
|
29
29
|
vmName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of vCPUs provisioned for this VM
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VmUtilizationDetails
|
|
34
|
+
*/
|
|
35
|
+
provisionedCpus: number;
|
|
36
|
+
/**
|
|
37
|
+
* Provisioned RAM (MB)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VmUtilizationDetails
|
|
40
|
+
*/
|
|
41
|
+
provisionedMemoryMb: number;
|
|
42
|
+
/**
|
|
43
|
+
* Provisioned disk (KB)
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VmUtilizationDetails
|
|
46
|
+
*/
|
|
47
|
+
provisionedDiskKb: number;
|
|
30
48
|
/**
|
|
31
49
|
* CPU utilization average (%)
|
|
32
50
|
* @type {number}
|
|
@@ -26,6 +26,12 @@ function instanceOfVmUtilizationDetails(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('vmName' in value) || value['vmName'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('provisionedCpus' in value) || value['provisionedCpus'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('provisionedMemoryMb' in value) || value['provisionedMemoryMb'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('provisionedDiskKb' in value) || value['provisionedDiskKb'] === undefined)
|
|
34
|
+
return false;
|
|
29
35
|
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
30
36
|
return false;
|
|
31
37
|
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
@@ -58,6 +64,9 @@ function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
64
|
return {
|
|
59
65
|
'moid': json['moid'],
|
|
60
66
|
'vmName': json['vm_name'],
|
|
67
|
+
'provisionedCpus': json['provisioned_cpus'],
|
|
68
|
+
'provisionedMemoryMb': json['provisioned_memory_mb'],
|
|
69
|
+
'provisionedDiskKb': json['provisioned_disk_kb'],
|
|
61
70
|
'cpuAvg': json['cpu_avg'],
|
|
62
71
|
'cpuP95': json['cpu_p95'],
|
|
63
72
|
'cpuMax': json['cpu_max'],
|
|
@@ -80,6 +89,9 @@ function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
89
|
return {
|
|
81
90
|
'moid': value['moid'],
|
|
82
91
|
'vm_name': value['vmName'],
|
|
92
|
+
'provisioned_cpus': value['provisionedCpus'],
|
|
93
|
+
'provisioned_memory_mb': value['provisionedMemoryMb'],
|
|
94
|
+
'provisioned_disk_kb': value['provisionedDiskKb'],
|
|
83
95
|
'cpu_avg': value['cpuAvg'],
|
|
84
96
|
'cpu_p95': value['cpuP95'],
|
|
85
97
|
'cpu_max': value['cpuMax'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
|
+
export * from './BenchmarkRun.js';
|
|
3
4
|
export * from './CollectorStartRequest.js';
|
|
4
5
|
export * from './CollectorStatus.js';
|
|
5
6
|
export * from './CreateGroupRequest.js';
|
|
6
7
|
export * from './Datastore.js';
|
|
8
|
+
export * from './DatastoreDetail.js';
|
|
9
|
+
export * from './DatastorePair.js';
|
|
7
10
|
export * from './DiskSizeTierSummary.js';
|
|
8
11
|
export * from './DiskTypeSummary.js';
|
|
12
|
+
export * from './EstimateRange.js';
|
|
13
|
+
export * from './ForecastStats.js';
|
|
14
|
+
export * from './ForecasterDatastoresRequest.js';
|
|
15
|
+
export * from './ForecasterPairStatus.js';
|
|
16
|
+
export * from './ForecasterStartRequest.js';
|
|
17
|
+
export * from './ForecasterStatus.js';
|
|
9
18
|
export * from './GetInventory200Response.js';
|
|
10
19
|
export * from './Group.js';
|
|
11
20
|
export * from './GroupListResponse.js';
|
|
@@ -20,6 +29,11 @@ export * from './InventoryData.js';
|
|
|
20
29
|
export * from './MigrationIssue.js';
|
|
21
30
|
export * from './Network.js';
|
|
22
31
|
export * from './OsInfo.js';
|
|
32
|
+
export * from './PairCapability.js';
|
|
33
|
+
export * from './PairCapabilityRequest.js';
|
|
34
|
+
export * from './PutForecasterCredentials403Response.js';
|
|
35
|
+
export * from './RightsizingClusterListResponse.js';
|
|
36
|
+
export * from './RightsizingClusterUtilization.js';
|
|
23
37
|
export * from './RightsizingCollectRequest.js';
|
|
24
38
|
export * from './RightsizingMetricStats.js';
|
|
25
39
|
export * from './RightsizingReport.js';
|
|
@@ -27,6 +41,7 @@ export * from './RightsizingReportListResponse.js';
|
|
|
27
41
|
export * from './RightsizingReportSummary.js';
|
|
28
42
|
export * from './RightsizingVMReport.js';
|
|
29
43
|
export * from './StartInspectionRequest.js';
|
|
44
|
+
export * from './StopForecasterPair202Response.js';
|
|
30
45
|
export * from './UpdateGroupRequest.js';
|
|
31
46
|
export * from './UpdateInventory.js';
|
|
32
47
|
export * from './VCenter.js';
|
package/dist/models/index.js
CHANGED
|
@@ -18,12 +18,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
|
+
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
21
22
|
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
22
23
|
__exportStar(require("./CollectorStatus.js"), exports);
|
|
23
24
|
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
24
25
|
__exportStar(require("./Datastore.js"), exports);
|
|
26
|
+
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
27
|
+
__exportStar(require("./DatastorePair.js"), exports);
|
|
25
28
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
26
29
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
30
|
+
__exportStar(require("./EstimateRange.js"), exports);
|
|
31
|
+
__exportStar(require("./ForecastStats.js"), exports);
|
|
32
|
+
__exportStar(require("./ForecasterDatastoresRequest.js"), exports);
|
|
33
|
+
__exportStar(require("./ForecasterPairStatus.js"), exports);
|
|
34
|
+
__exportStar(require("./ForecasterStartRequest.js"), exports);
|
|
35
|
+
__exportStar(require("./ForecasterStatus.js"), exports);
|
|
27
36
|
__exportStar(require("./GetInventory200Response.js"), exports);
|
|
28
37
|
__exportStar(require("./Group.js"), exports);
|
|
29
38
|
__exportStar(require("./GroupListResponse.js"), exports);
|
|
@@ -38,6 +47,11 @@ __exportStar(require("./InventoryData.js"), exports);
|
|
|
38
47
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
39
48
|
__exportStar(require("./Network.js"), exports);
|
|
40
49
|
__exportStar(require("./OsInfo.js"), exports);
|
|
50
|
+
__exportStar(require("./PairCapability.js"), exports);
|
|
51
|
+
__exportStar(require("./PairCapabilityRequest.js"), exports);
|
|
52
|
+
__exportStar(require("./PutForecasterCredentials403Response.js"), exports);
|
|
53
|
+
__exportStar(require("./RightsizingClusterListResponse.js"), exports);
|
|
54
|
+
__exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
41
55
|
__exportStar(require("./RightsizingCollectRequest.js"), exports);
|
|
42
56
|
__exportStar(require("./RightsizingMetricStats.js"), exports);
|
|
43
57
|
__exportStar(require("./RightsizingReport.js"), exports);
|
|
@@ -45,6 +59,7 @@ __exportStar(require("./RightsizingReportListResponse.js"), exports);
|
|
|
45
59
|
__exportStar(require("./RightsizingReportSummary.js"), exports);
|
|
46
60
|
__exportStar(require("./RightsizingVMReport.js"), exports);
|
|
47
61
|
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
62
|
+
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
48
63
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
49
64
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
50
65
|
__exportStar(require("./VCenter.js"), exports);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
# BenchmarkRun
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`sessionId` | number
|
|
11
|
+
`pairName` | string
|
|
12
|
+
`sourceDatastore` | string
|
|
13
|
+
`targetDatastore` | string
|
|
14
|
+
`iteration` | number
|
|
15
|
+
`diskSizeGb` | number
|
|
16
|
+
`prepDurationSec` | number
|
|
17
|
+
`durationSec` | number
|
|
18
|
+
`throughputMbps` | number
|
|
19
|
+
`method` | string
|
|
20
|
+
`error` | string
|
|
21
|
+
`createdAt` | Date
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { BenchmarkRun } from '@openshift-migration-advisor/agent-sdk'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"id": null,
|
|
31
|
+
"sessionId": null,
|
|
32
|
+
"pairName": null,
|
|
33
|
+
"sourceDatastore": null,
|
|
34
|
+
"targetDatastore": null,
|
|
35
|
+
"iteration": null,
|
|
36
|
+
"diskSizeGb": null,
|
|
37
|
+
"prepDurationSec": null,
|
|
38
|
+
"durationSec": null,
|
|
39
|
+
"throughputMbps": null,
|
|
40
|
+
"method": null,
|
|
41
|
+
"error": null,
|
|
42
|
+
"createdAt": null,
|
|
43
|
+
} satisfies BenchmarkRun
|
|
44
|
+
|
|
45
|
+
console.log(example)
|
|
46
|
+
|
|
47
|
+
// Convert the instance to a JSON string
|
|
48
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
49
|
+
console.log(exampleJSON)
|
|
50
|
+
|
|
51
|
+
// Parse the JSON string back to an object
|
|
52
|
+
const exampleParsed = JSON.parse(exampleJSON) as BenchmarkRun
|
|
53
|
+
console.log(exampleParsed)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
57
|
+
|
|
58
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# DatastoreDetail
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`type` | string
|
|
11
|
+
`capacityGb` | number
|
|
12
|
+
`freeGb` | number
|
|
13
|
+
`storageVendor` | string
|
|
14
|
+
`storageModel` | string
|
|
15
|
+
`storageArrayId` | string
|
|
16
|
+
`naaDevices` | Array<string>
|
|
17
|
+
`capabilities` | Array<string>
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { DatastoreDetail } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"name": null,
|
|
27
|
+
"type": null,
|
|
28
|
+
"capacityGb": null,
|
|
29
|
+
"freeGb": null,
|
|
30
|
+
"storageVendor": null,
|
|
31
|
+
"storageModel": null,
|
|
32
|
+
"storageArrayId": null,
|
|
33
|
+
"naaDevices": null,
|
|
34
|
+
"capabilities": null,
|
|
35
|
+
} satisfies DatastoreDetail
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as DatastoreDetail
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# DatastorePair
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`sourceDatastore` | string
|
|
11
|
+
`targetDatastore` | string
|
|
12
|
+
`host` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { DatastorePair } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"sourceDatastore": null,
|
|
23
|
+
"targetDatastore": null,
|
|
24
|
+
"host": null,
|
|
25
|
+
} satisfies DatastorePair
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as DatastorePair
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|