@openshift-migration-advisor/agent-sdk 0.20.3 → 0.21.0-bf9c732bbf83
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 +64 -48
- package/.openapi-generator/VERSION +1 -1
- package/README.md +84 -87
- package/dist/apis/AgentApi.d.ts +95 -0
- package/dist/apis/AgentApi.js +109 -0
- package/dist/apis/ApplicationsApi.d.ts +64 -0
- package/dist/apis/ApplicationsApi.js +72 -0
- package/dist/apis/CollectionsApi.d.ts +231 -0
- package/dist/apis/CollectionsApi.js +226 -0
- package/dist/apis/CollectorApi.d.ts +154 -0
- package/dist/apis/CollectorApi.js +196 -0
- package/dist/apis/CredentialsApi.d.ts +168 -0
- package/dist/apis/CredentialsApi.js +187 -0
- package/dist/apis/ForecasterApi.d.ts +375 -0
- package/dist/apis/ForecasterApi.js +397 -0
- package/dist/apis/GroupsApi.d.ts +374 -0
- package/dist/apis/GroupsApi.js +351 -0
- package/dist/apis/InspectorApi.d.ts +202 -0
- package/dist/apis/InspectorApi.js +240 -0
- package/dist/apis/InventoriesApi.d.ts +110 -0
- package/dist/apis/InventoriesApi.js +117 -0
- package/dist/apis/RightsizingApi.d.ts +109 -0
- package/dist/apis/RightsizingApi.js +116 -0
- package/dist/apis/VersionApi.d.ts +56 -0
- package/dist/apis/VersionApi.js +68 -0
- package/dist/apis/VirtualMachinesApi.d.ts +616 -0
- package/dist/apis/VirtualMachinesApi.js +614 -0
- package/dist/apis/index.d.ts +12 -1
- package/dist/apis/index.js +12 -1
- package/dist/esm/apis/AgentApi.d.ts +95 -0
- package/dist/esm/apis/AgentApi.js +105 -0
- package/dist/esm/apis/ApplicationsApi.d.ts +64 -0
- package/dist/esm/apis/ApplicationsApi.js +68 -0
- package/dist/esm/apis/CollectionsApi.d.ts +231 -0
- package/dist/esm/apis/CollectionsApi.js +222 -0
- package/dist/esm/apis/CollectorApi.d.ts +154 -0
- package/dist/esm/apis/CollectorApi.js +192 -0
- package/dist/esm/apis/CredentialsApi.d.ts +168 -0
- package/dist/esm/apis/CredentialsApi.js +183 -0
- package/dist/esm/apis/ForecasterApi.d.ts +375 -0
- package/dist/esm/apis/ForecasterApi.js +393 -0
- package/dist/esm/apis/GroupsApi.d.ts +374 -0
- package/dist/esm/apis/GroupsApi.js +347 -0
- package/dist/esm/apis/InspectorApi.d.ts +202 -0
- package/dist/esm/apis/InspectorApi.js +236 -0
- package/dist/esm/apis/InventoriesApi.d.ts +110 -0
- package/dist/esm/apis/InventoriesApi.js +113 -0
- package/dist/esm/apis/RightsizingApi.d.ts +109 -0
- package/dist/esm/apis/RightsizingApi.js +112 -0
- package/dist/esm/apis/VersionApi.d.ts +56 -0
- package/dist/esm/apis/VersionApi.js +64 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +616 -0
- package/dist/esm/apis/VirtualMachinesApi.js +610 -0
- package/dist/esm/apis/index.d.ts +12 -1
- package/dist/esm/apis/index.js +12 -1
- package/dist/esm/models/AgentModeRequest.d.ts +1 -1
- package/dist/esm/models/AgentModeRequest.js +2 -2
- package/dist/esm/models/AgentStatus.d.ts +6 -13
- package/dist/esm/models/AgentStatus.js +8 -14
- package/dist/esm/models/AgentStatusConsoleConnection.d.ts +42 -0
- package/dist/esm/models/AgentStatusConsoleConnection.js +52 -0
- package/dist/esm/models/ApplicationListResponse.d.ts +1 -1
- package/dist/esm/models/ApplicationListResponse.js +1 -1
- package/dist/esm/models/ApplicationOverview.d.ts +4 -4
- package/dist/esm/models/ApplicationOverview.js +1 -1
- package/dist/esm/models/ApplicationVM.d.ts +3 -3
- package/dist/esm/models/ApplicationVM.js +1 -1
- package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +1 -1
- package/dist/esm/models/BatchUpdateExclusionRequest.js +1 -1
- package/dist/esm/models/BenchmarkRun.d.ts +6 -6
- package/dist/esm/models/BenchmarkRun.js +10 -7
- package/dist/esm/models/CapabilityStatus.d.ts +1 -1
- package/dist/esm/models/CapabilityStatus.js +1 -1
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +1 -1
- package/dist/esm/models/CapabilityStatusCapabilities.js +1 -1
- package/dist/esm/models/ClusterFeatures.d.ts +3 -3
- package/dist/esm/models/ClusterFeatures.js +4 -4
- package/dist/esm/models/ClusterUtilization.d.ts +1 -1
- package/dist/esm/models/ClusterUtilization.js +1 -1
- package/dist/esm/models/Collection.d.ts +38 -0
- package/dist/esm/models/Collection.js +52 -0
- package/dist/esm/models/CollectionAggregate.d.ts +50 -0
- package/dist/esm/models/CollectionAggregate.js +64 -0
- package/dist/esm/models/CollectionComparisonDiff.d.ts +48 -0
- package/dist/esm/models/CollectionComparisonDiff.js +60 -0
- package/dist/esm/models/CollectionComparisonSummary.d.ts +36 -0
- package/dist/esm/models/CollectionComparisonSummary.js +49 -0
- package/dist/esm/models/CollectionComparisonSummaryDiff.d.ts +43 -0
- package/dist/esm/models/CollectionComparisonSummaryDiff.js +56 -0
- package/dist/esm/models/CollectionListResponse.d.ts +31 -0
- package/dist/esm/models/CollectionListResponse.js +44 -0
- package/dist/esm/models/CollectorStatus.d.ts +2 -1
- package/dist/esm/models/CollectorStatus.js +3 -2
- package/dist/esm/models/ComparisonDiffEntry.d.ts +38 -0
- package/dist/esm/models/ComparisonDiffEntry.js +47 -0
- package/dist/esm/models/ComparisonDiffPage.d.ts +42 -0
- package/dist/esm/models/ComparisonDiffPage.js +55 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +4 -4
- package/dist/esm/models/CreateGroupRequest.js +1 -1
- package/dist/esm/models/CredentialStatus.d.ts +1 -1
- package/dist/esm/models/CredentialStatus.js +1 -1
- package/dist/esm/models/Datastore.d.ts +1 -1
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/DatastoreDetail.d.ts +7 -17
- package/dist/esm/models/DatastoreDetail.js +1 -10
- package/dist/esm/models/DatastorePairRequest.d.ts +42 -0
- package/dist/esm/models/{DatastorePair.js → DatastorePairRequest.js} +9 -9
- package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +5 -5
- package/dist/esm/models/DeleteLabelGloballyResponse.js +5 -5
- package/dist/esm/models/DiskSizeTierSummary.d.ts +1 -1
- package/dist/esm/models/DiskSizeTierSummary.js +1 -1
- package/dist/esm/models/DiskTypeSummary.d.ts +1 -1
- package/dist/esm/models/DiskTypeSummary.js +1 -1
- package/dist/esm/models/EstimateRange.d.ts +8 -8
- package/dist/esm/models/EstimateRange.js +10 -4
- package/dist/esm/models/ForecastPairStatus.d.ts +78 -0
- package/dist/esm/models/{ForecasterPairStatus.js → ForecastPairStatus.js} +22 -22
- package/dist/esm/models/ForecastStats.d.ts +11 -11
- package/dist/esm/models/ForecastStats.js +33 -17
- package/dist/esm/models/ForecasterStatus.d.ts +7 -7
- package/dist/esm/models/ForecasterStatus.js +8 -6
- package/dist/esm/models/Group.d.ts +4 -4
- package/dist/esm/models/Group.js +6 -5
- package/dist/esm/models/GroupListResponse.d.ts +4 -4
- package/dist/esm/models/GroupListResponse.js +1 -1
- package/dist/esm/models/GroupResponse.d.ts +6 -6
- package/dist/esm/models/GroupResponse.js +4 -4
- package/dist/esm/models/GuestNetwork.d.ts +6 -6
- package/dist/esm/models/GuestNetwork.js +1 -1
- package/dist/esm/models/Histogram.d.ts +1 -1
- package/dist/esm/models/Histogram.js +1 -1
- package/dist/esm/models/Host.d.ts +1 -1
- package/dist/esm/models/Host.js +1 -1
- package/dist/esm/models/Infra.d.ts +5 -1
- package/dist/esm/models/Infra.js +3 -1
- package/dist/esm/models/InspectionStatus.d.ts +49 -0
- package/dist/esm/models/InspectionStatus.js +57 -0
- package/dist/esm/models/InspectorStatus.d.ts +1 -1
- package/dist/esm/models/InspectorStatus.js +2 -2
- package/dist/esm/models/Inventory.d.ts +3 -21
- package/dist/esm/models/Inventory.js +5 -16
- package/dist/esm/models/Inventory1.d.ts +49 -0
- package/dist/esm/models/Inventory1.js +55 -0
- package/dist/esm/models/InventoryData.d.ts +1 -1
- package/dist/esm/models/InventoryData.js +1 -1
- package/dist/esm/models/IssuesBreakdown.d.ts +1 -1
- package/dist/esm/models/IssuesBreakdown.js +1 -1
- package/dist/esm/models/MigrationIssue.d.ts +1 -1
- package/dist/esm/models/MigrationIssue.js +1 -1
- package/dist/esm/models/Network.d.ts +1 -1
- package/dist/esm/models/Network.js +2 -2
- package/dist/esm/models/OperationCapability.d.ts +1 -1
- package/dist/esm/models/OperationCapability.js +1 -1
- package/dist/esm/models/OsInfo.d.ts +1 -1
- package/dist/esm/models/OsInfo.js +2 -2
- package/dist/esm/models/PairCapability.d.ts +3 -13
- package/dist/esm/models/PairCapability.js +1 -10
- package/dist/esm/models/PairCapabilityRequest.d.ts +3 -8
- package/dist/esm/models/PairCapabilityRequest.js +4 -7
- package/dist/esm/models/Process.d.ts +1 -1
- package/dist/esm/models/Process.js +1 -1
- package/dist/esm/models/RightsizingClusterResponse.d.ts +2 -2
- package/dist/esm/models/RightsizingClusterResponse.js +1 -1
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +13 -15
- package/dist/esm/models/RightsizingClusterUtilization.js +1 -1
- package/dist/esm/models/StartForecasterRequest.d.ts +43 -0
- package/dist/esm/models/{ForecasterStartRequest.js → StartForecasterRequest.js} +12 -15
- package/dist/esm/models/StartInspectionRequest.d.ts +3 -8
- package/dist/esm/models/StartInspectionRequest.js +1 -4
- package/dist/esm/models/StopForecasterPair202Response.d.ts +1 -1
- package/dist/esm/models/StopForecasterPair202Response.js +2 -2
- package/dist/esm/models/StorageIoConfiguration.d.ts +1 -1
- package/dist/esm/models/StorageIoConfiguration.js +2 -2
- package/dist/esm/models/UpdateGroupRequest.d.ts +4 -4
- package/dist/esm/models/UpdateGroupRequest.js +1 -1
- package/dist/esm/models/UpdateInventory.d.ts +3 -3
- package/dist/esm/models/UpdateInventory.js +4 -4
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +1 -1
- package/dist/esm/models/UpdateLabelVMsRequest.js +1 -1
- package/dist/esm/models/VCenter.d.ts +1 -1
- package/dist/esm/models/VCenter.js +1 -1
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +1 -1
- package/dist/esm/models/VMFilterOptionsResponse.js +1 -1
- package/dist/esm/models/VMLabelsResponse.d.ts +1 -1
- package/dist/esm/models/VMLabelsResponse.js +1 -1
- package/dist/esm/models/VMResourceBreakdown.d.ts +1 -1
- package/dist/esm/models/VMResourceBreakdown.js +1 -1
- package/dist/esm/models/VMs.d.ts +5 -1
- package/dist/esm/models/VMs.js +3 -1
- package/dist/esm/models/VcenterCredentials.d.ts +1 -1
- package/dist/esm/models/VcenterCredentials.js +1 -1
- package/dist/esm/models/VddkProperties.d.ts +2 -2
- package/dist/esm/models/VddkProperties.js +1 -1
- package/dist/esm/models/VersionInfo.d.ts +4 -4
- package/dist/esm/models/VersionInfo.js +1 -1
- package/dist/esm/models/VirtualMachine.d.ts +15 -11
- package/dist/esm/models/VirtualMachine.js +10 -6
- package/dist/esm/models/VirtualMachineDetail.d.ts +47 -38
- package/dist/esm/models/VirtualMachineDetail.js +23 -16
- package/dist/esm/models/VirtualMachineDevice.d.ts +30 -0
- package/dist/esm/models/{VMDevice.js → VirtualMachineDevice.js} +9 -9
- package/dist/esm/models/VirtualMachineDisk.d.ts +54 -0
- package/dist/esm/models/{VMDisk.js → VirtualMachineDisk.js} +9 -9
- package/dist/esm/models/VirtualMachineInspectionConcern.d.ts +38 -0
- package/dist/esm/models/{VmInspectionConcern.js → VirtualMachineInspectionConcern.js} +9 -9
- package/dist/esm/models/VirtualMachineInspectionResults.d.ts +31 -0
- package/dist/esm/models/VirtualMachineInspectionResults.js +42 -0
- package/dist/esm/models/VirtualMachineIssue.d.ts +50 -0
- package/dist/esm/models/{VMIssue.js → VirtualMachineIssue.js} +16 -16
- package/dist/esm/models/VirtualMachineListResponse.d.ts +3 -3
- package/dist/esm/models/VirtualMachineListResponse.js +4 -4
- package/dist/esm/models/VirtualMachineNIC.d.ts +38 -0
- package/dist/esm/models/{VMNIC.js → VirtualMachineNIC.js} +9 -13
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +1 -1
- package/dist/esm/models/VirtualMachineUpdateRequest.js +1 -1
- package/dist/esm/models/VmUtilizationDetails.d.ts +8 -8
- package/dist/esm/models/VmUtilizationDetails.js +1 -1
- package/dist/esm/models/index.d.ts +20 -23
- package/dist/esm/models/index.js +20 -23
- package/dist/esm/runtime.d.ts +12 -1
- package/dist/esm/runtime.js +49 -3
- package/dist/models/AgentModeRequest.d.ts +1 -1
- package/dist/models/AgentModeRequest.js +2 -2
- package/dist/models/AgentStatus.d.ts +6 -13
- package/dist/models/AgentStatus.js +9 -15
- package/dist/models/AgentStatusConsoleConnection.d.ts +42 -0
- package/dist/models/AgentStatusConsoleConnection.js +60 -0
- package/dist/models/ApplicationListResponse.d.ts +1 -1
- package/dist/models/ApplicationListResponse.js +1 -1
- package/dist/models/ApplicationOverview.d.ts +4 -4
- package/dist/models/ApplicationOverview.js +1 -1
- package/dist/models/ApplicationVM.d.ts +3 -3
- package/dist/models/ApplicationVM.js +1 -1
- package/dist/models/BatchUpdateExclusionRequest.d.ts +1 -1
- package/dist/models/BatchUpdateExclusionRequest.js +1 -1
- package/dist/models/BenchmarkRun.d.ts +6 -6
- package/dist/models/BenchmarkRun.js +10 -7
- package/dist/models/CapabilityStatus.d.ts +1 -1
- package/dist/models/CapabilityStatus.js +1 -1
- package/dist/models/CapabilityStatusCapabilities.d.ts +1 -1
- package/dist/models/CapabilityStatusCapabilities.js +1 -1
- package/dist/models/ClusterFeatures.d.ts +3 -3
- package/dist/models/ClusterFeatures.js +4 -4
- package/dist/models/ClusterUtilization.d.ts +1 -1
- package/dist/models/ClusterUtilization.js +1 -1
- package/dist/models/Collection.d.ts +38 -0
- package/dist/models/Collection.js +59 -0
- package/dist/models/CollectionAggregate.d.ts +50 -0
- package/dist/models/CollectionAggregate.js +71 -0
- package/dist/models/CollectionComparisonDiff.d.ts +48 -0
- package/dist/models/CollectionComparisonDiff.js +68 -0
- package/dist/models/CollectionComparisonSummary.d.ts +36 -0
- package/dist/models/CollectionComparisonSummary.js +56 -0
- package/dist/models/CollectionComparisonSummaryDiff.d.ts +43 -0
- package/dist/models/CollectionComparisonSummaryDiff.js +63 -0
- package/dist/models/CollectionListResponse.d.ts +31 -0
- package/dist/models/CollectionListResponse.js +51 -0
- package/dist/models/CollectorStatus.d.ts +2 -1
- package/dist/models/CollectorStatus.js +3 -2
- package/dist/models/ComparisonDiffEntry.d.ts +38 -0
- package/dist/models/ComparisonDiffEntry.js +54 -0
- package/dist/models/ComparisonDiffPage.d.ts +42 -0
- package/dist/models/ComparisonDiffPage.js +62 -0
- package/dist/models/CreateGroupRequest.d.ts +4 -4
- package/dist/models/CreateGroupRequest.js +1 -1
- package/dist/models/CredentialStatus.d.ts +1 -1
- package/dist/models/CredentialStatus.js +1 -1
- package/dist/models/Datastore.d.ts +1 -1
- package/dist/models/Datastore.js +1 -1
- package/dist/models/DatastoreDetail.d.ts +7 -17
- package/dist/models/DatastoreDetail.js +1 -11
- package/dist/models/DatastorePairRequest.d.ts +42 -0
- package/dist/models/{DatastorePair.js → DatastorePairRequest.js} +14 -14
- package/dist/models/DeleteLabelGloballyResponse.d.ts +5 -5
- package/dist/models/DeleteLabelGloballyResponse.js +5 -5
- package/dist/models/DiskSizeTierSummary.d.ts +1 -1
- package/dist/models/DiskSizeTierSummary.js +1 -1
- package/dist/models/DiskTypeSummary.d.ts +1 -1
- package/dist/models/DiskTypeSummary.js +1 -1
- package/dist/models/EstimateRange.d.ts +8 -8
- package/dist/models/EstimateRange.js +10 -4
- package/dist/models/ForecastPairStatus.d.ts +78 -0
- package/dist/models/{ForecasterPairStatus.js → ForecastPairStatus.js} +28 -28
- package/dist/models/ForecastStats.d.ts +11 -11
- package/dist/models/ForecastStats.js +33 -17
- package/dist/models/ForecasterStatus.d.ts +7 -7
- package/dist/models/ForecasterStatus.js +8 -6
- package/dist/models/Group.d.ts +4 -4
- package/dist/models/Group.js +6 -5
- package/dist/models/GroupListResponse.d.ts +4 -4
- package/dist/models/GroupListResponse.js +1 -1
- package/dist/models/GroupResponse.d.ts +6 -6
- package/dist/models/GroupResponse.js +4 -4
- package/dist/models/GuestNetwork.d.ts +6 -6
- package/dist/models/GuestNetwork.js +1 -1
- package/dist/models/Histogram.d.ts +1 -1
- package/dist/models/Histogram.js +1 -1
- package/dist/models/Host.d.ts +1 -1
- package/dist/models/Host.js +1 -1
- package/dist/models/Infra.d.ts +5 -1
- package/dist/models/Infra.js +3 -1
- package/dist/models/InspectionStatus.d.ts +49 -0
- package/dist/models/InspectionStatus.js +65 -0
- package/dist/models/InspectorStatus.d.ts +1 -1
- package/dist/models/InspectorStatus.js +2 -2
- package/dist/models/Inventory.d.ts +3 -21
- package/dist/models/Inventory.js +5 -16
- package/dist/models/Inventory1.d.ts +49 -0
- package/dist/models/Inventory1.js +62 -0
- package/dist/models/InventoryData.d.ts +1 -1
- package/dist/models/InventoryData.js +1 -1
- package/dist/models/IssuesBreakdown.d.ts +1 -1
- package/dist/models/IssuesBreakdown.js +1 -1
- package/dist/models/MigrationIssue.d.ts +1 -1
- package/dist/models/MigrationIssue.js +1 -1
- package/dist/models/Network.d.ts +1 -1
- package/dist/models/Network.js +2 -2
- package/dist/models/OperationCapability.d.ts +1 -1
- package/dist/models/OperationCapability.js +1 -1
- package/dist/models/OsInfo.d.ts +1 -1
- package/dist/models/OsInfo.js +2 -2
- package/dist/models/PairCapability.d.ts +3 -13
- package/dist/models/PairCapability.js +1 -11
- package/dist/models/PairCapabilityRequest.d.ts +3 -8
- package/dist/models/PairCapabilityRequest.js +4 -7
- package/dist/models/Process.d.ts +1 -1
- package/dist/models/Process.js +1 -1
- package/dist/models/RightsizingClusterResponse.d.ts +2 -2
- package/dist/models/RightsizingClusterResponse.js +1 -1
- package/dist/models/RightsizingClusterUtilization.d.ts +13 -15
- package/dist/models/RightsizingClusterUtilization.js +1 -1
- package/dist/models/StartForecasterRequest.d.ts +43 -0
- package/dist/models/StartForecasterRequest.js +57 -0
- package/dist/models/StartInspectionRequest.d.ts +3 -8
- package/dist/models/StartInspectionRequest.js +1 -4
- package/dist/models/StopForecasterPair202Response.d.ts +1 -1
- package/dist/models/StopForecasterPair202Response.js +2 -2
- package/dist/models/StorageIoConfiguration.d.ts +1 -1
- package/dist/models/StorageIoConfiguration.js +2 -2
- package/dist/models/UpdateGroupRequest.d.ts +4 -4
- package/dist/models/UpdateGroupRequest.js +1 -1
- package/dist/models/UpdateInventory.d.ts +3 -3
- package/dist/models/UpdateInventory.js +4 -4
- package/dist/models/UpdateLabelVMsRequest.d.ts +1 -1
- package/dist/models/UpdateLabelVMsRequest.js +1 -1
- package/dist/models/VCenter.d.ts +1 -1
- package/dist/models/VCenter.js +1 -1
- package/dist/models/VMFilterOptionsResponse.d.ts +1 -1
- package/dist/models/VMFilterOptionsResponse.js +1 -1
- package/dist/models/VMLabelsResponse.d.ts +1 -1
- package/dist/models/VMLabelsResponse.js +1 -1
- package/dist/models/VMResourceBreakdown.d.ts +1 -1
- package/dist/models/VMResourceBreakdown.js +1 -1
- package/dist/models/VMs.d.ts +5 -1
- package/dist/models/VMs.js +3 -1
- package/dist/models/VcenterCredentials.d.ts +1 -1
- package/dist/models/VcenterCredentials.js +1 -1
- package/dist/models/VddkProperties.d.ts +2 -2
- package/dist/models/VddkProperties.js +1 -1
- package/dist/models/VersionInfo.d.ts +4 -4
- package/dist/models/VersionInfo.js +1 -1
- package/dist/models/VirtualMachine.d.ts +15 -11
- package/dist/models/VirtualMachine.js +10 -6
- package/dist/models/VirtualMachineDetail.d.ts +47 -38
- package/dist/models/VirtualMachineDetail.js +23 -16
- package/dist/models/VirtualMachineDevice.d.ts +30 -0
- package/dist/models/VirtualMachineDevice.js +48 -0
- package/dist/models/VirtualMachineDisk.d.ts +54 -0
- package/dist/models/{VMDisk.js → VirtualMachineDisk.js} +14 -14
- package/dist/models/VirtualMachineInspectionConcern.d.ts +38 -0
- package/dist/models/{VmInspectionConcern.js → VirtualMachineInspectionConcern.js} +14 -14
- package/dist/models/VirtualMachineInspectionResults.d.ts +31 -0
- package/dist/models/VirtualMachineInspectionResults.js +49 -0
- package/dist/models/VirtualMachineIssue.d.ts +50 -0
- package/dist/models/VirtualMachineIssue.js +70 -0
- package/dist/models/VirtualMachineListResponse.d.ts +3 -3
- package/dist/models/VirtualMachineListResponse.js +4 -4
- package/dist/models/VirtualMachineNIC.d.ts +38 -0
- package/dist/models/{VMNIC.js → VirtualMachineNIC.js} +14 -18
- package/dist/models/VirtualMachineUpdateRequest.d.ts +1 -1
- package/dist/models/VirtualMachineUpdateRequest.js +1 -1
- package/dist/models/VmUtilizationDetails.d.ts +8 -8
- package/dist/models/VmUtilizationDetails.js +1 -1
- package/dist/models/index.d.ts +20 -23
- package/dist/models/index.js +20 -23
- package/dist/runtime.d.ts +12 -1
- package/dist/runtime.js +53 -3
- package/docs/AgentApi.md +136 -0
- package/docs/AgentStatus.md +4 -4
- package/docs/{ExportInventory500Response.md → AgentStatusConsoleConnection.md} +6 -4
- package/docs/ApplicationsApi.md +76 -0
- package/docs/BenchmarkRun.md +2 -2
- package/docs/ClusterFeatures.md +2 -2
- package/docs/{ExportInventory400Response.md → Collection.md} +10 -6
- package/docs/{RightsizingClusterListResponse.md → CollectionAggregate.md} +15 -7
- package/docs/CollectionComparisonDiff.md +38 -0
- package/docs/{ForecasterDatastoresRequest.md → CollectionComparisonSummary.md} +8 -6
- package/docs/CollectionComparisonSummaryDiff.md +41 -0
- package/docs/CollectionListResponse.md +34 -0
- package/docs/CollectionsApi.md +294 -0
- package/docs/CollectorApi.md +257 -0
- package/docs/{VmInspectionResults.md → ComparisonDiffEntry.md} +10 -7
- package/docs/{RightsizingReportListResponse.md → ComparisonDiffPage.md} +10 -6
- package/docs/CredentialsApi.md +264 -0
- package/docs/{DatastorePair.md → DatastorePairRequest.md} +4 -4
- package/docs/DeleteLabelGloballyResponse.md +2 -2
- package/docs/EstimateRange.md +0 -1
- package/docs/{ForecasterPairStatus.md → ForecastPairStatus.md} +8 -8
- package/docs/ForecastStats.md +16 -16
- package/docs/ForecasterApi.md +612 -0
- package/docs/ForecasterStatus.md +1 -1
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +527 -0
- package/docs/Infra.md +2 -0
- package/docs/{VmInspectionStatus.md → InspectionStatus.md} +6 -8
- package/docs/InspectorApi.md +336 -0
- package/docs/InventoriesApi.md +144 -0
- package/docs/Inventory.md +2 -10
- package/docs/{GetInventory200Response.md → Inventory1.md} +4 -8
- package/docs/PairCapabilityRequest.md +1 -3
- package/docs/RightsizingApi.md +148 -0
- package/docs/{ForecasterStartRequest.md → StartForecasterRequest.md} +5 -7
- package/docs/StartInspectionRequest.md +0 -3
- package/docs/UpdateInventory.md +1 -1
- package/docs/VMLabelsResponse.md +2 -2
- package/docs/VMs.md +2 -0
- package/docs/VersionApi.md +66 -0
- package/docs/VirtualMachine.md +5 -3
- package/docs/VirtualMachineDetail.md +9 -5
- package/docs/{VMDevice.md → VirtualMachineDevice.md} +4 -4
- package/docs/{VMDisk.md → VirtualMachineDisk.md} +4 -4
- package/docs/{VmInspectionConcern.md → VirtualMachineInspectionConcern.md} +4 -5
- package/docs/VirtualMachineInspectionResults.md +35 -0
- package/docs/{VMIssue.md → VirtualMachineIssue.md} +4 -4
- package/docs/VirtualMachineListResponse.md +2 -2
- package/docs/{VMNIC.md → VirtualMachineNIC.md} +4 -8
- package/docs/VirtualMachineUpdateRequest.md +2 -2
- package/docs/VirtualMachinesApi.md +984 -0
- package/package.json +1 -1
- package/src/apis/AgentApi.ts +176 -0
- package/src/apis/ApplicationsApi.ts +111 -0
- package/src/apis/CollectionsApi.ts +429 -0
- package/src/apis/CollectorApi.ts +306 -0
- package/src/apis/CredentialsApi.ts +308 -0
- package/src/apis/ForecasterApi.ts +721 -0
- package/src/apis/GroupsApi.ts +718 -0
- package/src/apis/InspectorApi.ts +405 -0
- package/src/apis/InventoriesApi.ts +191 -0
- package/src/apis/RightsizingApi.ts +205 -0
- package/src/apis/VersionApi.ts +94 -0
- package/src/apis/VirtualMachinesApi.ts +1216 -0
- package/src/apis/index.ts +12 -1
- package/src/models/AgentModeRequest.ts +2 -2
- package/src/models/AgentStatus.ts +19 -20
- package/src/models/AgentStatusConsoleConnection.ts +81 -0
- package/src/models/ApplicationListResponse.ts +1 -1
- package/src/models/ApplicationOverview.ts +4 -4
- package/src/models/ApplicationVM.ts +3 -3
- package/src/models/BatchUpdateExclusionRequest.ts +1 -1
- package/src/models/BenchmarkRun.ts +14 -13
- package/src/models/CapabilityStatus.ts +1 -1
- package/src/models/CapabilityStatusCapabilities.ts +1 -1
- package/src/models/ClusterFeatures.ts +6 -6
- package/src/models/ClusterUtilization.ts +1 -1
- package/src/models/Collection.ts +78 -0
- package/src/models/CollectionAggregate.ts +99 -0
- package/src/models/CollectionComparisonDiff.ts +98 -0
- package/src/models/CollectionComparisonSummary.ts +86 -0
- package/src/models/CollectionComparisonSummaryDiff.ts +93 -0
- package/src/models/CollectionListResponse.ts +72 -0
- package/src/models/CollectorStatus.ts +3 -2
- package/src/models/ComparisonDiffEntry.ts +76 -0
- package/src/models/ComparisonDiffPage.ts +85 -0
- package/src/models/CreateGroupRequest.ts +4 -4
- package/src/models/CredentialStatus.ts +1 -1
- package/src/models/Datastore.ts +1 -1
- package/src/models/DatastoreDetail.ts +7 -20
- package/src/models/{DatastorePair.ts → DatastorePairRequest.ts} +15 -15
- package/src/models/DeleteLabelGloballyResponse.ts +8 -8
- package/src/models/DiskSizeTierSummary.ts +1 -1
- package/src/models/DiskTypeSummary.ts +1 -1
- package/src/models/EstimateRange.ts +14 -11
- package/src/models/{ForecasterPairStatus.ts → ForecastPairStatus.ts} +37 -37
- package/src/models/ForecastStats.ts +35 -27
- package/src/models/ForecasterStatus.ts +15 -14
- package/src/models/Group.ts +9 -9
- package/src/models/GroupListResponse.ts +4 -4
- package/src/models/GroupResponse.ts +13 -13
- package/src/models/GuestNetwork.ts +6 -6
- package/src/models/Histogram.ts +1 -1
- package/src/models/Host.ts +1 -1
- package/src/models/Infra.ts +7 -1
- package/src/models/InspectionStatus.ts +90 -0
- package/src/models/InspectorStatus.ts +2 -2
- package/src/models/Inventory.ts +11 -36
- package/src/models/Inventory1.ts +97 -0
- package/src/models/InventoryData.ts +1 -1
- package/src/models/IssuesBreakdown.ts +1 -1
- package/src/models/MigrationIssue.ts +1 -1
- package/src/models/Network.ts +2 -2
- package/src/models/OperationCapability.ts +1 -1
- package/src/models/OsInfo.ts +2 -2
- package/src/models/PairCapability.ts +3 -16
- package/src/models/PairCapabilityRequest.ts +10 -23
- package/src/models/Process.ts +1 -1
- package/src/models/RightsizingClusterResponse.ts +2 -2
- package/src/models/RightsizingClusterUtilization.ts +13 -15
- package/src/models/StartForecasterRequest.ts +90 -0
- package/src/models/StartInspectionRequest.ts +3 -17
- package/src/models/StopForecasterPair202Response.ts +2 -2
- package/src/models/StorageIoConfiguration.ts +2 -2
- package/src/models/UpdateGroupRequest.ts +4 -4
- package/src/models/UpdateInventory.ts +10 -10
- package/src/models/UpdateLabelVMsRequest.ts +1 -1
- package/src/models/VCenter.ts +1 -1
- package/src/models/VMFilterOptionsResponse.ts +1 -1
- package/src/models/VMLabelsResponse.ts +1 -1
- package/src/models/VMResourceBreakdown.ts +1 -1
- package/src/models/VMs.ts +7 -1
- package/src/models/VcenterCredentials.ts +1 -1
- package/src/models/VddkProperties.ts +2 -2
- package/src/models/VersionInfo.ts +4 -4
- package/src/models/VirtualMachine.ts +27 -20
- package/src/models/VirtualMachineDetail.ts +93 -73
- package/src/models/VirtualMachineDevice.ts +63 -0
- package/src/models/{VMDisk.ts → VirtualMachineDisk.ts} +17 -17
- package/src/models/{VmInspectionConcern.ts → VirtualMachineInspectionConcern.ts} +12 -12
- package/src/models/VirtualMachineInspectionResults.ts +71 -0
- package/src/models/VirtualMachineIssue.ts +93 -0
- package/src/models/VirtualMachineListResponse.ts +6 -6
- package/src/models/VirtualMachineNIC.ts +75 -0
- package/src/models/VirtualMachineUpdateRequest.ts +1 -1
- package/src/models/VmUtilizationDetails.ts +8 -8
- package/src/models/index.ts +20 -23
- package/src/runtime.ts +54 -3
- package/dist/apis/DefaultApi.d.ts +0 -1988
- package/dist/apis/DefaultApi.js +0 -2066
- package/dist/esm/apis/DefaultApi.d.ts +0 -1988
- package/dist/esm/apis/DefaultApi.js +0 -2062
- package/dist/esm/models/CollectorStartRequest.d.ts +0 -46
- package/dist/esm/models/CollectorStartRequest.js +0 -49
- package/dist/esm/models/DatastorePair.d.ts +0 -42
- package/dist/esm/models/ExportInventory400Response.d.ts +0 -30
- package/dist/esm/models/ExportInventory400Response.js +0 -41
- package/dist/esm/models/ExportInventory500Response.d.ts +0 -30
- package/dist/esm/models/ExportInventory500Response.js +0 -41
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +0 -31
- package/dist/esm/models/ForecasterDatastoresRequest.js +0 -42
- package/dist/esm/models/ForecasterPairStatus.d.ts +0 -78
- package/dist/esm/models/ForecasterStartRequest.d.ts +0 -48
- package/dist/esm/models/GetInventory200Response.d.ts +0 -23
- package/dist/esm/models/GetInventory200Response.js +0 -51
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +0 -34
- package/dist/esm/models/PutForecasterCredentials403Response.js +0 -43
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +0 -35
- package/dist/esm/models/RightsizingClusterListResponse.js +0 -48
- package/dist/esm/models/RightsizingCollectRequest.d.ts +0 -56
- package/dist/esm/models/RightsizingCollectRequest.js +0 -56
- package/dist/esm/models/RightsizingMetricStats.d.ts +0 -50
- package/dist/esm/models/RightsizingMetricStats.js +0 -63
- package/dist/esm/models/RightsizingReport.d.ts +0 -63
- package/dist/esm/models/RightsizingReport.js +0 -76
- package/dist/esm/models/RightsizingReportListResponse.d.ts +0 -35
- package/dist/esm/models/RightsizingReportListResponse.js +0 -48
- package/dist/esm/models/RightsizingReportSummary.d.ts +0 -58
- package/dist/esm/models/RightsizingReportSummary.js +0 -71
- package/dist/esm/models/RightsizingVMReport.d.ts +0 -45
- package/dist/esm/models/RightsizingVMReport.js +0 -57
- package/dist/esm/models/VMDevice.d.ts +0 -30
- package/dist/esm/models/VMDisk.d.ts +0 -54
- package/dist/esm/models/VMIssue.d.ts +0 -50
- package/dist/esm/models/VMNIC.d.ts +0 -46
- package/dist/esm/models/VmInspectionConcern.d.ts +0 -38
- package/dist/esm/models/VmInspectionResults.d.ts +0 -31
- package/dist/esm/models/VmInspectionResults.js +0 -42
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -53
- package/dist/esm/models/VmInspectionStatus.js +0 -61
- package/dist/models/CollectorStartRequest.d.ts +0 -46
- package/dist/models/CollectorStartRequest.js +0 -56
- package/dist/models/DatastorePair.d.ts +0 -42
- package/dist/models/ExportInventory400Response.d.ts +0 -30
- package/dist/models/ExportInventory400Response.js +0 -48
- package/dist/models/ExportInventory500Response.d.ts +0 -30
- package/dist/models/ExportInventory500Response.js +0 -48
- package/dist/models/ForecasterDatastoresRequest.d.ts +0 -31
- package/dist/models/ForecasterDatastoresRequest.js +0 -49
- package/dist/models/ForecasterPairStatus.d.ts +0 -78
- package/dist/models/ForecasterStartRequest.d.ts +0 -48
- package/dist/models/ForecasterStartRequest.js +0 -60
- package/dist/models/GetInventory200Response.d.ts +0 -23
- package/dist/models/GetInventory200Response.js +0 -57
- package/dist/models/PutForecasterCredentials403Response.d.ts +0 -34
- package/dist/models/PutForecasterCredentials403Response.js +0 -50
- package/dist/models/RightsizingClusterListResponse.d.ts +0 -35
- package/dist/models/RightsizingClusterListResponse.js +0 -55
- package/dist/models/RightsizingCollectRequest.d.ts +0 -56
- package/dist/models/RightsizingCollectRequest.js +0 -63
- package/dist/models/RightsizingMetricStats.d.ts +0 -50
- package/dist/models/RightsizingMetricStats.js +0 -70
- package/dist/models/RightsizingReport.d.ts +0 -63
- package/dist/models/RightsizingReport.js +0 -83
- package/dist/models/RightsizingReportListResponse.d.ts +0 -35
- package/dist/models/RightsizingReportListResponse.js +0 -55
- package/dist/models/RightsizingReportSummary.d.ts +0 -58
- package/dist/models/RightsizingReportSummary.js +0 -78
- package/dist/models/RightsizingVMReport.d.ts +0 -45
- package/dist/models/RightsizingVMReport.js +0 -64
- package/dist/models/VMDevice.d.ts +0 -30
- package/dist/models/VMDevice.js +0 -48
- package/dist/models/VMDisk.d.ts +0 -54
- package/dist/models/VMIssue.d.ts +0 -50
- package/dist/models/VMIssue.js +0 -70
- package/dist/models/VMNIC.d.ts +0 -46
- package/dist/models/VmInspectionConcern.d.ts +0 -38
- package/dist/models/VmInspectionResults.d.ts +0 -31
- package/dist/models/VmInspectionResults.js +0 -49
- package/dist/models/VmInspectionStatus.d.ts +0 -53
- package/dist/models/VmInspectionStatus.js +0 -69
- package/docs/CollectorStartRequest.md +0 -43
- package/docs/DefaultApi.md +0 -3361
- package/docs/PutForecasterCredentials403Response.md +0 -36
- package/docs/RightsizingCollectRequest.md +0 -46
- package/docs/RightsizingMetricStats.md +0 -44
- package/docs/RightsizingReport.md +0 -50
- package/docs/RightsizingReportSummary.md +0 -49
- package/docs/RightsizingVMReport.md +0 -40
- package/src/apis/DefaultApi.ts +0 -3986
- package/src/models/CollectorStartRequest.ts +0 -87
- package/src/models/ExportInventory400Response.ts +0 -63
- package/src/models/ExportInventory500Response.ts +0 -63
- package/src/models/ForecasterDatastoresRequest.ts +0 -71
- package/src/models/ForecasterStartRequest.ts +0 -103
- package/src/models/GetInventory200Response.ts +0 -76
- package/src/models/PutForecasterCredentials403Response.ts +0 -69
- package/src/models/RightsizingClusterListResponse.ts +0 -79
- package/src/models/RightsizingCollectRequest.ts +0 -109
- package/src/models/RightsizingMetricStats.ts +0 -99
- package/src/models/RightsizingReport.ts +0 -128
- package/src/models/RightsizingReportListResponse.ts +0 -79
- package/src/models/RightsizingReportSummary.ts +0 -113
- package/src/models/RightsizingVMReport.ts +0 -93
- package/src/models/VMDevice.ts +0 -63
- package/src/models/VMIssue.ts +0 -93
- package/src/models/VMNIC.ts +0 -87
- package/src/models/VmInspectionResults.ts +0 -71
- package/src/models/VmInspectionStatus.ts +0 -97
|
@@ -0,0 +1,236 @@
|
|
|
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: v2
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { InspectorStatusFromJSON, } from '../models/InspectorStatus.js';
|
|
25
|
+
import { StartInspectionRequestToJSON, } from '../models/StartInspectionRequest.js';
|
|
26
|
+
import { VddkPropertiesFromJSON, } from '../models/VddkProperties.js';
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export class InspectorApi extends runtime.BaseAPI {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for getInspectorStatus without sending the request
|
|
33
|
+
*/
|
|
34
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
const queryParameters = {};
|
|
37
|
+
if (requestParameters['includeVddk'] != null) {
|
|
38
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
39
|
+
}
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
let urlPath = `/inspector`;
|
|
42
|
+
return {
|
|
43
|
+
path: urlPath,
|
|
44
|
+
method: 'GET',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get inspector status
|
|
52
|
+
*/
|
|
53
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Get inspector status
|
|
62
|
+
*/
|
|
63
|
+
getInspectorStatus() {
|
|
64
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
65
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
71
|
+
*/
|
|
72
|
+
getInspectorVddkStatusRequestOpts() {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
let urlPath = `/inspector/vddk`;
|
|
77
|
+
return {
|
|
78
|
+
path: urlPath,
|
|
79
|
+
method: 'GET',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get VDDK upload status
|
|
87
|
+
*/
|
|
88
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
91
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
92
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Get VDDK upload status
|
|
97
|
+
*/
|
|
98
|
+
getInspectorVddkStatus(initOverrides) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
101
|
+
return yield response.value();
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
106
|
+
*/
|
|
107
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
if (requestParameters['file'] == null) {
|
|
110
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
111
|
+
}
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
const consumes = [
|
|
115
|
+
{ contentType: 'multipart/form-data' },
|
|
116
|
+
];
|
|
117
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
118
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
119
|
+
let formParams;
|
|
120
|
+
let useForm = false;
|
|
121
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
122
|
+
useForm = canConsumeForm;
|
|
123
|
+
if (useForm) {
|
|
124
|
+
formParams = new FormData();
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
formParams = new URLSearchParams();
|
|
128
|
+
}
|
|
129
|
+
if (requestParameters['file'] != null) {
|
|
130
|
+
formParams.append('file', requestParameters['file']);
|
|
131
|
+
}
|
|
132
|
+
let urlPath = `/inspector/vddk`;
|
|
133
|
+
return {
|
|
134
|
+
path: urlPath,
|
|
135
|
+
method: 'PUT',
|
|
136
|
+
headers: headerParameters,
|
|
137
|
+
query: queryParameters,
|
|
138
|
+
body: formParams,
|
|
139
|
+
};
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Upload VDDK tarball
|
|
144
|
+
*/
|
|
145
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
148
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
149
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Upload VDDK tarball
|
|
154
|
+
*/
|
|
155
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
158
|
+
return yield response.value();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for startInspection without sending the request
|
|
163
|
+
*/
|
|
164
|
+
startInspectionRequestOpts(requestParameters) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
167
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
168
|
+
}
|
|
169
|
+
const queryParameters = {};
|
|
170
|
+
const headerParameters = {};
|
|
171
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
172
|
+
let urlPath = `/inspector`;
|
|
173
|
+
return {
|
|
174
|
+
path: urlPath,
|
|
175
|
+
method: 'POST',
|
|
176
|
+
headers: headerParameters,
|
|
177
|
+
query: queryParameters,
|
|
178
|
+
body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Start deep inspection for VMs
|
|
184
|
+
*/
|
|
185
|
+
startInspectionRaw(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const requestOptions = yield this.startInspectionRequestOpts(requestParameters);
|
|
188
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Start deep inspection for VMs
|
|
194
|
+
*/
|
|
195
|
+
startInspection(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const response = yield this.startInspectionRaw(requestParameters, initOverrides);
|
|
198
|
+
return yield response.value();
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Creates request options for stopInspection without sending the request
|
|
203
|
+
*/
|
|
204
|
+
stopInspectionRequestOpts() {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
const queryParameters = {};
|
|
207
|
+
const headerParameters = {};
|
|
208
|
+
let urlPath = `/inspector`;
|
|
209
|
+
return {
|
|
210
|
+
path: urlPath,
|
|
211
|
+
method: 'DELETE',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
};
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Stop inspector
|
|
219
|
+
*/
|
|
220
|
+
stopInspectionRaw(initOverrides) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
222
|
+
const requestOptions = yield this.stopInspectionRequestOpts();
|
|
223
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Stop inspector
|
|
229
|
+
*/
|
|
230
|
+
stopInspection(initOverrides) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
const response = yield this.stopInspectionRaw(initOverrides);
|
|
233
|
+
return yield response.value();
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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: v2
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import { type Inventory } from '../models/Inventory.js';
|
|
14
|
+
export interface GetInventoryRequest {
|
|
15
|
+
/**
|
|
16
|
+
* Collection ID
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetLatestInventoryRequest {
|
|
21
|
+
/**
|
|
22
|
+
* Selects which inventories to return. "main" (default) returns only the main inventory as JSON. "all" returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/<groupId>.json), for manual upload in disconnected environments.
|
|
23
|
+
*/
|
|
24
|
+
scope?: GetLatestInventoryScopeEnum;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* InventoriesApi - interface
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
* @interface InventoriesApiInterface
|
|
31
|
+
*/
|
|
32
|
+
export interface InventoriesApiInterface {
|
|
33
|
+
/**
|
|
34
|
+
* Creates request options for getInventory without sending the request
|
|
35
|
+
* @param {string} id Collection ID
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof InventoriesApiInterface
|
|
38
|
+
*/
|
|
39
|
+
getInventoryRequestOpts(requestParameters: GetInventoryRequest): Promise<runtime.RequestOpts>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Get collected inventory for a collection
|
|
43
|
+
* @param {string} id Collection ID
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
* @memberof InventoriesApiInterface
|
|
47
|
+
*/
|
|
48
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
|
|
49
|
+
/**
|
|
50
|
+
* Get collected inventory for a collection
|
|
51
|
+
*/
|
|
52
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
|
|
53
|
+
/**
|
|
54
|
+
* Creates request options for getLatestInventory without sending the request
|
|
55
|
+
* @param {'main' | 'all'} [scope] Selects which inventories to return. \"main\" (default) returns only the main inventory as JSON. \"all\" returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/<groupId>.json), for manual upload in disconnected environments.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
* @memberof InventoriesApiInterface
|
|
58
|
+
*/
|
|
59
|
+
getLatestInventoryRequestOpts(requestParameters: GetLatestInventoryRequest): Promise<runtime.RequestOpts>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @summary Get inventory from the latest collection
|
|
63
|
+
* @param {'main' | 'all'} [scope] Selects which inventories to return. \"main\" (default) returns only the main inventory as JSON. \"all\" returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/<groupId>.json), for manual upload in disconnected environments.
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
* @memberof InventoriesApiInterface
|
|
67
|
+
*/
|
|
68
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
|
|
69
|
+
/**
|
|
70
|
+
* Get inventory from the latest collection
|
|
71
|
+
*/
|
|
72
|
+
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export declare class InventoriesApi extends runtime.BaseAPI implements InventoriesApiInterface {
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for getInventory without sending the request
|
|
80
|
+
*/
|
|
81
|
+
getInventoryRequestOpts(requestParameters: GetInventoryRequest): Promise<runtime.RequestOpts>;
|
|
82
|
+
/**
|
|
83
|
+
* Get collected inventory for a collection
|
|
84
|
+
*/
|
|
85
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
|
|
86
|
+
/**
|
|
87
|
+
* Get collected inventory for a collection
|
|
88
|
+
*/
|
|
89
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
|
|
90
|
+
/**
|
|
91
|
+
* Creates request options for getLatestInventory without sending the request
|
|
92
|
+
*/
|
|
93
|
+
getLatestInventoryRequestOpts(requestParameters: GetLatestInventoryRequest): Promise<runtime.RequestOpts>;
|
|
94
|
+
/**
|
|
95
|
+
* Get inventory from the latest collection
|
|
96
|
+
*/
|
|
97
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Inventory>>;
|
|
98
|
+
/**
|
|
99
|
+
* Get inventory from the latest collection
|
|
100
|
+
*/
|
|
101
|
+
getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Inventory>;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @export
|
|
105
|
+
*/
|
|
106
|
+
export declare const GetLatestInventoryScopeEnum: {
|
|
107
|
+
readonly Main: "main";
|
|
108
|
+
readonly All: "all";
|
|
109
|
+
};
|
|
110
|
+
export type GetLatestInventoryScopeEnum = typeof GetLatestInventoryScopeEnum[keyof typeof GetLatestInventoryScopeEnum];
|
|
@@ -0,0 +1,113 @@
|
|
|
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: v2
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { InventoryFromJSON, } from '../models/Inventory.js';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class InventoriesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for getInventory without sending the request
|
|
31
|
+
*/
|
|
32
|
+
getInventoryRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getInventory().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/collections/{id}/inventory`;
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'GET',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get collected inventory for a collection
|
|
51
|
+
*/
|
|
52
|
+
getInventoryRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InventoryFromJSON(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get collected inventory for a collection
|
|
61
|
+
*/
|
|
62
|
+
getInventory(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const response = yield this.getInventoryRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates request options for getLatestInventory without sending the request
|
|
70
|
+
*/
|
|
71
|
+
getLatestInventoryRequestOpts(requestParameters) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
if (requestParameters['scope'] != null) {
|
|
75
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
76
|
+
}
|
|
77
|
+
const headerParameters = {};
|
|
78
|
+
let urlPath = `/inventory`;
|
|
79
|
+
return {
|
|
80
|
+
path: urlPath,
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get inventory from the latest collection
|
|
89
|
+
*/
|
|
90
|
+
getLatestInventoryRaw(requestParameters, initOverrides) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const requestOptions = yield this.getLatestInventoryRequestOpts(requestParameters);
|
|
93
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => InventoryFromJSON(jsonValue));
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Get inventory from the latest collection
|
|
99
|
+
*/
|
|
100
|
+
getLatestInventory() {
|
|
101
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
102
|
+
const response = yield this.getLatestInventoryRaw(requestParameters, initOverrides);
|
|
103
|
+
return yield response.value();
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export const GetLatestInventoryScopeEnum = {
|
|
111
|
+
Main: 'main',
|
|
112
|
+
All: 'all',
|
|
113
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
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: v2
|
|
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 * as runtime from '../runtime.js';
|
|
13
|
+
import { type RightsizingClusterResponse } from '../models/RightsizingClusterResponse.js';
|
|
14
|
+
import { type VmUtilizationDetails } from '../models/VmUtilizationDetails.js';
|
|
15
|
+
export interface GetClusterUtilizationRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Collection ID
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* vSphere MoRef (e.g. "domain-c123") or generated cluster ID
|
|
22
|
+
*/
|
|
23
|
+
clusterId: string;
|
|
24
|
+
}
|
|
25
|
+
export interface GetLatestVMUtilizationRequest {
|
|
26
|
+
/**
|
|
27
|
+
* VirtualMachine MoRef ID
|
|
28
|
+
*/
|
|
29
|
+
vmId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* RightsizingApi - interface
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @interface RightsizingApiInterface
|
|
36
|
+
*/
|
|
37
|
+
export interface RightsizingApiInterface {
|
|
38
|
+
/**
|
|
39
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
40
|
+
* @param {string} id Collection ID
|
|
41
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
* @memberof RightsizingApiInterface
|
|
44
|
+
*/
|
|
45
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @summary Get latest cluster utilization by cluster ID
|
|
49
|
+
* @param {string} id Collection ID
|
|
50
|
+
* @param {string} clusterId vSphere MoRef (e.g. \"domain-c123\") or generated cluster ID
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
* @memberof RightsizingApiInterface
|
|
54
|
+
*/
|
|
55
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
56
|
+
/**
|
|
57
|
+
* Get latest cluster utilization by cluster ID
|
|
58
|
+
*/
|
|
59
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Creates request options for getLatestVMUtilization without sending the request
|
|
62
|
+
* @param {string} vmId VirtualMachine MoRef ID
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof RightsizingApiInterface
|
|
65
|
+
*/
|
|
66
|
+
getLatestVMUtilizationRequestOpts(requestParameters: GetLatestVMUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary Get utilization breakdown for a specific VM from the latest collection
|
|
70
|
+
* @param {string} vmId VirtualMachine MoRef ID
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
* @memberof RightsizingApiInterface
|
|
74
|
+
*/
|
|
75
|
+
getLatestVMUtilizationRaw(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
|
|
76
|
+
/**
|
|
77
|
+
* Get utilization breakdown for a specific VM from the latest collection
|
|
78
|
+
*/
|
|
79
|
+
getLatestVMUtilization(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
export declare class RightsizingApi extends runtime.BaseAPI implements RightsizingApiInterface {
|
|
85
|
+
/**
|
|
86
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
87
|
+
*/
|
|
88
|
+
getClusterUtilizationRequestOpts(requestParameters: GetClusterUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
89
|
+
/**
|
|
90
|
+
* Get latest cluster utilization by cluster ID
|
|
91
|
+
*/
|
|
92
|
+
getClusterUtilizationRaw(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RightsizingClusterResponse>>;
|
|
93
|
+
/**
|
|
94
|
+
* Get latest cluster utilization by cluster ID
|
|
95
|
+
*/
|
|
96
|
+
getClusterUtilization(requestParameters: GetClusterUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RightsizingClusterResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for getLatestVMUtilization without sending the request
|
|
99
|
+
*/
|
|
100
|
+
getLatestVMUtilizationRequestOpts(requestParameters: GetLatestVMUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
101
|
+
/**
|
|
102
|
+
* Get utilization breakdown for a specific VM from the latest collection
|
|
103
|
+
*/
|
|
104
|
+
getLatestVMUtilizationRaw(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
|
|
105
|
+
/**
|
|
106
|
+
* Get utilization breakdown for a specific VM from the latest collection
|
|
107
|
+
*/
|
|
108
|
+
getLatestVMUtilization(requestParameters: GetLatestVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
|
|
109
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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: v2
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime.js';
|
|
24
|
+
import { RightsizingClusterResponseFromJSON, } from '../models/RightsizingClusterResponse.js';
|
|
25
|
+
import { VmUtilizationDetailsFromJSON, } from '../models/VmUtilizationDetails.js';
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export class RightsizingApi extends runtime.BaseAPI {
|
|
30
|
+
/**
|
|
31
|
+
* Creates request options for getClusterUtilization without sending the request
|
|
32
|
+
*/
|
|
33
|
+
getClusterUtilizationRequestOpts(requestParameters) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['id'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getClusterUtilization().');
|
|
37
|
+
}
|
|
38
|
+
if (requestParameters['clusterId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('clusterId', 'Required parameter "clusterId" was null or undefined when calling getClusterUtilization().');
|
|
40
|
+
}
|
|
41
|
+
const queryParameters = {};
|
|
42
|
+
const headerParameters = {};
|
|
43
|
+
let urlPath = `/collections/{id}/clusters/{clusterId}/utilization`;
|
|
44
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
45
|
+
urlPath = urlPath.replace('{clusterId}', encodeURIComponent(String(requestParameters['clusterId'])));
|
|
46
|
+
return {
|
|
47
|
+
path: urlPath,
|
|
48
|
+
method: 'GET',
|
|
49
|
+
headers: headerParameters,
|
|
50
|
+
query: queryParameters,
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Get latest cluster utilization by cluster ID
|
|
56
|
+
*/
|
|
57
|
+
getClusterUtilizationRaw(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
const requestOptions = yield this.getClusterUtilizationRequestOpts(requestParameters);
|
|
60
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RightsizingClusterResponseFromJSON(jsonValue));
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get latest cluster utilization by cluster ID
|
|
66
|
+
*/
|
|
67
|
+
getClusterUtilization(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const response = yield this.getClusterUtilizationRaw(requestParameters, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates request options for getLatestVMUtilization without sending the request
|
|
75
|
+
*/
|
|
76
|
+
getLatestVMUtilizationRequestOpts(requestParameters) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
if (requestParameters['vmId'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('vmId', 'Required parameter "vmId" was null or undefined when calling getLatestVMUtilization().');
|
|
80
|
+
}
|
|
81
|
+
const queryParameters = {};
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
let urlPath = `/virtualmachines/{vmId}/utilization`;
|
|
84
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
85
|
+
return {
|
|
86
|
+
path: urlPath,
|
|
87
|
+
method: 'GET',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Get utilization breakdown for a specific VM from the latest collection
|
|
95
|
+
*/
|
|
96
|
+
getLatestVMUtilizationRaw(requestParameters, initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const requestOptions = yield this.getLatestVMUtilizationRequestOpts(requestParameters);
|
|
99
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmUtilizationDetailsFromJSON(jsonValue));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Get utilization breakdown for a specific VM from the latest collection
|
|
105
|
+
*/
|
|
106
|
+
getLatestVMUtilization(requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const response = yield this.getLatestVMUtilizationRaw(requestParameters, initOverrides);
|
|
109
|
+
return yield response.value();
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|