@openshift-migration-advisor/agent-sdk 0.19.0 → 0.20.1-bf086d122d0f
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 +81 -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 +217 -0
- package/dist/apis/CollectionsApi.js +216 -0
- package/dist/apis/CollectorApi.d.ts +116 -0
- package/dist/apis/CollectorApi.js +137 -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 +217 -0
- package/dist/esm/apis/CollectionsApi.js +212 -0
- package/dist/esm/apis/CollectorApi.d.ts +116 -0
- package/dist/esm/apis/CollectorApi.js +133 -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 -3
- package/dist/esm/models/AgentModeRequest.js +1 -1
- package/dist/esm/models/AgentStatus.d.ts +4 -21
- package/dist/esm/models/AgentStatus.js +5 -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 -3
- package/dist/esm/models/ApplicationListResponse.js +1 -1
- package/dist/esm/models/ApplicationOverview.d.ts +4 -12
- package/dist/esm/models/ApplicationOverview.js +1 -1
- package/dist/esm/models/ApplicationVM.d.ts +3 -7
- package/dist/esm/models/ApplicationVM.js +1 -1
- package/dist/esm/models/BatchUpdateExclusionRequest.d.ts +1 -5
- package/dist/esm/models/BatchUpdateExclusionRequest.js +1 -1
- package/dist/esm/models/BenchmarkRun.d.ts +6 -32
- package/dist/esm/models/BenchmarkRun.js +7 -5
- package/dist/esm/models/CapabilityStatus.d.ts +1 -3
- package/dist/esm/models/CapabilityStatus.js +1 -1
- package/dist/esm/models/CapabilityStatusCapabilities.d.ts +1 -7
- package/dist/esm/models/CapabilityStatusCapabilities.js +1 -1
- package/dist/esm/models/ClusterFeatures.d.ts +1 -7
- package/dist/esm/models/ClusterFeatures.js +1 -1
- package/dist/esm/models/ClusterUtilization.d.ts +1 -15
- 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 -5
- 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 -10
- package/dist/esm/models/CreateGroupRequest.js +1 -1
- package/dist/esm/models/CredentialStatus.d.ts +1 -7
- package/dist/esm/models/CredentialStatus.js +1 -1
- package/dist/esm/models/Datastore.d.ts +1 -21
- package/dist/esm/models/Datastore.js +1 -1
- package/dist/esm/models/DatastoreDetail.d.ts +7 -35
- 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 -9
- package/dist/esm/models/DeleteLabelGloballyResponse.js +5 -5
- package/dist/esm/models/DiskSizeTierSummary.d.ts +1 -5
- package/dist/esm/models/DiskSizeTierSummary.js +1 -1
- package/dist/esm/models/DiskTypeSummary.d.ts +1 -5
- package/dist/esm/models/DiskTypeSummary.js +1 -1
- package/dist/esm/models/EstimateRange.d.ts +8 -14
- 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 -31
- package/dist/esm/models/ForecastStats.js +33 -17
- package/dist/esm/models/ForecasterStatus.d.ts +7 -11
- package/dist/esm/models/ForecasterStatus.js +8 -6
- package/dist/esm/models/Group.d.ts +4 -16
- package/dist/esm/models/Group.js +1 -1
- package/dist/esm/models/GroupListResponse.d.ts +4 -12
- package/dist/esm/models/GroupListResponse.js +1 -1
- package/dist/esm/models/GroupResponse.d.ts +6 -18
- package/dist/esm/models/GroupResponse.js +4 -4
- package/dist/esm/models/GuestNetwork.d.ts +6 -16
- package/dist/esm/models/GuestNetwork.js +1 -1
- package/dist/esm/models/Histogram.d.ts +1 -7
- package/dist/esm/models/Histogram.js +1 -1
- package/dist/esm/models/Host.d.ts +1 -13
- package/dist/esm/models/Host.js +1 -1
- package/dist/esm/models/Infra.d.ts +1 -25
- package/dist/esm/models/Infra.js +1 -1
- package/dist/esm/models/InspectionStatus.d.ts +45 -0
- package/dist/esm/models/InspectionStatus.js +55 -0
- package/dist/esm/models/InspectorStatus.d.ts +1 -5
- package/dist/esm/models/InspectorStatus.js +1 -1
- package/dist/esm/models/Inventory.d.ts +3 -25
- package/dist/esm/models/Inventory.js +5 -14
- package/dist/esm/models/Inventory1.d.ts +45 -0
- package/dist/esm/models/Inventory1.js +53 -0
- package/dist/esm/models/InventoryData.d.ts +1 -11
- package/dist/esm/models/InventoryData.js +1 -1
- package/dist/esm/models/IssuesBreakdown.d.ts +1 -11
- package/dist/esm/models/IssuesBreakdown.js +1 -1
- package/dist/esm/models/MigrationIssue.d.ts +1 -9
- package/dist/esm/models/MigrationIssue.js +1 -1
- package/dist/esm/models/Network.d.ts +1 -11
- package/dist/esm/models/Network.js +1 -1
- package/dist/esm/models/OperationCapability.d.ts +1 -5
- package/dist/esm/models/OperationCapability.js +1 -1
- package/dist/esm/models/OsInfo.d.ts +1 -9
- package/dist/esm/models/OsInfo.js +1 -1
- package/dist/esm/models/PairCapability.d.ts +3 -21
- package/dist/esm/models/PairCapability.js +1 -10
- package/dist/esm/models/PairCapabilityRequest.d.ts +3 -12
- package/dist/esm/models/PairCapabilityRequest.js +4 -7
- package/dist/esm/models/Process.d.ts +1 -5
- package/dist/esm/models/Process.js +1 -1
- package/dist/esm/models/RightsizingClusterResponse.d.ts +2 -6
- package/dist/esm/models/RightsizingClusterResponse.js +1 -1
- package/dist/esm/models/RightsizingClusterUtilization.d.ts +13 -43
- 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 -12
- package/dist/esm/models/StartInspectionRequest.js +1 -4
- package/dist/esm/models/StopForecasterPair202Response.d.ts +1 -5
- package/dist/esm/models/StopForecasterPair202Response.js +1 -1
- package/dist/esm/models/StorageIoConfiguration.d.ts +1 -9
- package/dist/esm/models/StorageIoConfiguration.js +1 -1
- package/dist/esm/models/UpdateGroupRequest.d.ts +4 -10
- package/dist/esm/models/UpdateGroupRequest.js +1 -1
- package/dist/esm/models/UpdateInventory.d.ts +3 -7
- package/dist/esm/models/UpdateInventory.js +4 -4
- package/dist/esm/models/UpdateLabelVMsRequest.d.ts +1 -5
- package/dist/esm/models/UpdateLabelVMsRequest.js +1 -1
- package/dist/esm/models/VCenter.d.ts +1 -3
- package/dist/esm/models/VCenter.js +1 -1
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +1 -11
- package/dist/esm/models/VMFilterOptionsResponse.js +1 -1
- package/dist/esm/models/VMLabelsResponse.d.ts +1 -5
- package/dist/esm/models/VMLabelsResponse.js +1 -1
- package/dist/esm/models/VMResourceBreakdown.d.ts +1 -11
- package/dist/esm/models/VMResourceBreakdown.js +1 -1
- package/dist/esm/models/VMs.d.ts +1 -47
- package/dist/esm/models/VMs.js +1 -1
- package/dist/esm/models/VcenterCredentials.d.ts +1 -11
- package/dist/esm/models/VcenterCredentials.js +1 -1
- package/dist/esm/models/VddkProperties.d.ts +2 -8
- package/dist/esm/models/VddkProperties.js +1 -1
- package/dist/esm/models/VersionInfo.d.ts +4 -10
- package/dist/esm/models/VersionInfo.js +1 -1
- package/dist/esm/models/VirtualMachine.d.ts +15 -53
- package/dist/esm/models/VirtualMachine.js +10 -6
- package/dist/esm/models/VirtualMachineDetail.d.ts +42 -108
- package/dist/esm/models/VirtualMachineDetail.js +20 -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 -11
- 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 -5
- package/dist/esm/models/VirtualMachineUpdateRequest.js +1 -1
- package/dist/esm/models/VmUtilizationDetails.d.ts +8 -38
- 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 -3
- package/dist/models/AgentModeRequest.js +1 -1
- package/dist/models/AgentStatus.d.ts +4 -21
- package/dist/models/AgentStatus.js +6 -14
- package/dist/models/AgentStatusConsoleConnection.d.ts +42 -0
- package/dist/models/AgentStatusConsoleConnection.js +60 -0
- package/dist/models/ApplicationListResponse.d.ts +1 -3
- package/dist/models/ApplicationListResponse.js +1 -1
- package/dist/models/ApplicationOverview.d.ts +4 -12
- package/dist/models/ApplicationOverview.js +1 -1
- package/dist/models/ApplicationVM.d.ts +3 -7
- package/dist/models/ApplicationVM.js +1 -1
- package/dist/models/BatchUpdateExclusionRequest.d.ts +1 -5
- package/dist/models/BatchUpdateExclusionRequest.js +1 -1
- package/dist/models/BenchmarkRun.d.ts +6 -32
- package/dist/models/BenchmarkRun.js +7 -5
- package/dist/models/CapabilityStatus.d.ts +1 -3
- package/dist/models/CapabilityStatus.js +1 -1
- package/dist/models/CapabilityStatusCapabilities.d.ts +1 -7
- package/dist/models/CapabilityStatusCapabilities.js +1 -1
- package/dist/models/ClusterFeatures.d.ts +1 -7
- package/dist/models/ClusterFeatures.js +1 -1
- package/dist/models/ClusterUtilization.d.ts +1 -15
- 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 -5
- 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 -10
- package/dist/models/CreateGroupRequest.js +1 -1
- package/dist/models/CredentialStatus.d.ts +1 -7
- package/dist/models/CredentialStatus.js +1 -1
- package/dist/models/Datastore.d.ts +1 -21
- package/dist/models/Datastore.js +1 -1
- package/dist/models/DatastoreDetail.d.ts +7 -35
- 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 -9
- package/dist/models/DeleteLabelGloballyResponse.js +5 -5
- package/dist/models/DiskSizeTierSummary.d.ts +1 -5
- package/dist/models/DiskSizeTierSummary.js +1 -1
- package/dist/models/DiskTypeSummary.d.ts +1 -5
- package/dist/models/DiskTypeSummary.js +1 -1
- package/dist/models/EstimateRange.d.ts +8 -14
- 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 -31
- package/dist/models/ForecastStats.js +33 -17
- package/dist/models/ForecasterStatus.d.ts +7 -11
- package/dist/models/ForecasterStatus.js +8 -6
- package/dist/models/Group.d.ts +4 -16
- package/dist/models/Group.js +1 -1
- package/dist/models/GroupListResponse.d.ts +4 -12
- package/dist/models/GroupListResponse.js +1 -1
- package/dist/models/GroupResponse.d.ts +6 -18
- package/dist/models/GroupResponse.js +4 -4
- package/dist/models/GuestNetwork.d.ts +6 -16
- package/dist/models/GuestNetwork.js +1 -1
- package/dist/models/Histogram.d.ts +1 -7
- package/dist/models/Histogram.js +1 -1
- package/dist/models/Host.d.ts +1 -13
- package/dist/models/Host.js +1 -1
- package/dist/models/Infra.d.ts +1 -25
- package/dist/models/Infra.js +1 -1
- package/dist/models/InspectionStatus.d.ts +45 -0
- package/dist/models/InspectionStatus.js +63 -0
- package/dist/models/InspectorStatus.d.ts +1 -5
- package/dist/models/InspectorStatus.js +1 -1
- package/dist/models/Inventory.d.ts +3 -25
- package/dist/models/Inventory.js +5 -14
- package/dist/models/Inventory1.d.ts +45 -0
- package/dist/models/Inventory1.js +60 -0
- package/dist/models/InventoryData.d.ts +1 -11
- package/dist/models/InventoryData.js +1 -1
- package/dist/models/IssuesBreakdown.d.ts +1 -11
- package/dist/models/IssuesBreakdown.js +1 -1
- package/dist/models/MigrationIssue.d.ts +1 -9
- package/dist/models/MigrationIssue.js +1 -1
- package/dist/models/Network.d.ts +1 -11
- package/dist/models/Network.js +1 -1
- package/dist/models/OperationCapability.d.ts +1 -5
- package/dist/models/OperationCapability.js +1 -1
- package/dist/models/OsInfo.d.ts +1 -9
- package/dist/models/OsInfo.js +1 -1
- package/dist/models/PairCapability.d.ts +3 -21
- package/dist/models/PairCapability.js +1 -11
- package/dist/models/PairCapabilityRequest.d.ts +3 -12
- package/dist/models/PairCapabilityRequest.js +4 -7
- package/dist/models/Process.d.ts +1 -5
- package/dist/models/Process.js +1 -1
- package/dist/models/RightsizingClusterResponse.d.ts +2 -6
- package/dist/models/RightsizingClusterResponse.js +1 -1
- package/dist/models/RightsizingClusterUtilization.d.ts +13 -43
- 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 -12
- package/dist/models/StartInspectionRequest.js +1 -4
- package/dist/models/StopForecasterPair202Response.d.ts +1 -5
- package/dist/models/StopForecasterPair202Response.js +1 -1
- package/dist/models/StorageIoConfiguration.d.ts +1 -9
- package/dist/models/StorageIoConfiguration.js +1 -1
- package/dist/models/UpdateGroupRequest.d.ts +4 -10
- package/dist/models/UpdateGroupRequest.js +1 -1
- package/dist/models/UpdateInventory.d.ts +3 -7
- package/dist/models/UpdateInventory.js +4 -4
- package/dist/models/UpdateLabelVMsRequest.d.ts +1 -5
- package/dist/models/UpdateLabelVMsRequest.js +1 -1
- package/dist/models/VCenter.d.ts +1 -3
- package/dist/models/VCenter.js +1 -1
- package/dist/models/VMFilterOptionsResponse.d.ts +1 -11
- package/dist/models/VMFilterOptionsResponse.js +1 -1
- package/dist/models/VMLabelsResponse.d.ts +1 -5
- package/dist/models/VMLabelsResponse.js +1 -1
- package/dist/models/VMResourceBreakdown.d.ts +1 -11
- package/dist/models/VMResourceBreakdown.js +1 -1
- package/dist/models/VMs.d.ts +1 -47
- package/dist/models/VMs.js +1 -1
- package/dist/models/VcenterCredentials.d.ts +1 -11
- package/dist/models/VcenterCredentials.js +1 -1
- package/dist/models/VddkProperties.d.ts +2 -8
- package/dist/models/VddkProperties.js +1 -1
- package/dist/models/VersionInfo.d.ts +4 -10
- package/dist/models/VersionInfo.js +1 -1
- package/dist/models/VirtualMachine.d.ts +15 -53
- package/dist/models/VirtualMachine.js +10 -6
- package/dist/models/VirtualMachineDetail.d.ts +42 -108
- package/dist/models/VirtualMachineDetail.js +20 -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 -11
- 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 -5
- package/dist/models/VirtualMachineUpdateRequest.js +1 -1
- package/dist/models/VmUtilizationDetails.d.ts +8 -38
- 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 +2 -4
- package/docs/{ExportInventory400Response.md → AgentStatusConsoleConnection.md} +7 -5
- package/docs/ApplicationsApi.md +76 -0
- package/docs/BenchmarkRun.md +2 -2
- package/docs/Collection.md +38 -0
- 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 +291 -0
- package/docs/CollectorApi.md +187 -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/{ExportInventory500Response.md → InspectionStatus.md} +6 -4
- package/docs/InspectorApi.md +334 -0
- package/docs/InventoriesApi.md +136 -0
- package/docs/Inventory.md +2 -8
- package/docs/{GetInventory200Response.md → Inventory1.md} +4 -8
- package/docs/PairCapabilityRequest.md +1 -3
- package/docs/RightsizingApi.md +148 -0
- package/docs/{ForecasterStartRequest.md → StartForecasterRequest.md} +5 -7
- package/docs/StartInspectionRequest.md +0 -3
- package/docs/UpdateInventory.md +1 -1
- package/docs/VMLabelsResponse.md +2 -2
- package/docs/VersionApi.md +66 -0
- package/docs/VirtualMachine.md +5 -3
- package/docs/VirtualMachineDetail.md +7 -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 +411 -0
- package/src/apis/CollectorApi.ts +209 -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 -3
- package/src/models/AgentStatus.ts +14 -27
- package/src/models/AgentStatusConsoleConnection.ts +81 -0
- package/src/models/ApplicationListResponse.ts +1 -3
- package/src/models/ApplicationOverview.ts +4 -12
- package/src/models/ApplicationVM.ts +3 -7
- package/src/models/BatchUpdateExclusionRequest.ts +1 -5
- package/src/models/BenchmarkRun.ts +11 -36
- package/src/models/CapabilityStatus.ts +1 -3
- package/src/models/CapabilityStatusCapabilities.ts +1 -7
- package/src/models/ClusterFeatures.ts +1 -7
- package/src/models/ClusterUtilization.ts +1 -15
- 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 -5
- package/src/models/ComparisonDiffEntry.ts +76 -0
- package/src/models/ComparisonDiffPage.ts +85 -0
- package/src/models/CreateGroupRequest.ts +4 -10
- package/src/models/CredentialStatus.ts +1 -7
- package/src/models/Datastore.ts +1 -21
- package/src/models/DatastoreDetail.ts +7 -38
- package/src/models/{DatastorePair.ts → DatastorePairRequest.ts} +15 -23
- package/src/models/DeleteLabelGloballyResponse.ts +8 -12
- package/src/models/DiskSizeTierSummary.ts +1 -5
- package/src/models/DiskTypeSummary.ts +1 -5
- package/src/models/EstimateRange.ts +14 -17
- package/src/models/{ForecasterPairStatus.ts → ForecastPairStatus.ts} +37 -57
- package/src/models/ForecastStats.ts +35 -47
- package/src/models/ForecasterStatus.ts +15 -18
- package/src/models/Group.ts +4 -16
- package/src/models/GroupListResponse.ts +4 -12
- package/src/models/GroupResponse.ts +13 -25
- package/src/models/GuestNetwork.ts +6 -16
- package/src/models/Histogram.ts +1 -7
- package/src/models/Host.ts +1 -13
- package/src/models/Infra.ts +1 -25
- package/src/models/InspectionStatus.ts +84 -0
- package/src/models/InspectorStatus.ts +1 -5
- package/src/models/Inventory.ts +11 -38
- package/src/models/Inventory1.ts +91 -0
- package/src/models/InventoryData.ts +1 -11
- package/src/models/IssuesBreakdown.ts +1 -11
- package/src/models/MigrationIssue.ts +1 -9
- package/src/models/Network.ts +1 -11
- package/src/models/OperationCapability.ts +1 -5
- package/src/models/OsInfo.ts +1 -9
- package/src/models/PairCapability.ts +3 -24
- package/src/models/PairCapabilityRequest.ts +10 -27
- package/src/models/Process.ts +1 -5
- package/src/models/RightsizingClusterResponse.ts +2 -6
- package/src/models/RightsizingClusterUtilization.ts +13 -43
- package/src/models/StartForecasterRequest.ts +90 -0
- package/src/models/StartInspectionRequest.ts +3 -21
- package/src/models/StopForecasterPair202Response.ts +1 -5
- package/src/models/StorageIoConfiguration.ts +1 -9
- package/src/models/UpdateGroupRequest.ts +4 -10
- package/src/models/UpdateInventory.ts +10 -14
- package/src/models/UpdateLabelVMsRequest.ts +1 -5
- package/src/models/VCenter.ts +1 -3
- package/src/models/VMFilterOptionsResponse.ts +1 -11
- package/src/models/VMLabelsResponse.ts +1 -5
- package/src/models/VMResourceBreakdown.ts +1 -11
- package/src/models/VMs.ts +1 -47
- package/src/models/VcenterCredentials.ts +1 -11
- package/src/models/VddkProperties.ts +2 -8
- package/src/models/VersionInfo.ts +4 -10
- package/src/models/VirtualMachine.ts +27 -62
- package/src/models/VirtualMachineDetail.ts +80 -143
- package/src/models/VirtualMachineDevice.ts +63 -0
- package/src/models/{VMDisk.ts → VirtualMachineDisk.ts} +17 -31
- package/src/models/{VmInspectionConcern.ts → VirtualMachineInspectionConcern.ts} +12 -18
- package/src/models/VirtualMachineInspectionResults.ts +71 -0
- package/src/models/VirtualMachineIssue.ts +93 -0
- package/src/models/VirtualMachineListResponse.ts +6 -14
- package/src/models/VirtualMachineNIC.ts +75 -0
- package/src/models/VirtualMachineUpdateRequest.ts +1 -5
- package/src/models/VmUtilizationDetails.ts +8 -38
- package/src/models/index.ts +20 -23
- package/src/runtime.ts +2 -2
- package/dist/apis/DefaultApi.d.ts +0 -1827
- package/dist/apis/DefaultApi.js +0 -2056
- package/dist/esm/apis/DefaultApi.d.ts +0 -1827
- package/dist/esm/apis/DefaultApi.js +0 -2052
- package/dist/esm/models/CollectorStartRequest.d.ts +0 -56
- package/dist/esm/models/CollectorStartRequest.js +0 -49
- package/dist/esm/models/DatastorePair.d.ts +0 -50
- package/dist/esm/models/ExportInventory400Response.d.ts +0 -32
- package/dist/esm/models/ExportInventory400Response.js +0 -41
- package/dist/esm/models/ExportInventory500Response.d.ts +0 -32
- package/dist/esm/models/ExportInventory500Response.js +0 -41
- package/dist/esm/models/ForecasterDatastoresRequest.d.ts +0 -33
- package/dist/esm/models/ForecasterDatastoresRequest.js +0 -42
- package/dist/esm/models/ForecasterPairStatus.d.ts +0 -98
- package/dist/esm/models/ForecasterStartRequest.d.ts +0 -58
- 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 -38
- package/dist/esm/models/PutForecasterCredentials403Response.js +0 -43
- package/dist/esm/models/RightsizingClusterListResponse.d.ts +0 -39
- package/dist/esm/models/RightsizingClusterListResponse.js +0 -48
- package/dist/esm/models/RightsizingCollectRequest.d.ts +0 -70
- package/dist/esm/models/RightsizingCollectRequest.js +0 -56
- package/dist/esm/models/RightsizingMetricStats.d.ts +0 -62
- package/dist/esm/models/RightsizingMetricStats.js +0 -63
- package/dist/esm/models/RightsizingReport.d.ts +0 -81
- package/dist/esm/models/RightsizingReport.js +0 -76
- package/dist/esm/models/RightsizingReportListResponse.d.ts +0 -39
- package/dist/esm/models/RightsizingReportListResponse.js +0 -48
- package/dist/esm/models/RightsizingReportSummary.d.ts +0 -74
- package/dist/esm/models/RightsizingReportSummary.js +0 -71
- package/dist/esm/models/RightsizingVMReport.d.ts +0 -53
- package/dist/esm/models/RightsizingVMReport.js +0 -57
- package/dist/esm/models/VMDevice.d.ts +0 -32
- package/dist/esm/models/VMDisk.d.ts +0 -68
- package/dist/esm/models/VMIssue.d.ts +0 -56
- package/dist/esm/models/VMNIC.d.ts +0 -56
- package/dist/esm/models/VmInspectionConcern.d.ts +0 -44
- package/dist/esm/models/VmInspectionResults.d.ts +0 -33
- package/dist/esm/models/VmInspectionResults.js +0 -42
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -61
- package/dist/esm/models/VmInspectionStatus.js +0 -61
- package/dist/models/CollectorStartRequest.d.ts +0 -56
- package/dist/models/CollectorStartRequest.js +0 -56
- package/dist/models/DatastorePair.d.ts +0 -50
- package/dist/models/ExportInventory400Response.d.ts +0 -32
- package/dist/models/ExportInventory400Response.js +0 -48
- package/dist/models/ExportInventory500Response.d.ts +0 -32
- package/dist/models/ExportInventory500Response.js +0 -48
- package/dist/models/ForecasterDatastoresRequest.d.ts +0 -33
- package/dist/models/ForecasterDatastoresRequest.js +0 -49
- package/dist/models/ForecasterPairStatus.d.ts +0 -98
- package/dist/models/ForecasterStartRequest.d.ts +0 -58
- 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 -38
- package/dist/models/PutForecasterCredentials403Response.js +0 -50
- package/dist/models/RightsizingClusterListResponse.d.ts +0 -39
- package/dist/models/RightsizingClusterListResponse.js +0 -55
- package/dist/models/RightsizingCollectRequest.d.ts +0 -70
- package/dist/models/RightsizingCollectRequest.js +0 -63
- package/dist/models/RightsizingMetricStats.d.ts +0 -62
- package/dist/models/RightsizingMetricStats.js +0 -70
- package/dist/models/RightsizingReport.d.ts +0 -81
- package/dist/models/RightsizingReport.js +0 -83
- package/dist/models/RightsizingReportListResponse.d.ts +0 -39
- package/dist/models/RightsizingReportListResponse.js +0 -55
- package/dist/models/RightsizingReportSummary.d.ts +0 -74
- package/dist/models/RightsizingReportSummary.js +0 -78
- package/dist/models/RightsizingVMReport.d.ts +0 -53
- package/dist/models/RightsizingVMReport.js +0 -64
- package/dist/models/VMDevice.d.ts +0 -32
- package/dist/models/VMDevice.js +0 -48
- package/dist/models/VMDisk.d.ts +0 -68
- package/dist/models/VMIssue.d.ts +0 -56
- package/dist/models/VMIssue.js +0 -70
- package/dist/models/VMNIC.d.ts +0 -56
- package/dist/models/VmInspectionConcern.d.ts +0 -44
- package/dist/models/VmInspectionResults.d.ts +0 -33
- package/dist/models/VmInspectionResults.js +0 -49
- package/dist/models/VmInspectionStatus.d.ts +0 -61
- package/dist/models/VmInspectionStatus.js +0 -69
- package/docs/CollectorStartRequest.md +0 -43
- package/docs/DefaultApi.md +0 -3358
- 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/docs/VmInspectionStatus.md +0 -40
- package/src/apis/DefaultApi.ts +0 -3820
- package/src/models/CollectorStartRequest.ts +0 -97
- package/src/models/ExportInventory400Response.ts +0 -65
- package/src/models/ExportInventory500Response.ts +0 -65
- package/src/models/ForecasterDatastoresRequest.ts +0 -73
- package/src/models/ForecasterStartRequest.ts +0 -113
- package/src/models/GetInventory200Response.ts +0 -76
- package/src/models/PutForecasterCredentials403Response.ts +0 -73
- package/src/models/RightsizingClusterListResponse.ts +0 -83
- package/src/models/RightsizingCollectRequest.ts +0 -123
- package/src/models/RightsizingMetricStats.ts +0 -111
- package/src/models/RightsizingReport.ts +0 -146
- package/src/models/RightsizingReportListResponse.ts +0 -83
- package/src/models/RightsizingReportSummary.ts +0 -129
- package/src/models/RightsizingVMReport.ts +0 -101
- package/src/models/VMDevice.ts +0 -65
- package/src/models/VMIssue.ts +0 -99
- package/src/models/VMNIC.ts +0 -97
- package/src/models/VmInspectionResults.ts +0 -73
- package/src/models/VmInspectionStatus.ts +0 -105
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type CollectorStatus } from '../models/CollectorStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
* CollectorApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CollectorApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface CollectorApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @memberof CollectorApiInterface
|
|
25
|
+
*/
|
|
26
|
+
getCollectorStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @summary Get collector status
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof CollectorApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getCollectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
35
|
+
/**
|
|
36
|
+
* Get collector status
|
|
37
|
+
*/
|
|
38
|
+
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
39
|
+
/**
|
|
40
|
+
* Creates request options for startCollector without sending the request
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof CollectorApiInterface
|
|
43
|
+
*/
|
|
44
|
+
startCollectorRequestOpts(): Promise<runtime.RequestOpts>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Start a collection
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
* @memberof CollectorApiInterface
|
|
51
|
+
*/
|
|
52
|
+
startCollectorRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
53
|
+
/**
|
|
54
|
+
* Start a collection
|
|
55
|
+
*/
|
|
56
|
+
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for stopCollector without sending the request
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
* @memberof CollectorApiInterface
|
|
61
|
+
*/
|
|
62
|
+
stopCollectorRequestOpts(): Promise<runtime.RequestOpts>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @summary Stop collector
|
|
66
|
+
* @param {*} [options] Override http request option.
|
|
67
|
+
* @throws {RequiredError}
|
|
68
|
+
* @memberof CollectorApiInterface
|
|
69
|
+
*/
|
|
70
|
+
stopCollectorRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
71
|
+
/**
|
|
72
|
+
* Stop collector
|
|
73
|
+
*/
|
|
74
|
+
stopCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
export declare class CollectorApi extends runtime.BaseAPI implements CollectorApiInterface {
|
|
80
|
+
/**
|
|
81
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
82
|
+
*/
|
|
83
|
+
getCollectorStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
84
|
+
/**
|
|
85
|
+
* Get collector status
|
|
86
|
+
*/
|
|
87
|
+
getCollectorStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
88
|
+
/**
|
|
89
|
+
* Get collector status
|
|
90
|
+
*/
|
|
91
|
+
getCollectorStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates request options for startCollector without sending the request
|
|
94
|
+
*/
|
|
95
|
+
startCollectorRequestOpts(): Promise<runtime.RequestOpts>;
|
|
96
|
+
/**
|
|
97
|
+
* Start a collection
|
|
98
|
+
*/
|
|
99
|
+
startCollectorRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
100
|
+
/**
|
|
101
|
+
* Start a collection
|
|
102
|
+
*/
|
|
103
|
+
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
104
|
+
/**
|
|
105
|
+
* Creates request options for stopCollector without sending the request
|
|
106
|
+
*/
|
|
107
|
+
stopCollectorRequestOpts(): Promise<runtime.RequestOpts>;
|
|
108
|
+
/**
|
|
109
|
+
* Stop collector
|
|
110
|
+
*/
|
|
111
|
+
stopCollectorRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
112
|
+
/**
|
|
113
|
+
* Stop collector
|
|
114
|
+
*/
|
|
115
|
+
stopCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
116
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.CollectorApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const CollectorStatus_js_1 = require("../models/CollectorStatus.js");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class CollectorApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for getCollectorStatus without sending the request
|
|
34
|
+
*/
|
|
35
|
+
getCollectorStatusRequestOpts() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/collector`;
|
|
40
|
+
return {
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get collector status
|
|
50
|
+
*/
|
|
51
|
+
getCollectorStatusRaw(initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const requestOptions = yield this.getCollectorStatusRequestOpts();
|
|
54
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get collector status
|
|
60
|
+
*/
|
|
61
|
+
getCollectorStatus(initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const response = yield this.getCollectorStatusRaw(initOverrides);
|
|
64
|
+
return yield response.value();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Creates request options for startCollector without sending the request
|
|
69
|
+
*/
|
|
70
|
+
startCollectorRequestOpts() {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const queryParameters = {};
|
|
73
|
+
const headerParameters = {};
|
|
74
|
+
let urlPath = `/collector`;
|
|
75
|
+
return {
|
|
76
|
+
path: urlPath,
|
|
77
|
+
method: 'POST',
|
|
78
|
+
headers: headerParameters,
|
|
79
|
+
query: queryParameters,
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Start a collection
|
|
85
|
+
*/
|
|
86
|
+
startCollectorRaw(initOverrides) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const requestOptions = yield this.startCollectorRequestOpts();
|
|
89
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
90
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Start a collection
|
|
95
|
+
*/
|
|
96
|
+
startCollector(initOverrides) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const response = yield this.startCollectorRaw(initOverrides);
|
|
99
|
+
return yield response.value();
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Creates request options for stopCollector without sending the request
|
|
104
|
+
*/
|
|
105
|
+
stopCollectorRequestOpts() {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const queryParameters = {};
|
|
108
|
+
const headerParameters = {};
|
|
109
|
+
let urlPath = `/collector`;
|
|
110
|
+
return {
|
|
111
|
+
path: urlPath,
|
|
112
|
+
method: 'DELETE',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
};
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Stop collector
|
|
120
|
+
*/
|
|
121
|
+
stopCollectorRaw(initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const requestOptions = yield this.stopCollectorRequestOpts();
|
|
124
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
125
|
+
return new runtime.VoidApiResponse(response);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Stop collector
|
|
130
|
+
*/
|
|
131
|
+
stopCollector(initOverrides) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
yield this.stopCollectorRaw(initOverrides);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.CollectorApi = CollectorApi;
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type CapabilityStatus } from '../models/CapabilityStatus.js';
|
|
14
|
+
import { type CredentialStatus } from '../models/CredentialStatus.js';
|
|
15
|
+
import { type VcenterCredentials } from '../models/VcenterCredentials.js';
|
|
16
|
+
export interface PutCredentialsRequest {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
vcenterCredentials: VcenterCredentials;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* CredentialsApi - interface
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CredentialsApiInterface
|
|
27
|
+
*/
|
|
28
|
+
export interface CredentialsApiInterface {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for deleteCredentials without sending the request
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof CredentialsApiInterface
|
|
33
|
+
*/
|
|
34
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
35
|
+
/**
|
|
36
|
+
* Removes all stored vCenter credentials from the database.
|
|
37
|
+
* @summary Delete stored credentials
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof CredentialsApiInterface
|
|
41
|
+
*/
|
|
42
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
43
|
+
/**
|
|
44
|
+
* Removes all stored vCenter credentials from the database.
|
|
45
|
+
* Delete stored credentials
|
|
46
|
+
*/
|
|
47
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @memberof CredentialsApiInterface
|
|
52
|
+
*/
|
|
53
|
+
getCredentialCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
54
|
+
/**
|
|
55
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
56
|
+
* @summary Check vSphere operation capabilities
|
|
57
|
+
* @param {*} [options] Override http request option.
|
|
58
|
+
* @throws {RequiredError}
|
|
59
|
+
* @memberof CredentialsApiInterface
|
|
60
|
+
*/
|
|
61
|
+
getCredentialCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityStatus>>;
|
|
62
|
+
/**
|
|
63
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
64
|
+
* Check vSphere operation capabilities
|
|
65
|
+
*/
|
|
66
|
+
getCredentialCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityStatus>;
|
|
67
|
+
/**
|
|
68
|
+
* Creates request options for getCredentials without sending the request
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
* @memberof CredentialsApiInterface
|
|
71
|
+
*/
|
|
72
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
73
|
+
/**
|
|
74
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
75
|
+
* @summary Get stored credential status
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
* @memberof CredentialsApiInterface
|
|
79
|
+
*/
|
|
80
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
81
|
+
/**
|
|
82
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
83
|
+
* Get stored credential status
|
|
84
|
+
*/
|
|
85
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
86
|
+
/**
|
|
87
|
+
* Creates request options for putCredentials without sending the request
|
|
88
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
* @memberof CredentialsApiInterface
|
|
91
|
+
*/
|
|
92
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
93
|
+
/**
|
|
94
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
95
|
+
* @summary Store vCenter credentials
|
|
96
|
+
* @param {VcenterCredentials} vcenterCredentials
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
* @memberof CredentialsApiInterface
|
|
100
|
+
*/
|
|
101
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
102
|
+
/**
|
|
103
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
104
|
+
* Store vCenter credentials
|
|
105
|
+
*/
|
|
106
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
export declare class CredentialsApi extends runtime.BaseAPI implements CredentialsApiInterface {
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for deleteCredentials without sending the request
|
|
114
|
+
*/
|
|
115
|
+
deleteCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
116
|
+
/**
|
|
117
|
+
* Removes all stored vCenter credentials from the database.
|
|
118
|
+
* Delete stored credentials
|
|
119
|
+
*/
|
|
120
|
+
deleteCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
121
|
+
/**
|
|
122
|
+
* Removes all stored vCenter credentials from the database.
|
|
123
|
+
* Delete stored credentials
|
|
124
|
+
*/
|
|
125
|
+
deleteCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
128
|
+
*/
|
|
129
|
+
getCredentialCapabilitiesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
130
|
+
/**
|
|
131
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
132
|
+
* Check vSphere operation capabilities
|
|
133
|
+
*/
|
|
134
|
+
getCredentialCapabilitiesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CapabilityStatus>>;
|
|
135
|
+
/**
|
|
136
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
137
|
+
* Check vSphere operation capabilities
|
|
138
|
+
*/
|
|
139
|
+
getCredentialCapabilities(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CapabilityStatus>;
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for getCredentials without sending the request
|
|
142
|
+
*/
|
|
143
|
+
getCredentialsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
144
|
+
/**
|
|
145
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
146
|
+
* Get stored credential status
|
|
147
|
+
*/
|
|
148
|
+
getCredentialsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
149
|
+
/**
|
|
150
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
151
|
+
* Get stored credential status
|
|
152
|
+
*/
|
|
153
|
+
getCredentials(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
154
|
+
/**
|
|
155
|
+
* Creates request options for putCredentials without sending the request
|
|
156
|
+
*/
|
|
157
|
+
putCredentialsRequestOpts(requestParameters: PutCredentialsRequest): Promise<runtime.RequestOpts>;
|
|
158
|
+
/**
|
|
159
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
160
|
+
* Store vCenter credentials
|
|
161
|
+
*/
|
|
162
|
+
putCredentialsRaw(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CredentialStatus>>;
|
|
163
|
+
/**
|
|
164
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
165
|
+
* Store vCenter credentials
|
|
166
|
+
*/
|
|
167
|
+
putCredentials(requestParameters: PutCredentialsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CredentialStatus>;
|
|
168
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.CredentialsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const CapabilityStatus_js_1 = require("../models/CapabilityStatus.js");
|
|
28
|
+
const CredentialStatus_js_1 = require("../models/CredentialStatus.js");
|
|
29
|
+
const VcenterCredentials_js_1 = require("../models/VcenterCredentials.js");
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
class CredentialsApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for deleteCredentials without sending the request
|
|
36
|
+
*/
|
|
37
|
+
deleteCredentialsRequestOpts() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
const queryParameters = {};
|
|
40
|
+
const headerParameters = {};
|
|
41
|
+
let urlPath = `/credentials`;
|
|
42
|
+
return {
|
|
43
|
+
path: urlPath,
|
|
44
|
+
method: 'DELETE',
|
|
45
|
+
headers: headerParameters,
|
|
46
|
+
query: queryParameters,
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Removes all stored vCenter credentials from the database.
|
|
52
|
+
* Delete stored credentials
|
|
53
|
+
*/
|
|
54
|
+
deleteCredentialsRaw(initOverrides) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const requestOptions = yield this.deleteCredentialsRequestOpts();
|
|
57
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
58
|
+
return new runtime.VoidApiResponse(response);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Removes all stored vCenter credentials from the database.
|
|
63
|
+
* Delete stored credentials
|
|
64
|
+
*/
|
|
65
|
+
deleteCredentials(initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this.deleteCredentialsRaw(initOverrides);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for getCredentialCapabilities without sending the request
|
|
72
|
+
*/
|
|
73
|
+
getCredentialCapabilitiesRequestOpts() {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
const queryParameters = {};
|
|
76
|
+
const headerParameters = {};
|
|
77
|
+
let urlPath = `/credentials/capabilities`;
|
|
78
|
+
return {
|
|
79
|
+
path: urlPath,
|
|
80
|
+
method: 'GET',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
88
|
+
* Check vSphere operation capabilities
|
|
89
|
+
*/
|
|
90
|
+
getCredentialCapabilitiesRaw(initOverrides) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const requestOptions = yield this.getCredentialCapabilitiesRequestOpts();
|
|
93
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CapabilityStatus_js_1.CapabilityStatusFromJSON)(jsonValue));
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Checks vSphere privileges for all operations (collector, inspector, forecaster) using stored credentials. Single live vSphere check, no caching.
|
|
99
|
+
* Check vSphere operation capabilities
|
|
100
|
+
*/
|
|
101
|
+
getCredentialCapabilities(initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const response = yield this.getCredentialCapabilitiesRaw(initOverrides);
|
|
104
|
+
return yield response.value();
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Creates request options for getCredentials without sending the request
|
|
109
|
+
*/
|
|
110
|
+
getCredentialsRequestOpts() {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const queryParameters = {};
|
|
113
|
+
const headerParameters = {};
|
|
114
|
+
let urlPath = `/credentials`;
|
|
115
|
+
return {
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
125
|
+
* Get stored credential status
|
|
126
|
+
*/
|
|
127
|
+
getCredentialsRaw(initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
const requestOptions = yield this.getCredentialsRequestOpts();
|
|
130
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
131
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Returns stored credential metadata (URL only). Never exposes username or password. This endpoint does not revalidate credentials against vSphere.
|
|
136
|
+
* Get stored credential status
|
|
137
|
+
*/
|
|
138
|
+
getCredentials(initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const response = yield this.getCredentialsRaw(initOverrides);
|
|
141
|
+
return yield response.value();
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Creates request options for putCredentials without sending the request
|
|
146
|
+
*/
|
|
147
|
+
putCredentialsRequestOpts(requestParameters) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
150
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putCredentials().');
|
|
151
|
+
}
|
|
152
|
+
const queryParameters = {};
|
|
153
|
+
const headerParameters = {};
|
|
154
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
155
|
+
let urlPath = `/credentials`;
|
|
156
|
+
return {
|
|
157
|
+
path: urlPath,
|
|
158
|
+
method: 'PUT',
|
|
159
|
+
headers: headerParameters,
|
|
160
|
+
query: queryParameters,
|
|
161
|
+
body: (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
167
|
+
* Store vCenter credentials
|
|
168
|
+
*/
|
|
169
|
+
putCredentialsRaw(requestParameters, initOverrides) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const requestOptions = yield this.putCredentialsRequestOpts(requestParameters);
|
|
172
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
173
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CredentialStatus_js_1.CredentialStatusFromJSON)(jsonValue));
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Validates credentials against vSphere, encrypts with disk-based key, and stores in the local database as the active credential set. A subsequent PUT overwrites the previously stored credentials.
|
|
178
|
+
* Store vCenter credentials
|
|
179
|
+
*/
|
|
180
|
+
putCredentials(requestParameters, initOverrides) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
const response = yield this.putCredentialsRaw(requestParameters, initOverrides);
|
|
183
|
+
return yield response.value();
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
exports.CredentialsApi = CredentialsApi;
|