@openshift-migration-advisor/agent-sdk 0.12.0 → 0.16.0
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 +74 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +75 -10
- package/dist/apis/DefaultApi.d.ts +1102 -63
- package/dist/apis/DefaultApi.js +1333 -189
- package/dist/esm/apis/DefaultApi.d.ts +1102 -63
- package/dist/esm/apis/DefaultApi.js +1309 -165
- 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/CapabilityStatus.d.ts +33 -0
- package/dist/esm/models/CapabilityStatus.js +44 -0
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/esm/models/CapabilityStatusCapabilities.js +52 -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/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +44 -0
- package/dist/esm/models/CredentialStatus.js +51 -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/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/OperationCapability.d.ts +38 -0
- package/dist/esm/models/OperationCapability.js +45 -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 +8 -1
- package/dist/esm/models/StartInspectionRequest.js +3 -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/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +50 -2
- package/dist/esm/models/VirtualMachine.js +18 -2
- 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/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/esm/models/VmUtilizationDetails.js +99 -0
- package/dist/esm/models/index.d.ts +37 -0
- package/dist/esm/models/index.js +37 -0
- package/dist/esm/runtime.js +2 -1
- 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/CapabilityStatus.d.ts +33 -0
- package/dist/models/CapabilityStatus.js +51 -0
- package/dist/models/CapabilityStatusCapabilities.d.ts +45 -0
- package/dist/models/CapabilityStatusCapabilities.js +59 -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/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +44 -0
- package/dist/models/CredentialStatus.js +58 -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/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/OperationCapability.d.ts +38 -0
- package/dist/models/OperationCapability.js +52 -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 +8 -1
- package/dist/models/StartInspectionRequest.js +3 -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/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +50 -2
- package/dist/models/VirtualMachine.js +18 -2
- 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/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/VmUtilizationDetails.d.ts +116 -0
- package/dist/models/VmUtilizationDetails.js +106 -0
- package/dist/models/index.d.ts +37 -0
- package/dist/models/index.js +37 -0
- package/dist/runtime.js +2 -1
- 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/CapabilityStatus.md +34 -0
- package/docs/CapabilityStatusCapabilities.md +38 -0
- package/docs/ClusterFeatures.md +38 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +38 -0
- package/docs/DatastoreDetail.md +50 -0
- package/docs/DatastorePair.md +40 -0
- package/docs/DefaultApi.md +2170 -304
- 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/OperationCapability.md +36 -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/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/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +18 -2
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineUpdateRequest.md +36 -0
- package/docs/VmInspectionStatus.md +2 -0
- package/docs/VmUtilizationDetails.md +62 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +2566 -430
- 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/CapabilityStatus.ts +74 -0
- package/src/models/CapabilityStatusCapabilities.ts +92 -0
- package/src/models/ClusterFeatures.ts +94 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +84 -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/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/OperationCapability.ts +74 -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 +17 -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/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +68 -4
- package/src/models/VirtualMachineDetail.ts +31 -0
- package/src/models/VirtualMachineUpdateRequest.ts +73 -0
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/VmUtilizationDetails.ts +192 -0
- package/src/models/index.ts +37 -0
- package/src/runtime.ts +1 -2
|
@@ -0,0 +1,75 @@
|
|
|
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 VMLabelsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VMLabelsResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Distinct labels currently in use
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof VMLabelsResponse
|
|
26
|
+
*/
|
|
27
|
+
labels: Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Number of VMs with each label (same order as labels array)
|
|
30
|
+
* @type {Array<number>}
|
|
31
|
+
* @memberof VMLabelsResponse
|
|
32
|
+
*/
|
|
33
|
+
counts: Array<number>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VMLabelsResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse {
|
|
40
|
+
if (!('labels' in value) || value['labels'] === undefined) return false;
|
|
41
|
+
if (!('counts' in value) || value['counts'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function VMLabelsResponseFromJSON(json: any): VMLabelsResponse {
|
|
46
|
+
return VMLabelsResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'labels': json['labels'],
|
|
56
|
+
'counts': json['counts'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function VMLabelsResponseToJSON(json: any): VMLabelsResponse {
|
|
61
|
+
return VMLabelsResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'labels': value['labels'],
|
|
72
|
+
'counts': value['counts'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/VMNIC.ts
CHANGED
|
@@ -37,6 +37,18 @@ export interface VMNIC {
|
|
|
37
37
|
* @memberof VMNIC
|
|
38
38
|
*/
|
|
39
39
|
index?: number;
|
|
40
|
+
/**
|
|
41
|
+
* IPv4 address of this NIC as reported by VMware Tools
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VMNIC
|
|
44
|
+
*/
|
|
45
|
+
ipv4Address?: string;
|
|
46
|
+
/**
|
|
47
|
+
* IPv6 address of this NIC as reported by VMware Tools
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof VMNIC
|
|
50
|
+
*/
|
|
51
|
+
ipv6Address?: string;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -59,6 +71,8 @@ export function VMNICFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMN
|
|
|
59
71
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
60
72
|
'network': json['network'] == null ? undefined : json['network'],
|
|
61
73
|
'index': json['index'] == null ? undefined : json['index'],
|
|
74
|
+
'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
|
|
75
|
+
'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
|
|
62
76
|
};
|
|
63
77
|
}
|
|
64
78
|
|
|
@@ -76,6 +90,8 @@ export function VMNICToJSONTyped(value?: VMNIC | null, ignoreDiscriminator: bool
|
|
|
76
90
|
'mac': value['mac'],
|
|
77
91
|
'network': value['network'],
|
|
78
92
|
'index': value['index'],
|
|
93
|
+
'ipv4Address': value['ipv4Address'],
|
|
94
|
+
'ipv6Address': value['ipv6Address'],
|
|
79
95
|
};
|
|
80
96
|
}
|
|
81
97
|
|
|
@@ -37,6 +37,18 @@ export interface VcenterCredentials {
|
|
|
37
37
|
* @memberof VcenterCredentials
|
|
38
38
|
*/
|
|
39
39
|
password: string;
|
|
40
|
+
/**
|
|
41
|
+
* PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof VcenterCredentials
|
|
44
|
+
*/
|
|
45
|
+
cacert?: string;
|
|
46
|
+
/**
|
|
47
|
+
* When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof VcenterCredentials
|
|
50
|
+
*/
|
|
51
|
+
skipTls?: boolean;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
/**
|
|
@@ -62,6 +74,8 @@ export function VcenterCredentialsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
62
74
|
'url': json['url'],
|
|
63
75
|
'username': json['username'],
|
|
64
76
|
'password': json['password'],
|
|
77
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
78
|
+
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
65
79
|
};
|
|
66
80
|
}
|
|
67
81
|
|
|
@@ -79,6 +93,8 @@ export function VcenterCredentialsToJSONTyped(value?: VcenterCredentials | null,
|
|
|
79
93
|
'url': value['url'],
|
|
80
94
|
'username': value['username'],
|
|
81
95
|
'password': value['password'],
|
|
96
|
+
'cacert': value['cacert'],
|
|
97
|
+
'skipTls': value['skipTls'],
|
|
82
98
|
};
|
|
83
99
|
}
|
|
84
100
|
|
|
@@ -87,6 +87,12 @@ export interface VirtualMachine {
|
|
|
87
87
|
* @memberof VirtualMachine
|
|
88
88
|
*/
|
|
89
89
|
template?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether this VM is excluded from migration
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof VirtualMachine
|
|
94
|
+
*/
|
|
95
|
+
migrationExcluded?: boolean;
|
|
90
96
|
/**
|
|
91
97
|
*
|
|
92
98
|
* @type {VmInspectionStatus}
|
|
@@ -100,11 +106,53 @@ export interface VirtualMachine {
|
|
|
100
106
|
*/
|
|
101
107
|
inspectionConcernCount?: number;
|
|
102
108
|
/**
|
|
103
|
-
*
|
|
109
|
+
* Names of groups this VM matches
|
|
110
|
+
* @type {Array<string>}
|
|
111
|
+
* @memberof VirtualMachine
|
|
112
|
+
*/
|
|
113
|
+
groups?: Array<string>;
|
|
114
|
+
/**
|
|
115
|
+
* User-defined labels for this VM
|
|
104
116
|
* @type {Array<string>}
|
|
105
117
|
* @memberof VirtualMachine
|
|
106
118
|
*/
|
|
107
|
-
|
|
119
|
+
labels?: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
* CPU utilization at p95 (%); absent when no utilization data
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof VirtualMachine
|
|
124
|
+
*/
|
|
125
|
+
utilization_cpu_p95?: number;
|
|
126
|
+
/**
|
|
127
|
+
* Memory utilization at p95 (%); absent when no utilization data
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof VirtualMachine
|
|
130
|
+
*/
|
|
131
|
+
utilization_mem_p95?: number;
|
|
132
|
+
/**
|
|
133
|
+
* CPU utilization at max (%); absent when no utilization data
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof VirtualMachine
|
|
136
|
+
*/
|
|
137
|
+
utilization_cpu_max?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Memory utilization at max (%); absent when no utilization data
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof VirtualMachine
|
|
142
|
+
*/
|
|
143
|
+
utilization_mem_max?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Disk utilization (%); absent when no utilization data
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof VirtualMachine
|
|
148
|
+
*/
|
|
149
|
+
utilization_disk?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Data confidence — sample_count / expected_sample_count × 100
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof VirtualMachine
|
|
154
|
+
*/
|
|
155
|
+
utilization_confidence?: number;
|
|
108
156
|
}
|
|
109
157
|
|
|
110
158
|
/**
|
|
@@ -142,9 +190,17 @@ export function VirtualMachineFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
142
190
|
'issueCount': json['issueCount'],
|
|
143
191
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
144
192
|
'template': json['template'] == null ? undefined : json['template'],
|
|
193
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
145
194
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
|
|
146
195
|
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
147
|
-
'
|
|
196
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
197
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
198
|
+
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
199
|
+
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
200
|
+
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
201
|
+
'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
|
|
202
|
+
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
203
|
+
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
148
204
|
};
|
|
149
205
|
}
|
|
150
206
|
|
|
@@ -169,9 +225,17 @@ export function VirtualMachineToJSONTyped(value?: VirtualMachine | null, ignoreD
|
|
|
169
225
|
'issueCount': value['issueCount'],
|
|
170
226
|
'migratable': value['migratable'],
|
|
171
227
|
'template': value['template'],
|
|
228
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
172
229
|
'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
|
|
173
230
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
174
|
-
'
|
|
231
|
+
'groups': value['groups'],
|
|
232
|
+
'labels': value['labels'],
|
|
233
|
+
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
234
|
+
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
235
|
+
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
236
|
+
'utilization_mem_max': value['utilization_mem_max'],
|
|
237
|
+
'utilization_disk': value['utilization_disk'],
|
|
238
|
+
'utilization_confidence': value['utilization_confidence'],
|
|
175
239
|
};
|
|
176
240
|
}
|
|
177
241
|
|
|
@@ -41,6 +41,13 @@ import {
|
|
|
41
41
|
VMDeviceToJSON,
|
|
42
42
|
VMDeviceToJSONTyped,
|
|
43
43
|
} from './VMDevice.js';
|
|
44
|
+
import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
|
|
45
|
+
import {
|
|
46
|
+
VmUtilizationDetailsFromJSON,
|
|
47
|
+
VmUtilizationDetailsFromJSONTyped,
|
|
48
|
+
VmUtilizationDetailsToJSON,
|
|
49
|
+
VmUtilizationDetailsToJSONTyped,
|
|
50
|
+
} from './VmUtilizationDetails.js';
|
|
44
51
|
import type { VMDisk } from './VMDisk.js';
|
|
45
52
|
import {
|
|
46
53
|
VMDiskFromJSON,
|
|
@@ -188,6 +195,18 @@ export interface VirtualMachineDetail {
|
|
|
188
195
|
* @memberof VirtualMachineDetail
|
|
189
196
|
*/
|
|
190
197
|
migratable?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Whether this VM is excluded from migration
|
|
200
|
+
* @type {boolean}
|
|
201
|
+
* @memberof VirtualMachineDetail
|
|
202
|
+
*/
|
|
203
|
+
migrationExcluded?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* User-defined labels for this VM
|
|
206
|
+
* @type {Array<string>}
|
|
207
|
+
* @memberof VirtualMachineDetail
|
|
208
|
+
*/
|
|
209
|
+
labels?: Array<string>;
|
|
191
210
|
/**
|
|
192
211
|
* Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
|
|
193
212
|
* @type {boolean}
|
|
@@ -248,6 +267,12 @@ export interface VirtualMachineDetail {
|
|
|
248
267
|
* @memberof VirtualMachineDetail
|
|
249
268
|
*/
|
|
250
269
|
inspection?: VmInspectionResults;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {VmUtilizationDetails}
|
|
273
|
+
* @memberof VirtualMachineDetail
|
|
274
|
+
*/
|
|
275
|
+
utilization?: VmUtilizationDetails;
|
|
251
276
|
}
|
|
252
277
|
|
|
253
278
|
/**
|
|
@@ -297,6 +322,8 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
297
322
|
'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
|
|
298
323
|
'template': json['template'] == null ? undefined : json['template'],
|
|
299
324
|
'migratable': json['migratable'] == null ? undefined : json['migratable'],
|
|
325
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
326
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
300
327
|
'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
|
|
301
328
|
'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
|
|
302
329
|
'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
|
|
@@ -307,6 +334,7 @@ export function VirtualMachineDetailFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
307
334
|
'guestNetworks': json['guestNetworks'] == null ? undefined : ((json['guestNetworks'] as Array<any>).map(GuestNetworkFromJSON)),
|
|
308
335
|
'issues': json['issues'] == null ? undefined : ((json['issues'] as Array<any>).map(VMIssueFromJSON)),
|
|
309
336
|
'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
|
|
337
|
+
'utilization': json['utilization'] == null ? undefined : VmUtilizationDetailsFromJSON(json['utilization']),
|
|
310
338
|
};
|
|
311
339
|
}
|
|
312
340
|
|
|
@@ -342,6 +370,8 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
342
370
|
'storageUsed': value['storageUsed'],
|
|
343
371
|
'template': value['template'],
|
|
344
372
|
'migratable': value['migratable'],
|
|
373
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
374
|
+
'labels': value['labels'],
|
|
345
375
|
'faultToleranceEnabled': value['faultToleranceEnabled'],
|
|
346
376
|
'nestedHVEnabled': value['nestedHVEnabled'],
|
|
347
377
|
'toolsStatus': value['toolsStatus'],
|
|
@@ -352,6 +382,7 @@ export function VirtualMachineDetailToJSONTyped(value?: VirtualMachineDetail | n
|
|
|
352
382
|
'guestNetworks': value['guestNetworks'] == null ? undefined : ((value['guestNetworks'] as Array<any>).map(GuestNetworkToJSON)),
|
|
353
383
|
'issues': value['issues'] == null ? undefined : ((value['issues'] as Array<any>).map(VMIssueToJSON)),
|
|
354
384
|
'inspection': VmInspectionResultsToJSON(value['inspection']),
|
|
385
|
+
'utilization': VmUtilizationDetailsToJSON(value['utilization']),
|
|
355
386
|
};
|
|
356
387
|
}
|
|
357
388
|
|
|
@@ -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 VirtualMachineUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface VirtualMachineUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Whether to exclude this VM from migration
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof VirtualMachineUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
migrationExcluded?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* User-defined labels (replaces existing labels)
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof VirtualMachineUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
labels?: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VirtualMachineUpdateRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest {
|
|
44
|
+
return VirtualMachineUpdateRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
54
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest {
|
|
59
|
+
return VirtualMachineUpdateRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'migrationExcluded': value['migrationExcluded'],
|
|
70
|
+
'labels': value['labels'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -25,6 +25,12 @@ export interface VmInspectionStatus {
|
|
|
25
25
|
* @memberof VmInspectionStatus
|
|
26
26
|
*/
|
|
27
27
|
state: VmInspectionStatusStateEnum;
|
|
28
|
+
/**
|
|
29
|
+
* State details
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmInspectionStatus
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
28
34
|
/**
|
|
29
35
|
* Error message when state is error
|
|
30
36
|
* @type {string}
|
|
@@ -58,6 +64,7 @@ export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[key
|
|
|
58
64
|
*/
|
|
59
65
|
export function instanceOfVmInspectionStatus(value: object): value is VmInspectionStatus {
|
|
60
66
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
67
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
61
68
|
return true;
|
|
62
69
|
}
|
|
63
70
|
|
|
@@ -72,6 +79,7 @@ export function VmInspectionStatusFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
72
79
|
return {
|
|
73
80
|
|
|
74
81
|
'state': json['state'],
|
|
82
|
+
'message': json['message'],
|
|
75
83
|
'error': json['error'] == null ? undefined : json['error'],
|
|
76
84
|
'results': json['results'] == null ? undefined : json['results'],
|
|
77
85
|
};
|
|
@@ -89,6 +97,7 @@ export function VmInspectionStatusToJSONTyped(value?: VmInspectionStatus | null,
|
|
|
89
97
|
return {
|
|
90
98
|
|
|
91
99
|
'state': value['state'],
|
|
100
|
+
'message': value['message'],
|
|
92
101
|
'error': value['error'],
|
|
93
102
|
'results': value['results'],
|
|
94
103
|
};
|
|
@@ -0,0 +1,192 @@
|
|
|
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 VmUtilizationDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface VmUtilizationDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VmUtilizationDetails
|
|
26
|
+
*/
|
|
27
|
+
moid: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof VmUtilizationDetails
|
|
32
|
+
*/
|
|
33
|
+
vm_name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of vCPUs provisioned for this VM
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof VmUtilizationDetails
|
|
38
|
+
*/
|
|
39
|
+
provisioned_cpus: number;
|
|
40
|
+
/**
|
|
41
|
+
* Provisioned RAM (MB)
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof VmUtilizationDetails
|
|
44
|
+
*/
|
|
45
|
+
provisioned_memory_mb: number;
|
|
46
|
+
/**
|
|
47
|
+
* Provisioned disk (KB)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof VmUtilizationDetails
|
|
50
|
+
*/
|
|
51
|
+
provisioned_disk_kb: number;
|
|
52
|
+
/**
|
|
53
|
+
* CPU utilization average (%)
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof VmUtilizationDetails
|
|
56
|
+
*/
|
|
57
|
+
cpu_avg: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof VmUtilizationDetails
|
|
62
|
+
*/
|
|
63
|
+
cpu_p95: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof VmUtilizationDetails
|
|
68
|
+
*/
|
|
69
|
+
cpu_max: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof VmUtilizationDetails
|
|
74
|
+
*/
|
|
75
|
+
cpu_latest: number;
|
|
76
|
+
/**
|
|
77
|
+
* Memory utilization average (%)
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof VmUtilizationDetails
|
|
80
|
+
*/
|
|
81
|
+
mem_avg: number;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof VmUtilizationDetails
|
|
86
|
+
*/
|
|
87
|
+
mem_p95: number;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof VmUtilizationDetails
|
|
92
|
+
*/
|
|
93
|
+
mem_max: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof VmUtilizationDetails
|
|
98
|
+
*/
|
|
99
|
+
mem_latest: number;
|
|
100
|
+
/**
|
|
101
|
+
* Disk utilization (%)
|
|
102
|
+
* @type {number}
|
|
103
|
+
* @memberof VmUtilizationDetails
|
|
104
|
+
*/
|
|
105
|
+
disk: number;
|
|
106
|
+
/**
|
|
107
|
+
* Data confidence — sample_count / expected_sample_count × 100
|
|
108
|
+
* @type {number}
|
|
109
|
+
* @memberof VmUtilizationDetails
|
|
110
|
+
*/
|
|
111
|
+
confidence: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the VmUtilizationDetails interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails {
|
|
118
|
+
if (!('moid' in value) || value['moid'] === undefined) return false;
|
|
119
|
+
if (!('vm_name' in value) || value['vm_name'] === undefined) return false;
|
|
120
|
+
if (!('provisioned_cpus' in value) || value['provisioned_cpus'] === undefined) return false;
|
|
121
|
+
if (!('provisioned_memory_mb' in value) || value['provisioned_memory_mb'] === undefined) return false;
|
|
122
|
+
if (!('provisioned_disk_kb' in value) || value['provisioned_disk_kb'] === undefined) return false;
|
|
123
|
+
if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
|
|
124
|
+
if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
|
|
125
|
+
if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
|
|
126
|
+
if (!('cpu_latest' in value) || value['cpu_latest'] === undefined) return false;
|
|
127
|
+
if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
|
|
128
|
+
if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
|
|
129
|
+
if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
|
|
130
|
+
if (!('mem_latest' in value) || value['mem_latest'] === undefined) return false;
|
|
131
|
+
if (!('disk' in value) || value['disk'] === undefined) return false;
|
|
132
|
+
if (!('confidence' in value) || value['confidence'] === undefined) return false;
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function VmUtilizationDetailsFromJSON(json: any): VmUtilizationDetails {
|
|
137
|
+
return VmUtilizationDetailsFromJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmUtilizationDetails {
|
|
141
|
+
if (json == null) {
|
|
142
|
+
return json;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'moid': json['moid'],
|
|
147
|
+
'vm_name': json['vm_name'],
|
|
148
|
+
'provisioned_cpus': json['provisioned_cpus'],
|
|
149
|
+
'provisioned_memory_mb': json['provisioned_memory_mb'],
|
|
150
|
+
'provisioned_disk_kb': json['provisioned_disk_kb'],
|
|
151
|
+
'cpu_avg': json['cpu_avg'],
|
|
152
|
+
'cpu_p95': json['cpu_p95'],
|
|
153
|
+
'cpu_max': json['cpu_max'],
|
|
154
|
+
'cpu_latest': json['cpu_latest'],
|
|
155
|
+
'mem_avg': json['mem_avg'],
|
|
156
|
+
'mem_p95': json['mem_p95'],
|
|
157
|
+
'mem_max': json['mem_max'],
|
|
158
|
+
'mem_latest': json['mem_latest'],
|
|
159
|
+
'disk': json['disk'],
|
|
160
|
+
'confidence': json['confidence'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function VmUtilizationDetailsToJSON(json: any): VmUtilizationDetails {
|
|
165
|
+
return VmUtilizationDetailsToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'moid': value['moid'],
|
|
176
|
+
'vm_name': value['vm_name'],
|
|
177
|
+
'provisioned_cpus': value['provisioned_cpus'],
|
|
178
|
+
'provisioned_memory_mb': value['provisioned_memory_mb'],
|
|
179
|
+
'provisioned_disk_kb': value['provisioned_disk_kb'],
|
|
180
|
+
'cpu_avg': value['cpu_avg'],
|
|
181
|
+
'cpu_p95': value['cpu_p95'],
|
|
182
|
+
'cpu_max': value['cpu_max'],
|
|
183
|
+
'cpu_latest': value['cpu_latest'],
|
|
184
|
+
'mem_avg': value['mem_avg'],
|
|
185
|
+
'mem_p95': value['mem_p95'],
|
|
186
|
+
'mem_max': value['mem_max'],
|
|
187
|
+
'mem_latest': value['mem_latest'],
|
|
188
|
+
'disk': value['disk'],
|
|
189
|
+
'confidence': value['confidence'],
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|