@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-645d2fae3eee
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 +62 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +68 -17
- package/dist/apis/DefaultApi.d.ts +919 -108
- package/dist/apis/DefaultApi.js +1140 -256
- package/dist/esm/apis/DefaultApi.d.ts +919 -108
- package/dist/esm/apis/DefaultApi.js +1121 -237
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/BenchmarkRun.d.ts +104 -0
- package/dist/esm/models/BenchmarkRun.js +85 -0
- package/dist/esm/models/ClusterFeatures.d.ts +54 -0
- package/dist/esm/models/ClusterFeatures.js +54 -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/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -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 +6 -10
- package/dist/esm/models/InspectorStatus.js +5 -9
- 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/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/RightsizingClusterResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingClusterResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/esm/models/RightsizingClusterUtilization.js +95 -0
- 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 +39 -0
- package/dist/esm/models/{InspectorStartRequest.js → StartInspectionRequest.js} +12 -12
- package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -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 +43 -1
- package/dist/esm/models/VirtualMachine.js +16 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/esm/models/VirtualMachineDetail.js +10 -3
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
- 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 +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +31 -1
- package/dist/esm/models/index.js +31 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/BenchmarkRun.d.ts +104 -0
- package/dist/models/BenchmarkRun.js +92 -0
- package/dist/models/ClusterFeatures.d.ts +54 -0
- package/dist/models/ClusterFeatures.js +62 -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/DeleteLabelGloballyResponse.d.ts +38 -0
- package/dist/models/DeleteLabelGloballyResponse.js +54 -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 +6 -10
- package/dist/models/InspectorStatus.js +5 -9
- 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/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/RightsizingClusterResponse.d.ts +39 -0
- package/dist/models/RightsizingClusterResponse.js +55 -0
- package/dist/models/RightsizingClusterUtilization.d.ts +112 -0
- package/dist/models/RightsizingClusterUtilization.js +102 -0
- 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 +39 -0
- package/dist/models/StartInspectionRequest.js +55 -0
- package/dist/models/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +43 -1
- package/dist/models/VirtualMachine.js +16 -4
- package/dist/models/VirtualMachineDetail.d.ts +22 -3
- package/dist/models/VirtualMachineDetail.js +10 -3
- package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
- package/dist/models/VirtualMachineUpdateRequest.js +50 -0
- 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 +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +31 -1
- package/dist/models/index.js +31 -1
- package/dist/runtime.js +1 -1
- package/docs/AgentStatus.md +2 -2
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1701 -266
- package/docs/DeleteLabelGloballyResponse.md +36 -0
- 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/GetInventory200Response.md +4 -2
- package/docs/InspectorStatus.md +2 -2
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +2 -0
- 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/RightsizingClusterResponse.md +36 -0
- package/docs/RightsizingClusterUtilization.md +60 -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} +7 -6
- package/docs/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +16 -2
- package/docs/VirtualMachineDetail.md +7 -1
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2167 -479
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/DatastoreDetail.ts +146 -0
- package/src/models/DatastorePair.ts +92 -0
- package/src/models/DeleteLabelGloballyResponse.ts +75 -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 +15 -12
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +15 -0
- 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/RightsizingClusterResponse.ts +83 -0
- package/src/models/RightsizingClusterUtilization.ts +185 -0
- 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 +83 -0
- package/src/models/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +59 -4
- package/src/models/VirtualMachineDetail.ts +42 -11
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- 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 +192 -0
- package/src/models/index.ts +31 -1
- package/src/runtime.ts +1 -2
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
VMsToJSON,
|
|
35
35
|
VMsToJSONTyped,
|
|
36
36
|
} from './VMs.js';
|
|
37
|
+
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
38
|
+
import {
|
|
39
|
+
ClusterFeaturesFromJSON,
|
|
40
|
+
ClusterFeaturesFromJSONTyped,
|
|
41
|
+
ClusterFeaturesToJSON,
|
|
42
|
+
ClusterFeaturesToJSONTyped,
|
|
43
|
+
} from './ClusterFeatures.js';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -47,6 +54,12 @@ export interface InventoryData {
|
|
|
47
54
|
* @memberof InventoryData
|
|
48
55
|
*/
|
|
49
56
|
vcenter?: VCenter;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {ClusterFeatures}
|
|
60
|
+
* @memberof InventoryData
|
|
61
|
+
*/
|
|
62
|
+
clusterFeatures?: ClusterFeatures;
|
|
50
63
|
/**
|
|
51
64
|
*
|
|
52
65
|
* @type {VMs}
|
|
@@ -81,6 +94,7 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
81
94
|
return {
|
|
82
95
|
|
|
83
96
|
'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
|
|
97
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
|
|
84
98
|
'vms': VMsFromJSON(json['vms']),
|
|
85
99
|
'infra': InfraFromJSON(json['infra']),
|
|
86
100
|
};
|
|
@@ -98,6 +112,7 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
|
|
|
98
112
|
return {
|
|
99
113
|
|
|
100
114
|
'vcenter': VCenterToJSON(value['vcenter']),
|
|
115
|
+
'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
|
|
101
116
|
'vms': VMsToJSON(value['vms']),
|
|
102
117
|
'infra': InfraToJSON(value['infra']),
|
|
103
118
|
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PairCapability
|
|
20
|
+
*/
|
|
21
|
+
export interface PairCapability {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PairCapability
|
|
26
|
+
*/
|
|
27
|
+
pairName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PairCapability
|
|
32
|
+
*/
|
|
33
|
+
sourceDatastore: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PairCapability
|
|
38
|
+
*/
|
|
39
|
+
targetDatastore: string;
|
|
40
|
+
/**
|
|
41
|
+
* Feasible offload methods for this source-target pair
|
|
42
|
+
* @type {Array<PairCapabilityCapabilitiesEnum>}
|
|
43
|
+
* @memberof PairCapability
|
|
44
|
+
*/
|
|
45
|
+
capabilities: Array<PairCapabilityCapabilitiesEnum>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const PairCapabilityCapabilitiesEnum = {
|
|
53
|
+
CopyOffload: 'copy-offload',
|
|
54
|
+
Xcopy: 'xcopy',
|
|
55
|
+
Rdm: 'rdm',
|
|
56
|
+
Vvol: 'vvol'
|
|
57
|
+
} as const;
|
|
58
|
+
export type PairCapabilityCapabilitiesEnum = typeof PairCapabilityCapabilitiesEnum[keyof typeof PairCapabilityCapabilitiesEnum];
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PairCapability interface.
|
|
63
|
+
*/
|
|
64
|
+
export function instanceOfPairCapability(value: object): value is PairCapability {
|
|
65
|
+
if (!('pairName' in value) || value['pairName'] === undefined) return false;
|
|
66
|
+
if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined) return false;
|
|
67
|
+
if (!('targetDatastore' in value) || value['targetDatastore'] === undefined) return false;
|
|
68
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PairCapabilityFromJSON(json: any): PairCapability {
|
|
73
|
+
return PairCapabilityFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PairCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapability {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'pairName': json['pairName'],
|
|
83
|
+
'sourceDatastore': json['sourceDatastore'],
|
|
84
|
+
'targetDatastore': json['targetDatastore'],
|
|
85
|
+
'capabilities': json['capabilities'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function PairCapabilityToJSON(json: any): PairCapability {
|
|
90
|
+
return PairCapabilityToJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function PairCapabilityToJSONTyped(value?: PairCapability | null, ignoreDiscriminator: boolean = false): any {
|
|
94
|
+
if (value == null) {
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'pairName': value['pairName'],
|
|
101
|
+
'sourceDatastore': value['sourceDatastore'],
|
|
102
|
+
'targetDatastore': value['targetDatastore'],
|
|
103
|
+
'capabilities': value['capabilities'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
17
|
+
import {
|
|
18
|
+
VcenterCredentialsFromJSON,
|
|
19
|
+
VcenterCredentialsFromJSONTyped,
|
|
20
|
+
VcenterCredentialsToJSON,
|
|
21
|
+
VcenterCredentialsToJSONTyped,
|
|
22
|
+
} from './VcenterCredentials.js';
|
|
23
|
+
import type { DatastorePair } from './DatastorePair.js';
|
|
24
|
+
import {
|
|
25
|
+
DatastorePairFromJSON,
|
|
26
|
+
DatastorePairFromJSONTyped,
|
|
27
|
+
DatastorePairToJSON,
|
|
28
|
+
DatastorePairToJSONTyped,
|
|
29
|
+
} from './DatastorePair.js';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PairCapabilityRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface PairCapabilityRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {VcenterCredentials}
|
|
40
|
+
* @memberof PairCapabilityRequest
|
|
41
|
+
*/
|
|
42
|
+
credentials?: VcenterCredentials;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<DatastorePair>}
|
|
46
|
+
* @memberof PairCapabilityRequest
|
|
47
|
+
*/
|
|
48
|
+
pairs: Array<DatastorePair>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPairCapabilityRequest(value: object): value is PairCapabilityRequest {
|
|
55
|
+
if (!('pairs' in value) || value['pairs'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PairCapabilityRequestFromJSON(json: any): PairCapabilityRequest {
|
|
60
|
+
return PairCapabilityRequestFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PairCapabilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapabilityRequest {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
70
|
+
'pairs': ((json['pairs'] as Array<any>).map(DatastorePairFromJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function PairCapabilityRequestToJSON(json: any): PairCapabilityRequest {
|
|
75
|
+
return PairCapabilityRequestToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function PairCapabilityRequestToJSONTyped(value?: PairCapabilityRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
86
|
+
'pairs': ((value['pairs'] as Array<any>).map(DatastorePairToJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutForecasterCredentials403Response
|
|
20
|
+
*/
|
|
21
|
+
export interface PutForecasterCredentials403Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutForecasterCredentials403Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof PutForecasterCredentials403Response
|
|
32
|
+
*/
|
|
33
|
+
missingPrivileges?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutForecasterCredentials403Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response {
|
|
44
|
+
return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
54
|
+
'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response {
|
|
59
|
+
return PutForecasterCredentials403ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'error': value['error'],
|
|
70
|
+
'missingPrivileges': value['missingPrivileges'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
17
|
+
import {
|
|
18
|
+
RightsizingClusterUtilizationFromJSON,
|
|
19
|
+
RightsizingClusterUtilizationFromJSONTyped,
|
|
20
|
+
RightsizingClusterUtilizationToJSON,
|
|
21
|
+
RightsizingClusterUtilizationToJSONTyped,
|
|
22
|
+
} from './RightsizingClusterUtilization.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RightsizingClusterListResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface RightsizingClusterListResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The report ID this data was aggregated from
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RightsizingClusterListResponse
|
|
34
|
+
*/
|
|
35
|
+
report_id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<RightsizingClusterUtilization>}
|
|
39
|
+
* @memberof RightsizingClusterListResponse
|
|
40
|
+
*/
|
|
41
|
+
clusters: Array<RightsizingClusterUtilization>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse {
|
|
48
|
+
if (!('report_id' in value) || value['report_id'] === undefined) return false;
|
|
49
|
+
if (!('clusters' in value) || value['clusters'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse {
|
|
54
|
+
return RightsizingClusterListResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'report_id': json['report_id'],
|
|
64
|
+
'clusters': ((json['clusters'] as Array<any>).map(RightsizingClusterUtilizationFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse {
|
|
69
|
+
return RightsizingClusterListResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'report_id': value['report_id'],
|
|
80
|
+
'clusters': ((value['clusters'] as Array<any>).map(RightsizingClusterUtilizationToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { RightsizingClusterUtilization } from './RightsizingClusterUtilization.js';
|
|
17
|
+
import {
|
|
18
|
+
RightsizingClusterUtilizationFromJSON,
|
|
19
|
+
RightsizingClusterUtilizationFromJSONTyped,
|
|
20
|
+
RightsizingClusterUtilizationToJSON,
|
|
21
|
+
RightsizingClusterUtilizationToJSONTyped,
|
|
22
|
+
} from './RightsizingClusterUtilization.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RightsizingClusterResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface RightsizingClusterResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The report ID this data was aggregated from
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RightsizingClusterResponse
|
|
34
|
+
*/
|
|
35
|
+
report_id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {RightsizingClusterUtilization}
|
|
39
|
+
* @memberof RightsizingClusterResponse
|
|
40
|
+
*/
|
|
41
|
+
cluster: RightsizingClusterUtilization;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfRightsizingClusterResponse(value: object): value is RightsizingClusterResponse {
|
|
48
|
+
if (!('report_id' in value) || value['report_id'] === undefined) return false;
|
|
49
|
+
if (!('cluster' in value) || value['cluster'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function RightsizingClusterResponseFromJSON(json: any): RightsizingClusterResponse {
|
|
54
|
+
return RightsizingClusterResponseFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function RightsizingClusterResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterResponse {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'report_id': json['report_id'],
|
|
64
|
+
'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RightsizingClusterResponseToJSON(json: any): RightsizingClusterResponse {
|
|
69
|
+
return RightsizingClusterResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RightsizingClusterResponseToJSONTyped(value?: RightsizingClusterResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'report_id': value['report_id'],
|
|
80
|
+
'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface RightsizingClusterUtilization
|
|
20
|
+
*/
|
|
21
|
+
export interface RightsizingClusterUtilization {
|
|
22
|
+
/**
|
|
23
|
+
* vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RightsizingClusterUtilization
|
|
26
|
+
*/
|
|
27
|
+
cluster_id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RightsizingClusterUtilization
|
|
32
|
+
*/
|
|
33
|
+
cluster_name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of VMs with utilization data in this cluster
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RightsizingClusterUtilization
|
|
38
|
+
*/
|
|
39
|
+
vm_count: number;
|
|
40
|
+
/**
|
|
41
|
+
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof RightsizingClusterUtilization
|
|
44
|
+
*/
|
|
45
|
+
cpu_avg: number;
|
|
46
|
+
/**
|
|
47
|
+
* 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).
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof RightsizingClusterUtilization
|
|
51
|
+
*/
|
|
52
|
+
cpu_p95: number;
|
|
53
|
+
/**
|
|
54
|
+
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof RightsizingClusterUtilization
|
|
57
|
+
*/
|
|
58
|
+
cpu_max: number;
|
|
59
|
+
/**
|
|
60
|
+
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof RightsizingClusterUtilization
|
|
63
|
+
*/
|
|
64
|
+
mem_avg: number;
|
|
65
|
+
/**
|
|
66
|
+
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof RightsizingClusterUtilization
|
|
69
|
+
*/
|
|
70
|
+
mem_p95: number;
|
|
71
|
+
/**
|
|
72
|
+
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof RightsizingClusterUtilization
|
|
75
|
+
*/
|
|
76
|
+
mem_max: number;
|
|
77
|
+
/**
|
|
78
|
+
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof RightsizingClusterUtilization
|
|
81
|
+
*/
|
|
82
|
+
disk: number;
|
|
83
|
+
/**
|
|
84
|
+
* SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof RightsizingClusterUtilization
|
|
88
|
+
*/
|
|
89
|
+
confidence: number;
|
|
90
|
+
/**
|
|
91
|
+
* Sum of vCPU counts across all VMs in the cluster
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof RightsizingClusterUtilization
|
|
94
|
+
*/
|
|
95
|
+
total_provisioned_cpus: number;
|
|
96
|
+
/**
|
|
97
|
+
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof RightsizingClusterUtilization
|
|
100
|
+
*/
|
|
101
|
+
total_provisioned_memory_mb: number;
|
|
102
|
+
/**
|
|
103
|
+
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof RightsizingClusterUtilization
|
|
106
|
+
*/
|
|
107
|
+
total_provisioned_disk_kb: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization {
|
|
114
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined) return false;
|
|
115
|
+
if (!('cluster_name' in value) || value['cluster_name'] === undefined) return false;
|
|
116
|
+
if (!('vm_count' in value) || value['vm_count'] === undefined) return false;
|
|
117
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
|
|
118
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
|
|
119
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
|
|
120
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
|
|
121
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
|
|
122
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
|
|
123
|
+
if (!('disk' in value) || value['disk'] === undefined) return false;
|
|
124
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
125
|
+
if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined) return false;
|
|
126
|
+
if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined) return false;
|
|
127
|
+
if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined) return false;
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization {
|
|
132
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization {
|
|
136
|
+
if (json == null) {
|
|
137
|
+
return json;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'cluster_id': json['cluster_id'],
|
|
142
|
+
'cluster_name': json['cluster_name'],
|
|
143
|
+
'vm_count': json['vm_count'],
|
|
144
|
+
'cpu_avg': json['cpu_avg'],
|
|
145
|
+
'cpu_p95': json['cpu_p95'],
|
|
146
|
+
'cpu_max': json['cpu_max'],
|
|
147
|
+
'mem_avg': json['mem_avg'],
|
|
148
|
+
'mem_p95': json['mem_p95'],
|
|
149
|
+
'mem_max': json['mem_max'],
|
|
150
|
+
'disk': json['disk'],
|
|
151
|
+
'confidence': json['confidence'],
|
|
152
|
+
'total_provisioned_cpus': json['total_provisioned_cpus'],
|
|
153
|
+
'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
|
|
154
|
+
'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization {
|
|
159
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
|
|
163
|
+
if (value == null) {
|
|
164
|
+
return value;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return {
|
|
168
|
+
|
|
169
|
+
'cluster_id': value['cluster_id'],
|
|
170
|
+
'cluster_name': value['cluster_name'],
|
|
171
|
+
'vm_count': value['vm_count'],
|
|
172
|
+
'cpu_avg': value['cpu_avg'],
|
|
173
|
+
'cpu_p95': value['cpu_p95'],
|
|
174
|
+
'cpu_max': value['cpu_max'],
|
|
175
|
+
'mem_avg': value['mem_avg'],
|
|
176
|
+
'mem_p95': value['mem_p95'],
|
|
177
|
+
'mem_max': value['mem_max'],
|
|
178
|
+
'disk': value['disk'],
|
|
179
|
+
'confidence': value['confidence'],
|
|
180
|
+
'total_provisioned_cpus': value['total_provisioned_cpus'],
|
|
181
|
+
'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
|
|
182
|
+
'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|