@openshift-migration-advisor/agent-sdk 0.20.1 → 0.20.2-423f685e3a07
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/README.md +82 -86
- 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 +94 -0
- package/dist/apis/InventoriesApi.js +107 -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 +578 -0
- package/dist/apis/VirtualMachinesApi.js +576 -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 +94 -0
- package/dist/esm/apis/InventoriesApi.js +103 -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 +578 -0
- package/dist/esm/apis/VirtualMachinesApi.js +572 -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 +1 -1
- package/dist/esm/models/AgentStatus.d.ts +6 -13
- package/dist/esm/models/AgentStatus.js +7 -13
- 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 +9 -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/Collection.d.ts +38 -0
- package/dist/esm/models/Collection.js +51 -0
- package/dist/esm/models/CollectionAggregate.d.ts +50 -0
- package/dist/esm/models/CollectionAggregate.js +63 -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 +2 -1
- 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 +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 +9 -1
- package/dist/esm/models/Host.js +5 -1
- package/dist/esm/models/Infra.d.ts +1 -1
- package/dist/esm/models/Infra.js +1 -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 +1 -1
- package/dist/esm/models/Inventory.d.ts +3 -17
- package/dist/esm/models/Inventory.js +5 -14
- 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 +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 +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 +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/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 +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 +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 +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 +6 -13
- package/dist/models/AgentStatus.js +8 -14
- 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 +9 -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/Collection.d.ts +38 -0
- package/dist/models/Collection.js +58 -0
- package/dist/models/CollectionAggregate.d.ts +50 -0
- package/dist/models/CollectionAggregate.js +70 -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 +2 -1
- 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 +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 +9 -1
- package/dist/models/Host.js +5 -1
- package/dist/models/Infra.d.ts +1 -1
- package/dist/models/Infra.js +1 -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 +1 -1
- package/dist/models/Inventory.d.ts +3 -17
- package/dist/models/Inventory.js +5 -14
- 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 +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 +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 +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/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 +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 +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 +1 -1
- package/dist/runtime.js +2 -2
- 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/{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/Host.md +4 -0
- package/docs/{VmInspectionStatus.md → InspectionStatus.md} +6 -8
- package/docs/InspectorApi.md +334 -0
- package/docs/InventoriesApi.md +136 -0
- package/docs/Inventory.md +2 -8
- package/docs/{GetInventory200Response.md → Inventory1.md} +6 -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/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 +914 -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 +169 -0
- package/src/apis/RightsizingApi.ts +205 -0
- package/src/apis/VersionApi.ts +94 -0
- package/src/apis/VirtualMachinesApi.ts +1142 -0
- package/src/apis/index.ts +12 -1
- package/src/models/AgentModeRequest.ts +1 -1
- package/src/models/AgentStatus.ts +18 -19
- 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 +13 -12
- 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/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 +2 -1
- 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 +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 +13 -1
- package/src/models/Infra.ts +1 -1
- package/src/models/InspectionStatus.ts +90 -0
- package/src/models/InspectorStatus.ts +1 -1
- package/src/models/Inventory.ts +11 -30
- 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 +1 -1
- package/src/models/OperationCapability.ts +1 -1
- package/src/models/OsInfo.ts +1 -1
- 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 +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/VMFilterOptionsResponse.ts +1 -1
- package/src/models/VMLabelsResponse.ts +1 -1
- 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 +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 +2 -2
- 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,1142 @@
|
|
|
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
|
+
|
|
15
|
+
import * as runtime from '../runtime.js';
|
|
16
|
+
import {
|
|
17
|
+
type BatchUpdateExclusionRequest,
|
|
18
|
+
BatchUpdateExclusionRequestFromJSON,
|
|
19
|
+
BatchUpdateExclusionRequestToJSON,
|
|
20
|
+
} from '../models/BatchUpdateExclusionRequest.js';
|
|
21
|
+
import {
|
|
22
|
+
type DeleteLabelGloballyResponse,
|
|
23
|
+
DeleteLabelGloballyResponseFromJSON,
|
|
24
|
+
DeleteLabelGloballyResponseToJSON,
|
|
25
|
+
} from '../models/DeleteLabelGloballyResponse.js';
|
|
26
|
+
import {
|
|
27
|
+
type UpdateLabelVMsRequest,
|
|
28
|
+
UpdateLabelVMsRequestFromJSON,
|
|
29
|
+
UpdateLabelVMsRequestToJSON,
|
|
30
|
+
} from '../models/UpdateLabelVMsRequest.js';
|
|
31
|
+
import {
|
|
32
|
+
type VMFilterOptionsResponse,
|
|
33
|
+
VMFilterOptionsResponseFromJSON,
|
|
34
|
+
VMFilterOptionsResponseToJSON,
|
|
35
|
+
} from '../models/VMFilterOptionsResponse.js';
|
|
36
|
+
import {
|
|
37
|
+
type VMLabelsResponse,
|
|
38
|
+
VMLabelsResponseFromJSON,
|
|
39
|
+
VMLabelsResponseToJSON,
|
|
40
|
+
} from '../models/VMLabelsResponse.js';
|
|
41
|
+
import {
|
|
42
|
+
type VirtualMachineDetail,
|
|
43
|
+
VirtualMachineDetailFromJSON,
|
|
44
|
+
VirtualMachineDetailToJSON,
|
|
45
|
+
} from '../models/VirtualMachineDetail.js';
|
|
46
|
+
import {
|
|
47
|
+
type VirtualMachineListResponse,
|
|
48
|
+
VirtualMachineListResponseFromJSON,
|
|
49
|
+
VirtualMachineListResponseToJSON,
|
|
50
|
+
} from '../models/VirtualMachineListResponse.js';
|
|
51
|
+
import {
|
|
52
|
+
type VirtualMachineUpdateRequest,
|
|
53
|
+
VirtualMachineUpdateRequestFromJSON,
|
|
54
|
+
VirtualMachineUpdateRequestToJSON,
|
|
55
|
+
} from '../models/VirtualMachineUpdateRequest.js';
|
|
56
|
+
import {
|
|
57
|
+
type VmUtilizationDetails,
|
|
58
|
+
VmUtilizationDetailsFromJSON,
|
|
59
|
+
VmUtilizationDetailsToJSON,
|
|
60
|
+
} from '../models/VmUtilizationDetails.js';
|
|
61
|
+
|
|
62
|
+
export interface BatchUpdateLatestVMExclusionRequest {
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
batchUpdateExclusionRequest: BatchUpdateExclusionRequest;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface DeleteLatestLabelGloballyRequest {
|
|
70
|
+
/**
|
|
71
|
+
* Label name
|
|
72
|
+
*/
|
|
73
|
+
label: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface GetLatestVirtualMachineRequest {
|
|
77
|
+
/**
|
|
78
|
+
* VirtualMachine ID
|
|
79
|
+
*/
|
|
80
|
+
vmId: string;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface GetVMFilterOptionsRequest {
|
|
84
|
+
/**
|
|
85
|
+
* Collection ID
|
|
86
|
+
*/
|
|
87
|
+
id: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface GetVMLabelsRequest {
|
|
91
|
+
/**
|
|
92
|
+
* Collection ID
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface GetVMUtilizationRequest {
|
|
98
|
+
/**
|
|
99
|
+
* Collection ID
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* VirtualMachine MoRef ID
|
|
104
|
+
*/
|
|
105
|
+
vmId: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface GetVirtualMachineRequest {
|
|
109
|
+
/**
|
|
110
|
+
* Collection ID
|
|
111
|
+
*/
|
|
112
|
+
id: string;
|
|
113
|
+
/**
|
|
114
|
+
* VirtualMachine ID
|
|
115
|
+
*/
|
|
116
|
+
vmId: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface ListLatestVirtualMachinesRequest {
|
|
120
|
+
/**
|
|
121
|
+
* Filter by expression
|
|
122
|
+
*/
|
|
123
|
+
byExpression?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
126
|
+
*/
|
|
127
|
+
sort?: Array<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Page number for pagination
|
|
130
|
+
*/
|
|
131
|
+
page?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Number of items per page
|
|
134
|
+
*/
|
|
135
|
+
pageSize?: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface ListVirtualMachinesRequest {
|
|
139
|
+
/**
|
|
140
|
+
* Collection ID
|
|
141
|
+
*/
|
|
142
|
+
id: string;
|
|
143
|
+
/**
|
|
144
|
+
* Filter by expression
|
|
145
|
+
*/
|
|
146
|
+
byExpression?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Sort fields with direction (e.g., "name:asc", "cluster:desc"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
149
|
+
*/
|
|
150
|
+
sort?: Array<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Page number for pagination
|
|
153
|
+
*/
|
|
154
|
+
page?: number;
|
|
155
|
+
/**
|
|
156
|
+
* Number of items per page
|
|
157
|
+
*/
|
|
158
|
+
pageSize?: number;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface UpdateLatestLabelVMsRequest {
|
|
162
|
+
/**
|
|
163
|
+
* Label name
|
|
164
|
+
*/
|
|
165
|
+
label: string;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
*/
|
|
169
|
+
updateLabelVMsRequest: UpdateLabelVMsRequest;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface UpdateLatestVirtualMachineRequest {
|
|
173
|
+
/**
|
|
174
|
+
* VirtualMachine ID
|
|
175
|
+
*/
|
|
176
|
+
vmId: string;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
virtualMachineUpdateRequest: VirtualMachineUpdateRequest;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* VirtualMachinesApi - interface
|
|
185
|
+
*
|
|
186
|
+
* @export
|
|
187
|
+
* @interface VirtualMachinesApiInterface
|
|
188
|
+
*/
|
|
189
|
+
export interface VirtualMachinesApiInterface {
|
|
190
|
+
/**
|
|
191
|
+
* Creates request options for batchUpdateLatestVMExclusion without sending the request
|
|
192
|
+
* @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof VirtualMachinesApiInterface
|
|
195
|
+
*/
|
|
196
|
+
batchUpdateLatestVMExclusionRequestOpts(requestParameters: BatchUpdateLatestVMExclusionRequest): Promise<runtime.RequestOpts>;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @summary Batch update migration exclusion for multiple VMs in the latest collection
|
|
201
|
+
* @param {BatchUpdateExclusionRequest} batchUpdateExclusionRequest
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof VirtualMachinesApiInterface
|
|
205
|
+
*/
|
|
206
|
+
batchUpdateLatestVMExclusionRaw(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
210
|
+
*/
|
|
211
|
+
batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
215
|
+
* @param {string} label Label name
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
* @memberof VirtualMachinesApiInterface
|
|
218
|
+
*/
|
|
219
|
+
deleteLatestLabelGloballyRequestOpts(requestParameters: DeleteLatestLabelGloballyRequest): Promise<runtime.RequestOpts>;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @summary Remove a label from all VMs in the latest collection
|
|
224
|
+
* @param {string} label Label name
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
* @memberof VirtualMachinesApiInterface
|
|
228
|
+
*/
|
|
229
|
+
deleteLatestLabelGloballyRaw(requestParameters: DeleteLatestLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Remove a label from all VMs in the latest collection
|
|
233
|
+
*/
|
|
234
|
+
deleteLatestLabelGlobally(requestParameters: DeleteLatestLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse>;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Creates request options for getLatestVMFilterOptions without sending the request
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
* @memberof VirtualMachinesApiInterface
|
|
240
|
+
*/
|
|
241
|
+
getLatestVMFilterOptionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @summary Get available filter option values from the latest collection
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
* @memberof VirtualMachinesApiInterface
|
|
249
|
+
*/
|
|
250
|
+
getLatestVMFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Get available filter option values from the latest collection
|
|
254
|
+
*/
|
|
255
|
+
getLatestVMFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Creates request options for getLatestVMLabels without sending the request
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof VirtualMachinesApiInterface
|
|
261
|
+
*/
|
|
262
|
+
getLatestVMLabelsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Get all distinct labels with counts from the latest collection
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
* @memberof VirtualMachinesApiInterface
|
|
270
|
+
*/
|
|
271
|
+
getLatestVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Get all distinct labels with counts from the latest collection
|
|
275
|
+
*/
|
|
276
|
+
getLatestVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Creates request options for getLatestVirtualMachine without sending the request
|
|
280
|
+
* @param {string} vmId VirtualMachine ID
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
* @memberof VirtualMachinesApiInterface
|
|
283
|
+
*/
|
|
284
|
+
getLatestVirtualMachineRequestOpts(requestParameters: GetLatestVirtualMachineRequest): Promise<runtime.RequestOpts>;
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Get VirtualMachine details from the latest collection
|
|
289
|
+
* @param {string} vmId VirtualMachine ID
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
* @memberof VirtualMachinesApiInterface
|
|
293
|
+
*/
|
|
294
|
+
getLatestVirtualMachineRaw(requestParameters: GetLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Get VirtualMachine details from the latest collection
|
|
298
|
+
*/
|
|
299
|
+
getLatestVirtualMachine(requestParameters: GetLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Creates request options for getVMFilterOptions without sending the request
|
|
303
|
+
* @param {string} id Collection ID
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
* @memberof VirtualMachinesApiInterface
|
|
306
|
+
*/
|
|
307
|
+
getVMFilterOptionsRequestOpts(requestParameters: GetVMFilterOptionsRequest): Promise<runtime.RequestOpts>;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @summary Get available filter option values
|
|
312
|
+
* @param {string} id Collection ID
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
* @memberof VirtualMachinesApiInterface
|
|
316
|
+
*/
|
|
317
|
+
getVMFilterOptionsRaw(requestParameters: GetVMFilterOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>>;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Get available filter option values
|
|
321
|
+
*/
|
|
322
|
+
getVMFilterOptions(requestParameters: GetVMFilterOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse>;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Creates request options for getVMLabels without sending the request
|
|
326
|
+
* @param {string} id Collection ID
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
* @memberof VirtualMachinesApiInterface
|
|
329
|
+
*/
|
|
330
|
+
getVMLabelsRequestOpts(requestParameters: GetVMLabelsRequest): Promise<runtime.RequestOpts>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @summary Get all distinct labels with counts
|
|
335
|
+
* @param {string} id Collection ID
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof VirtualMachinesApiInterface
|
|
339
|
+
*/
|
|
340
|
+
getVMLabelsRaw(requestParameters: GetVMLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Get all distinct labels with counts
|
|
344
|
+
*/
|
|
345
|
+
getVMLabels(requestParameters: GetVMLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse>;
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Creates request options for getVMUtilization without sending the request
|
|
349
|
+
* @param {string} id Collection ID
|
|
350
|
+
* @param {string} vmId VirtualMachine MoRef ID
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
* @memberof VirtualMachinesApiInterface
|
|
353
|
+
*/
|
|
354
|
+
getVMUtilizationRequestOpts(requestParameters: GetVMUtilizationRequest): Promise<runtime.RequestOpts>;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @summary Get utilization breakdown for a specific VM
|
|
359
|
+
* @param {string} id Collection ID
|
|
360
|
+
* @param {string} vmId VirtualMachine MoRef ID
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
* @memberof VirtualMachinesApiInterface
|
|
364
|
+
*/
|
|
365
|
+
getVMUtilizationRaw(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>>;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Get utilization breakdown for a specific VM
|
|
369
|
+
*/
|
|
370
|
+
getVMUtilization(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails>;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Creates request options for getVirtualMachine without sending the request
|
|
374
|
+
* @param {string} id Collection ID
|
|
375
|
+
* @param {string} vmId VirtualMachine ID
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
* @memberof VirtualMachinesApiInterface
|
|
378
|
+
*/
|
|
379
|
+
getVirtualMachineRequestOpts(requestParameters: GetVirtualMachineRequest): Promise<runtime.RequestOpts>;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
*
|
|
383
|
+
* @summary Get VirtualMachine details
|
|
384
|
+
* @param {string} id Collection ID
|
|
385
|
+
* @param {string} vmId VirtualMachine ID
|
|
386
|
+
* @param {*} [options] Override http request option.
|
|
387
|
+
* @throws {RequiredError}
|
|
388
|
+
* @memberof VirtualMachinesApiInterface
|
|
389
|
+
*/
|
|
390
|
+
getVirtualMachineRaw(requestParameters: GetVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>>;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Get VirtualMachine details
|
|
394
|
+
*/
|
|
395
|
+
getVirtualMachine(requestParameters: GetVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail>;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Creates request options for listLatestVirtualMachines without sending the request
|
|
399
|
+
* @param {string} [byExpression] Filter by expression
|
|
400
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
401
|
+
* @param {number} [page] Page number for pagination
|
|
402
|
+
* @param {number} [pageSize] Number of items per page
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
* @memberof VirtualMachinesApiInterface
|
|
405
|
+
*/
|
|
406
|
+
listLatestVirtualMachinesRequestOpts(requestParameters: ListLatestVirtualMachinesRequest): Promise<runtime.RequestOpts>;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @summary List VirtualMachines from the latest collection
|
|
411
|
+
* @param {string} [byExpression] Filter by expression
|
|
412
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
413
|
+
* @param {number} [page] Page number for pagination
|
|
414
|
+
* @param {number} [pageSize] Number of items per page
|
|
415
|
+
* @param {*} [options] Override http request option.
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
* @memberof VirtualMachinesApiInterface
|
|
418
|
+
*/
|
|
419
|
+
listLatestVirtualMachinesRaw(requestParameters: ListLatestVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineListResponse>>;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* List VirtualMachines from the latest collection
|
|
423
|
+
*/
|
|
424
|
+
listLatestVirtualMachines(requestParameters: ListLatestVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Creates request options for listVirtualMachines without sending the request
|
|
428
|
+
* @param {string} id Collection ID
|
|
429
|
+
* @param {string} [byExpression] Filter by expression
|
|
430
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
431
|
+
* @param {number} [page] Page number for pagination
|
|
432
|
+
* @param {number} [pageSize] Number of items per page
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
* @memberof VirtualMachinesApiInterface
|
|
435
|
+
*/
|
|
436
|
+
listVirtualMachinesRequestOpts(requestParameters: ListVirtualMachinesRequest): Promise<runtime.RequestOpts>;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @summary List VirtualMachines in a collection
|
|
441
|
+
* @param {string} id Collection ID
|
|
442
|
+
* @param {string} [byExpression] Filter by expression
|
|
443
|
+
* @param {Array<string>} [sort] Sort fields with direction (e.g., \"name:asc\", \"cluster:desc\"). Valid fields are name, vCenterState, cluster, diskSize, memory, issues, cpuUsage, diskUsage, ramUsage, cpuAvg, memAvg.
|
|
444
|
+
* @param {number} [page] Page number for pagination
|
|
445
|
+
* @param {number} [pageSize] Number of items per page
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
* @memberof VirtualMachinesApiInterface
|
|
449
|
+
*/
|
|
450
|
+
listVirtualMachinesRaw(requestParameters: ListVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineListResponse>>;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* List VirtualMachines in a collection
|
|
454
|
+
*/
|
|
455
|
+
listVirtualMachines(requestParameters: ListVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse>;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Creates request options for updateLatestLabelVMs without sending the request
|
|
459
|
+
* @param {string} label Label name
|
|
460
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof VirtualMachinesApiInterface
|
|
463
|
+
*/
|
|
464
|
+
updateLatestLabelVMsRequestOpts(requestParameters: UpdateLatestLabelVMsRequest): Promise<runtime.RequestOpts>;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
*
|
|
468
|
+
* @summary Add or remove a label from multiple VMs in the latest collection
|
|
469
|
+
* @param {string} label Label name
|
|
470
|
+
* @param {UpdateLabelVMsRequest} updateLabelVMsRequest
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
* @memberof VirtualMachinesApiInterface
|
|
474
|
+
*/
|
|
475
|
+
updateLatestLabelVMsRaw(requestParameters: UpdateLatestLabelVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Add or remove a label from multiple VMs in the latest collection
|
|
479
|
+
*/
|
|
480
|
+
updateLatestLabelVMs(requestParameters: UpdateLatestLabelVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Creates request options for updateLatestVirtualMachine without sending the request
|
|
484
|
+
* @param {string} vmId VirtualMachine ID
|
|
485
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
* @memberof VirtualMachinesApiInterface
|
|
488
|
+
*/
|
|
489
|
+
updateLatestVirtualMachineRequestOpts(requestParameters: UpdateLatestVirtualMachineRequest): Promise<runtime.RequestOpts>;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @summary Update VirtualMachine properties in the latest collection
|
|
494
|
+
* @param {string} vmId VirtualMachine ID
|
|
495
|
+
* @param {VirtualMachineUpdateRequest} virtualMachineUpdateRequest
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
* @memberof VirtualMachinesApiInterface
|
|
499
|
+
*/
|
|
500
|
+
updateLatestVirtualMachineRaw(requestParameters: UpdateLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Update VirtualMachine properties in the latest collection
|
|
504
|
+
*/
|
|
505
|
+
updateLatestVirtualMachine(requestParameters: UpdateLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
506
|
+
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
*/
|
|
512
|
+
export class VirtualMachinesApi extends runtime.BaseAPI implements VirtualMachinesApiInterface {
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Creates request options for batchUpdateLatestVMExclusion without sending the request
|
|
516
|
+
*/
|
|
517
|
+
async batchUpdateLatestVMExclusionRequestOpts(requestParameters: BatchUpdateLatestVMExclusionRequest): Promise<runtime.RequestOpts> {
|
|
518
|
+
if (requestParameters['batchUpdateExclusionRequest'] == null) {
|
|
519
|
+
throw new runtime.RequiredError(
|
|
520
|
+
'batchUpdateExclusionRequest',
|
|
521
|
+
'Required parameter "batchUpdateExclusionRequest" was null or undefined when calling batchUpdateLatestVMExclusion().'
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
const queryParameters: any = {};
|
|
526
|
+
|
|
527
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
528
|
+
|
|
529
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
let urlPath = `/virtualmachines/batch-update-exclusion`;
|
|
533
|
+
|
|
534
|
+
return {
|
|
535
|
+
path: urlPath,
|
|
536
|
+
method: 'POST',
|
|
537
|
+
headers: headerParameters,
|
|
538
|
+
query: queryParameters,
|
|
539
|
+
body: BatchUpdateExclusionRequestToJSON(requestParameters['batchUpdateExclusionRequest']),
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
545
|
+
*/
|
|
546
|
+
async batchUpdateLatestVMExclusionRaw(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
547
|
+
const requestOptions = await this.batchUpdateLatestVMExclusionRequestOpts(requestParameters);
|
|
548
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
549
|
+
|
|
550
|
+
return new runtime.VoidApiResponse(response);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Batch update migration exclusion for multiple VMs in the latest collection
|
|
555
|
+
*/
|
|
556
|
+
async batchUpdateLatestVMExclusion(requestParameters: BatchUpdateLatestVMExclusionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
557
|
+
await this.batchUpdateLatestVMExclusionRaw(requestParameters, initOverrides);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Creates request options for deleteLatestLabelGlobally without sending the request
|
|
562
|
+
*/
|
|
563
|
+
async deleteLatestLabelGloballyRequestOpts(requestParameters: DeleteLatestLabelGloballyRequest): Promise<runtime.RequestOpts> {
|
|
564
|
+
if (requestParameters['label'] == null) {
|
|
565
|
+
throw new runtime.RequiredError(
|
|
566
|
+
'label',
|
|
567
|
+
'Required parameter "label" was null or undefined when calling deleteLatestLabelGlobally().'
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
const queryParameters: any = {};
|
|
572
|
+
|
|
573
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
let urlPath = `/virtualmachines/labels/{label}`;
|
|
577
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
578
|
+
|
|
579
|
+
return {
|
|
580
|
+
path: urlPath,
|
|
581
|
+
method: 'DELETE',
|
|
582
|
+
headers: headerParameters,
|
|
583
|
+
query: queryParameters,
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Remove a label from all VMs in the latest collection
|
|
589
|
+
*/
|
|
590
|
+
async deleteLatestLabelGloballyRaw(requestParameters: DeleteLatestLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteLabelGloballyResponse>> {
|
|
591
|
+
const requestOptions = await this.deleteLatestLabelGloballyRequestOpts(requestParameters);
|
|
592
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
593
|
+
|
|
594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DeleteLabelGloballyResponseFromJSON(jsonValue));
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Remove a label from all VMs in the latest collection
|
|
599
|
+
*/
|
|
600
|
+
async deleteLatestLabelGlobally(requestParameters: DeleteLatestLabelGloballyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteLabelGloballyResponse> {
|
|
601
|
+
const response = await this.deleteLatestLabelGloballyRaw(requestParameters, initOverrides);
|
|
602
|
+
return await response.value();
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Creates request options for getLatestVMFilterOptions without sending the request
|
|
607
|
+
*/
|
|
608
|
+
async getLatestVMFilterOptionsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
609
|
+
const queryParameters: any = {};
|
|
610
|
+
|
|
611
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
let urlPath = `/virtualmachines/filter-options`;
|
|
615
|
+
|
|
616
|
+
return {
|
|
617
|
+
path: urlPath,
|
|
618
|
+
method: 'GET',
|
|
619
|
+
headers: headerParameters,
|
|
620
|
+
query: queryParameters,
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Get available filter option values from the latest collection
|
|
626
|
+
*/
|
|
627
|
+
async getLatestVMFilterOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>> {
|
|
628
|
+
const requestOptions = await this.getLatestVMFilterOptionsRequestOpts();
|
|
629
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
630
|
+
|
|
631
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Get available filter option values from the latest collection
|
|
636
|
+
*/
|
|
637
|
+
async getLatestVMFilterOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse> {
|
|
638
|
+
const response = await this.getLatestVMFilterOptionsRaw(initOverrides);
|
|
639
|
+
return await response.value();
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Creates request options for getLatestVMLabels without sending the request
|
|
644
|
+
*/
|
|
645
|
+
async getLatestVMLabelsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
646
|
+
const queryParameters: any = {};
|
|
647
|
+
|
|
648
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
let urlPath = `/virtualmachines/labels`;
|
|
652
|
+
|
|
653
|
+
return {
|
|
654
|
+
path: urlPath,
|
|
655
|
+
method: 'GET',
|
|
656
|
+
headers: headerParameters,
|
|
657
|
+
query: queryParameters,
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Get all distinct labels with counts from the latest collection
|
|
663
|
+
*/
|
|
664
|
+
async getLatestVMLabelsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
|
|
665
|
+
const requestOptions = await this.getLatestVMLabelsRequestOpts();
|
|
666
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
667
|
+
|
|
668
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Get all distinct labels with counts from the latest collection
|
|
673
|
+
*/
|
|
674
|
+
async getLatestVMLabels(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
|
|
675
|
+
const response = await this.getLatestVMLabelsRaw(initOverrides);
|
|
676
|
+
return await response.value();
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Creates request options for getLatestVirtualMachine without sending the request
|
|
681
|
+
*/
|
|
682
|
+
async getLatestVirtualMachineRequestOpts(requestParameters: GetLatestVirtualMachineRequest): Promise<runtime.RequestOpts> {
|
|
683
|
+
if (requestParameters['vmId'] == null) {
|
|
684
|
+
throw new runtime.RequiredError(
|
|
685
|
+
'vmId',
|
|
686
|
+
'Required parameter "vmId" was null or undefined when calling getLatestVirtualMachine().'
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const queryParameters: any = {};
|
|
691
|
+
|
|
692
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
let urlPath = `/virtualmachines/{vmId}`;
|
|
696
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
697
|
+
|
|
698
|
+
return {
|
|
699
|
+
path: urlPath,
|
|
700
|
+
method: 'GET',
|
|
701
|
+
headers: headerParameters,
|
|
702
|
+
query: queryParameters,
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Get VirtualMachine details from the latest collection
|
|
708
|
+
*/
|
|
709
|
+
async getLatestVirtualMachineRaw(requestParameters: GetLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>> {
|
|
710
|
+
const requestOptions = await this.getLatestVirtualMachineRequestOpts(requestParameters);
|
|
711
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
712
|
+
|
|
713
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineDetailFromJSON(jsonValue));
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Get VirtualMachine details from the latest collection
|
|
718
|
+
*/
|
|
719
|
+
async getLatestVirtualMachine(requestParameters: GetLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail> {
|
|
720
|
+
const response = await this.getLatestVirtualMachineRaw(requestParameters, initOverrides);
|
|
721
|
+
return await response.value();
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Creates request options for getVMFilterOptions without sending the request
|
|
726
|
+
*/
|
|
727
|
+
async getVMFilterOptionsRequestOpts(requestParameters: GetVMFilterOptionsRequest): Promise<runtime.RequestOpts> {
|
|
728
|
+
if (requestParameters['id'] == null) {
|
|
729
|
+
throw new runtime.RequiredError(
|
|
730
|
+
'id',
|
|
731
|
+
'Required parameter "id" was null or undefined when calling getVMFilterOptions().'
|
|
732
|
+
);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
const queryParameters: any = {};
|
|
736
|
+
|
|
737
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
let urlPath = `/collections/{id}/virtualmachines/filter-options`;
|
|
741
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
742
|
+
|
|
743
|
+
return {
|
|
744
|
+
path: urlPath,
|
|
745
|
+
method: 'GET',
|
|
746
|
+
headers: headerParameters,
|
|
747
|
+
query: queryParameters,
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Get available filter option values
|
|
753
|
+
*/
|
|
754
|
+
async getVMFilterOptionsRaw(requestParameters: GetVMFilterOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMFilterOptionsResponse>> {
|
|
755
|
+
const requestOptions = await this.getVMFilterOptionsRequestOpts(requestParameters);
|
|
756
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
757
|
+
|
|
758
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMFilterOptionsResponseFromJSON(jsonValue));
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Get available filter option values
|
|
763
|
+
*/
|
|
764
|
+
async getVMFilterOptions(requestParameters: GetVMFilterOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMFilterOptionsResponse> {
|
|
765
|
+
const response = await this.getVMFilterOptionsRaw(requestParameters, initOverrides);
|
|
766
|
+
return await response.value();
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Creates request options for getVMLabels without sending the request
|
|
771
|
+
*/
|
|
772
|
+
async getVMLabelsRequestOpts(requestParameters: GetVMLabelsRequest): Promise<runtime.RequestOpts> {
|
|
773
|
+
if (requestParameters['id'] == null) {
|
|
774
|
+
throw new runtime.RequiredError(
|
|
775
|
+
'id',
|
|
776
|
+
'Required parameter "id" was null or undefined when calling getVMLabels().'
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
const queryParameters: any = {};
|
|
781
|
+
|
|
782
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
let urlPath = `/collections/{id}/virtualmachines/labels`;
|
|
786
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
787
|
+
|
|
788
|
+
return {
|
|
789
|
+
path: urlPath,
|
|
790
|
+
method: 'GET',
|
|
791
|
+
headers: headerParameters,
|
|
792
|
+
query: queryParameters,
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Get all distinct labels with counts
|
|
798
|
+
*/
|
|
799
|
+
async getVMLabelsRaw(requestParameters: GetVMLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VMLabelsResponse>> {
|
|
800
|
+
const requestOptions = await this.getVMLabelsRequestOpts(requestParameters);
|
|
801
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
802
|
+
|
|
803
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VMLabelsResponseFromJSON(jsonValue));
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Get all distinct labels with counts
|
|
808
|
+
*/
|
|
809
|
+
async getVMLabels(requestParameters: GetVMLabelsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VMLabelsResponse> {
|
|
810
|
+
const response = await this.getVMLabelsRaw(requestParameters, initOverrides);
|
|
811
|
+
return await response.value();
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Creates request options for getVMUtilization without sending the request
|
|
816
|
+
*/
|
|
817
|
+
async getVMUtilizationRequestOpts(requestParameters: GetVMUtilizationRequest): Promise<runtime.RequestOpts> {
|
|
818
|
+
if (requestParameters['id'] == null) {
|
|
819
|
+
throw new runtime.RequiredError(
|
|
820
|
+
'id',
|
|
821
|
+
'Required parameter "id" was null or undefined when calling getVMUtilization().'
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
if (requestParameters['vmId'] == null) {
|
|
826
|
+
throw new runtime.RequiredError(
|
|
827
|
+
'vmId',
|
|
828
|
+
'Required parameter "vmId" was null or undefined when calling getVMUtilization().'
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
const queryParameters: any = {};
|
|
833
|
+
|
|
834
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
let urlPath = `/collections/{id}/virtualmachines/{vmId}/utilization`;
|
|
838
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
839
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
840
|
+
|
|
841
|
+
return {
|
|
842
|
+
path: urlPath,
|
|
843
|
+
method: 'GET',
|
|
844
|
+
headers: headerParameters,
|
|
845
|
+
query: queryParameters,
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Get utilization breakdown for a specific VM
|
|
851
|
+
*/
|
|
852
|
+
async getVMUtilizationRaw(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VmUtilizationDetails>> {
|
|
853
|
+
const requestOptions = await this.getVMUtilizationRequestOpts(requestParameters);
|
|
854
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
855
|
+
|
|
856
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmUtilizationDetailsFromJSON(jsonValue));
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Get utilization breakdown for a specific VM
|
|
861
|
+
*/
|
|
862
|
+
async getVMUtilization(requestParameters: GetVMUtilizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VmUtilizationDetails> {
|
|
863
|
+
const response = await this.getVMUtilizationRaw(requestParameters, initOverrides);
|
|
864
|
+
return await response.value();
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Creates request options for getVirtualMachine without sending the request
|
|
869
|
+
*/
|
|
870
|
+
async getVirtualMachineRequestOpts(requestParameters: GetVirtualMachineRequest): Promise<runtime.RequestOpts> {
|
|
871
|
+
if (requestParameters['id'] == null) {
|
|
872
|
+
throw new runtime.RequiredError(
|
|
873
|
+
'id',
|
|
874
|
+
'Required parameter "id" was null or undefined when calling getVirtualMachine().'
|
|
875
|
+
);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
if (requestParameters['vmId'] == null) {
|
|
879
|
+
throw new runtime.RequiredError(
|
|
880
|
+
'vmId',
|
|
881
|
+
'Required parameter "vmId" was null or undefined when calling getVirtualMachine().'
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
const queryParameters: any = {};
|
|
886
|
+
|
|
887
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
let urlPath = `/collections/{id}/virtualmachines/{vmId}`;
|
|
891
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
892
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
893
|
+
|
|
894
|
+
return {
|
|
895
|
+
path: urlPath,
|
|
896
|
+
method: 'GET',
|
|
897
|
+
headers: headerParameters,
|
|
898
|
+
query: queryParameters,
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Get VirtualMachine details
|
|
904
|
+
*/
|
|
905
|
+
async getVirtualMachineRaw(requestParameters: GetVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineDetail>> {
|
|
906
|
+
const requestOptions = await this.getVirtualMachineRequestOpts(requestParameters);
|
|
907
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
908
|
+
|
|
909
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineDetailFromJSON(jsonValue));
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Get VirtualMachine details
|
|
914
|
+
*/
|
|
915
|
+
async getVirtualMachine(requestParameters: GetVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineDetail> {
|
|
916
|
+
const response = await this.getVirtualMachineRaw(requestParameters, initOverrides);
|
|
917
|
+
return await response.value();
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Creates request options for listLatestVirtualMachines without sending the request
|
|
922
|
+
*/
|
|
923
|
+
async listLatestVirtualMachinesRequestOpts(requestParameters: ListLatestVirtualMachinesRequest): Promise<runtime.RequestOpts> {
|
|
924
|
+
const queryParameters: any = {};
|
|
925
|
+
|
|
926
|
+
if (requestParameters['byExpression'] != null) {
|
|
927
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
if (requestParameters['sort'] != null) {
|
|
931
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
if (requestParameters['page'] != null) {
|
|
935
|
+
queryParameters['page'] = requestParameters['page'];
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
if (requestParameters['pageSize'] != null) {
|
|
939
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
let urlPath = `/virtualmachines`;
|
|
946
|
+
|
|
947
|
+
return {
|
|
948
|
+
path: urlPath,
|
|
949
|
+
method: 'GET',
|
|
950
|
+
headers: headerParameters,
|
|
951
|
+
query: queryParameters,
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* List VirtualMachines from the latest collection
|
|
957
|
+
*/
|
|
958
|
+
async listLatestVirtualMachinesRaw(requestParameters: ListLatestVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineListResponse>> {
|
|
959
|
+
const requestOptions = await this.listLatestVirtualMachinesRequestOpts(requestParameters);
|
|
960
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
961
|
+
|
|
962
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineListResponseFromJSON(jsonValue));
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* List VirtualMachines from the latest collection
|
|
967
|
+
*/
|
|
968
|
+
async listLatestVirtualMachines(requestParameters: ListLatestVirtualMachinesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse> {
|
|
969
|
+
const response = await this.listLatestVirtualMachinesRaw(requestParameters, initOverrides);
|
|
970
|
+
return await response.value();
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* Creates request options for listVirtualMachines without sending the request
|
|
975
|
+
*/
|
|
976
|
+
async listVirtualMachinesRequestOpts(requestParameters: ListVirtualMachinesRequest): Promise<runtime.RequestOpts> {
|
|
977
|
+
if (requestParameters['id'] == null) {
|
|
978
|
+
throw new runtime.RequiredError(
|
|
979
|
+
'id',
|
|
980
|
+
'Required parameter "id" was null or undefined when calling listVirtualMachines().'
|
|
981
|
+
);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
const queryParameters: any = {};
|
|
985
|
+
|
|
986
|
+
if (requestParameters['byExpression'] != null) {
|
|
987
|
+
queryParameters['byExpression'] = requestParameters['byExpression'];
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
if (requestParameters['sort'] != null) {
|
|
991
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
if (requestParameters['page'] != null) {
|
|
995
|
+
queryParameters['page'] = requestParameters['page'];
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
if (requestParameters['pageSize'] != null) {
|
|
999
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
let urlPath = `/collections/{id}/virtualmachines`;
|
|
1006
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
1007
|
+
|
|
1008
|
+
return {
|
|
1009
|
+
path: urlPath,
|
|
1010
|
+
method: 'GET',
|
|
1011
|
+
headers: headerParameters,
|
|
1012
|
+
query: queryParameters,
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* List VirtualMachines in a collection
|
|
1018
|
+
*/
|
|
1019
|
+
async listVirtualMachinesRaw(requestParameters: ListVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VirtualMachineListResponse>> {
|
|
1020
|
+
const requestOptions = await this.listVirtualMachinesRequestOpts(requestParameters);
|
|
1021
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1022
|
+
|
|
1023
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VirtualMachineListResponseFromJSON(jsonValue));
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* List VirtualMachines in a collection
|
|
1028
|
+
*/
|
|
1029
|
+
async listVirtualMachines(requestParameters: ListVirtualMachinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VirtualMachineListResponse> {
|
|
1030
|
+
const response = await this.listVirtualMachinesRaw(requestParameters, initOverrides);
|
|
1031
|
+
return await response.value();
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* Creates request options for updateLatestLabelVMs without sending the request
|
|
1036
|
+
*/
|
|
1037
|
+
async updateLatestLabelVMsRequestOpts(requestParameters: UpdateLatestLabelVMsRequest): Promise<runtime.RequestOpts> {
|
|
1038
|
+
if (requestParameters['label'] == null) {
|
|
1039
|
+
throw new runtime.RequiredError(
|
|
1040
|
+
'label',
|
|
1041
|
+
'Required parameter "label" was null or undefined when calling updateLatestLabelVMs().'
|
|
1042
|
+
);
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
if (requestParameters['updateLabelVMsRequest'] == null) {
|
|
1046
|
+
throw new runtime.RequiredError(
|
|
1047
|
+
'updateLabelVMsRequest',
|
|
1048
|
+
'Required parameter "updateLabelVMsRequest" was null or undefined when calling updateLatestLabelVMs().'
|
|
1049
|
+
);
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
const queryParameters: any = {};
|
|
1053
|
+
|
|
1054
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1055
|
+
|
|
1056
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
let urlPath = `/virtualmachines/labels/{label}`;
|
|
1060
|
+
urlPath = urlPath.replace('{label}', encodeURIComponent(String(requestParameters['label'])));
|
|
1061
|
+
|
|
1062
|
+
return {
|
|
1063
|
+
path: urlPath,
|
|
1064
|
+
method: 'PATCH',
|
|
1065
|
+
headers: headerParameters,
|
|
1066
|
+
query: queryParameters,
|
|
1067
|
+
body: UpdateLabelVMsRequestToJSON(requestParameters['updateLabelVMsRequest']),
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* Add or remove a label from multiple VMs in the latest collection
|
|
1073
|
+
*/
|
|
1074
|
+
async updateLatestLabelVMsRaw(requestParameters: UpdateLatestLabelVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1075
|
+
const requestOptions = await this.updateLatestLabelVMsRequestOpts(requestParameters);
|
|
1076
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1077
|
+
|
|
1078
|
+
return new runtime.VoidApiResponse(response);
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Add or remove a label from multiple VMs in the latest collection
|
|
1083
|
+
*/
|
|
1084
|
+
async updateLatestLabelVMs(requestParameters: UpdateLatestLabelVMsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1085
|
+
await this.updateLatestLabelVMsRaw(requestParameters, initOverrides);
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Creates request options for updateLatestVirtualMachine without sending the request
|
|
1090
|
+
*/
|
|
1091
|
+
async updateLatestVirtualMachineRequestOpts(requestParameters: UpdateLatestVirtualMachineRequest): Promise<runtime.RequestOpts> {
|
|
1092
|
+
if (requestParameters['vmId'] == null) {
|
|
1093
|
+
throw new runtime.RequiredError(
|
|
1094
|
+
'vmId',
|
|
1095
|
+
'Required parameter "vmId" was null or undefined when calling updateLatestVirtualMachine().'
|
|
1096
|
+
);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
if (requestParameters['virtualMachineUpdateRequest'] == null) {
|
|
1100
|
+
throw new runtime.RequiredError(
|
|
1101
|
+
'virtualMachineUpdateRequest',
|
|
1102
|
+
'Required parameter "virtualMachineUpdateRequest" was null or undefined when calling updateLatestVirtualMachine().'
|
|
1103
|
+
);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
const queryParameters: any = {};
|
|
1107
|
+
|
|
1108
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1109
|
+
|
|
1110
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
let urlPath = `/virtualmachines/{vmId}`;
|
|
1114
|
+
urlPath = urlPath.replace('{vmId}', encodeURIComponent(String(requestParameters['vmId'])));
|
|
1115
|
+
|
|
1116
|
+
return {
|
|
1117
|
+
path: urlPath,
|
|
1118
|
+
method: 'PATCH',
|
|
1119
|
+
headers: headerParameters,
|
|
1120
|
+
query: queryParameters,
|
|
1121
|
+
body: VirtualMachineUpdateRequestToJSON(requestParameters['virtualMachineUpdateRequest']),
|
|
1122
|
+
};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Update VirtualMachine properties in the latest collection
|
|
1127
|
+
*/
|
|
1128
|
+
async updateLatestVirtualMachineRaw(requestParameters: UpdateLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1129
|
+
const requestOptions = await this.updateLatestVirtualMachineRequestOpts(requestParameters);
|
|
1130
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1131
|
+
|
|
1132
|
+
return new runtime.VoidApiResponse(response);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Update VirtualMachine properties in the latest collection
|
|
1137
|
+
*/
|
|
1138
|
+
async updateLatestVirtualMachine(requestParameters: UpdateLatestVirtualMachineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1139
|
+
await this.updateLatestVirtualMachineRaw(requestParameters, initOverrides);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
}
|