@openshift-migration-advisor/planner-sdk 0.17.0 → 0.18.0-ca1dcff279a4
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 +26 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +18 -3
- package/dist/apis/AccountApi.d.ts +48 -0
- package/dist/apis/AccountApi.js +1 -1
- package/dist/apis/AssessmentApi.d.ts +135 -0
- package/dist/apis/AssessmentApi.js +84 -0
- package/dist/apis/ImageApi.d.ts +6 -0
- package/dist/apis/JobApi.d.ts +12 -0
- package/dist/apis/PartnerApi.d.ts +24 -0
- package/dist/apis/SizingApi.d.ts +3 -0
- package/dist/apis/SourceApi.d.ts +21 -0
- package/dist/esm/apis/AccountApi.d.ts +48 -0
- package/dist/esm/apis/AccountApi.js +1 -1
- package/dist/esm/apis/AssessmentApi.d.ts +135 -0
- package/dist/esm/apis/AssessmentApi.js +84 -0
- package/dist/esm/apis/ImageApi.d.ts +6 -0
- package/dist/esm/apis/JobApi.d.ts +12 -0
- package/dist/esm/apis/PartnerApi.d.ts +24 -0
- package/dist/esm/apis/SizingApi.d.ts +3 -0
- package/dist/esm/apis/SourceApi.d.ts +21 -0
- package/dist/esm/models/ActiveEnvironmentsInput.d.ts +41 -0
- package/dist/esm/models/ActiveEnvironmentsInput.js +51 -0
- package/dist/esm/models/Agent.d.ts +0 -14
- package/dist/esm/models/Agent.js +6 -5
- package/dist/esm/models/AgentProxy.d.ts +0 -6
- package/dist/esm/models/AriaAutomationInput.d.ts +51 -0
- package/dist/esm/models/AriaAutomationInput.js +61 -0
- package/dist/esm/models/AriaOpsInput.d.ts +49 -0
- package/dist/esm/models/AriaOpsInput.js +59 -0
- package/dist/esm/models/AriaSecureInput.d.ts +41 -0
- package/dist/esm/models/AriaSecureInput.js +51 -0
- package/dist/esm/models/Assessment.d.ts +0 -20
- package/dist/esm/models/Assessment.js +5 -4
- package/dist/esm/models/AssessmentForm.d.ts +0 -8
- package/dist/esm/models/AssessmentSharing.d.ts +0 -6
- package/dist/esm/models/AssessmentSubsetInventory.d.ts +0 -12
- package/dist/esm/models/AssessmentSubsetInventory.js +3 -2
- package/dist/esm/models/AssessmentUpdate.d.ts +0 -2
- package/dist/esm/models/ClusterFeatures.d.ts +4 -6
- package/dist/esm/models/ClusterFeatures.js +3 -1
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +0 -24
- package/dist/esm/models/ClusterRequirementsRequest.js +1 -1
- package/dist/esm/models/ClusterRequirementsResponse.d.ts +0 -12
- package/dist/esm/models/ClusterRequirementsStoredInput.d.ts +0 -24
- package/dist/esm/models/ClusterRequirementsStoredInput.js +3 -3
- package/dist/esm/models/ClusterSizing.d.ts +0 -18
- package/dist/esm/models/ClusterUtilization.d.ts +0 -14
- package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +0 -6
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +0 -6
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +0 -4
- package/dist/esm/models/CpuOverCommitRatio.js +1 -1
- package/dist/esm/models/Customer.d.ts +0 -12
- package/dist/esm/models/CustomerDetailsInput.d.ts +34 -0
- package/dist/esm/models/CustomerDetailsInput.js +43 -0
- package/dist/esm/models/Datastore.d.ts +5 -18
- package/dist/esm/models/Datastore.js +3 -0
- package/dist/esm/models/DeployedEnvironmentInput.d.ts +40 -0
- package/dist/esm/models/DeployedEnvironmentInput.js +50 -0
- package/dist/esm/models/DiskSizeTierSummary.d.ts +0 -4
- package/dist/esm/models/DiskTypeSummary.d.ts +0 -4
- package/dist/esm/models/EnhancementData.d.ts +76 -0
- package/dist/esm/models/EnhancementData.js +69 -0
- package/dist/esm/models/EstimationContext.d.ts +0 -4
- package/dist/esm/models/EstimationDetail.d.ts +0 -8
- package/dist/esm/models/Group.d.ts +0 -16
- package/dist/esm/models/Group.js +6 -5
- package/dist/esm/models/GroupCreate.d.ts +0 -10
- package/dist/esm/models/GroupCreate.js +1 -1
- package/dist/esm/models/GroupUpdate.d.ts +0 -8
- package/dist/esm/models/Histogram.d.ts +0 -6
- package/dist/esm/models/Host.d.ts +8 -12
- package/dist/esm/models/Host.js +4 -0
- package/dist/esm/models/Identity.d.ts +0 -8
- package/dist/esm/models/Identity.js +1 -1
- package/dist/esm/models/Info.d.ts +0 -8
- package/dist/esm/models/Infra.d.ts +0 -24
- package/dist/esm/models/Inventory.d.ts +4 -8
- package/dist/esm/models/Inventory.js +3 -1
- package/dist/esm/models/InventoryData.d.ts +0 -10
- package/dist/esm/models/InventoryTotals.d.ts +0 -6
- package/dist/esm/models/Ipv4Config.d.ts +0 -8
- package/dist/esm/models/IssuesBreakdown.d.ts +46 -0
- package/dist/esm/models/IssuesBreakdown.js +59 -0
- package/dist/esm/models/Job.d.ts +0 -8
- package/dist/esm/models/JobStatus.js +1 -1
- package/dist/esm/models/Label.d.ts +0 -4
- package/dist/esm/models/Member.d.ts +0 -10
- package/dist/esm/models/Member.js +5 -4
- package/dist/esm/models/MemberCreate.d.ts +0 -4
- package/dist/esm/models/MemberUpdate.d.ts +0 -2
- package/dist/esm/models/MemoryOverCommitRatio.js +1 -1
- package/dist/esm/models/MigrationComplexityRequest.d.ts +0 -2
- package/dist/esm/models/MigrationComplexityResponse.d.ts +0 -10
- package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +0 -6
- package/dist/esm/models/MigrationEstimationRequest.d.ts +0 -6
- package/dist/esm/models/MigrationEstimationResponse.d.ts +0 -4
- package/dist/esm/models/MigrationIssue.d.ts +0 -8
- package/dist/esm/models/ModelError.d.ts +0 -2
- package/dist/esm/models/Network.d.ts +0 -10
- package/dist/esm/models/Network.js +1 -1
- package/dist/esm/models/NsxInput.d.ts +46 -0
- package/dist/esm/models/NsxInput.js +56 -0
- package/dist/esm/models/OptimizationStatus.d.ts +0 -4
- package/dist/esm/models/OptimizationStatus.js +1 -1
- package/dist/esm/models/OsDiskEstimationEntry.d.ts +0 -8
- package/dist/esm/models/OsInfo.d.ts +14 -6
- package/dist/esm/models/OsInfo.js +11 -0
- package/dist/esm/models/PartnerRequest.d.ts +0 -26
- package/dist/esm/models/PartnerRequest.js +7 -6
- package/dist/esm/models/PartnerRequestCreate.d.ts +0 -10
- package/dist/esm/models/PartnerRequestStatus.js +1 -1
- package/dist/esm/models/PartnerRequestUpdate.d.ts +0 -4
- package/dist/esm/models/PartnerSummary.d.ts +0 -8
- package/dist/esm/models/PresignedUrl.d.ts +0 -4
- package/dist/esm/models/PresignedUrl.js +3 -2
- package/dist/esm/models/Savings.d.ts +0 -6
- package/dist/esm/models/SchemaEstimationResult.d.ts +0 -6
- package/dist/esm/models/SharingSubject.d.ts +0 -6
- package/dist/esm/models/SizingOverCommitRatio.d.ts +0 -4
- package/dist/esm/models/SizingResourceConsumption.d.ts +0 -8
- package/dist/esm/models/SizingResourceLimits.d.ts +0 -4
- package/dist/esm/models/Snapshot.d.ts +0 -6
- package/dist/esm/models/Snapshot.js +3 -2
- package/dist/esm/models/Source.d.ts +0 -24
- package/dist/esm/models/Source.js +6 -5
- package/dist/esm/models/SourceCreate.d.ts +0 -18
- package/dist/esm/models/SourceCreate.js +1 -1
- package/dist/esm/models/SourceInfra.d.ts +0 -6
- package/dist/esm/models/SourceUpdate.d.ts +0 -18
- package/dist/esm/models/SourceUpdate.js +1 -1
- package/dist/esm/models/StandaloneClusterRequirementsRequest.d.ts +0 -28
- package/dist/esm/models/StandaloneClusterRequirementsRequest.js +1 -1
- package/dist/esm/models/StandaloneClusterRequirementsResponse.d.ts +0 -4
- package/dist/esm/models/Status.d.ts +0 -6
- package/dist/esm/models/StorageIoConfiguration.d.ts +50 -0
- package/dist/esm/models/StorageIoConfiguration.js +54 -0
- package/dist/esm/models/UpdateInventory.d.ts +0 -4
- package/dist/esm/models/VCenter.d.ts +0 -2
- package/dist/esm/models/VMResourceBreakdown.d.ts +0 -10
- package/dist/esm/models/VMs.d.ts +5 -44
- package/dist/esm/models/VMs.js +3 -0
- package/dist/esm/models/VMwareSubscriptionInput.d.ts +42 -0
- package/dist/esm/models/VMwareSubscriptionInput.js +52 -0
- package/dist/esm/models/VMwareVersionCountsInput.d.ts +42 -0
- package/dist/esm/models/VMwareVersionCountsInput.js +47 -0
- package/dist/esm/models/VmNetwork.d.ts +0 -2
- package/dist/esm/models/VsphereCoreInput.d.ts +38 -0
- package/dist/esm/models/VsphereCoreInput.js +45 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/esm/runtime.d.ts +11 -0
- package/dist/esm/runtime.js +47 -1
- package/dist/models/ActiveEnvironmentsInput.d.ts +41 -0
- package/dist/models/ActiveEnvironmentsInput.js +59 -0
- package/dist/models/Agent.d.ts +0 -14
- package/dist/models/Agent.js +6 -5
- package/dist/models/AgentProxy.d.ts +0 -6
- package/dist/models/AriaAutomationInput.d.ts +51 -0
- package/dist/models/AriaAutomationInput.js +69 -0
- package/dist/models/AriaOpsInput.d.ts +49 -0
- package/dist/models/AriaOpsInput.js +67 -0
- package/dist/models/AriaSecureInput.d.ts +41 -0
- package/dist/models/AriaSecureInput.js +59 -0
- package/dist/models/Assessment.d.ts +0 -20
- package/dist/models/Assessment.js +5 -4
- package/dist/models/AssessmentForm.d.ts +0 -8
- package/dist/models/AssessmentSharing.d.ts +0 -6
- package/dist/models/AssessmentSubsetInventory.d.ts +0 -12
- package/dist/models/AssessmentSubsetInventory.js +3 -2
- package/dist/models/AssessmentUpdate.d.ts +0 -2
- package/dist/models/ClusterFeatures.d.ts +4 -6
- package/dist/models/ClusterFeatures.js +3 -1
- package/dist/models/ClusterRequirementsRequest.d.ts +0 -24
- package/dist/models/ClusterRequirementsRequest.js +1 -1
- package/dist/models/ClusterRequirementsResponse.d.ts +0 -12
- package/dist/models/ClusterRequirementsStoredInput.d.ts +0 -24
- package/dist/models/ClusterRequirementsStoredInput.js +3 -3
- package/dist/models/ClusterSizing.d.ts +0 -18
- package/dist/models/ClusterUtilization.d.ts +0 -14
- package/dist/models/ComplexityDiskScoreEntry.d.ts +0 -6
- package/dist/models/ComplexityOSNameEntry.d.ts +0 -6
- package/dist/models/ComplexityOSScoreEntry.d.ts +0 -4
- package/dist/models/CpuOverCommitRatio.js +1 -1
- package/dist/models/Customer.d.ts +0 -12
- package/dist/models/CustomerDetailsInput.d.ts +34 -0
- package/dist/models/CustomerDetailsInput.js +50 -0
- package/dist/models/Datastore.d.ts +5 -18
- package/dist/models/Datastore.js +3 -0
- package/dist/models/DeployedEnvironmentInput.d.ts +40 -0
- package/dist/models/DeployedEnvironmentInput.js +58 -0
- package/dist/models/DiskSizeTierSummary.d.ts +0 -4
- package/dist/models/DiskTypeSummary.d.ts +0 -4
- package/dist/models/EnhancementData.d.ts +76 -0
- package/dist/models/EnhancementData.js +76 -0
- package/dist/models/EstimationContext.d.ts +0 -4
- package/dist/models/EstimationDetail.d.ts +0 -8
- package/dist/models/Group.d.ts +0 -16
- package/dist/models/Group.js +6 -5
- package/dist/models/GroupCreate.d.ts +0 -10
- package/dist/models/GroupCreate.js +1 -1
- package/dist/models/GroupUpdate.d.ts +0 -8
- package/dist/models/Histogram.d.ts +0 -6
- package/dist/models/Host.d.ts +8 -12
- package/dist/models/Host.js +4 -0
- package/dist/models/Identity.d.ts +0 -8
- package/dist/models/Identity.js +1 -1
- package/dist/models/Info.d.ts +0 -8
- package/dist/models/Infra.d.ts +0 -24
- package/dist/models/Inventory.d.ts +4 -8
- package/dist/models/Inventory.js +2 -0
- package/dist/models/InventoryData.d.ts +0 -10
- package/dist/models/InventoryTotals.d.ts +0 -6
- package/dist/models/Ipv4Config.d.ts +0 -8
- package/dist/models/IssuesBreakdown.d.ts +46 -0
- package/dist/models/IssuesBreakdown.js +66 -0
- package/dist/models/Job.d.ts +0 -8
- package/dist/models/JobStatus.js +1 -1
- package/dist/models/Label.d.ts +0 -4
- package/dist/models/Member.d.ts +0 -10
- package/dist/models/Member.js +5 -4
- package/dist/models/MemberCreate.d.ts +0 -4
- package/dist/models/MemberUpdate.d.ts +0 -2
- package/dist/models/MemoryOverCommitRatio.js +1 -1
- package/dist/models/MigrationComplexityRequest.d.ts +0 -2
- package/dist/models/MigrationComplexityResponse.d.ts +0 -10
- package/dist/models/MigrationEstimationByComplexityResponse.d.ts +0 -6
- package/dist/models/MigrationEstimationRequest.d.ts +0 -6
- package/dist/models/MigrationEstimationResponse.d.ts +0 -4
- package/dist/models/MigrationIssue.d.ts +0 -8
- package/dist/models/ModelError.d.ts +0 -2
- package/dist/models/Network.d.ts +0 -10
- package/dist/models/Network.js +1 -1
- package/dist/models/NsxInput.d.ts +46 -0
- package/dist/models/NsxInput.js +64 -0
- package/dist/models/OptimizationStatus.d.ts +0 -4
- package/dist/models/OptimizationStatus.js +1 -1
- package/dist/models/OsDiskEstimationEntry.d.ts +0 -8
- package/dist/models/OsInfo.d.ts +14 -6
- package/dist/models/OsInfo.js +12 -0
- package/dist/models/PartnerRequest.d.ts +0 -26
- package/dist/models/PartnerRequest.js +7 -6
- package/dist/models/PartnerRequestCreate.d.ts +0 -10
- package/dist/models/PartnerRequestStatus.js +1 -1
- package/dist/models/PartnerRequestUpdate.d.ts +0 -4
- package/dist/models/PartnerSummary.d.ts +0 -8
- package/dist/models/PresignedUrl.d.ts +0 -4
- package/dist/models/PresignedUrl.js +3 -2
- package/dist/models/Savings.d.ts +0 -6
- package/dist/models/SchemaEstimationResult.d.ts +0 -6
- package/dist/models/SharingSubject.d.ts +0 -6
- package/dist/models/SizingOverCommitRatio.d.ts +0 -4
- package/dist/models/SizingResourceConsumption.d.ts +0 -8
- package/dist/models/SizingResourceLimits.d.ts +0 -4
- package/dist/models/Snapshot.d.ts +0 -6
- package/dist/models/Snapshot.js +3 -2
- package/dist/models/Source.d.ts +0 -24
- package/dist/models/Source.js +6 -5
- package/dist/models/SourceCreate.d.ts +0 -18
- package/dist/models/SourceCreate.js +1 -1
- package/dist/models/SourceInfra.d.ts +0 -6
- package/dist/models/SourceUpdate.d.ts +0 -18
- package/dist/models/SourceUpdate.js +1 -1
- package/dist/models/StandaloneClusterRequirementsRequest.d.ts +0 -28
- package/dist/models/StandaloneClusterRequirementsRequest.js +1 -1
- package/dist/models/StandaloneClusterRequirementsResponse.d.ts +0 -4
- package/dist/models/Status.d.ts +0 -6
- package/dist/models/StorageIoConfiguration.d.ts +50 -0
- package/dist/models/StorageIoConfiguration.js +62 -0
- package/dist/models/UpdateInventory.d.ts +0 -4
- package/dist/models/VCenter.d.ts +0 -2
- package/dist/models/VMResourceBreakdown.d.ts +0 -10
- package/dist/models/VMs.d.ts +5 -44
- package/dist/models/VMs.js +3 -0
- package/dist/models/VMwareSubscriptionInput.d.ts +42 -0
- package/dist/models/VMwareSubscriptionInput.js +60 -0
- package/dist/models/VMwareVersionCountsInput.d.ts +42 -0
- package/dist/models/VMwareVersionCountsInput.js +54 -0
- package/dist/models/VmNetwork.d.ts +0 -2
- package/dist/models/VsphereCoreInput.d.ts +38 -0
- package/dist/models/VsphereCoreInput.js +52 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/runtime.d.ts +11 -0
- package/dist/runtime.js +51 -1
- package/docs/ActiveEnvironmentsInput.md +34 -0
- package/docs/AriaAutomationInput.md +34 -0
- package/docs/AriaOpsInput.md +34 -0
- package/docs/AriaSecureInput.md +34 -0
- package/docs/AssessmentApi.md +148 -0
- package/docs/ClusterFeatures.md +2 -0
- package/docs/CustomerDetailsInput.md +36 -0
- package/docs/Datastore.md +2 -0
- package/docs/DeployedEnvironmentInput.md +34 -0
- package/docs/EnhancementData.md +53 -0
- package/docs/Host.md +4 -0
- package/docs/Inventory.md +2 -0
- package/docs/IssuesBreakdown.md +42 -0
- package/docs/NsxInput.md +34 -0
- package/docs/OsInfo.md +2 -0
- package/docs/StorageIoConfiguration.md +40 -0
- package/docs/VMs.md +2 -0
- package/docs/VMwareSubscriptionInput.md +34 -0
- package/docs/VMwareVersionCountsInput.md +40 -0
- package/docs/VsphereCoreInput.md +38 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +49 -1
- package/src/apis/AssessmentApi.ts +223 -0
- package/src/apis/ImageApi.ts +6 -0
- package/src/apis/JobApi.ts +12 -0
- package/src/apis/PartnerApi.ts +24 -0
- package/src/apis/SizingApi.ts +3 -0
- package/src/apis/SourceApi.ts +21 -0
- package/src/models/ActiveEnvironmentsInput.ts +77 -0
- package/src/models/Agent.ts +6 -20
- package/src/models/AgentProxy.ts +0 -6
- package/src/models/AriaAutomationInput.ts +87 -0
- package/src/models/AriaOpsInput.ts +85 -0
- package/src/models/AriaSecureInput.ts +77 -0
- package/src/models/Assessment.ts +5 -25
- package/src/models/AssessmentForm.ts +0 -8
- package/src/models/AssessmentSharing.ts +0 -6
- package/src/models/AssessmentSubsetInventory.ts +3 -15
- package/src/models/AssessmentUpdate.ts +0 -2
- package/src/models/ClusterFeatures.ts +7 -7
- package/src/models/ClusterRequirementsRequest.ts +1 -25
- package/src/models/ClusterRequirementsResponse.ts +0 -12
- package/src/models/ClusterRequirementsStoredInput.ts +3 -27
- package/src/models/ClusterSizing.ts +0 -18
- package/src/models/ClusterUtilization.ts +0 -14
- package/src/models/ComplexityDiskScoreEntry.ts +0 -6
- package/src/models/ComplexityOSNameEntry.ts +0 -6
- package/src/models/ComplexityOSScoreEntry.ts +0 -4
- package/src/models/CpuOverCommitRatio.ts +1 -1
- package/src/models/Customer.ts +0 -12
- package/src/models/CustomerDetailsInput.ts +69 -0
- package/src/models/Datastore.ts +14 -18
- package/src/models/DeployedEnvironmentInput.ts +76 -0
- package/src/models/DiskSizeTierSummary.ts +0 -4
- package/src/models/DiskTypeSummary.ts +0 -4
- package/src/models/EnhancementData.ts +188 -0
- package/src/models/EstimationContext.ts +0 -4
- package/src/models/EstimationDetail.ts +0 -8
- package/src/models/Group.ts +6 -22
- package/src/models/GroupCreate.ts +1 -11
- package/src/models/GroupUpdate.ts +0 -8
- package/src/models/Histogram.ts +0 -6
- package/src/models/Host.ts +12 -12
- package/src/models/Identity.ts +1 -9
- package/src/models/Info.ts +0 -8
- package/src/models/Infra.ts +0 -24
- package/src/models/Inventory.ts +7 -9
- package/src/models/InventoryData.ts +0 -10
- package/src/models/InventoryTotals.ts +0 -6
- package/src/models/Ipv4Config.ts +0 -8
- package/src/models/IssuesBreakdown.ts +92 -0
- package/src/models/Job.ts +0 -8
- package/src/models/JobStatus.ts +1 -1
- package/src/models/Label.ts +0 -4
- package/src/models/Member.ts +5 -15
- package/src/models/MemberCreate.ts +0 -4
- package/src/models/MemberUpdate.ts +0 -2
- package/src/models/MemoryOverCommitRatio.ts +1 -1
- package/src/models/MigrationComplexityRequest.ts +0 -2
- package/src/models/MigrationComplexityResponse.ts +0 -10
- package/src/models/MigrationEstimationByComplexityResponse.ts +0 -6
- package/src/models/MigrationEstimationRequest.ts +0 -6
- package/src/models/MigrationEstimationResponse.ts +0 -4
- package/src/models/MigrationIssue.ts +0 -8
- package/src/models/ModelError.ts +0 -2
- package/src/models/Network.ts +1 -11
- package/src/models/NsxInput.ts +82 -0
- package/src/models/OptimizationStatus.ts +1 -5
- package/src/models/OsDiskEstimationEntry.ts +0 -8
- package/src/models/OsInfo.ts +19 -6
- package/src/models/PartnerRequest.ts +7 -33
- package/src/models/PartnerRequestCreate.ts +0 -10
- package/src/models/PartnerRequestStatus.ts +1 -1
- package/src/models/PartnerRequestUpdate.ts +0 -4
- package/src/models/PartnerSummary.ts +0 -8
- package/src/models/PresignedUrl.ts +3 -7
- package/src/models/Savings.ts +0 -6
- package/src/models/SchemaEstimationResult.ts +0 -6
- package/src/models/SharingSubject.ts +0 -6
- package/src/models/SizingOverCommitRatio.ts +0 -4
- package/src/models/SizingResourceConsumption.ts +0 -8
- package/src/models/SizingResourceLimits.ts +0 -4
- package/src/models/Snapshot.ts +3 -9
- package/src/models/Source.ts +6 -30
- package/src/models/SourceCreate.ts +1 -19
- package/src/models/SourceInfra.ts +0 -6
- package/src/models/SourceUpdate.ts +1 -19
- package/src/models/StandaloneClusterRequirementsRequest.ts +1 -29
- package/src/models/StandaloneClusterRequirementsResponse.ts +0 -4
- package/src/models/Status.ts +0 -6
- package/src/models/StorageIoConfiguration.ts +92 -0
- package/src/models/UpdateInventory.ts +0 -4
- package/src/models/VCenter.ts +0 -2
- package/src/models/VMResourceBreakdown.ts +0 -10
- package/src/models/VMs.ts +13 -44
- package/src/models/VMwareSubscriptionInput.ts +78 -0
- package/src/models/VMwareVersionCountsInput.ts +81 -0
- package/src/models/VmNetwork.ts +0 -2
- package/src/models/VsphereCoreInput.ts +75 -0
- package/src/models/index.ts +13 -0
- package/src/runtime.ts +52 -1
package/src/models/VMs.ts
CHANGED
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
OsInfoToJSON,
|
|
28
28
|
OsInfoToJSONTyped,
|
|
29
29
|
} from './OsInfo.js';
|
|
30
|
+
import type { IssuesBreakdown } from './IssuesBreakdown.js';
|
|
31
|
+
import {
|
|
32
|
+
IssuesBreakdownFromJSON,
|
|
33
|
+
IssuesBreakdownFromJSONTyped,
|
|
34
|
+
IssuesBreakdownToJSON,
|
|
35
|
+
IssuesBreakdownToJSONTyped,
|
|
36
|
+
} from './IssuesBreakdown.js';
|
|
30
37
|
import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
|
|
31
38
|
import {
|
|
32
39
|
DiskSizeTierSummaryFromJSON,
|
|
@@ -57,139 +64,99 @@ import {
|
|
|
57
64
|
export interface VMs {
|
|
58
65
|
/**
|
|
59
66
|
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof VMs
|
|
62
67
|
*/
|
|
63
68
|
total: number;
|
|
64
69
|
/**
|
|
65
70
|
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof VMs
|
|
68
71
|
*/
|
|
69
72
|
totalMigratable: number;
|
|
70
73
|
/**
|
|
71
74
|
*
|
|
72
|
-
* @type {number}
|
|
73
|
-
* @memberof VMs
|
|
74
75
|
*/
|
|
75
76
|
totalMigratableWithWarnings?: number;
|
|
76
77
|
/**
|
|
77
78
|
* Number of VMs that have at least one shared disk
|
|
78
|
-
* @type {number}
|
|
79
|
-
* @memberof VMs
|
|
80
79
|
*/
|
|
81
80
|
totalWithSharedDisks?: number;
|
|
82
81
|
/**
|
|
83
82
|
*
|
|
84
|
-
* @type {VMResourceBreakdown}
|
|
85
|
-
* @memberof VMs
|
|
86
83
|
*/
|
|
87
84
|
cpuCores: VMResourceBreakdown;
|
|
88
85
|
/**
|
|
89
86
|
*
|
|
90
|
-
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
91
|
-
* @memberof VMs
|
|
92
87
|
*/
|
|
93
88
|
diskSizeTier?: { [key: string]: DiskSizeTierSummary; };
|
|
94
89
|
/**
|
|
95
90
|
* Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
|
|
96
91
|
*
|
|
97
|
-
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
98
|
-
* @memberof VMs
|
|
99
92
|
*/
|
|
100
93
|
diskComplexityTier?: { [key: string]: DiskSizeTierSummary; };
|
|
101
94
|
/**
|
|
102
95
|
*
|
|
103
|
-
* @type {{ [key: string]: DiskTypeSummary; }}
|
|
104
|
-
* @memberof VMs
|
|
105
96
|
*/
|
|
106
97
|
diskTypes?: { [key: string]: DiskTypeSummary; };
|
|
107
98
|
/**
|
|
108
99
|
* Distribution of VMs across CPU tier buckets (e.g., "0-4", "5-8", "9-16", "17-32", "32+")
|
|
109
|
-
* @type {{ [key: string]: number; }}
|
|
110
|
-
* @memberof VMs
|
|
111
100
|
*/
|
|
112
101
|
distributionByCpuTier?: { [key: string]: number; };
|
|
113
102
|
/**
|
|
114
103
|
* Distribution of VMs across Memory tier buckets (e.g., "0-4", "5-16", "17-32", "33-64", "65-128", "129-256", "256+")
|
|
115
|
-
* @type {{ [key: string]: number; }}
|
|
116
|
-
* @memberof VMs
|
|
117
104
|
*/
|
|
118
105
|
distributionByMemoryTier?: { [key: string]: number; };
|
|
119
106
|
/**
|
|
120
107
|
* Distribution of VMs by NIC count (e.g., "0", "1", "2", "3", "4+")
|
|
121
|
-
* @type {{ [key: string]: number; }}
|
|
122
|
-
* @memberof VMs
|
|
123
108
|
*/
|
|
124
109
|
distributionByNicCount?: { [key: string]: number; };
|
|
125
110
|
/**
|
|
126
111
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
127
|
-
* @type {{ [key: string]: number; }}
|
|
128
|
-
* @memberof VMs
|
|
129
112
|
* @deprecated
|
|
130
113
|
*/
|
|
131
114
|
distributionByComplexity?: { [key: string]: number; };
|
|
132
115
|
/**
|
|
133
116
|
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
134
|
-
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
135
|
-
* @memberof VMs
|
|
136
117
|
*/
|
|
137
118
|
complexityDistribution?: { [key: string]: DiskSizeTierSummary; };
|
|
138
119
|
/**
|
|
139
120
|
*
|
|
140
|
-
* @type {VMResourceBreakdown}
|
|
141
|
-
* @memberof VMs
|
|
142
121
|
*/
|
|
143
122
|
ramGB: VMResourceBreakdown;
|
|
144
123
|
/**
|
|
145
124
|
*
|
|
146
|
-
* @type {VMResourceBreakdown}
|
|
147
|
-
* @memberof VMs
|
|
148
125
|
*/
|
|
149
126
|
diskGB: VMResourceBreakdown;
|
|
150
127
|
/**
|
|
151
128
|
*
|
|
152
|
-
* @type {VMResourceBreakdown}
|
|
153
|
-
* @memberof VMs
|
|
154
129
|
*/
|
|
155
130
|
diskCount: VMResourceBreakdown;
|
|
156
131
|
/**
|
|
157
132
|
*
|
|
158
|
-
* @type {VMResourceBreakdown}
|
|
159
|
-
* @memberof VMs
|
|
160
133
|
*/
|
|
161
134
|
nicCount?: VMResourceBreakdown;
|
|
162
135
|
/**
|
|
163
136
|
*
|
|
164
|
-
* @type {{ [key: string]: number; }}
|
|
165
|
-
* @memberof VMs
|
|
166
137
|
*/
|
|
167
138
|
powerStates: { [key: string]: number; };
|
|
168
139
|
/**
|
|
169
140
|
*
|
|
170
|
-
* @type {{ [key: string]: number; }}
|
|
171
|
-
* @memberof VMs
|
|
172
141
|
* @deprecated
|
|
173
142
|
*/
|
|
174
143
|
os?: { [key: string]: number; };
|
|
175
144
|
/**
|
|
176
145
|
*
|
|
177
|
-
* @type {{ [key: string]: OsInfo; }}
|
|
178
|
-
* @memberof VMs
|
|
179
146
|
*/
|
|
180
147
|
osInfo?: { [key: string]: OsInfo; };
|
|
181
148
|
/**
|
|
182
149
|
*
|
|
183
|
-
* @type {Array<MigrationIssue>}
|
|
184
|
-
* @memberof VMs
|
|
185
150
|
*/
|
|
186
151
|
notMigratableReasons: Array<MigrationIssue>;
|
|
187
152
|
/**
|
|
188
153
|
*
|
|
189
|
-
* @type {Array<MigrationIssue>}
|
|
190
|
-
* @memberof VMs
|
|
191
154
|
*/
|
|
192
155
|
migrationWarnings: Array<MigrationIssue>;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
issuesBreakdown?: IssuesBreakdown;
|
|
193
160
|
}
|
|
194
161
|
|
|
195
162
|
/**
|
|
@@ -240,6 +207,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
240
207
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
241
208
|
'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
|
|
242
209
|
'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
|
|
210
|
+
'issuesBreakdown': json['issuesBreakdown'] == null ? undefined : IssuesBreakdownFromJSON(json['issuesBreakdown']),
|
|
243
211
|
};
|
|
244
212
|
}
|
|
245
213
|
|
|
@@ -276,6 +244,7 @@ export function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator: boolean
|
|
|
276
244
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
|
277
245
|
'notMigratableReasons': ((value['notMigratableReasons'] as Array<any>).map(MigrationIssueToJSON)),
|
|
278
246
|
'migrationWarnings': ((value['migrationWarnings'] as Array<any>).map(MigrationIssueToJSON)),
|
|
247
|
+
'issuesBreakdown': IssuesBreakdownToJSON(value['issuesBreakdown']),
|
|
279
248
|
};
|
|
280
249
|
}
|
|
281
250
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VMwareSubscriptionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface VMwareSubscriptionInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
level?: Set<VMwareSubscriptionInputLevelEnum>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const VMwareSubscriptionInputLevelEnum = {
|
|
33
|
+
Vcf: 'vcf',
|
|
34
|
+
Vvf: 'vvf',
|
|
35
|
+
Vvs: 'vvs',
|
|
36
|
+
Vvep: 'vvep',
|
|
37
|
+
Vsphere: 'vsphere',
|
|
38
|
+
NotAssessed: 'not_assessed',
|
|
39
|
+
} as const;
|
|
40
|
+
export type VMwareSubscriptionInputLevelEnum = typeof VMwareSubscriptionInputLevelEnum[keyof typeof VMwareSubscriptionInputLevelEnum];
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the VMwareSubscriptionInput interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfVMwareSubscriptionInput(value: object): value is VMwareSubscriptionInput {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function VMwareSubscriptionInputFromJSON(json: any): VMwareSubscriptionInput {
|
|
51
|
+
return VMwareSubscriptionInputFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function VMwareSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareSubscriptionInput {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'level': json['level'] == null ? undefined : new Set(json['level']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function VMwareSubscriptionInputToJSON(json: any): VMwareSubscriptionInput {
|
|
65
|
+
return VMwareSubscriptionInputToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function VMwareSubscriptionInputToJSONTyped(value?: VMwareSubscriptionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'level': value['level'] == null ? undefined : Array.from(value['level'] as Set<any>),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VMwareVersionCountsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface VMwareVersionCountsInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
perpetualLicensesCount?: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
coresLicensingCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
environmentCount?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
otherNodesCount?: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the VMwareVersionCountsInput interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfVMwareVersionCountsInput(value: object): value is VMwareVersionCountsInput {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function VMwareVersionCountsInputFromJSON(json: any): VMwareVersionCountsInput {
|
|
48
|
+
return VMwareVersionCountsInputFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function VMwareVersionCountsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareVersionCountsInput {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'perpetualLicensesCount': json['perpetualLicensesCount'] == null ? undefined : json['perpetualLicensesCount'],
|
|
58
|
+
'coresLicensingCount': json['coresLicensingCount'] == null ? undefined : json['coresLicensingCount'],
|
|
59
|
+
'environmentCount': json['environmentCount'] == null ? undefined : json['environmentCount'],
|
|
60
|
+
'otherNodesCount': json['otherNodesCount'] == null ? undefined : json['otherNodesCount'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function VMwareVersionCountsInputToJSON(json: any): VMwareVersionCountsInput {
|
|
65
|
+
return VMwareVersionCountsInputToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function VMwareVersionCountsInputToJSONTyped(value?: VMwareVersionCountsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'perpetualLicensesCount': value['perpetualLicensesCount'],
|
|
76
|
+
'coresLicensingCount': value['coresLicensingCount'],
|
|
77
|
+
'environmentCount': value['environmentCount'],
|
|
78
|
+
'otherNodesCount': value['otherNodesCount'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/VmNetwork.ts
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VsphereCoreInput
|
|
20
|
+
*/
|
|
21
|
+
export interface VsphereCoreInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
vmEncryptionEnabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
vmEncryptionPolicy?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
srmEnabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the VsphereCoreInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfVsphereCoreInput(value: object): value is VsphereCoreInput {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function VsphereCoreInputFromJSON(json: any): VsphereCoreInput {
|
|
44
|
+
return VsphereCoreInputFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function VsphereCoreInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VsphereCoreInput {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'vmEncryptionEnabled': json['vmEncryptionEnabled'] == null ? undefined : json['vmEncryptionEnabled'],
|
|
54
|
+
'vmEncryptionPolicy': json['vmEncryptionPolicy'] == null ? undefined : json['vmEncryptionPolicy'],
|
|
55
|
+
'srmEnabled': json['srmEnabled'] == null ? undefined : json['srmEnabled'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function VsphereCoreInputToJSON(json: any): VsphereCoreInput {
|
|
60
|
+
return VsphereCoreInputToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VsphereCoreInputToJSONTyped(value?: VsphereCoreInput | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'vmEncryptionEnabled': value['vmEncryptionEnabled'],
|
|
71
|
+
'vmEncryptionPolicy': value['vmEncryptionPolicy'],
|
|
72
|
+
'srmEnabled': value['srmEnabled'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ActiveEnvironmentsInput.js';
|
|
3
4
|
export * from './Agent.js';
|
|
4
5
|
export * from './AgentProxy.js';
|
|
6
|
+
export * from './AriaAutomationInput.js';
|
|
7
|
+
export * from './AriaOpsInput.js';
|
|
8
|
+
export * from './AriaSecureInput.js';
|
|
5
9
|
export * from './Assessment.js';
|
|
6
10
|
export * from './AssessmentForm.js';
|
|
7
11
|
export * from './AssessmentSharing.js';
|
|
@@ -18,9 +22,12 @@ export * from './ComplexityOSNameEntry.js';
|
|
|
18
22
|
export * from './ComplexityOSScoreEntry.js';
|
|
19
23
|
export * from './CpuOverCommitRatio.js';
|
|
20
24
|
export * from './Customer.js';
|
|
25
|
+
export * from './CustomerDetailsInput.js';
|
|
21
26
|
export * from './Datastore.js';
|
|
27
|
+
export * from './DeployedEnvironmentInput.js';
|
|
22
28
|
export * from './DiskSizeTierSummary.js';
|
|
23
29
|
export * from './DiskTypeSummary.js';
|
|
30
|
+
export * from './EnhancementData.js';
|
|
24
31
|
export * from './EstimationContext.js';
|
|
25
32
|
export * from './EstimationDetail.js';
|
|
26
33
|
export * from './Group.js';
|
|
@@ -35,6 +42,7 @@ export * from './Inventory.js';
|
|
|
35
42
|
export * from './InventoryData.js';
|
|
36
43
|
export * from './InventoryTotals.js';
|
|
37
44
|
export * from './Ipv4Config.js';
|
|
45
|
+
export * from './IssuesBreakdown.js';
|
|
38
46
|
export * from './Job.js';
|
|
39
47
|
export * from './JobStatus.js';
|
|
40
48
|
export * from './Label.js';
|
|
@@ -50,6 +58,7 @@ export * from './MigrationEstimationResponse.js';
|
|
|
50
58
|
export * from './MigrationIssue.js';
|
|
51
59
|
export * from './ModelError.js';
|
|
52
60
|
export * from './Network.js';
|
|
61
|
+
export * from './NsxInput.js';
|
|
53
62
|
export * from './OptimizationStatus.js';
|
|
54
63
|
export * from './OsDiskEstimationEntry.js';
|
|
55
64
|
export * from './OsInfo.js';
|
|
@@ -73,8 +82,12 @@ export * from './SourceUpdate.js';
|
|
|
73
82
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
74
83
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
75
84
|
export * from './Status.js';
|
|
85
|
+
export * from './StorageIoConfiguration.js';
|
|
76
86
|
export * from './UpdateInventory.js';
|
|
77
87
|
export * from './VCenter.js';
|
|
78
88
|
export * from './VMResourceBreakdown.js';
|
|
79
89
|
export * from './VMs.js';
|
|
90
|
+
export * from './VMwareSubscriptionInput.js';
|
|
91
|
+
export * from './VMwareVersionCountsInput.js';
|
|
80
92
|
export * from './VmNetwork.js';
|
|
93
|
+
export * from './VsphereCoreInput.js';
|
package/src/runtime.ts
CHANGED
|
@@ -346,7 +346,7 @@ function querystringSingleKey(key: string, value: string | number | null | undef
|
|
|
346
346
|
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
347
347
|
}
|
|
348
348
|
if (value instanceof Date) {
|
|
349
|
-
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value
|
|
349
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(serializeDateTime(value))}`;
|
|
350
350
|
}
|
|
351
351
|
if (value instanceof Object) {
|
|
352
352
|
return querystring(value as HTTPQuery, fullKey);
|
|
@@ -359,6 +359,57 @@ export function exists(json: any, key: string) {
|
|
|
359
359
|
return value !== null && value !== undefined;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
/**
|
|
363
|
+
* Every generated date call site routes through these.
|
|
364
|
+
*
|
|
365
|
+
* `format: date` is a calendar date, with no time and no offset, so it is converted
|
|
366
|
+
* against the local calendar on both ends: they have to agree or the date shifts by
|
|
367
|
+
* a day. `format: date-time` is an instant and uses UTC.
|
|
368
|
+
*/
|
|
369
|
+
export function serializeDateTime(value: Date): string {
|
|
370
|
+
return value.toISOString();
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export function serializeDate(value: Date): string {
|
|
374
|
+
if (isNaN(value.getTime())) {
|
|
375
|
+
throw new RangeError('Invalid time value');
|
|
376
|
+
}
|
|
377
|
+
const year = ('000' + value.getFullYear()).slice(-4);
|
|
378
|
+
const month = ('0' + (value.getMonth() + 1)).slice(-2);
|
|
379
|
+
const day = ('0' + value.getDate()).slice(-2);
|
|
380
|
+
return `${year}-${month}-${day}`;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
export function parseDate(value: Date | string): Date {
|
|
385
|
+
if (value instanceof Date) {
|
|
386
|
+
return value;
|
|
387
|
+
}
|
|
388
|
+
// `new Date("2026-08-05")` would parse as UTC midnight: a different day west of UTC.
|
|
389
|
+
// Local midnight is the stated day everywhere. setFullYear avoids the 1900 offset the
|
|
390
|
+
// multi-argument constructor applies to years 0-99.
|
|
391
|
+
const fullDate = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value));
|
|
392
|
+
if (fullDate) {
|
|
393
|
+
const year = Number(fullDate[1]);
|
|
394
|
+
const month = Number(fullDate[2]) - 1;
|
|
395
|
+
const day = Number(fullDate[3]);
|
|
396
|
+
const date = new Date(0);
|
|
397
|
+
date.setFullYear(year, month, day);
|
|
398
|
+
date.setHours(0, 0, 0, 0);
|
|
399
|
+
// Out-of-range components (or a day the local zone skipped) silently roll over,
|
|
400
|
+
// which would hand back a date the server never sent.
|
|
401
|
+
if (date.getFullYear() !== year || date.getMonth() !== month || date.getDate() !== day) {
|
|
402
|
+
return new Date(NaN);
|
|
403
|
+
}
|
|
404
|
+
return date;
|
|
405
|
+
}
|
|
406
|
+
return new Date(value);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export function parseDateTime(value: any): Date {
|
|
410
|
+
return new Date(value);
|
|
411
|
+
}
|
|
412
|
+
|
|
362
413
|
export function mapValues(data: any, fn: (item: any) => any) {
|
|
363
414
|
const result: { [key: string]: any } = {};
|
|
364
415
|
for (const key of Object.keys(data)) {
|