@openshift-migration-advisor/agent-sdk 0.20.1-bf086d122d0f → 0.20.1
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 +48 -64
- package/README.md +86 -81
- package/dist/apis/DefaultApi.d.ts +1988 -0
- package/dist/apis/DefaultApi.js +2066 -0
- package/dist/apis/index.d.ts +1 -12
- package/dist/apis/index.js +1 -12
- package/dist/esm/apis/DefaultApi.d.ts +1988 -0
- package/dist/esm/apis/DefaultApi.js +2062 -0
- package/dist/esm/apis/index.d.ts +1 -12
- package/dist/esm/apis/index.js +1 -12
- package/dist/esm/models/AgentModeRequest.d.ts +1 -1
- package/dist/esm/models/AgentModeRequest.js +1 -1
- package/dist/esm/models/AgentStatus.d.ts +15 -4
- package/dist/esm/models/AgentStatus.js +13 -5
- 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 +5 -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 +1 -1
- package/dist/esm/models/ClusterFeatures.js +1 -1
- package/dist/esm/models/ClusterUtilization.d.ts +1 -1
- package/dist/esm/models/ClusterUtilization.js +1 -1
- package/dist/esm/models/CollectorStartRequest.d.ts +46 -0
- package/dist/esm/models/CollectorStartRequest.js +49 -0
- package/dist/esm/models/CollectorStatus.d.ts +1 -2
- package/dist/esm/models/CollectorStatus.js +1 -2
- 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 +17 -7
- package/dist/esm/models/DatastoreDetail.js +10 -1
- package/dist/esm/models/DatastorePair.d.ts +42 -0
- package/dist/esm/models/{DatastorePairRequest.js → DatastorePair.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 +4 -10
- package/dist/esm/models/ExportInventory400Response.d.ts +30 -0
- package/dist/esm/models/ExportInventory400Response.js +41 -0
- package/dist/esm/models/ExportInventory500Response.d.ts +30 -0
- package/dist/esm/models/ExportInventory500Response.js +41 -0
- package/dist/esm/models/ForecastStats.d.ts +11 -11
- package/dist/esm/models/ForecastStats.js +17 -33
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +31 -0
- package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
- package/dist/esm/models/ForecasterPairStatus.d.ts +78 -0
- package/dist/esm/models/{ForecastPairStatus.js → ForecasterPairStatus.js} +22 -22
- package/dist/esm/models/ForecasterStartRequest.d.ts +48 -0
- package/dist/esm/models/{StartForecasterRequest.js → ForecasterStartRequest.js} +15 -12
- package/dist/esm/models/ForecasterStatus.d.ts +7 -7
- package/dist/esm/models/ForecasterStatus.js +6 -8
- package/dist/esm/models/GetInventory200Response.d.ts +23 -0
- package/dist/esm/models/GetInventory200Response.js +51 -0
- package/dist/esm/models/Group.d.ts +4 -4
- package/dist/esm/models/Group.js +1 -1
- 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 +1 -1
- package/dist/esm/models/Infra.js +1 -1
- package/dist/esm/models/InspectorStatus.d.ts +1 -1
- package/dist/esm/models/InspectorStatus.js +1 -1
- package/dist/esm/models/Inventory.d.ts +17 -3
- package/dist/esm/models/Inventory.js +14 -5
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/models/PairCapability.d.ts +13 -3
- package/dist/esm/models/PairCapability.js +10 -1
- package/dist/esm/models/PairCapabilityRequest.d.ts +8 -3
- package/dist/esm/models/PairCapabilityRequest.js +7 -4
- package/dist/esm/models/Process.d.ts +1 -1
- package/dist/esm/models/Process.js +1 -1
- package/dist/esm/models/PutForecasterCredentials403Response.d.ts +34 -0
- package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +35 -0
- package/dist/esm/models/RightsizingClusterListResponse.js +48 -0
- package/dist/esm/models/RightsizingClusterResponse.d.ts +2 -2
- package/dist/esm/models/RightsizingClusterResponse.js +1 -1
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +15 -13
- package/dist/esm/models/RightsizingClusterUtilization.js +1 -1
- package/dist/esm/models/RightsizingCollectRequest.d.ts +56 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +50 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +63 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +35 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +58 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +45 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +8 -3
- package/dist/esm/models/StartInspectionRequest.js +4 -1
- package/dist/esm/models/StopForecasterPair202Response.d.ts +1 -1
- package/dist/esm/models/StopForecasterPair202Response.js +1 -1
- package/dist/esm/models/StorageIoConfiguration.d.ts +1 -1
- package/dist/esm/models/StorageIoConfiguration.js +1 -1
- 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/VMDevice.d.ts +30 -0
- package/dist/esm/models/{VirtualMachineDevice.js → VMDevice.js} +9 -9
- package/dist/esm/models/VMDisk.d.ts +54 -0
- package/dist/esm/models/{VirtualMachineDisk.js → VMDisk.js} +9 -9
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +1 -1
- package/dist/esm/models/VMFilterOptionsResponse.js +1 -1
- package/dist/esm/models/VMIssue.d.ts +50 -0
- package/dist/esm/models/{VirtualMachineIssue.js → VMIssue.js} +16 -16
- package/dist/esm/models/VMLabelsResponse.d.ts +1 -1
- package/dist/esm/models/VMLabelsResponse.js +1 -1
- package/dist/esm/models/VMNIC.d.ts +46 -0
- package/dist/esm/models/{VirtualMachineNIC.js → VMNIC.js} +13 -9
- package/dist/esm/models/VMResourceBreakdown.d.ts +1 -1
- package/dist/esm/models/VMResourceBreakdown.js +1 -1
- package/dist/esm/models/VMs.d.ts +1 -1
- package/dist/esm/models/VMs.js +1 -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 +11 -15
- package/dist/esm/models/VirtualMachine.js +6 -10
- package/dist/esm/models/VirtualMachineDetail.d.ts +38 -42
- package/dist/esm/models/VirtualMachineDetail.js +16 -20
- package/dist/esm/models/VirtualMachineListResponse.d.ts +3 -3
- package/dist/esm/models/VirtualMachineListResponse.js +4 -4
- package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +1 -1
- package/dist/esm/models/VirtualMachineUpdateRequest.js +1 -1
- package/dist/esm/models/VmInspectionConcern.d.ts +38 -0
- package/dist/esm/models/{VirtualMachineInspectionConcern.js → VmInspectionConcern.js} +9 -9
- package/dist/esm/models/VmInspectionResults.d.ts +31 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +53 -0
- package/dist/esm/models/VmInspectionStatus.js +61 -0
- package/dist/esm/models/VmUtilizationDetails.d.ts +8 -8
- package/dist/esm/models/VmUtilizationDetails.js +1 -1
- package/dist/esm/models/index.d.ts +23 -20
- package/dist/esm/models/index.js +23 -20
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +2 -2
- package/dist/models/AgentModeRequest.d.ts +1 -1
- package/dist/models/AgentModeRequest.js +1 -1
- package/dist/models/AgentStatus.d.ts +15 -4
- package/dist/models/AgentStatus.js +14 -6
- 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 +5 -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 +1 -1
- package/dist/models/ClusterFeatures.js +1 -1
- package/dist/models/ClusterUtilization.d.ts +1 -1
- package/dist/models/ClusterUtilization.js +1 -1
- package/dist/models/CollectorStartRequest.d.ts +46 -0
- package/dist/models/CollectorStartRequest.js +56 -0
- package/dist/models/CollectorStatus.d.ts +1 -2
- package/dist/models/CollectorStatus.js +1 -2
- 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 +17 -7
- package/dist/models/DatastoreDetail.js +11 -1
- package/dist/models/DatastorePair.d.ts +42 -0
- package/dist/models/{DatastorePairRequest.js → DatastorePair.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 +4 -10
- package/dist/models/ExportInventory400Response.d.ts +30 -0
- package/dist/models/ExportInventory400Response.js +48 -0
- package/dist/models/ExportInventory500Response.d.ts +30 -0
- package/dist/models/ExportInventory500Response.js +48 -0
- package/dist/models/ForecastStats.d.ts +11 -11
- package/dist/models/ForecastStats.js +17 -33
- package/dist/models/ForecasterDatastoresRequest.d.ts +31 -0
- package/dist/models/ForecasterDatastoresRequest.js +49 -0
- package/dist/models/ForecasterPairStatus.d.ts +78 -0
- package/dist/models/{ForecastPairStatus.js → ForecasterPairStatus.js} +28 -28
- package/dist/models/ForecasterStartRequest.d.ts +48 -0
- package/dist/models/ForecasterStartRequest.js +60 -0
- package/dist/models/ForecasterStatus.d.ts +7 -7
- package/dist/models/ForecasterStatus.js +6 -8
- package/dist/models/GetInventory200Response.d.ts +23 -0
- package/dist/models/GetInventory200Response.js +57 -0
- package/dist/models/Group.d.ts +4 -4
- package/dist/models/Group.js +1 -1
- 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 +1 -1
- package/dist/models/Infra.js +1 -1
- package/dist/models/InspectorStatus.d.ts +1 -1
- package/dist/models/InspectorStatus.js +1 -1
- package/dist/models/Inventory.d.ts +17 -3
- package/dist/models/Inventory.js +14 -5
- 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 +1 -1
- 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 +1 -1
- package/dist/models/PairCapability.d.ts +13 -3
- package/dist/models/PairCapability.js +11 -1
- package/dist/models/PairCapabilityRequest.d.ts +8 -3
- package/dist/models/PairCapabilityRequest.js +7 -4
- package/dist/models/Process.d.ts +1 -1
- package/dist/models/Process.js +1 -1
- package/dist/models/PutForecasterCredentials403Response.d.ts +34 -0
- package/dist/models/PutForecasterCredentials403Response.js +50 -0
- package/dist/models/RightsizingClusterListResponse.d.ts +35 -0
- package/dist/models/RightsizingClusterListResponse.js +55 -0
- package/dist/models/RightsizingClusterResponse.d.ts +2 -2
- package/dist/models/RightsizingClusterResponse.js +1 -1
- package/dist/models/RightsizingClusterUtilization.d.ts +15 -13
- package/dist/models/RightsizingClusterUtilization.js +1 -1
- package/dist/models/RightsizingCollectRequest.d.ts +56 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +50 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +63 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +35 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +58 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +45 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +8 -3
- package/dist/models/StartInspectionRequest.js +4 -1
- package/dist/models/StopForecasterPair202Response.d.ts +1 -1
- package/dist/models/StopForecasterPair202Response.js +1 -1
- package/dist/models/StorageIoConfiguration.d.ts +1 -1
- package/dist/models/StorageIoConfiguration.js +1 -1
- 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/VMDevice.d.ts +30 -0
- package/dist/models/VMDevice.js +48 -0
- package/dist/models/VMDisk.d.ts +54 -0
- package/dist/models/{VirtualMachineDisk.js → VMDisk.js} +14 -14
- package/dist/models/VMFilterOptionsResponse.d.ts +1 -1
- package/dist/models/VMFilterOptionsResponse.js +1 -1
- package/dist/models/VMIssue.d.ts +50 -0
- package/dist/models/VMIssue.js +70 -0
- package/dist/models/VMLabelsResponse.d.ts +1 -1
- package/dist/models/VMLabelsResponse.js +1 -1
- package/dist/models/VMNIC.d.ts +46 -0
- package/dist/models/{VirtualMachineNIC.js → VMNIC.js} +18 -14
- package/dist/models/VMResourceBreakdown.d.ts +1 -1
- package/dist/models/VMResourceBreakdown.js +1 -1
- package/dist/models/VMs.d.ts +1 -1
- package/dist/models/VMs.js +1 -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 +11 -15
- package/dist/models/VirtualMachine.js +6 -10
- package/dist/models/VirtualMachineDetail.d.ts +38 -42
- package/dist/models/VirtualMachineDetail.js +16 -20
- package/dist/models/VirtualMachineListResponse.d.ts +3 -3
- package/dist/models/VirtualMachineListResponse.js +4 -4
- package/dist/models/VirtualMachineUpdateRequest.d.ts +1 -1
- package/dist/models/VirtualMachineUpdateRequest.js +1 -1
- package/dist/models/VmInspectionConcern.d.ts +38 -0
- package/dist/models/{VirtualMachineInspectionConcern.js → VmInspectionConcern.js} +14 -14
- package/dist/models/VmInspectionResults.d.ts +31 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +53 -0
- package/dist/models/VmInspectionStatus.js +69 -0
- package/dist/models/VmUtilizationDetails.d.ts +8 -8
- package/dist/models/VmUtilizationDetails.js +1 -1
- package/dist/models/index.d.ts +23 -20
- package/dist/models/index.js +23 -20
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/docs/AgentStatus.md +4 -2
- package/docs/BenchmarkRun.md +2 -2
- package/docs/{CollectionAggregate.md → CollectorStartRequest.md} +15 -16
- package/docs/{DatastorePairRequest.md → DatastorePair.md} +4 -4
- package/docs/DefaultApi.md +3361 -0
- package/docs/DeleteLabelGloballyResponse.md +2 -2
- package/docs/EstimateRange.md +1 -0
- package/docs/{AgentStatusConsoleConnection.md → ExportInventory400Response.md} +5 -7
- package/docs/{InspectionStatus.md → ExportInventory500Response.md} +4 -6
- package/docs/ForecastStats.md +16 -16
- package/docs/{Collection.md → ForecasterDatastoresRequest.md} +6 -10
- package/docs/{ForecastPairStatus.md → ForecasterPairStatus.md} +8 -8
- package/docs/{StartForecasterRequest.md → ForecasterStartRequest.md} +7 -5
- package/docs/ForecasterStatus.md +1 -1
- package/docs/{Inventory1.md → GetInventory200Response.md} +8 -4
- package/docs/GroupResponse.md +1 -1
- package/docs/Inventory.md +8 -2
- package/docs/PairCapabilityRequest.md +3 -1
- package/docs/PutForecasterCredentials403Response.md +36 -0
- package/docs/RightsizingClusterListResponse.md +36 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/{CollectionListResponse.md → RightsizingMetricStats.md} +16 -6
- package/docs/RightsizingReport.md +50 -0
- package/docs/{ComparisonDiffPage.md → RightsizingReportListResponse.md} +6 -10
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/StartInspectionRequest.md +3 -0
- package/docs/UpdateInventory.md +1 -1
- package/docs/{VirtualMachineDevice.md → VMDevice.md} +4 -4
- package/docs/{VirtualMachineDisk.md → VMDisk.md} +4 -4
- package/docs/{VirtualMachineIssue.md → VMIssue.md} +4 -4
- package/docs/VMLabelsResponse.md +2 -2
- package/docs/{VirtualMachineNIC.md → VMNIC.md} +8 -4
- package/docs/VirtualMachine.md +3 -5
- package/docs/VirtualMachineDetail.md +5 -7
- package/docs/VirtualMachineListResponse.md +2 -2
- package/docs/VirtualMachineUpdateRequest.md +2 -2
- package/docs/{VirtualMachineInspectionConcern.md → VmInspectionConcern.md} +5 -4
- package/docs/{ComparisonDiffEntry.md → VmInspectionResults.md} +7 -10
- package/docs/VmInspectionStatus.md +40 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +3986 -0
- package/src/apis/index.ts +1 -12
- package/src/models/AgentModeRequest.ts +1 -1
- package/src/models/AgentStatus.ts +21 -14
- 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 +10 -11
- package/src/models/CapabilityStatus.ts +1 -1
- package/src/models/CapabilityStatusCapabilities.ts +1 -1
- package/src/models/ClusterFeatures.ts +1 -1
- package/src/models/ClusterUtilization.ts +1 -1
- package/src/models/CollectorStartRequest.ts +87 -0
- package/src/models/CollectorStatus.ts +1 -2
- 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 +20 -7
- package/src/models/{DatastorePairRequest.ts → DatastorePair.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 +11 -14
- package/src/models/ExportInventory400Response.ts +63 -0
- package/src/models/ExportInventory500Response.ts +63 -0
- package/src/models/ForecastStats.ts +27 -35
- package/src/models/ForecasterDatastoresRequest.ts +71 -0
- package/src/models/{ForecastPairStatus.ts → ForecasterPairStatus.ts} +37 -37
- package/src/models/ForecasterStartRequest.ts +103 -0
- package/src/models/ForecasterStatus.ts +14 -15
- package/src/models/GetInventory200Response.ts +76 -0
- package/src/models/Group.ts +4 -4
- 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 +1 -1
- package/src/models/InspectorStatus.ts +1 -1
- package/src/models/Inventory.ts +30 -11
- 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 +1 -1
- package/src/models/OperationCapability.ts +1 -1
- package/src/models/OsInfo.ts +1 -1
- package/src/models/PairCapability.ts +16 -3
- package/src/models/PairCapabilityRequest.ts +23 -10
- package/src/models/Process.ts +1 -1
- package/src/models/PutForecasterCredentials403Response.ts +69 -0
- package/src/models/RightsizingClusterListResponse.ts +79 -0
- package/src/models/RightsizingClusterResponse.ts +2 -2
- package/src/models/RightsizingClusterUtilization.ts +15 -13
- package/src/models/RightsizingCollectRequest.ts +109 -0
- package/src/models/RightsizingMetricStats.ts +99 -0
- package/src/models/RightsizingReport.ts +128 -0
- package/src/models/RightsizingReportListResponse.ts +79 -0
- package/src/models/RightsizingReportSummary.ts +113 -0
- package/src/models/RightsizingVMReport.ts +93 -0
- package/src/models/StartInspectionRequest.ts +17 -3
- package/src/models/StopForecasterPair202Response.ts +1 -1
- package/src/models/StorageIoConfiguration.ts +1 -1
- 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/VMDevice.ts +63 -0
- package/src/models/{VirtualMachineDisk.ts → VMDisk.ts} +17 -17
- package/src/models/VMFilterOptionsResponse.ts +1 -1
- package/src/models/VMIssue.ts +93 -0
- package/src/models/VMLabelsResponse.ts +1 -1
- package/src/models/VMNIC.ts +87 -0
- package/src/models/VMResourceBreakdown.ts +1 -1
- package/src/models/VMs.ts +1 -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 +20 -27
- package/src/models/VirtualMachineDetail.ts +73 -80
- package/src/models/VirtualMachineListResponse.ts +6 -6
- package/src/models/VirtualMachineUpdateRequest.ts +1 -1
- package/src/models/{VirtualMachineInspectionConcern.ts → VmInspectionConcern.ts} +12 -12
- package/src/models/VmInspectionResults.ts +71 -0
- package/src/models/VmInspectionStatus.ts +97 -0
- package/src/models/VmUtilizationDetails.ts +8 -8
- package/src/models/index.ts +23 -20
- package/src/runtime.ts +2 -2
- package/dist/apis/AgentApi.d.ts +0 -95
- package/dist/apis/AgentApi.js +0 -109
- package/dist/apis/ApplicationsApi.d.ts +0 -64
- package/dist/apis/ApplicationsApi.js +0 -72
- package/dist/apis/CollectionsApi.d.ts +0 -217
- package/dist/apis/CollectionsApi.js +0 -216
- package/dist/apis/CollectorApi.d.ts +0 -116
- package/dist/apis/CollectorApi.js +0 -137
- package/dist/apis/CredentialsApi.d.ts +0 -168
- package/dist/apis/CredentialsApi.js +0 -187
- package/dist/apis/ForecasterApi.d.ts +0 -375
- package/dist/apis/ForecasterApi.js +0 -397
- package/dist/apis/GroupsApi.d.ts +0 -374
- package/dist/apis/GroupsApi.js +0 -351
- package/dist/apis/InspectorApi.d.ts +0 -202
- package/dist/apis/InspectorApi.js +0 -240
- package/dist/apis/InventoriesApi.d.ts +0 -94
- package/dist/apis/InventoriesApi.js +0 -107
- package/dist/apis/RightsizingApi.d.ts +0 -109
- package/dist/apis/RightsizingApi.js +0 -116
- package/dist/apis/VersionApi.d.ts +0 -56
- package/dist/apis/VersionApi.js +0 -68
- package/dist/apis/VirtualMachinesApi.d.ts +0 -578
- package/dist/apis/VirtualMachinesApi.js +0 -576
- package/dist/esm/apis/AgentApi.d.ts +0 -95
- package/dist/esm/apis/AgentApi.js +0 -105
- package/dist/esm/apis/ApplicationsApi.d.ts +0 -64
- package/dist/esm/apis/ApplicationsApi.js +0 -68
- package/dist/esm/apis/CollectionsApi.d.ts +0 -217
- package/dist/esm/apis/CollectionsApi.js +0 -212
- package/dist/esm/apis/CollectorApi.d.ts +0 -116
- package/dist/esm/apis/CollectorApi.js +0 -133
- package/dist/esm/apis/CredentialsApi.d.ts +0 -168
- package/dist/esm/apis/CredentialsApi.js +0 -183
- package/dist/esm/apis/ForecasterApi.d.ts +0 -375
- package/dist/esm/apis/ForecasterApi.js +0 -393
- package/dist/esm/apis/GroupsApi.d.ts +0 -374
- package/dist/esm/apis/GroupsApi.js +0 -347
- package/dist/esm/apis/InspectorApi.d.ts +0 -202
- package/dist/esm/apis/InspectorApi.js +0 -236
- package/dist/esm/apis/InventoriesApi.d.ts +0 -94
- package/dist/esm/apis/InventoriesApi.js +0 -103
- package/dist/esm/apis/RightsizingApi.d.ts +0 -109
- package/dist/esm/apis/RightsizingApi.js +0 -112
- package/dist/esm/apis/VersionApi.d.ts +0 -56
- package/dist/esm/apis/VersionApi.js +0 -64
- package/dist/esm/apis/VirtualMachinesApi.d.ts +0 -578
- package/dist/esm/apis/VirtualMachinesApi.js +0 -572
- package/dist/esm/models/AgentStatusConsoleConnection.d.ts +0 -42
- package/dist/esm/models/AgentStatusConsoleConnection.js +0 -52
- package/dist/esm/models/Collection.d.ts +0 -38
- package/dist/esm/models/Collection.js +0 -51
- package/dist/esm/models/CollectionAggregate.d.ts +0 -50
- package/dist/esm/models/CollectionAggregate.js +0 -63
- package/dist/esm/models/CollectionComparisonDiff.d.ts +0 -48
- package/dist/esm/models/CollectionComparisonDiff.js +0 -60
- package/dist/esm/models/CollectionComparisonSummary.d.ts +0 -36
- package/dist/esm/models/CollectionComparisonSummary.js +0 -49
- package/dist/esm/models/CollectionComparisonSummaryDiff.d.ts +0 -43
- package/dist/esm/models/CollectionComparisonSummaryDiff.js +0 -56
- package/dist/esm/models/CollectionListResponse.d.ts +0 -31
- package/dist/esm/models/CollectionListResponse.js +0 -44
- package/dist/esm/models/ComparisonDiffEntry.d.ts +0 -38
- package/dist/esm/models/ComparisonDiffEntry.js +0 -47
- package/dist/esm/models/ComparisonDiffPage.d.ts +0 -42
- package/dist/esm/models/ComparisonDiffPage.js +0 -55
- package/dist/esm/models/DatastorePairRequest.d.ts +0 -42
- package/dist/esm/models/ForecastPairStatus.d.ts +0 -78
- package/dist/esm/models/InspectionStatus.d.ts +0 -45
- package/dist/esm/models/InspectionStatus.js +0 -55
- package/dist/esm/models/Inventory1.d.ts +0 -45
- package/dist/esm/models/Inventory1.js +0 -53
- package/dist/esm/models/StartForecasterRequest.d.ts +0 -43
- package/dist/esm/models/VirtualMachineDevice.d.ts +0 -30
- package/dist/esm/models/VirtualMachineDisk.d.ts +0 -54
- package/dist/esm/models/VirtualMachineInspectionConcern.d.ts +0 -38
- package/dist/esm/models/VirtualMachineInspectionResults.d.ts +0 -31
- package/dist/esm/models/VirtualMachineInspectionResults.js +0 -42
- package/dist/esm/models/VirtualMachineIssue.d.ts +0 -50
- package/dist/esm/models/VirtualMachineNIC.d.ts +0 -38
- package/dist/models/AgentStatusConsoleConnection.d.ts +0 -42
- package/dist/models/AgentStatusConsoleConnection.js +0 -60
- package/dist/models/Collection.d.ts +0 -38
- package/dist/models/Collection.js +0 -58
- package/dist/models/CollectionAggregate.d.ts +0 -50
- package/dist/models/CollectionAggregate.js +0 -70
- package/dist/models/CollectionComparisonDiff.d.ts +0 -48
- package/dist/models/CollectionComparisonDiff.js +0 -68
- package/dist/models/CollectionComparisonSummary.d.ts +0 -36
- package/dist/models/CollectionComparisonSummary.js +0 -56
- package/dist/models/CollectionComparisonSummaryDiff.d.ts +0 -43
- package/dist/models/CollectionComparisonSummaryDiff.js +0 -63
- package/dist/models/CollectionListResponse.d.ts +0 -31
- package/dist/models/CollectionListResponse.js +0 -51
- package/dist/models/ComparisonDiffEntry.d.ts +0 -38
- package/dist/models/ComparisonDiffEntry.js +0 -54
- package/dist/models/ComparisonDiffPage.d.ts +0 -42
- package/dist/models/ComparisonDiffPage.js +0 -62
- package/dist/models/DatastorePairRequest.d.ts +0 -42
- package/dist/models/ForecastPairStatus.d.ts +0 -78
- package/dist/models/InspectionStatus.d.ts +0 -45
- package/dist/models/InspectionStatus.js +0 -63
- package/dist/models/Inventory1.d.ts +0 -45
- package/dist/models/Inventory1.js +0 -60
- package/dist/models/StartForecasterRequest.d.ts +0 -43
- package/dist/models/StartForecasterRequest.js +0 -57
- package/dist/models/VirtualMachineDevice.d.ts +0 -30
- package/dist/models/VirtualMachineDevice.js +0 -48
- package/dist/models/VirtualMachineDisk.d.ts +0 -54
- package/dist/models/VirtualMachineInspectionConcern.d.ts +0 -38
- package/dist/models/VirtualMachineInspectionResults.d.ts +0 -31
- package/dist/models/VirtualMachineInspectionResults.js +0 -49
- package/dist/models/VirtualMachineIssue.d.ts +0 -50
- package/dist/models/VirtualMachineIssue.js +0 -70
- package/dist/models/VirtualMachineNIC.d.ts +0 -38
- package/docs/AgentApi.md +0 -136
- package/docs/ApplicationsApi.md +0 -76
- package/docs/CollectionComparisonDiff.md +0 -38
- package/docs/CollectionComparisonSummary.md +0 -36
- package/docs/CollectionComparisonSummaryDiff.md +0 -41
- package/docs/CollectionsApi.md +0 -291
- package/docs/CollectorApi.md +0 -187
- package/docs/CredentialsApi.md +0 -264
- package/docs/ForecasterApi.md +0 -612
- package/docs/GroupsApi.md +0 -527
- package/docs/InspectorApi.md +0 -334
- package/docs/InventoriesApi.md +0 -136
- package/docs/RightsizingApi.md +0 -148
- package/docs/VersionApi.md +0 -66
- package/docs/VirtualMachineInspectionResults.md +0 -35
- package/docs/VirtualMachinesApi.md +0 -914
- package/src/apis/AgentApi.ts +0 -176
- package/src/apis/ApplicationsApi.ts +0 -111
- package/src/apis/CollectionsApi.ts +0 -411
- package/src/apis/CollectorApi.ts +0 -209
- package/src/apis/CredentialsApi.ts +0 -308
- package/src/apis/ForecasterApi.ts +0 -721
- package/src/apis/GroupsApi.ts +0 -718
- package/src/apis/InspectorApi.ts +0 -405
- package/src/apis/InventoriesApi.ts +0 -169
- package/src/apis/RightsizingApi.ts +0 -205
- package/src/apis/VersionApi.ts +0 -94
- package/src/apis/VirtualMachinesApi.ts +0 -1142
- package/src/models/AgentStatusConsoleConnection.ts +0 -81
- package/src/models/Collection.ts +0 -78
- package/src/models/CollectionAggregate.ts +0 -99
- package/src/models/CollectionComparisonDiff.ts +0 -98
- package/src/models/CollectionComparisonSummary.ts +0 -86
- package/src/models/CollectionComparisonSummaryDiff.ts +0 -93
- package/src/models/CollectionListResponse.ts +0 -72
- package/src/models/ComparisonDiffEntry.ts +0 -76
- package/src/models/ComparisonDiffPage.ts +0 -85
- package/src/models/InspectionStatus.ts +0 -84
- package/src/models/Inventory1.ts +0 -91
- package/src/models/StartForecasterRequest.ts +0 -90
- package/src/models/VirtualMachineDevice.ts +0 -63
- package/src/models/VirtualMachineInspectionResults.ts +0 -71
- package/src/models/VirtualMachineIssue.ts +0 -93
- package/src/models/VirtualMachineNIC.ts +0 -75
|
@@ -1,914 +0,0 @@
|
|
|
1
|
-
# VirtualMachinesApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**batchUpdateLatestVMExclusion**](VirtualMachinesApi.md#batchupdatelatestvmexclusion) | **POST** /virtualmachines/batch-update-exclusion | Batch update migration exclusion for multiple VMs in the latest collection |
|
|
8
|
-
| [**deleteLatestLabelGlobally**](VirtualMachinesApi.md#deletelatestlabelglobally) | **DELETE** /virtualmachines/labels/{label} | Remove a label from all VMs in the latest collection |
|
|
9
|
-
| [**getLatestVMFilterOptions**](VirtualMachinesApi.md#getlatestvmfilteroptions) | **GET** /virtualmachines/filter-options | Get available filter option values from the latest collection |
|
|
10
|
-
| [**getLatestVMLabels**](VirtualMachinesApi.md#getlatestvmlabels) | **GET** /virtualmachines/labels | Get all distinct labels with counts from the latest collection |
|
|
11
|
-
| [**getLatestVirtualMachine**](VirtualMachinesApi.md#getlatestvirtualmachine) | **GET** /virtualmachines/{vmId} | Get VirtualMachine details from the latest collection |
|
|
12
|
-
| [**getVMFilterOptions**](VirtualMachinesApi.md#getvmfilteroptions) | **GET** /collections/{id}/virtualmachines/filter-options | Get available filter option values |
|
|
13
|
-
| [**getVMLabels**](VirtualMachinesApi.md#getvmlabels) | **GET** /collections/{id}/virtualmachines/labels | Get all distinct labels with counts |
|
|
14
|
-
| [**getVMUtilization**](VirtualMachinesApi.md#getvmutilization) | **GET** /collections/{id}/virtualmachines/{vmId}/utilization | Get utilization breakdown for a specific VM |
|
|
15
|
-
| [**getVirtualMachine**](VirtualMachinesApi.md#getvirtualmachine) | **GET** /collections/{id}/virtualmachines/{vmId} | Get VirtualMachine details |
|
|
16
|
-
| [**listLatestVirtualMachines**](VirtualMachinesApi.md#listlatestvirtualmachines) | **GET** /virtualmachines | List VirtualMachines from the latest collection |
|
|
17
|
-
| [**listVirtualMachines**](VirtualMachinesApi.md#listvirtualmachines) | **GET** /collections/{id}/virtualmachines | List VirtualMachines in a collection |
|
|
18
|
-
| [**updateLatestLabelVMs**](VirtualMachinesApi.md#updatelatestlabelvms) | **PATCH** /virtualmachines/labels/{label} | Add or remove a label from multiple VMs in the latest collection |
|
|
19
|
-
| [**updateLatestVirtualMachine**](VirtualMachinesApi.md#updatelatestvirtualmachine) | **PATCH** /virtualmachines/{vmId} | Update VirtualMachine properties in the latest collection |
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## batchUpdateLatestVMExclusion
|
|
24
|
-
|
|
25
|
-
> batchUpdateLatestVMExclusion(batchUpdateExclusionRequest)
|
|
26
|
-
|
|
27
|
-
Batch update migration exclusion for multiple VMs in the latest collection
|
|
28
|
-
|
|
29
|
-
### Example
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
import {
|
|
33
|
-
Configuration,
|
|
34
|
-
VirtualMachinesApi,
|
|
35
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
36
|
-
import type { BatchUpdateLatestVMExclusionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
37
|
-
|
|
38
|
-
async function example() {
|
|
39
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
40
|
-
const api = new VirtualMachinesApi();
|
|
41
|
-
|
|
42
|
-
const body = {
|
|
43
|
-
// BatchUpdateExclusionRequest
|
|
44
|
-
batchUpdateExclusionRequest: ...,
|
|
45
|
-
} satisfies BatchUpdateLatestVMExclusionRequest;
|
|
46
|
-
|
|
47
|
-
try {
|
|
48
|
-
const data = await api.batchUpdateLatestVMExclusion(body);
|
|
49
|
-
console.log(data);
|
|
50
|
-
} catch (error) {
|
|
51
|
-
console.error(error);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Run the test
|
|
56
|
-
example().catch(console.error);
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Parameters
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
| Name | Type | Description | Notes |
|
|
63
|
-
|------------- | ------------- | ------------- | -------------|
|
|
64
|
-
| **batchUpdateExclusionRequest** | [BatchUpdateExclusionRequest](BatchUpdateExclusionRequest.md) | | |
|
|
65
|
-
|
|
66
|
-
### Return type
|
|
67
|
-
|
|
68
|
-
`void` (Empty response body)
|
|
69
|
-
|
|
70
|
-
### Authorization
|
|
71
|
-
|
|
72
|
-
No authorization required
|
|
73
|
-
|
|
74
|
-
### HTTP request headers
|
|
75
|
-
|
|
76
|
-
- **Content-Type**: `application/json`
|
|
77
|
-
- **Accept**: Not defined
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### HTTP response details
|
|
81
|
-
| Status code | Description | Response headers |
|
|
82
|
-
|-------------|-------------|------------------|
|
|
83
|
-
| **200** | Exclusion updated | - |
|
|
84
|
-
| **400** | Invalid request | - |
|
|
85
|
-
| **404** | No collections found | - |
|
|
86
|
-
| **500** | Internal server error | - |
|
|
87
|
-
|
|
88
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
## deleteLatestLabelGlobally
|
|
92
|
-
|
|
93
|
-
> DeleteLabelGloballyResponse deleteLatestLabelGlobally(label)
|
|
94
|
-
|
|
95
|
-
Remove a label from all VMs in the latest collection
|
|
96
|
-
|
|
97
|
-
### Example
|
|
98
|
-
|
|
99
|
-
```ts
|
|
100
|
-
import {
|
|
101
|
-
Configuration,
|
|
102
|
-
VirtualMachinesApi,
|
|
103
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
104
|
-
import type { DeleteLatestLabelGloballyRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
105
|
-
|
|
106
|
-
async function example() {
|
|
107
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
108
|
-
const api = new VirtualMachinesApi();
|
|
109
|
-
|
|
110
|
-
const body = {
|
|
111
|
-
// string | Label name
|
|
112
|
-
label: label_example,
|
|
113
|
-
} satisfies DeleteLatestLabelGloballyRequest;
|
|
114
|
-
|
|
115
|
-
try {
|
|
116
|
-
const data = await api.deleteLatestLabelGlobally(body);
|
|
117
|
-
console.log(data);
|
|
118
|
-
} catch (error) {
|
|
119
|
-
console.error(error);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Run the test
|
|
124
|
-
example().catch(console.error);
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Parameters
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
| Name | Type | Description | Notes |
|
|
131
|
-
|------------- | ------------- | ------------- | -------------|
|
|
132
|
-
| **label** | `string` | Label name | [Defaults to `undefined`] |
|
|
133
|
-
|
|
134
|
-
### Return type
|
|
135
|
-
|
|
136
|
-
[**DeleteLabelGloballyResponse**](DeleteLabelGloballyResponse.md)
|
|
137
|
-
|
|
138
|
-
### Authorization
|
|
139
|
-
|
|
140
|
-
No authorization required
|
|
141
|
-
|
|
142
|
-
### HTTP request headers
|
|
143
|
-
|
|
144
|
-
- **Content-Type**: Not defined
|
|
145
|
-
- **Accept**: `application/json`
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
### HTTP response details
|
|
149
|
-
| Status code | Description | Response headers |
|
|
150
|
-
|-------------|-------------|------------------|
|
|
151
|
-
| **200** | Label removed | - |
|
|
152
|
-
| **400** | Invalid request | - |
|
|
153
|
-
| **500** | Internal server error | - |
|
|
154
|
-
|
|
155
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
## getLatestVMFilterOptions
|
|
159
|
-
|
|
160
|
-
> VMFilterOptionsResponse getLatestVMFilterOptions()
|
|
161
|
-
|
|
162
|
-
Get available filter option values from the latest collection
|
|
163
|
-
|
|
164
|
-
### Example
|
|
165
|
-
|
|
166
|
-
```ts
|
|
167
|
-
import {
|
|
168
|
-
Configuration,
|
|
169
|
-
VirtualMachinesApi,
|
|
170
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
171
|
-
import type { GetLatestVMFilterOptionsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
172
|
-
|
|
173
|
-
async function example() {
|
|
174
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
175
|
-
const api = new VirtualMachinesApi();
|
|
176
|
-
|
|
177
|
-
try {
|
|
178
|
-
const data = await api.getLatestVMFilterOptions();
|
|
179
|
-
console.log(data);
|
|
180
|
-
} catch (error) {
|
|
181
|
-
console.error(error);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// Run the test
|
|
186
|
-
example().catch(console.error);
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
### Parameters
|
|
190
|
-
|
|
191
|
-
This endpoint does not need any parameter.
|
|
192
|
-
|
|
193
|
-
### Return type
|
|
194
|
-
|
|
195
|
-
[**VMFilterOptionsResponse**](VMFilterOptionsResponse.md)
|
|
196
|
-
|
|
197
|
-
### Authorization
|
|
198
|
-
|
|
199
|
-
No authorization required
|
|
200
|
-
|
|
201
|
-
### HTTP request headers
|
|
202
|
-
|
|
203
|
-
- **Content-Type**: Not defined
|
|
204
|
-
- **Accept**: `application/json`
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
### HTTP response details
|
|
208
|
-
| Status code | Description | Response headers |
|
|
209
|
-
|-------------|-------------|------------------|
|
|
210
|
-
| **200** | Filter options | - |
|
|
211
|
-
| **404** | No collections found | - |
|
|
212
|
-
| **500** | Internal server error | - |
|
|
213
|
-
|
|
214
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
## getLatestVMLabels
|
|
218
|
-
|
|
219
|
-
> VMLabelsResponse getLatestVMLabels()
|
|
220
|
-
|
|
221
|
-
Get all distinct labels with counts from the latest collection
|
|
222
|
-
|
|
223
|
-
### Example
|
|
224
|
-
|
|
225
|
-
```ts
|
|
226
|
-
import {
|
|
227
|
-
Configuration,
|
|
228
|
-
VirtualMachinesApi,
|
|
229
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
230
|
-
import type { GetLatestVMLabelsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
231
|
-
|
|
232
|
-
async function example() {
|
|
233
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
234
|
-
const api = new VirtualMachinesApi();
|
|
235
|
-
|
|
236
|
-
try {
|
|
237
|
-
const data = await api.getLatestVMLabels();
|
|
238
|
-
console.log(data);
|
|
239
|
-
} catch (error) {
|
|
240
|
-
console.error(error);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Run the test
|
|
245
|
-
example().catch(console.error);
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### Parameters
|
|
249
|
-
|
|
250
|
-
This endpoint does not need any parameter.
|
|
251
|
-
|
|
252
|
-
### Return type
|
|
253
|
-
|
|
254
|
-
[**VMLabelsResponse**](VMLabelsResponse.md)
|
|
255
|
-
|
|
256
|
-
### Authorization
|
|
257
|
-
|
|
258
|
-
No authorization required
|
|
259
|
-
|
|
260
|
-
### HTTP request headers
|
|
261
|
-
|
|
262
|
-
- **Content-Type**: Not defined
|
|
263
|
-
- **Accept**: `application/json`
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
### HTTP response details
|
|
267
|
-
| Status code | Description | Response headers |
|
|
268
|
-
|-------------|-------------|------------------|
|
|
269
|
-
| **200** | Labels with counts | - |
|
|
270
|
-
| **404** | No collections found | - |
|
|
271
|
-
| **500** | Internal server error | - |
|
|
272
|
-
|
|
273
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
## getLatestVirtualMachine
|
|
277
|
-
|
|
278
|
-
> VirtualMachineDetail getLatestVirtualMachine(vmId)
|
|
279
|
-
|
|
280
|
-
Get VirtualMachine details from the latest collection
|
|
281
|
-
|
|
282
|
-
### Example
|
|
283
|
-
|
|
284
|
-
```ts
|
|
285
|
-
import {
|
|
286
|
-
Configuration,
|
|
287
|
-
VirtualMachinesApi,
|
|
288
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
289
|
-
import type { GetLatestVirtualMachineRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
290
|
-
|
|
291
|
-
async function example() {
|
|
292
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
293
|
-
const api = new VirtualMachinesApi();
|
|
294
|
-
|
|
295
|
-
const body = {
|
|
296
|
-
// string | VirtualMachine ID
|
|
297
|
-
vmId: vmId_example,
|
|
298
|
-
} satisfies GetLatestVirtualMachineRequest;
|
|
299
|
-
|
|
300
|
-
try {
|
|
301
|
-
const data = await api.getLatestVirtualMachine(body);
|
|
302
|
-
console.log(data);
|
|
303
|
-
} catch (error) {
|
|
304
|
-
console.error(error);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
// Run the test
|
|
309
|
-
example().catch(console.error);
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
### Parameters
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
| Name | Type | Description | Notes |
|
|
316
|
-
|------------- | ------------- | ------------- | -------------|
|
|
317
|
-
| **vmId** | `string` | VirtualMachine ID | [Defaults to `undefined`] |
|
|
318
|
-
|
|
319
|
-
### Return type
|
|
320
|
-
|
|
321
|
-
[**VirtualMachineDetail**](VirtualMachineDetail.md)
|
|
322
|
-
|
|
323
|
-
### Authorization
|
|
324
|
-
|
|
325
|
-
No authorization required
|
|
326
|
-
|
|
327
|
-
### HTTP request headers
|
|
328
|
-
|
|
329
|
-
- **Content-Type**: Not defined
|
|
330
|
-
- **Accept**: `application/json`
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
### HTTP response details
|
|
334
|
-
| Status code | Description | Response headers |
|
|
335
|
-
|-------------|-------------|------------------|
|
|
336
|
-
| **200** | VirtualMachine details | - |
|
|
337
|
-
| **404** | No collections or VirtualMachine not found | - |
|
|
338
|
-
| **500** | Internal server error | - |
|
|
339
|
-
|
|
340
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
## getVMFilterOptions
|
|
344
|
-
|
|
345
|
-
> VMFilterOptionsResponse getVMFilterOptions(id)
|
|
346
|
-
|
|
347
|
-
Get available filter option values
|
|
348
|
-
|
|
349
|
-
### Example
|
|
350
|
-
|
|
351
|
-
```ts
|
|
352
|
-
import {
|
|
353
|
-
Configuration,
|
|
354
|
-
VirtualMachinesApi,
|
|
355
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
356
|
-
import type { GetVMFilterOptionsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
357
|
-
|
|
358
|
-
async function example() {
|
|
359
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
360
|
-
const api = new VirtualMachinesApi();
|
|
361
|
-
|
|
362
|
-
const body = {
|
|
363
|
-
// string | Collection ID
|
|
364
|
-
id: id_example,
|
|
365
|
-
} satisfies GetVMFilterOptionsRequest;
|
|
366
|
-
|
|
367
|
-
try {
|
|
368
|
-
const data = await api.getVMFilterOptions(body);
|
|
369
|
-
console.log(data);
|
|
370
|
-
} catch (error) {
|
|
371
|
-
console.error(error);
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// Run the test
|
|
376
|
-
example().catch(console.error);
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
### Parameters
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
| Name | Type | Description | Notes |
|
|
383
|
-
|------------- | ------------- | ------------- | -------------|
|
|
384
|
-
| **id** | `string` | Collection ID | [Defaults to `undefined`] |
|
|
385
|
-
|
|
386
|
-
### Return type
|
|
387
|
-
|
|
388
|
-
[**VMFilterOptionsResponse**](VMFilterOptionsResponse.md)
|
|
389
|
-
|
|
390
|
-
### Authorization
|
|
391
|
-
|
|
392
|
-
No authorization required
|
|
393
|
-
|
|
394
|
-
### HTTP request headers
|
|
395
|
-
|
|
396
|
-
- **Content-Type**: Not defined
|
|
397
|
-
- **Accept**: `application/json`
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### HTTP response details
|
|
401
|
-
| Status code | Description | Response headers |
|
|
402
|
-
|-------------|-------------|------------------|
|
|
403
|
-
| **200** | Filter options | - |
|
|
404
|
-
| **404** | Collection not found | - |
|
|
405
|
-
| **500** | Internal server error | - |
|
|
406
|
-
|
|
407
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
## getVMLabels
|
|
411
|
-
|
|
412
|
-
> VMLabelsResponse getVMLabels(id)
|
|
413
|
-
|
|
414
|
-
Get all distinct labels with counts
|
|
415
|
-
|
|
416
|
-
### Example
|
|
417
|
-
|
|
418
|
-
```ts
|
|
419
|
-
import {
|
|
420
|
-
Configuration,
|
|
421
|
-
VirtualMachinesApi,
|
|
422
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
423
|
-
import type { GetVMLabelsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
424
|
-
|
|
425
|
-
async function example() {
|
|
426
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
427
|
-
const api = new VirtualMachinesApi();
|
|
428
|
-
|
|
429
|
-
const body = {
|
|
430
|
-
// string | Collection ID
|
|
431
|
-
id: id_example,
|
|
432
|
-
} satisfies GetVMLabelsRequest;
|
|
433
|
-
|
|
434
|
-
try {
|
|
435
|
-
const data = await api.getVMLabels(body);
|
|
436
|
-
console.log(data);
|
|
437
|
-
} catch (error) {
|
|
438
|
-
console.error(error);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
// Run the test
|
|
443
|
-
example().catch(console.error);
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
### Parameters
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
| Name | Type | Description | Notes |
|
|
450
|
-
|------------- | ------------- | ------------- | -------------|
|
|
451
|
-
| **id** | `string` | Collection ID | [Defaults to `undefined`] |
|
|
452
|
-
|
|
453
|
-
### Return type
|
|
454
|
-
|
|
455
|
-
[**VMLabelsResponse**](VMLabelsResponse.md)
|
|
456
|
-
|
|
457
|
-
### Authorization
|
|
458
|
-
|
|
459
|
-
No authorization required
|
|
460
|
-
|
|
461
|
-
### HTTP request headers
|
|
462
|
-
|
|
463
|
-
- **Content-Type**: Not defined
|
|
464
|
-
- **Accept**: `application/json`
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
### HTTP response details
|
|
468
|
-
| Status code | Description | Response headers |
|
|
469
|
-
|-------------|-------------|------------------|
|
|
470
|
-
| **200** | Labels with counts | - |
|
|
471
|
-
| **404** | Collection not found | - |
|
|
472
|
-
| **500** | Internal server error | - |
|
|
473
|
-
|
|
474
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
## getVMUtilization
|
|
478
|
-
|
|
479
|
-
> VmUtilizationDetails getVMUtilization(id, vmId)
|
|
480
|
-
|
|
481
|
-
Get utilization breakdown for a specific VM
|
|
482
|
-
|
|
483
|
-
### Example
|
|
484
|
-
|
|
485
|
-
```ts
|
|
486
|
-
import {
|
|
487
|
-
Configuration,
|
|
488
|
-
VirtualMachinesApi,
|
|
489
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
490
|
-
import type { GetVMUtilizationRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
491
|
-
|
|
492
|
-
async function example() {
|
|
493
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
494
|
-
const api = new VirtualMachinesApi();
|
|
495
|
-
|
|
496
|
-
const body = {
|
|
497
|
-
// string | Collection ID
|
|
498
|
-
id: id_example,
|
|
499
|
-
// string | VirtualMachine MoRef ID
|
|
500
|
-
vmId: vmId_example,
|
|
501
|
-
} satisfies GetVMUtilizationRequest;
|
|
502
|
-
|
|
503
|
-
try {
|
|
504
|
-
const data = await api.getVMUtilization(body);
|
|
505
|
-
console.log(data);
|
|
506
|
-
} catch (error) {
|
|
507
|
-
console.error(error);
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// Run the test
|
|
512
|
-
example().catch(console.error);
|
|
513
|
-
```
|
|
514
|
-
|
|
515
|
-
### Parameters
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
| Name | Type | Description | Notes |
|
|
519
|
-
|------------- | ------------- | ------------- | -------------|
|
|
520
|
-
| **id** | `string` | Collection ID | [Defaults to `undefined`] |
|
|
521
|
-
| **vmId** | `string` | VirtualMachine MoRef ID | [Defaults to `undefined`] |
|
|
522
|
-
|
|
523
|
-
### Return type
|
|
524
|
-
|
|
525
|
-
[**VmUtilizationDetails**](VmUtilizationDetails.md)
|
|
526
|
-
|
|
527
|
-
### Authorization
|
|
528
|
-
|
|
529
|
-
No authorization required
|
|
530
|
-
|
|
531
|
-
### HTTP request headers
|
|
532
|
-
|
|
533
|
-
- **Content-Type**: Not defined
|
|
534
|
-
- **Accept**: `application/json`
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
### HTTP response details
|
|
538
|
-
| Status code | Description | Response headers |
|
|
539
|
-
|-------------|-------------|------------------|
|
|
540
|
-
| **200** | VM utilization details | - |
|
|
541
|
-
| **404** | Collection not found or no utilization data for this VM | - |
|
|
542
|
-
| **500** | Internal server error | - |
|
|
543
|
-
|
|
544
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
## getVirtualMachine
|
|
548
|
-
|
|
549
|
-
> VirtualMachineDetail getVirtualMachine(id, vmId)
|
|
550
|
-
|
|
551
|
-
Get VirtualMachine details
|
|
552
|
-
|
|
553
|
-
### Example
|
|
554
|
-
|
|
555
|
-
```ts
|
|
556
|
-
import {
|
|
557
|
-
Configuration,
|
|
558
|
-
VirtualMachinesApi,
|
|
559
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
560
|
-
import type { GetVirtualMachineRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
561
|
-
|
|
562
|
-
async function example() {
|
|
563
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
564
|
-
const api = new VirtualMachinesApi();
|
|
565
|
-
|
|
566
|
-
const body = {
|
|
567
|
-
// string | Collection ID
|
|
568
|
-
id: id_example,
|
|
569
|
-
// string | VirtualMachine ID
|
|
570
|
-
vmId: vmId_example,
|
|
571
|
-
} satisfies GetVirtualMachineRequest;
|
|
572
|
-
|
|
573
|
-
try {
|
|
574
|
-
const data = await api.getVirtualMachine(body);
|
|
575
|
-
console.log(data);
|
|
576
|
-
} catch (error) {
|
|
577
|
-
console.error(error);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
// Run the test
|
|
582
|
-
example().catch(console.error);
|
|
583
|
-
```
|
|
584
|
-
|
|
585
|
-
### Parameters
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
| Name | Type | Description | Notes |
|
|
589
|
-
|------------- | ------------- | ------------- | -------------|
|
|
590
|
-
| **id** | `string` | Collection ID | [Defaults to `undefined`] |
|
|
591
|
-
| **vmId** | `string` | VirtualMachine ID | [Defaults to `undefined`] |
|
|
592
|
-
|
|
593
|
-
### Return type
|
|
594
|
-
|
|
595
|
-
[**VirtualMachineDetail**](VirtualMachineDetail.md)
|
|
596
|
-
|
|
597
|
-
### Authorization
|
|
598
|
-
|
|
599
|
-
No authorization required
|
|
600
|
-
|
|
601
|
-
### HTTP request headers
|
|
602
|
-
|
|
603
|
-
- **Content-Type**: Not defined
|
|
604
|
-
- **Accept**: `application/json`
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
### HTTP response details
|
|
608
|
-
| Status code | Description | Response headers |
|
|
609
|
-
|-------------|-------------|------------------|
|
|
610
|
-
| **200** | VirtualMachine details | - |
|
|
611
|
-
| **404** | Collection or VirtualMachine not found | - |
|
|
612
|
-
| **500** | Internal server error | - |
|
|
613
|
-
|
|
614
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
## listLatestVirtualMachines
|
|
618
|
-
|
|
619
|
-
> VirtualMachineListResponse listLatestVirtualMachines(byExpression, sort, page, pageSize)
|
|
620
|
-
|
|
621
|
-
List VirtualMachines from the latest collection
|
|
622
|
-
|
|
623
|
-
### Example
|
|
624
|
-
|
|
625
|
-
```ts
|
|
626
|
-
import {
|
|
627
|
-
Configuration,
|
|
628
|
-
VirtualMachinesApi,
|
|
629
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
630
|
-
import type { ListLatestVirtualMachinesRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
631
|
-
|
|
632
|
-
async function example() {
|
|
633
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
634
|
-
const api = new VirtualMachinesApi();
|
|
635
|
-
|
|
636
|
-
const body = {
|
|
637
|
-
// string | Filter by expression (optional)
|
|
638
|
-
byExpression: byExpression_example,
|
|
639
|
-
// Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
|
|
640
|
-
sort: ["cluster:asc","name:desc"],
|
|
641
|
-
// number | Page number for pagination (optional)
|
|
642
|
-
page: 56,
|
|
643
|
-
// number | Number of items per page (optional)
|
|
644
|
-
pageSize: 56,
|
|
645
|
-
} satisfies ListLatestVirtualMachinesRequest;
|
|
646
|
-
|
|
647
|
-
try {
|
|
648
|
-
const data = await api.listLatestVirtualMachines(body);
|
|
649
|
-
console.log(data);
|
|
650
|
-
} catch (error) {
|
|
651
|
-
console.error(error);
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
// Run the test
|
|
656
|
-
example().catch(console.error);
|
|
657
|
-
```
|
|
658
|
-
|
|
659
|
-
### Parameters
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
| Name | Type | Description | Notes |
|
|
663
|
-
|------------- | ------------- | ------------- | -------------|
|
|
664
|
-
| **byExpression** | `string` | Filter by expression | [Optional] [Defaults to `undefined`] |
|
|
665
|
-
| **sort** | `Array<string>` | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
|
|
666
|
-
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
667
|
-
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
|
|
668
|
-
|
|
669
|
-
### Return type
|
|
670
|
-
|
|
671
|
-
[**VirtualMachineListResponse**](VirtualMachineListResponse.md)
|
|
672
|
-
|
|
673
|
-
### Authorization
|
|
674
|
-
|
|
675
|
-
No authorization required
|
|
676
|
-
|
|
677
|
-
### HTTP request headers
|
|
678
|
-
|
|
679
|
-
- **Content-Type**: Not defined
|
|
680
|
-
- **Accept**: `application/json`
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
### HTTP response details
|
|
684
|
-
| Status code | Description | Response headers |
|
|
685
|
-
|-------------|-------------|------------------|
|
|
686
|
-
| **200** | List of VirtualMachines | - |
|
|
687
|
-
| **400** | Invalid request parameters | - |
|
|
688
|
-
| **404** | No collections found | - |
|
|
689
|
-
| **500** | Internal server error | - |
|
|
690
|
-
|
|
691
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
## listVirtualMachines
|
|
695
|
-
|
|
696
|
-
> VirtualMachineListResponse listVirtualMachines(id, byExpression, sort, page, pageSize)
|
|
697
|
-
|
|
698
|
-
List VirtualMachines in a collection
|
|
699
|
-
|
|
700
|
-
### Example
|
|
701
|
-
|
|
702
|
-
```ts
|
|
703
|
-
import {
|
|
704
|
-
Configuration,
|
|
705
|
-
VirtualMachinesApi,
|
|
706
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
707
|
-
import type { ListVirtualMachinesRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
708
|
-
|
|
709
|
-
async function example() {
|
|
710
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
711
|
-
const api = new VirtualMachinesApi();
|
|
712
|
-
|
|
713
|
-
const body = {
|
|
714
|
-
// string | Collection ID
|
|
715
|
-
id: id_example,
|
|
716
|
-
// string | Filter by expression (optional)
|
|
717
|
-
byExpression: byExpression_example,
|
|
718
|
-
// Array<string> | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. (optional)
|
|
719
|
-
sort: ["cluster:asc","name:desc"],
|
|
720
|
-
// number | Page number for pagination (optional)
|
|
721
|
-
page: 56,
|
|
722
|
-
// number | Number of items per page (optional)
|
|
723
|
-
pageSize: 56,
|
|
724
|
-
} satisfies ListVirtualMachinesRequest;
|
|
725
|
-
|
|
726
|
-
try {
|
|
727
|
-
const data = await api.listVirtualMachines(body);
|
|
728
|
-
console.log(data);
|
|
729
|
-
} catch (error) {
|
|
730
|
-
console.error(error);
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
// Run the test
|
|
735
|
-
example().catch(console.error);
|
|
736
|
-
```
|
|
737
|
-
|
|
738
|
-
### Parameters
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
| Name | Type | Description | Notes |
|
|
742
|
-
|------------- | ------------- | ------------- | -------------|
|
|
743
|
-
| **id** | `string` | Collection ID | [Defaults to `undefined`] |
|
|
744
|
-
| **byExpression** | `string` | Filter by expression | [Optional] [Defaults to `undefined`] |
|
|
745
|
-
| **sort** | `Array<string>` | Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg. | [Optional] |
|
|
746
|
-
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
747
|
-
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `undefined`] |
|
|
748
|
-
|
|
749
|
-
### Return type
|
|
750
|
-
|
|
751
|
-
[**VirtualMachineListResponse**](VirtualMachineListResponse.md)
|
|
752
|
-
|
|
753
|
-
### Authorization
|
|
754
|
-
|
|
755
|
-
No authorization required
|
|
756
|
-
|
|
757
|
-
### HTTP request headers
|
|
758
|
-
|
|
759
|
-
- **Content-Type**: Not defined
|
|
760
|
-
- **Accept**: `application/json`
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
### HTTP response details
|
|
764
|
-
| Status code | Description | Response headers |
|
|
765
|
-
|-------------|-------------|------------------|
|
|
766
|
-
| **200** | List of VirtualMachines | - |
|
|
767
|
-
| **400** | Invalid request parameters | - |
|
|
768
|
-
| **404** | Collection not found | - |
|
|
769
|
-
| **500** | Internal server error | - |
|
|
770
|
-
|
|
771
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
## updateLatestLabelVMs
|
|
775
|
-
|
|
776
|
-
> updateLatestLabelVMs(label, updateLabelVMsRequest)
|
|
777
|
-
|
|
778
|
-
Add or remove a label from multiple VMs in the latest collection
|
|
779
|
-
|
|
780
|
-
### Example
|
|
781
|
-
|
|
782
|
-
```ts
|
|
783
|
-
import {
|
|
784
|
-
Configuration,
|
|
785
|
-
VirtualMachinesApi,
|
|
786
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
787
|
-
import type { UpdateLatestLabelVMsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
788
|
-
|
|
789
|
-
async function example() {
|
|
790
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
791
|
-
const api = new VirtualMachinesApi();
|
|
792
|
-
|
|
793
|
-
const body = {
|
|
794
|
-
// string | Label name
|
|
795
|
-
label: label_example,
|
|
796
|
-
// UpdateLabelVMsRequest
|
|
797
|
-
updateLabelVMsRequest: ...,
|
|
798
|
-
} satisfies UpdateLatestLabelVMsRequest;
|
|
799
|
-
|
|
800
|
-
try {
|
|
801
|
-
const data = await api.updateLatestLabelVMs(body);
|
|
802
|
-
console.log(data);
|
|
803
|
-
} catch (error) {
|
|
804
|
-
console.error(error);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
// Run the test
|
|
809
|
-
example().catch(console.error);
|
|
810
|
-
```
|
|
811
|
-
|
|
812
|
-
### Parameters
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
| Name | Type | Description | Notes |
|
|
816
|
-
|------------- | ------------- | ------------- | -------------|
|
|
817
|
-
| **label** | `string` | Label name | [Defaults to `undefined`] |
|
|
818
|
-
| **updateLabelVMsRequest** | [UpdateLabelVMsRequest](UpdateLabelVMsRequest.md) | | |
|
|
819
|
-
|
|
820
|
-
### Return type
|
|
821
|
-
|
|
822
|
-
`void` (Empty response body)
|
|
823
|
-
|
|
824
|
-
### Authorization
|
|
825
|
-
|
|
826
|
-
No authorization required
|
|
827
|
-
|
|
828
|
-
### HTTP request headers
|
|
829
|
-
|
|
830
|
-
- **Content-Type**: `application/json`
|
|
831
|
-
- **Accept**: Not defined
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
### HTTP response details
|
|
835
|
-
| Status code | Description | Response headers |
|
|
836
|
-
|-------------|-------------|------------------|
|
|
837
|
-
| **200** | Label updated | - |
|
|
838
|
-
| **400** | Invalid request | - |
|
|
839
|
-
| **404** | No collections found | - |
|
|
840
|
-
| **500** | Internal server error | - |
|
|
841
|
-
|
|
842
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
## updateLatestVirtualMachine
|
|
846
|
-
|
|
847
|
-
> updateLatestVirtualMachine(vmId, virtualMachineUpdateRequest)
|
|
848
|
-
|
|
849
|
-
Update VirtualMachine properties in the latest collection
|
|
850
|
-
|
|
851
|
-
### Example
|
|
852
|
-
|
|
853
|
-
```ts
|
|
854
|
-
import {
|
|
855
|
-
Configuration,
|
|
856
|
-
VirtualMachinesApi,
|
|
857
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
858
|
-
import type { UpdateLatestVirtualMachineRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
859
|
-
|
|
860
|
-
async function example() {
|
|
861
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
862
|
-
const api = new VirtualMachinesApi();
|
|
863
|
-
|
|
864
|
-
const body = {
|
|
865
|
-
// string | VirtualMachine ID
|
|
866
|
-
vmId: vmId_example,
|
|
867
|
-
// VirtualMachineUpdateRequest
|
|
868
|
-
virtualMachineUpdateRequest: ...,
|
|
869
|
-
} satisfies UpdateLatestVirtualMachineRequest;
|
|
870
|
-
|
|
871
|
-
try {
|
|
872
|
-
const data = await api.updateLatestVirtualMachine(body);
|
|
873
|
-
console.log(data);
|
|
874
|
-
} catch (error) {
|
|
875
|
-
console.error(error);
|
|
876
|
-
}
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
// Run the test
|
|
880
|
-
example().catch(console.error);
|
|
881
|
-
```
|
|
882
|
-
|
|
883
|
-
### Parameters
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
| Name | Type | Description | Notes |
|
|
887
|
-
|------------- | ------------- | ------------- | -------------|
|
|
888
|
-
| **vmId** | `string` | VirtualMachine ID | [Defaults to `undefined`] |
|
|
889
|
-
| **virtualMachineUpdateRequest** | [VirtualMachineUpdateRequest](VirtualMachineUpdateRequest.md) | | |
|
|
890
|
-
|
|
891
|
-
### Return type
|
|
892
|
-
|
|
893
|
-
`void` (Empty response body)
|
|
894
|
-
|
|
895
|
-
### Authorization
|
|
896
|
-
|
|
897
|
-
No authorization required
|
|
898
|
-
|
|
899
|
-
### HTTP request headers
|
|
900
|
-
|
|
901
|
-
- **Content-Type**: `application/json`
|
|
902
|
-
- **Accept**: Not defined
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
### HTTP response details
|
|
906
|
-
| Status code | Description | Response headers |
|
|
907
|
-
|-------------|-------------|------------------|
|
|
908
|
-
| **200** | VirtualMachine updated | - |
|
|
909
|
-
| **400** | Invalid request | - |
|
|
910
|
-
| **404** | No collections or VirtualMachine not found | - |
|
|
911
|
-
| **500** | Internal server error | - |
|
|
912
|
-
|
|
913
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
914
|
-
|