@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-bbcf7fe3b88e
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 +14 -0
- package/README.md +18 -4
- package/dist/apis/DefaultApi.d.ts +303 -41
- package/dist/apis/DefaultApi.js +335 -46
- package/dist/esm/apis/DefaultApi.d.ts +303 -41
- package/dist/esm/apis/DefaultApi.js +335 -46
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
- package/dist/esm/models/InspectorStatus.d.ts +0 -17
- package/dist/esm/models/InspectorStatus.js +1 -10
- package/dist/esm/models/Inventory.d.ts +7 -1
- package/dist/esm/models/Inventory.js +5 -3
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
- package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
- package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/esm/models/RightsizingCollectRequest.js +12 -12
- package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/esm/models/RightsizingMetricStats.js +3 -3
- package/dist/esm/models/RightsizingReport.d.ts +6 -6
- package/dist/esm/models/RightsizingReport.js +18 -18
- package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/esm/models/RightsizingReportSummary.js +18 -18
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
- package/dist/esm/models/StartInspectionRequest.js +5 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VirtualMachine.d.ts +16 -4
- package/dist/esm/models/VirtualMachine.js +12 -8
- package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/esm/models/VirtualMachineDetail.js +7 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/esm/models/VmUtilizationDetails.js +36 -36
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -0
- package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -0
- package/dist/models/InspectorStatus.d.ts +0 -17
- package/dist/models/InspectorStatus.js +1 -10
- package/dist/models/Inventory.d.ts +7 -1
- package/dist/models/Inventory.js +5 -3
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
- package/dist/models/RightsizingClusterListResponse.js +3 -3
- package/dist/models/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
- package/dist/models/RightsizingClusterUtilization.js +36 -36
- package/dist/models/RightsizingCollectRequest.d.ts +6 -6
- package/dist/models/RightsizingCollectRequest.js +12 -12
- package/dist/models/RightsizingMetricStats.d.ts +1 -1
- package/dist/models/RightsizingMetricStats.js +3 -3
- package/dist/models/RightsizingReport.d.ts +6 -6
- package/dist/models/RightsizingReport.js +18 -18
- package/dist/models/RightsizingReportSummary.d.ts +6 -6
- package/dist/models/RightsizingReportSummary.js +18 -18
- package/dist/models/StartInspectionRequest.d.ts +8 -1
- package/dist/models/StartInspectionRequest.js +5 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
- package/dist/models/VMFilterOptionsResponse.js +62 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VirtualMachine.d.ts +16 -4
- package/dist/models/VirtualMachine.js +12 -8
- package/dist/models/VirtualMachineDetail.d.ts +19 -0
- package/dist/models/VirtualMachineDetail.js +7 -0
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- package/dist/models/VmUtilizationDetails.d.ts +12 -12
- package/dist/models/VmUtilizationDetails.js +36 -36
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DefaultApi.md +529 -60
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- package/docs/GetInventory200Response.md +4 -2
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -0
- package/docs/RightsizingClusterListResponse.md +2 -2
- package/docs/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +24 -24
- package/docs/RightsizingCollectRequest.md +12 -12
- package/docs/RightsizingMetricStats.md +2 -2
- package/docs/RightsizingReport.md +12 -12
- package/docs/RightsizingReportSummary.md +12 -12
- package/docs/StartInspectionRequest.md +3 -1
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +40 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VirtualMachine.md +12 -8
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -24
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +641 -88
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -0
- package/src/models/RightsizingClusterListResponse.ts +4 -4
- package/src/models/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +48 -48
- package/src/models/RightsizingCollectRequest.ts +18 -18
- package/src/models/RightsizingMetricStats.ts +4 -4
- package/src/models/RightsizingReport.ts +24 -24
- package/src/models/RightsizingReportSummary.ts +24 -24
- package/src/models/StartInspectionRequest.ts +18 -1
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +93 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VirtualMachine.ts +28 -12
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +48 -48
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,62 @@
|
|
|
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.ClusterFeaturesDrsModeEnum = void 0;
|
|
17
|
+
exports.instanceOfClusterFeatures = instanceOfClusterFeatures;
|
|
18
|
+
exports.ClusterFeaturesFromJSON = ClusterFeaturesFromJSON;
|
|
19
|
+
exports.ClusterFeaturesFromJSONTyped = ClusterFeaturesFromJSONTyped;
|
|
20
|
+
exports.ClusterFeaturesToJSON = ClusterFeaturesToJSON;
|
|
21
|
+
exports.ClusterFeaturesToJSONTyped = ClusterFeaturesToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ClusterFeaturesDrsModeEnum = {
|
|
26
|
+
FullyAutomated: 'Fully Automated',
|
|
27
|
+
PartiallyAutomated: 'Partially Automated',
|
|
28
|
+
Manual: 'Manual',
|
|
29
|
+
None: 'None'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ClusterFeatures interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfClusterFeatures(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function ClusterFeaturesFromJSON(json) {
|
|
38
|
+
return ClusterFeaturesFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function ClusterFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
|
|
46
|
+
'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
|
|
47
|
+
'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ClusterFeaturesToJSON(json) {
|
|
51
|
+
return ClusterFeaturesToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ClusterFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'drsEnabled': value['drsEnabled'],
|
|
59
|
+
'drsMode': value['drsMode'],
|
|
60
|
+
'storageDrsEnabled': value['storageDrsEnabled'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeleteLabelGloballyResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteLabelGloballyResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Number of VMs that had the label removed
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DeleteLabelGloballyResponse
|
|
22
|
+
*/
|
|
23
|
+
affected: number;
|
|
24
|
+
/**
|
|
25
|
+
* The label that was removed
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeleteLabelGloballyResponse
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DeleteLabelGloballyResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDeleteLabelGloballyResponse(value: object): value is DeleteLabelGloballyResponse;
|
|
35
|
+
export declare function DeleteLabelGloballyResponseFromJSON(json: any): DeleteLabelGloballyResponse;
|
|
36
|
+
export declare function DeleteLabelGloballyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLabelGloballyResponse;
|
|
37
|
+
export declare function DeleteLabelGloballyResponseToJSON(json: any): DeleteLabelGloballyResponse;
|
|
38
|
+
export declare function DeleteLabelGloballyResponseToJSONTyped(value?: DeleteLabelGloballyResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeleteLabelGloballyResponse = instanceOfDeleteLabelGloballyResponse;
|
|
17
|
+
exports.DeleteLabelGloballyResponseFromJSON = DeleteLabelGloballyResponseFromJSON;
|
|
18
|
+
exports.DeleteLabelGloballyResponseFromJSONTyped = DeleteLabelGloballyResponseFromJSONTyped;
|
|
19
|
+
exports.DeleteLabelGloballyResponseToJSON = DeleteLabelGloballyResponseToJSON;
|
|
20
|
+
exports.DeleteLabelGloballyResponseToJSONTyped = DeleteLabelGloballyResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeleteLabelGloballyResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeleteLabelGloballyResponse(value) {
|
|
25
|
+
if (!('affected' in value) || value['affected'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function DeleteLabelGloballyResponseFromJSON(json) {
|
|
32
|
+
return DeleteLabelGloballyResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function DeleteLabelGloballyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'affected': json['affected'],
|
|
40
|
+
'label': json['label'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function DeleteLabelGloballyResponseToJSON(json) {
|
|
44
|
+
return DeleteLabelGloballyResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DeleteLabelGloballyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'affected': value['affected'],
|
|
52
|
+
'label': value['label'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
-
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -23,35 +22,19 @@ export interface InspectorStatus {
|
|
|
23
22
|
* @memberof InspectorStatus
|
|
24
23
|
*/
|
|
25
24
|
state: InspectorStatusStateEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {VcenterCredentials}
|
|
29
|
-
* @memberof InspectorStatus
|
|
30
|
-
*/
|
|
31
|
-
credentials?: VcenterCredentials;
|
|
32
25
|
/**
|
|
33
26
|
*
|
|
34
27
|
* @type {VddkProperties}
|
|
35
28
|
* @memberof InspectorStatus
|
|
36
29
|
*/
|
|
37
30
|
vddk?: VddkProperties;
|
|
38
|
-
/**
|
|
39
|
-
* Error message when state is error
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof InspectorStatus
|
|
42
|
-
*/
|
|
43
|
-
error?: string;
|
|
44
31
|
}
|
|
45
32
|
/**
|
|
46
33
|
* @export
|
|
47
34
|
*/
|
|
48
35
|
export declare const InspectorStatusStateEnum: {
|
|
49
36
|
readonly InspectorStatusStateReady: "ready";
|
|
50
|
-
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
37
|
readonly InspectorStatusStateRunning: "running";
|
|
52
|
-
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
-
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
-
readonly InspectorStatusStateError: "error";
|
|
55
38
|
};
|
|
56
39
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
57
40
|
/**
|
|
@@ -20,17 +20,12 @@ exports.InspectorStatusFromJSONTyped = InspectorStatusFromJSONTyped;
|
|
|
20
20
|
exports.InspectorStatusToJSON = InspectorStatusToJSON;
|
|
21
21
|
exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
22
22
|
const VddkProperties_js_1 = require("./VddkProperties.js");
|
|
23
|
-
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
26
25
|
*/
|
|
27
26
|
exports.InspectorStatusStateEnum = {
|
|
28
27
|
InspectorStatusStateReady: 'ready',
|
|
29
|
-
|
|
30
|
-
InspectorStatusStateRunning: 'running',
|
|
31
|
-
InspectorStatusStateCanceled: 'canceled',
|
|
32
|
-
InspectorStatusStateCompleted: 'completed',
|
|
33
|
-
InspectorStatusStateError: 'error'
|
|
28
|
+
InspectorStatusStateRunning: 'running'
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -49,9 +44,7 @@ function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
44
|
}
|
|
50
45
|
return {
|
|
51
46
|
'state': json['state'],
|
|
52
|
-
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
53
47
|
'vddk': json['vddk'] == null ? undefined : (0, VddkProperties_js_1.VddkPropertiesFromJSON)(json['vddk']),
|
|
54
|
-
'error': json['error'] == null ? undefined : json['error'],
|
|
55
48
|
};
|
|
56
49
|
}
|
|
57
50
|
function InspectorStatusToJSON(json) {
|
|
@@ -63,8 +56,6 @@ function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
63
56
|
}
|
|
64
57
|
return {
|
|
65
58
|
'state': value['state'],
|
|
66
|
-
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
67
59
|
'vddk': (0, VddkProperties_js_1.VddkPropertiesToJSON)(value['vddk']),
|
|
68
|
-
'error': value['error'],
|
|
69
60
|
};
|
|
70
61
|
}
|
|
@@ -21,7 +21,13 @@ export interface Inventory {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof Inventory
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
vcenter_id: string;
|
|
25
|
+
/**
|
|
26
|
+
* Version of the vCenter api. For example "8.0.3.0"
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Inventory
|
|
29
|
+
*/
|
|
30
|
+
vcenter_version?: string;
|
|
25
31
|
/**
|
|
26
32
|
* Map of cluster names to their inventory data
|
|
27
33
|
* @type {{ [key: string]: InventoryData; }}
|
package/dist/models/Inventory.js
CHANGED
|
@@ -24,7 +24,7 @@ const InventoryData_js_1 = require("./InventoryData.js");
|
|
|
24
24
|
* Check if a given object implements the Inventory interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfInventory(value) {
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -38,7 +38,8 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
|
-
'
|
|
41
|
+
'vcenter_id': json['vcenter_id'],
|
|
42
|
+
'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
|
|
42
43
|
'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
|
|
43
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
|
|
44
45
|
};
|
|
@@ -51,7 +52,8 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
52
|
return value;
|
|
52
53
|
}
|
|
53
54
|
return {
|
|
54
|
-
'vcenter_id': value['
|
|
55
|
+
'vcenter_id': value['vcenter_id'],
|
|
56
|
+
'vcenter_version': value['vcenter_version'],
|
|
55
57
|
'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
|
|
56
58
|
'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
|
|
57
59
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
14
|
import type { VMs } from './VMs.js';
|
|
15
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -24,6 +25,12 @@ export interface InventoryData {
|
|
|
24
25
|
* @memberof InventoryData
|
|
25
26
|
*/
|
|
26
27
|
vcenter?: VCenter;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ClusterFeatures}
|
|
31
|
+
* @memberof InventoryData
|
|
32
|
+
*/
|
|
33
|
+
clusterFeatures?: ClusterFeatures;
|
|
27
34
|
/**
|
|
28
35
|
*
|
|
29
36
|
* @type {VMs}
|
|
@@ -21,6 +21,7 @@ exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
|
|
|
21
21
|
const VCenter_js_1 = require("./VCenter.js");
|
|
22
22
|
const Infra_js_1 = require("./Infra.js");
|
|
23
23
|
const VMs_js_1 = require("./VMs.js");
|
|
24
|
+
const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the InventoryData interface.
|
|
26
27
|
*/
|
|
@@ -40,6 +41,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
43
|
'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
|
|
44
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
|
|
43
45
|
'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
|
|
44
46
|
'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
|
|
45
47
|
};
|
|
@@ -53,6 +55,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
55
|
}
|
|
54
56
|
return {
|
|
55
57
|
'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
|
|
58
|
+
'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
|
|
56
59
|
'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
|
|
57
60
|
'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
|
|
58
61
|
};
|
|
@@ -23,7 +23,7 @@ const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilizat
|
|
|
23
23
|
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfRightsizingClusterListResponse(value) {
|
|
26
|
-
if (!('
|
|
26
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
29
29
|
return false;
|
|
@@ -37,7 +37,7 @@ function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'
|
|
40
|
+
'report_id': json['report_id'],
|
|
41
41
|
'clusters': (json['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)),
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -49,7 +49,7 @@ function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
49
49
|
return value;
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
|
-
'report_id': value['
|
|
52
|
+
'report_id': value['report_id'],
|
|
53
53
|
'clusters': (value['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -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 { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingClusterResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingClusterResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The report ID this data was aggregated from
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingClusterResponse
|
|
23
|
+
*/
|
|
24
|
+
report_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {RightsizingClusterUtilization}
|
|
28
|
+
* @memberof RightsizingClusterResponse
|
|
29
|
+
*/
|
|
30
|
+
cluster: RightsizingClusterUtilization;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse;
|
|
36
|
+
export declare function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse;
|
|
37
|
+
export declare function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse;
|
|
38
|
+
export declare function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse;
|
|
39
|
+
export declare function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | 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.instanceOfRightsizingClusterResponse = instanceOfRightsizingClusterResponse;
|
|
17
|
+
exports.RightsizingClusterResponseFromJSON = RightsizingClusterResponseFromJSON;
|
|
18
|
+
exports.RightsizingClusterResponseFromJSONTyped = RightsizingClusterResponseFromJSONTyped;
|
|
19
|
+
exports.RightsizingClusterResponseToJSON = RightsizingClusterResponseToJSON;
|
|
20
|
+
exports.RightsizingClusterResponseToJSONTyped = RightsizingClusterResponseToJSONTyped;
|
|
21
|
+
const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilization.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingClusterResponse(value) {
|
|
26
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cluster' in value) || value['cluster'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function RightsizingClusterResponseFromJSON(json) {
|
|
33
|
+
return RightsizingClusterResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function RightsizingClusterResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'report_id': json['report_id'],
|
|
41
|
+
'cluster': (0, RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)(json['cluster']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function RightsizingClusterResponseToJSON(json) {
|
|
45
|
+
return RightsizingClusterResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RightsizingClusterResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'report_id': value['report_id'],
|
|
53
|
+
'cluster': (0, RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)(value['cluster']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -20,56 +20,56 @@ export interface RightsizingClusterUtilization {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RightsizingClusterUtilization
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
cluster_id: string;
|
|
24
24
|
/**
|
|
25
25
|
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof RightsizingClusterUtilization
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
cluster_name: string;
|
|
30
30
|
/**
|
|
31
31
|
* Number of VMs with utilization data in this cluster
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof RightsizingClusterUtilization
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
vm_count: number;
|
|
36
36
|
/**
|
|
37
37
|
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @memberof RightsizingClusterUtilization
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
cpu_avg: number;
|
|
42
42
|
/**
|
|
43
43
|
* SUM(vCPUs × vm_p95%) / SUM(vCPUs). Weighted summary of per-VM p95 values — not a true cluster-wide p95 (which would require time-aligned samples).
|
|
44
44
|
*
|
|
45
45
|
* @type {number}
|
|
46
46
|
* @memberof RightsizingClusterUtilization
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
cpu_p95: number;
|
|
49
49
|
/**
|
|
50
50
|
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
51
51
|
* @type {number}
|
|
52
52
|
* @memberof RightsizingClusterUtilization
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
cpu_max: number;
|
|
55
55
|
/**
|
|
56
56
|
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
57
57
|
* @type {number}
|
|
58
58
|
* @memberof RightsizingClusterUtilization
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
mem_avg: number;
|
|
61
61
|
/**
|
|
62
62
|
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
63
63
|
* @type {number}
|
|
64
64
|
* @memberof RightsizingClusterUtilization
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
mem_p95: number;
|
|
67
67
|
/**
|
|
68
68
|
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
69
69
|
* @type {number}
|
|
70
70
|
* @memberof RightsizingClusterUtilization
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
mem_max: number;
|
|
73
73
|
/**
|
|
74
74
|
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
75
75
|
* @type {number}
|
|
@@ -88,19 +88,19 @@ export interface RightsizingClusterUtilization {
|
|
|
88
88
|
* @type {number}
|
|
89
89
|
* @memberof RightsizingClusterUtilization
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
total_provisioned_cpus: number;
|
|
92
92
|
/**
|
|
93
93
|
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof RightsizingClusterUtilization
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
total_provisioned_memory_mb: number;
|
|
98
98
|
/**
|
|
99
99
|
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
100
100
|
* @type {number}
|
|
101
101
|
* @memberof RightsizingClusterUtilization
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
total_provisioned_disk_kb: number;
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
@@ -22,33 +22,33 @@ exports.RightsizingClusterUtilizationToJSONTyped = RightsizingClusterUtilization
|
|
|
22
22
|
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfRightsizingClusterUtilization(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('cluster_name' in value) || value['cluster_name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('vm_count' in value) || value['vm_count'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('
|
|
31
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('
|
|
33
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
42
42
|
return false;
|
|
43
43
|
if (!('disk' in value) || value['disk'] === undefined)
|
|
44
44
|
return false;
|
|
45
45
|
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
-
if (!('
|
|
47
|
+
if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined)
|
|
48
48
|
return false;
|
|
49
|
-
if (!('
|
|
49
|
+
if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
-
if (!('
|
|
51
|
+
if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined)
|
|
52
52
|
return false;
|
|
53
53
|
return true;
|
|
54
54
|
}
|
|
@@ -60,20 +60,20 @@ function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
60
|
return json;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
63
|
+
'cluster_id': json['cluster_id'],
|
|
64
|
+
'cluster_name': json['cluster_name'],
|
|
65
|
+
'vm_count': json['vm_count'],
|
|
66
|
+
'cpu_avg': json['cpu_avg'],
|
|
67
|
+
'cpu_p95': json['cpu_p95'],
|
|
68
|
+
'cpu_max': json['cpu_max'],
|
|
69
|
+
'mem_avg': json['mem_avg'],
|
|
70
|
+
'mem_p95': json['mem_p95'],
|
|
71
|
+
'mem_max': json['mem_max'],
|
|
72
72
|
'disk': json['disk'],
|
|
73
73
|
'confidence': json['confidence'],
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
74
|
+
'total_provisioned_cpus': json['total_provisioned_cpus'],
|
|
75
|
+
'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
|
|
76
|
+
'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
function RightsizingClusterUtilizationToJSON(json) {
|
|
@@ -84,19 +84,19 @@ function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = f
|
|
|
84
84
|
return value;
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
|
-
'cluster_id': value['
|
|
88
|
-
'cluster_name': value['
|
|
89
|
-
'vm_count': value['
|
|
90
|
-
'cpu_avg': value['
|
|
91
|
-
'cpu_p95': value['
|
|
92
|
-
'cpu_max': value['
|
|
93
|
-
'mem_avg': value['
|
|
94
|
-
'mem_p95': value['
|
|
95
|
-
'mem_max': value['
|
|
87
|
+
'cluster_id': value['cluster_id'],
|
|
88
|
+
'cluster_name': value['cluster_name'],
|
|
89
|
+
'vm_count': value['vm_count'],
|
|
90
|
+
'cpu_avg': value['cpu_avg'],
|
|
91
|
+
'cpu_p95': value['cpu_p95'],
|
|
92
|
+
'cpu_max': value['cpu_max'],
|
|
93
|
+
'mem_avg': value['mem_avg'],
|
|
94
|
+
'mem_p95': value['mem_p95'],
|
|
95
|
+
'mem_max': value['mem_max'],
|
|
96
96
|
'disk': value['disk'],
|
|
97
97
|
'confidence': value['confidence'],
|
|
98
|
-
'total_provisioned_cpus': value['
|
|
99
|
-
'total_provisioned_memory_mb': value['
|
|
100
|
-
'total_provisioned_disk_kb': value['
|
|
98
|
+
'total_provisioned_cpus': value['total_provisioned_cpus'],
|
|
99
|
+
'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
|
|
100
|
+
'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
|
|
101
101
|
};
|
|
102
102
|
}
|