@openshift-migration-advisor/agent-sdk 0.12.0-d4bdc4301890 → 0.12.0-e4c04f972747
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 +52 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -5
- package/dist/apis/DefaultApi.d.ts +798 -20
- package/dist/apis/DefaultApi.js +878 -24
- package/dist/esm/apis/DefaultApi.d.ts +798 -20
- package/dist/esm/apis/DefaultApi.js +878 -24
- package/dist/esm/models/AgentStatus.d.ts +1 -1
- package/dist/esm/models/AgentStatus.js +3 -3
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- 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/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- 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/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -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 +14 -0
- package/dist/esm/models/InventoryData.js +6 -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 +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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/esm/models/StopForecasterPair202Response.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
- package/dist/esm/models/VMLabelsResponse.js +47 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +30 -6
- package/dist/esm/models/VirtualMachine.js +18 -10
- 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 +27 -9
- package/dist/esm/models/VmUtilizationDetails.js +39 -27
- package/dist/esm/models/index.d.ts +26 -0
- package/dist/esm/models/index.js +26 -0
- package/dist/models/AgentStatus.d.ts +1 -1
- package/dist/models/AgentStatus.js +3 -3
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- 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/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- 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/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -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 +14 -0
- package/dist/models/InventoryData.js +6 -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 +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/StopForecasterPair202Response.d.ts +45 -0
- package/dist/models/StopForecasterPair202Response.js +57 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
- package/dist/models/UpdateLabelVMsRequest.js +50 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMLabelsResponse.d.ts +38 -0
- package/dist/models/VMLabelsResponse.js +54 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VirtualMachine.d.ts +30 -6
- package/dist/models/VirtualMachine.js +18 -10
- 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 +27 -9
- package/dist/models/VmUtilizationDetails.js +39 -27
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +26 -0
- package/docs/AgentStatus.md +2 -2
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/BenchmarkRun.md +58 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +1725 -308
- 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/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InspectorStatus.md +0 -4
- package/docs/Inventory.md +4 -2
- package/docs/InventoryData.md +4 -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 +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/StopForecasterPair202Response.md +36 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/UpdateLabelVMsRequest.md +36 -0
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMLabelsResponse.md +36 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VirtualMachine.md +18 -10
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmUtilizationDetails.md +24 -18
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +1700 -93
- package/src/models/AgentStatus.ts +4 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/BenchmarkRun.ts +171 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- 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/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InspectorStatus.ts +1 -28
- package/src/models/Inventory.ts +12 -4
- package/src/models/InventoryData.ts +30 -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 +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/StopForecasterPair202Response.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/UpdateLabelVMsRequest.ts +73 -0
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMLabelsResponse.ts +75 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VirtualMachine.ts +48 -16
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmUtilizationDetails.ts +63 -36
- package/src/models/index.ts +26 -0
|
@@ -20,7 +20,9 @@ exports.InventoryDataToJSON = InventoryDataToJSON;
|
|
|
20
20
|
exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
|
|
21
21
|
const VCenter_js_1 = require("./VCenter.js");
|
|
22
22
|
const Infra_js_1 = require("./Infra.js");
|
|
23
|
+
const ClusterUtilization_js_1 = require("./ClusterUtilization.js");
|
|
23
24
|
const VMs_js_1 = require("./VMs.js");
|
|
25
|
+
const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
|
|
24
26
|
/**
|
|
25
27
|
* Check if a given object implements the InventoryData interface.
|
|
26
28
|
*/
|
|
@@ -40,6 +42,8 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
42
|
}
|
|
41
43
|
return {
|
|
42
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
|
|
45
|
+
'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
|
|
46
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : (0, ClusterUtilization_js_1.ClusterUtilizationFromJSON)(json['clusterUtilization']),
|
|
43
47
|
'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
|
|
44
48
|
'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
|
|
45
49
|
};
|
|
@@ -53,6 +57,8 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
57
|
}
|
|
54
58
|
return {
|
|
55
59
|
'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
|
|
60
|
+
'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
|
|
61
|
+
'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
|
|
56
62
|
'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
|
|
57
63
|
'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
|
|
58
64
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 PairCapability
|
|
16
|
+
*/
|
|
17
|
+
export interface PairCapability {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PairCapability
|
|
22
|
+
*/
|
|
23
|
+
pairName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PairCapability
|
|
28
|
+
*/
|
|
29
|
+
sourceDatastore: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PairCapability
|
|
34
|
+
*/
|
|
35
|
+
targetDatastore: string;
|
|
36
|
+
/**
|
|
37
|
+
* Feasible offload methods for this source-target pair
|
|
38
|
+
* @type {Array<PairCapabilityCapabilitiesEnum>}
|
|
39
|
+
* @memberof PairCapability
|
|
40
|
+
*/
|
|
41
|
+
capabilities: Array<PairCapabilityCapabilitiesEnum>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PairCapabilityCapabilitiesEnum: {
|
|
47
|
+
readonly CopyOffload: "copy-offload";
|
|
48
|
+
readonly Xcopy: "xcopy";
|
|
49
|
+
readonly Rdm: "rdm";
|
|
50
|
+
readonly Vvol: "vvol";
|
|
51
|
+
};
|
|
52
|
+
export type PairCapabilityCapabilitiesEnum = typeof PairCapabilityCapabilitiesEnum[keyof typeof PairCapabilityCapabilitiesEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the PairCapability interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfPairCapability(value: object): value is PairCapability;
|
|
57
|
+
export declare function PairCapabilityFromJSON(json: any): PairCapability;
|
|
58
|
+
export declare function PairCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapability;
|
|
59
|
+
export declare function PairCapabilityToJSON(json: any): PairCapability;
|
|
60
|
+
export declare function PairCapabilityToJSONTyped(value?: PairCapability | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.PairCapabilityCapabilitiesEnum = void 0;
|
|
17
|
+
exports.instanceOfPairCapability = instanceOfPairCapability;
|
|
18
|
+
exports.PairCapabilityFromJSON = PairCapabilityFromJSON;
|
|
19
|
+
exports.PairCapabilityFromJSONTyped = PairCapabilityFromJSONTyped;
|
|
20
|
+
exports.PairCapabilityToJSON = PairCapabilityToJSON;
|
|
21
|
+
exports.PairCapabilityToJSONTyped = PairCapabilityToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PairCapabilityCapabilitiesEnum = {
|
|
26
|
+
CopyOffload: 'copy-offload',
|
|
27
|
+
Xcopy: 'xcopy',
|
|
28
|
+
Rdm: 'rdm',
|
|
29
|
+
Vvol: 'vvol'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PairCapability interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfPairCapability(value) {
|
|
35
|
+
if (!('pairName' in value) || value['pairName'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('sourceDatastore' in value) || value['sourceDatastore'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('targetDatastore' in value) || value['targetDatastore'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('capabilities' in value) || value['capabilities'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function PairCapabilityFromJSON(json) {
|
|
46
|
+
return PairCapabilityFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PairCapabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'pairName': json['pairName'],
|
|
54
|
+
'sourceDatastore': json['sourceDatastore'],
|
|
55
|
+
'targetDatastore': json['targetDatastore'],
|
|
56
|
+
'capabilities': json['capabilities'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function PairCapabilityToJSON(json) {
|
|
60
|
+
return PairCapabilityToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function PairCapabilityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'pairName': value['pairName'],
|
|
68
|
+
'sourceDatastore': value['sourceDatastore'],
|
|
69
|
+
'targetDatastore': value['targetDatastore'],
|
|
70
|
+
'capabilities': value['capabilities'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
+
import type { DatastorePair } from './DatastorePair.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PairCapabilityRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface PairCapabilityRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {VcenterCredentials}
|
|
23
|
+
* @memberof PairCapabilityRequest
|
|
24
|
+
*/
|
|
25
|
+
credentials?: VcenterCredentials;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DatastorePair>}
|
|
29
|
+
* @memberof PairCapabilityRequest
|
|
30
|
+
*/
|
|
31
|
+
pairs: Array<DatastorePair>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPairCapabilityRequest(value: object): value is PairCapabilityRequest;
|
|
37
|
+
export declare function PairCapabilityRequestFromJSON(json: any): PairCapabilityRequest;
|
|
38
|
+
export declare function PairCapabilityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PairCapabilityRequest;
|
|
39
|
+
export declare function PairCapabilityRequestToJSON(json: any): PairCapabilityRequest;
|
|
40
|
+
export declare function PairCapabilityRequestToJSONTyped(value?: PairCapabilityRequest | 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.instanceOfPairCapabilityRequest = instanceOfPairCapabilityRequest;
|
|
17
|
+
exports.PairCapabilityRequestFromJSON = PairCapabilityRequestFromJSON;
|
|
18
|
+
exports.PairCapabilityRequestFromJSONTyped = PairCapabilityRequestFromJSONTyped;
|
|
19
|
+
exports.PairCapabilityRequestToJSON = PairCapabilityRequestToJSON;
|
|
20
|
+
exports.PairCapabilityRequestToJSONTyped = PairCapabilityRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
const DatastorePair_js_1 = require("./DatastorePair.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PairCapabilityRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPairCapabilityRequest(value) {
|
|
27
|
+
if (!('pairs' in value) || value['pairs'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PairCapabilityRequestFromJSON(json) {
|
|
32
|
+
return PairCapabilityRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PairCapabilityRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
40
|
+
'pairs': (json['pairs'].map(DatastorePair_js_1.DatastorePairFromJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PairCapabilityRequestToJSON(json) {
|
|
44
|
+
return PairCapabilityRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PairCapabilityRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
52
|
+
'pairs': (value['pairs'].map(DatastorePair_js_1.DatastorePairToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 PutForecasterCredentials403Response
|
|
16
|
+
*/
|
|
17
|
+
export interface PutForecasterCredentials403Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutForecasterCredentials403Response
|
|
22
|
+
*/
|
|
23
|
+
error?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof PutForecasterCredentials403Response
|
|
28
|
+
*/
|
|
29
|
+
missingPrivileges?: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PutForecasterCredentials403Response interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPutForecasterCredentials403Response(value: object): value is PutForecasterCredentials403Response;
|
|
35
|
+
export declare function PutForecasterCredentials403ResponseFromJSON(json: any): PutForecasterCredentials403Response;
|
|
36
|
+
export declare function PutForecasterCredentials403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutForecasterCredentials403Response;
|
|
37
|
+
export declare function PutForecasterCredentials403ResponseToJSON(json: any): PutForecasterCredentials403Response;
|
|
38
|
+
export declare function PutForecasterCredentials403ResponseToJSONTyped(value?: PutForecasterCredentials403Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPutForecasterCredentials403Response = instanceOfPutForecasterCredentials403Response;
|
|
17
|
+
exports.PutForecasterCredentials403ResponseFromJSON = PutForecasterCredentials403ResponseFromJSON;
|
|
18
|
+
exports.PutForecasterCredentials403ResponseFromJSONTyped = PutForecasterCredentials403ResponseFromJSONTyped;
|
|
19
|
+
exports.PutForecasterCredentials403ResponseToJSON = PutForecasterCredentials403ResponseToJSON;
|
|
20
|
+
exports.PutForecasterCredentials403ResponseToJSONTyped = PutForecasterCredentials403ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutForecasterCredentials403Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutForecasterCredentials403Response(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutForecasterCredentials403ResponseFromJSON(json) {
|
|
28
|
+
return PutForecasterCredentials403ResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutForecasterCredentials403ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
36
|
+
'missingPrivileges': json['missingPrivileges'] == null ? undefined : json['missingPrivileges'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function PutForecasterCredentials403ResponseToJSON(json) {
|
|
40
|
+
return PutForecasterCredentials403ResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PutForecasterCredentials403ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'error': value['error'],
|
|
48
|
+
'missingPrivileges': value['missingPrivileges'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 RightsizingClusterListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingClusterListResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The report ID this data was aggregated from
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingClusterListResponse
|
|
23
|
+
*/
|
|
24
|
+
report_id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<RightsizingClusterUtilization>}
|
|
28
|
+
* @memberof RightsizingClusterListResponse
|
|
29
|
+
*/
|
|
30
|
+
clusters: Array<RightsizingClusterUtilization>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse;
|
|
36
|
+
export declare function RightsizingClusterListResponseFromJSON(json: any): RightsizingClusterListResponse;
|
|
37
|
+
export declare function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterListResponse;
|
|
38
|
+
export declare function RightsizingClusterListResponseToJSON(json: any): RightsizingClusterListResponse;
|
|
39
|
+
export declare function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClusterListResponse | 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.instanceOfRightsizingClusterListResponse = instanceOfRightsizingClusterListResponse;
|
|
17
|
+
exports.RightsizingClusterListResponseFromJSON = RightsizingClusterListResponseFromJSON;
|
|
18
|
+
exports.RightsizingClusterListResponseFromJSONTyped = RightsizingClusterListResponseFromJSONTyped;
|
|
19
|
+
exports.RightsizingClusterListResponseToJSON = RightsizingClusterListResponseToJSON;
|
|
20
|
+
exports.RightsizingClusterListResponseToJSONTyped = RightsizingClusterListResponseToJSONTyped;
|
|
21
|
+
const RightsizingClusterUtilization_js_1 = require("./RightsizingClusterUtilization.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingClusterListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingClusterListResponse(value) {
|
|
26
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function RightsizingClusterListResponseFromJSON(json) {
|
|
33
|
+
return RightsizingClusterListResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function RightsizingClusterListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'report_id': json['report_id'],
|
|
41
|
+
'clusters': (json['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationFromJSON)),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function RightsizingClusterListResponseToJSON(json) {
|
|
45
|
+
return RightsizingClusterListResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function RightsizingClusterListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'report_id': value['report_id'],
|
|
53
|
+
'clusters': (value['clusters'].map(RightsizingClusterUtilization_js_1.RightsizingClusterUtilizationToJSON)),
|
|
54
|
+
};
|
|
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
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 RightsizingClusterUtilization
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingClusterUtilization {
|
|
18
|
+
/**
|
|
19
|
+
* vSphere MoRef of the ClusterComputeResource (e.g. "domain-c123").
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RightsizingClusterUtilization
|
|
22
|
+
*/
|
|
23
|
+
cluster_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Display name of the cluster as reported by vCenter (e.g. "production-cluster").
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RightsizingClusterUtilization
|
|
28
|
+
*/
|
|
29
|
+
cluster_name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Number of VMs with utilization data in this cluster
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingClusterUtilization
|
|
34
|
+
*/
|
|
35
|
+
vm_count: number;
|
|
36
|
+
/**
|
|
37
|
+
* SUM(vCPUs × cpu_avg%) / SUM(vCPUs) — weighted average CPU utilization (%)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RightsizingClusterUtilization
|
|
40
|
+
*/
|
|
41
|
+
cpu_avg: number;
|
|
42
|
+
/**
|
|
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
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof RightsizingClusterUtilization
|
|
47
|
+
*/
|
|
48
|
+
cpu_p95: number;
|
|
49
|
+
/**
|
|
50
|
+
* Weighted summary of per-VM max values (see cpu_p95 note)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingClusterUtilization
|
|
53
|
+
*/
|
|
54
|
+
cpu_max: number;
|
|
55
|
+
/**
|
|
56
|
+
* SUM(provisionedMB × mem_avg%) / SUM(provisionedMB) — weighted average memory utilization (%)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof RightsizingClusterUtilization
|
|
59
|
+
*/
|
|
60
|
+
mem_avg: number;
|
|
61
|
+
/**
|
|
62
|
+
* Weighted summary of per-VM memory p95 values (see cpu_p95 note)
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof RightsizingClusterUtilization
|
|
65
|
+
*/
|
|
66
|
+
mem_p95: number;
|
|
67
|
+
/**
|
|
68
|
+
* Weighted summary of per-VM memory max values (see cpu_p95 note)
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof RightsizingClusterUtilization
|
|
71
|
+
*/
|
|
72
|
+
mem_max: number;
|
|
73
|
+
/**
|
|
74
|
+
* SUM(provisionedKB × disk%) / SUM(provisionedKB) — weighted average disk utilization (%)
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof RightsizingClusterUtilization
|
|
77
|
+
*/
|
|
78
|
+
disk: number;
|
|
79
|
+
/**
|
|
80
|
+
* SUM(vCPUs × confidence%) / SUM(vCPUs). vCPU-weighted data coverage (0–100 %). Interpret utilization cautiously when low.
|
|
81
|
+
*
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof RightsizingClusterUtilization
|
|
84
|
+
*/
|
|
85
|
+
confidence: number;
|
|
86
|
+
/**
|
|
87
|
+
* Sum of vCPU counts across all VMs in the cluster
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof RightsizingClusterUtilization
|
|
90
|
+
*/
|
|
91
|
+
total_provisioned_cpus: number;
|
|
92
|
+
/**
|
|
93
|
+
* Sum of provisioned RAM (MB) across all VMs in the cluster
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof RightsizingClusterUtilization
|
|
96
|
+
*/
|
|
97
|
+
total_provisioned_memory_mb: number;
|
|
98
|
+
/**
|
|
99
|
+
* Sum of provisioned disk (KB) across all VMs in the cluster
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof RightsizingClusterUtilization
|
|
102
|
+
*/
|
|
103
|
+
total_provisioned_disk_kb: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfRightsizingClusterUtilization(value: object): value is RightsizingClusterUtilization;
|
|
109
|
+
export declare function RightsizingClusterUtilizationFromJSON(json: any): RightsizingClusterUtilization;
|
|
110
|
+
export declare function RightsizingClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingClusterUtilization;
|
|
111
|
+
export declare function RightsizingClusterUtilizationToJSON(json: any): RightsizingClusterUtilization;
|
|
112
|
+
export declare function RightsizingClusterUtilizationToJSONTyped(value?: RightsizingClusterUtilization | null, ignoreDiscriminator?: boolean): any;
|