@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
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
import { RightsizingClusterUtilizationFromJSON, RightsizingClusterUtilizationToJSON, } from './RightsizingClusterUtilization.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingClusterResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingClusterResponse(value) {
|
|
19
|
+
if (!('report_id' in value) || value['report_id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('cluster' in value) || value['cluster'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function RightsizingClusterResponseFromJSON(json) {
|
|
26
|
+
return RightsizingClusterResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function RightsizingClusterResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'report_id': json['report_id'],
|
|
34
|
+
'cluster': RightsizingClusterUtilizationFromJSON(json['cluster']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function RightsizingClusterResponseToJSON(json) {
|
|
38
|
+
return RightsizingClusterResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingClusterResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'report_id': value['report_id'],
|
|
46
|
+
'cluster': RightsizingClusterUtilizationToJSON(value['cluster']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
* Check if a given object implements the RightsizingClusterUtilization interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRightsizingClusterUtilization(value) {
|
|
18
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('cluster_name' in value) || value['cluster_name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('vm_count' in value) || value['vm_count'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('total_provisioned_cpus' in value) || value['total_provisioned_cpus'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('total_provisioned_memory_mb' in value) || value['total_provisioned_memory_mb'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('total_provisioned_disk_kb' in value) || value['total_provisioned_disk_kb'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
export function RightsizingClusterUtilizationFromJSON(json) {
|
|
49
|
+
return RightsizingClusterUtilizationFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function RightsizingClusterUtilizationFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'cluster_id': json['cluster_id'],
|
|
57
|
+
'cluster_name': json['cluster_name'],
|
|
58
|
+
'vm_count': json['vm_count'],
|
|
59
|
+
'cpu_avg': json['cpu_avg'],
|
|
60
|
+
'cpu_p95': json['cpu_p95'],
|
|
61
|
+
'cpu_max': json['cpu_max'],
|
|
62
|
+
'mem_avg': json['mem_avg'],
|
|
63
|
+
'mem_p95': json['mem_p95'],
|
|
64
|
+
'mem_max': json['mem_max'],
|
|
65
|
+
'disk': json['disk'],
|
|
66
|
+
'confidence': json['confidence'],
|
|
67
|
+
'total_provisioned_cpus': json['total_provisioned_cpus'],
|
|
68
|
+
'total_provisioned_memory_mb': json['total_provisioned_memory_mb'],
|
|
69
|
+
'total_provisioned_disk_kb': json['total_provisioned_disk_kb'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export function RightsizingClusterUtilizationToJSON(json) {
|
|
73
|
+
return RightsizingClusterUtilizationToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
export function RightsizingClusterUtilizationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'cluster_id': value['cluster_id'],
|
|
81
|
+
'cluster_name': value['cluster_name'],
|
|
82
|
+
'vm_count': value['vm_count'],
|
|
83
|
+
'cpu_avg': value['cpu_avg'],
|
|
84
|
+
'cpu_p95': value['cpu_p95'],
|
|
85
|
+
'cpu_max': value['cpu_max'],
|
|
86
|
+
'mem_avg': value['mem_avg'],
|
|
87
|
+
'mem_p95': value['mem_p95'],
|
|
88
|
+
'mem_max': value['mem_max'],
|
|
89
|
+
'disk': value['disk'],
|
|
90
|
+
'confidence': value['confidence'],
|
|
91
|
+
'total_provisioned_cpus': value['total_provisioned_cpus'],
|
|
92
|
+
'total_provisioned_memory_mb': value['total_provisioned_memory_mb'],
|
|
93
|
+
'total_provisioned_disk_kb': value['total_provisioned_disk_kb'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingCollectRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingCollectRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {VcenterCredentials}
|
|
22
|
+
* @memberof RightsizingCollectRequest
|
|
23
|
+
*/
|
|
24
|
+
credentials: VcenterCredentials;
|
|
25
|
+
/**
|
|
26
|
+
* Lookback window in hours (default 720 = 30 days)
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof RightsizingCollectRequest
|
|
29
|
+
*/
|
|
30
|
+
lookback_hours?: number;
|
|
31
|
+
/**
|
|
32
|
+
* vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof RightsizingCollectRequest
|
|
35
|
+
*/
|
|
36
|
+
interval_id?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Filter VMs by name substring
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof RightsizingCollectRequest
|
|
41
|
+
*/
|
|
42
|
+
name_filter?: string;
|
|
43
|
+
/**
|
|
44
|
+
* MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof RightsizingCollectRequest
|
|
47
|
+
*/
|
|
48
|
+
cluster_id?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Number of VMs per QueryPerf round-trip
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingCollectRequest
|
|
53
|
+
*/
|
|
54
|
+
batch_size?: number;
|
|
55
|
+
/**
|
|
56
|
+
* If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof RightsizingCollectRequest
|
|
60
|
+
*/
|
|
61
|
+
discover_vms?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfRightsizingCollectRequest(value: object): value is RightsizingCollectRequest;
|
|
67
|
+
export declare function RightsizingCollectRequestFromJSON(json: any): RightsizingCollectRequest;
|
|
68
|
+
export declare function RightsizingCollectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingCollectRequest;
|
|
69
|
+
export declare function RightsizingCollectRequestToJSON(json: any): RightsizingCollectRequest;
|
|
70
|
+
export declare function RightsizingCollectRequestToJSONTyped(value?: RightsizingCollectRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingCollectRequest(value) {
|
|
19
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function RightsizingCollectRequestFromJSON(json) {
|
|
24
|
+
return RightsizingCollectRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'credentials': VcenterCredentialsFromJSON(json['credentials']),
|
|
32
|
+
'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
33
|
+
'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
34
|
+
'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
35
|
+
'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
36
|
+
'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
37
|
+
'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function RightsizingCollectRequestToJSON(json) {
|
|
41
|
+
return RightsizingCollectRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
49
|
+
'lookback_hours': value['lookback_hours'],
|
|
50
|
+
'interval_id': value['interval_id'],
|
|
51
|
+
'name_filter': value['name_filter'],
|
|
52
|
+
'cluster_id': value['cluster_id'],
|
|
53
|
+
'batch_size': value['batch_size'],
|
|
54
|
+
'discover_vms': value['discover_vms'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 RightsizingMetricStats
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingMetricStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RightsizingMetricStats
|
|
22
|
+
*/
|
|
23
|
+
sample_count: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RightsizingMetricStats
|
|
28
|
+
*/
|
|
29
|
+
average: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingMetricStats
|
|
34
|
+
*/
|
|
35
|
+
p95: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RightsizingMetricStats
|
|
40
|
+
*/
|
|
41
|
+
p99: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RightsizingMetricStats
|
|
46
|
+
*/
|
|
47
|
+
max: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingMetricStats
|
|
52
|
+
*/
|
|
53
|
+
latest: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats;
|
|
59
|
+
export declare function RightsizingMetricStatsFromJSON(json: any): RightsizingMetricStats;
|
|
60
|
+
export declare function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingMetricStats;
|
|
61
|
+
export declare function RightsizingMetricStatsToJSON(json: any): RightsizingMetricStats;
|
|
62
|
+
export declare function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfRightsizingMetricStats(value) {
|
|
18
|
+
if (!('sample_count' in value) || value['sample_count'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('average' in value) || value['average'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('p95' in value) || value['p95'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('p99' in value) || value['p99'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('max' in value) || value['max'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('latest' in value) || value['latest'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function RightsizingMetricStatsFromJSON(json) {
|
|
33
|
+
return RightsizingMetricStatsFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'sample_count': json['sample_count'],
|
|
41
|
+
'average': json['average'],
|
|
42
|
+
'p95': json['p95'],
|
|
43
|
+
'p99': json['p99'],
|
|
44
|
+
'max': json['max'],
|
|
45
|
+
'latest': json['latest'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function RightsizingMetricStatsToJSON(json) {
|
|
49
|
+
return RightsizingMetricStatsToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'sample_count': value['sample_count'],
|
|
57
|
+
'average': value['average'],
|
|
58
|
+
'p95': value['p95'],
|
|
59
|
+
'p99': value['p99'],
|
|
60
|
+
'max': value['max'],
|
|
61
|
+
'latest': value['latest'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { RightsizingVMReport } from './RightsizingVMReport.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingReport
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingReport {
|
|
19
|
+
/**
|
|
20
|
+
* UUID of the report
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RightsizingReport
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* vCenter URL used for this collection
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof RightsizingReport
|
|
29
|
+
*/
|
|
30
|
+
vcenter: string;
|
|
31
|
+
/**
|
|
32
|
+
* MoRef of the ClusterComputeResource scoped for this collection (empty = all clusters)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof RightsizingReport
|
|
35
|
+
*/
|
|
36
|
+
cluster_id: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof RightsizingReport
|
|
41
|
+
*/
|
|
42
|
+
window_start: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof RightsizingReport
|
|
47
|
+
*/
|
|
48
|
+
window_end: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingReport
|
|
53
|
+
*/
|
|
54
|
+
interval_id: number;
|
|
55
|
+
/**
|
|
56
|
+
* Theoretical maximum samples for the window (lookback / interval)
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof RightsizingReport
|
|
59
|
+
*/
|
|
60
|
+
expected_sample_count: number;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Array<RightsizingVMReport>}
|
|
64
|
+
* @memberof RightsizingReport
|
|
65
|
+
*/
|
|
66
|
+
vms: Array<RightsizingVMReport>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof RightsizingReport
|
|
71
|
+
*/
|
|
72
|
+
created_at: Date;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the RightsizingReport interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfRightsizingReport(value: object): value is RightsizingReport;
|
|
78
|
+
export declare function RightsizingReportFromJSON(json: any): RightsizingReport;
|
|
79
|
+
export declare function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingReport;
|
|
80
|
+
export declare function RightsizingReportToJSON(json: any): RightsizingReport;
|
|
81
|
+
export declare function RightsizingReportToJSONTyped(value?: RightsizingReport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
import { RightsizingVMReportFromJSON, RightsizingVMReportToJSON, } from './RightsizingVMReport.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the RightsizingReport interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRightsizingReport(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('vcenter' in value) || value['vcenter'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('cluster_id' in value) || value['cluster_id'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('window_start' in value) || value['window_start'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('window_end' in value) || value['window_end'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('interval_id' in value) || value['interval_id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function RightsizingReportFromJSON(json) {
|
|
40
|
+
return RightsizingReportFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'vcenter': json['vcenter'],
|
|
49
|
+
'cluster_id': json['cluster_id'],
|
|
50
|
+
'window_start': (new Date(json['window_start'])),
|
|
51
|
+
'window_end': (new Date(json['window_end'])),
|
|
52
|
+
'interval_id': json['interval_id'],
|
|
53
|
+
'expected_sample_count': json['expected_sample_count'],
|
|
54
|
+
'vms': (json['vms'].map(RightsizingVMReportFromJSON)),
|
|
55
|
+
'created_at': (new Date(json['created_at'])),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function RightsizingReportToJSON(json) {
|
|
59
|
+
return RightsizingReportToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'vcenter': value['vcenter'],
|
|
68
|
+
'cluster_id': value['cluster_id'],
|
|
69
|
+
'window_start': value['window_start'].toISOString(),
|
|
70
|
+
'window_end': value['window_end'].toISOString(),
|
|
71
|
+
'interval_id': value['interval_id'],
|
|
72
|
+
'expected_sample_count': value['expected_sample_count'],
|
|
73
|
+
'vms': (value['vms'].map(RightsizingVMReportToJSON)),
|
|
74
|
+
'created_at': value['created_at'].toISOString(),
|
|
75
|
+
};
|
|
76
|
+
}
|