@nutanix-scratch/aiops-js-client 4.0.3-alpha.2 → 4.2.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -49
- package/README.md +70 -43
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -11
- package/dist/Ntnx-Aiops-js-client.js +1045 -1019
- package/dist/es/ApiClient.d.ts +43 -7
- package/dist/es/ApiClient.js +1071 -678
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +153 -194
- package/dist/es/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/es/apis/scenarios-endpoints.js +624 -0
- package/dist/es/apis/stats-endpoints.d.ts +31 -41
- package/dist/es/apis/stats-endpoints.js +215 -230
- package/dist/es/index.d.ts +157 -21
- package/dist/es/index.js +669 -126
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +366 -0
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +366 -0
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
- package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/common/ClusterType.js +77 -0
- package/dist/es/models/aiops/v4/config/CapacityType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +83 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +279 -0
- package/dist/es/models/aiops/v4/config/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ClusterType.js +83 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +616 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +396 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/es/models/aiops/v4/config/EntityType.d.ts +22 -0
- package/dist/es/models/aiops/v4/config/EntityType.js +233 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +604 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +135 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.js +478 -0
- package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/NodeSource.js +89 -0
- package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/PolicyType.js +83 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +83 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +404 -0
- package/dist/es/models/aiops/v4/config/Runway.d.ts +125 -0
- package/dist/es/models/aiops/v4/config/Runway.js +437 -0
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +134 -0
- package/dist/es/models/aiops/v4/config/Scenario.js +626 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +127 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +32 -0
- package/dist/es/models/aiops/v4/config/Simulation.js +273 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +124 -0
- package/dist/es/models/aiops/v4/config/Source.d.ts +22 -0
- package/dist/es/models/aiops/v4/config/Source.js +233 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +401 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +89 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +83 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +370 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/ValueRange.js +271 -0
- package/dist/es/models/aiops/v4/{stats → config}/ValueType.js +12 -15
- package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +101 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.js +95 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.js +83 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +367 -0
- package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/Vendor.js +125 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +74 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.js +294 -0
- package/dist/es/models/aiops/v4/config/Workload.d.ts +105 -0
- package/dist/es/models/aiops/v4/config/Workload.js +398 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +83 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +141 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.js +483 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +541 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +62 -55
- package/dist/es/models/aiops/v4/error/AppMessage.js +303 -310
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +224 -223
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +287 -292
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/BoolList.js +182 -185
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/BoolVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/DoubleList.js +182 -185
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +25 -37
- package/dist/es/models/aiops/v4/stats/Entity.js +269 -280
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/IntList.js +182 -185
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/IntVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/Metric.js +197 -205
- package/dist/es/models/aiops/v4/stats/Point.d.ts +34 -30
- package/dist/es/models/aiops/v4/stats/Point.js +231 -246
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/StrList.js +182 -185
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/StrVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +207 -218
- package/dist/es/models/common/v1/config/Flag.d.ts +30 -30
- package/dist/es/models/common/v1/config/Flag.js +203 -202
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +34 -31
- package/dist/es/models/common/v1/config/KVPair.js +259 -260
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +58 -0
- package/dist/es/models/common/v1/config/KVStringPair.js +277 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/es/models/common/v1/config/Message.d.ts +37 -42
- package/dist/es/models/common/v1/config/Message.js +244 -259
- package/dist/es/models/common/v1/config/MessageSeverity.js +18 -21
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +23 -26
- package/dist/es/models/common/v1/config/TenantAwareModel.js +169 -179
- package/dist/es/models/common/v1/response/ApiLink.d.ts +26 -30
- package/dist/es/models/common/v1/response/ApiLink.js +197 -208
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +313 -334
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +24 -27
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +244 -0
- package/dist/es/models/validation/ValidationError.js +27 -45
- package/dist/es/models/validation/ValidationScopes.js +3 -4
- package/dist/es/utils/ValidationUtils.js +40 -72
- package/dist/lib/ApiClient.d.ts +43 -7
- package/dist/lib/ApiClient.js +1071 -678
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +153 -194
- package/dist/lib/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/lib/apis/scenarios-endpoints.js +624 -0
- package/dist/lib/apis/stats-endpoints.d.ts +31 -41
- package/dist/lib/apis/stats-endpoints.js +215 -230
- package/dist/lib/index.d.ts +157 -21
- package/dist/lib/index.js +669 -126
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +366 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +366 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.js +77 -0
- package/dist/lib/models/aiops/v4/config/CapacityType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +83 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +279 -0
- package/dist/lib/models/aiops/v4/config/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ClusterType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +616 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +396 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/lib/models/aiops/v4/config/EntityType.d.ts +22 -0
- package/dist/lib/models/aiops/v4/config/EntityType.js +233 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +604 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +135 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +478 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.js +89 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.js +83 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +83 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +404 -0
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +125 -0
- package/dist/lib/models/aiops/v4/config/Runway.js +437 -0
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +134 -0
- package/dist/lib/models/aiops/v4/config/Scenario.js +626 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +127 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +32 -0
- package/dist/lib/models/aiops/v4/config/Simulation.js +273 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +124 -0
- package/dist/lib/models/aiops/v4/config/Source.d.ts +22 -0
- package/dist/lib/models/aiops/v4/config/Source.js +233 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +401 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +89 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +83 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +370 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.js +271 -0
- package/dist/lib/models/aiops/v4/{stats → config}/ValueType.js +12 -15
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +101 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +95 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +83 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +367 -0
- package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/Vendor.js +125 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +74 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +294 -0
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +105 -0
- package/dist/lib/models/aiops/v4/config/Workload.js +398 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +83 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +141 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +483 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +541 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +62 -55
- package/dist/lib/models/aiops/v4/error/AppMessage.js +303 -310
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +224 -223
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +287 -292
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/BoolList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +25 -37
- package/dist/lib/models/aiops/v4/stats/Entity.js +269 -280
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/IntList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/IntVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/Metric.js +197 -205
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +34 -30
- package/dist/lib/models/aiops/v4/stats/Point.js +231 -246
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/StrList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/StrVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +207 -218
- package/dist/lib/models/common/v1/config/Flag.d.ts +30 -30
- package/dist/lib/models/common/v1/config/Flag.js +203 -202
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +34 -31
- package/dist/lib/models/common/v1/config/KVPair.js +259 -260
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +58 -0
- package/dist/lib/models/common/v1/config/KVStringPair.js +277 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +37 -42
- package/dist/lib/models/common/v1/config/Message.js +244 -259
- package/dist/lib/models/common/v1/config/MessageSeverity.js +18 -21
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +23 -26
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +169 -179
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +26 -30
- package/dist/lib/models/common/v1/response/ApiLink.js +197 -208
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +313 -334
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +24 -27
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +244 -0
- package/dist/lib/models/validation/ValidationError.js +27 -45
- package/dist/lib/models/validation/ValidationScopes.js +3 -4
- package/dist/lib/utils/ValidationUtils.js +40 -72
- package/package.json +6 -5
- package/dist/es/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
- package/dist/es/models/aiops/v4/stats/DeprecationModel.js +0 -358
- package/dist/es/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
- package/dist/es/models/aiops/v4/stats/EntityDescriptor.js +0 -403
- package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/EntityType.d.ts +0 -32
- package/dist/es/models/aiops/v4/stats/EntityType.js +0 -227
- package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
- package/dist/es/models/aiops/v4/stats/MetricDescriptor.js +0 -667
- package/dist/es/models/aiops/v4/stats/Source.d.ts +0 -32
- package/dist/es/models/aiops/v4/stats/Source.js +0 -227
- package/dist/es/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/ValueRange.d.ts +0 -58
- package/dist/es/models/aiops/v4/stats/ValueRange.js +0 -276
- package/dist/lib/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
- package/dist/lib/models/aiops/v4/stats/DeprecationModel.js +0 -358
- package/dist/lib/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
- package/dist/lib/models/aiops/v4/stats/EntityDescriptor.js +0 -403
- package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/EntityType.d.ts +0 -32
- package/dist/lib/models/aiops/v4/stats/EntityType.js +0 -227
- package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
- package/dist/lib/models/aiops/v4/stats/MetricDescriptor.js +0 -667
- package/dist/lib/models/aiops/v4/stats/Source.d.ts +0 -32
- package/dist/lib/models/aiops/v4/stats/Source.js +0 -227
- package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/ValueRange.d.ts +0 -58
- package/dist/lib/models/aiops/v4/stats/ValueRange.js +0 -276
- /package/dist/es/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
- /package/dist/lib/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Runway model module.
|
|
3
|
+
* @module Ntnx/Runway
|
|
4
|
+
* @version 4.2.2-beta-1
|
|
5
|
+
* @class Runway
|
|
6
|
+
*
|
|
7
|
+
* @param { Number } minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
8
|
+
*
|
|
9
|
+
* @param { Number } cpuRunwayDays Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
10
|
+
*
|
|
11
|
+
* @param { Number } memoryRunwayDays Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
12
|
+
*
|
|
13
|
+
* @param { Number } storageRunwayDays Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
14
|
+
*
|
|
15
|
+
* @param { Date } runwayStartTime The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
16
|
+
*/
|
|
17
|
+
export default class Runway {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a <code>Runway</code> from a plain JavaScript object, optionally creating a new instance.
|
|
20
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
21
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
22
|
+
* @param {module:Ntnx/Runway} obj Optional instance to populate.
|
|
23
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
24
|
+
* @return {module:Ntnx/Runway} The populated <code>Runway</code> instance.
|
|
25
|
+
*/
|
|
26
|
+
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
|
|
27
|
+
/**
|
|
28
|
+
* Converts a given snake_case string to camelCase.
|
|
29
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
30
|
+
* @returns {string} - The converted string in camelCase format.
|
|
31
|
+
*/
|
|
32
|
+
static snakeToCamel(snakeStr: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>Runway</code>.
|
|
35
|
+
* Runway in a scenario.
|
|
36
|
+
* @alias module:Ntnx/Runway
|
|
37
|
+
*
|
|
38
|
+
* @param { Number } minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
39
|
+
*
|
|
40
|
+
* @param { Number } cpuRunwayDays Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
41
|
+
*
|
|
42
|
+
* @param { Number } memoryRunwayDays Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
43
|
+
*
|
|
44
|
+
* @param { Number } storageRunwayDays Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
45
|
+
*
|
|
46
|
+
* @param { Date } runwayStartTime The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
47
|
+
*/
|
|
48
|
+
constructor(minimumRunwayDays: number, cpuRunwayDays: number, memoryRunwayDays: number, storageRunwayDays: number, runwayStartTime: Date);
|
|
49
|
+
minimumRunwayDays: number;
|
|
50
|
+
cpuRunwayDays: number;
|
|
51
|
+
memoryRunwayDays: number;
|
|
52
|
+
storageRunwayDays: number;
|
|
53
|
+
runwayStartTime: Date;
|
|
54
|
+
$objectType: string;
|
|
55
|
+
/** @type {object<string, any>} */
|
|
56
|
+
$reserved: object;
|
|
57
|
+
/** @type {object<string, any>} */
|
|
58
|
+
$unknownFields: object;
|
|
59
|
+
/**
|
|
60
|
+
* Returns Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
61
|
+
* minimum: -1
|
|
62
|
+
* maximum: 366
|
|
63
|
+
* @return {Number}
|
|
64
|
+
*/
|
|
65
|
+
getMinimumRunwayDays(): number;
|
|
66
|
+
/**
|
|
67
|
+
* Sets Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
68
|
+
* @param {Number} minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
69
|
+
*/
|
|
70
|
+
setMinimumRunwayDays(minimumRunwayDays: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* Returns Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
73
|
+
* minimum: -1
|
|
74
|
+
* maximum: 366
|
|
75
|
+
* @return {Number}
|
|
76
|
+
*/
|
|
77
|
+
getCpuRunwayDays(): number;
|
|
78
|
+
/**
|
|
79
|
+
* Sets Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
80
|
+
* @param {Number} cpuRunwayDays Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
81
|
+
*/
|
|
82
|
+
setCpuRunwayDays(cpuRunwayDays: number): void;
|
|
83
|
+
/**
|
|
84
|
+
* Returns Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
85
|
+
* minimum: -1
|
|
86
|
+
* maximum: 366
|
|
87
|
+
* @return {Number}
|
|
88
|
+
*/
|
|
89
|
+
getMemoryRunwayDays(): number;
|
|
90
|
+
/**
|
|
91
|
+
* Sets Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
92
|
+
* @param {Number} memoryRunwayDays Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
93
|
+
*/
|
|
94
|
+
setMemoryRunwayDays(memoryRunwayDays: number): void;
|
|
95
|
+
/**
|
|
96
|
+
* Returns Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
97
|
+
* minimum: -1
|
|
98
|
+
* maximum: 366
|
|
99
|
+
* @return {Number}
|
|
100
|
+
*/
|
|
101
|
+
getStorageRunwayDays(): number;
|
|
102
|
+
/**
|
|
103
|
+
* Sets Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
104
|
+
* @param {Number} storageRunwayDays Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
105
|
+
*/
|
|
106
|
+
setStorageRunwayDays(storageRunwayDays: number): void;
|
|
107
|
+
/**
|
|
108
|
+
* Returns The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
109
|
+
* @return {Date}
|
|
110
|
+
*/
|
|
111
|
+
getRunwayStartTime(): Date;
|
|
112
|
+
/**
|
|
113
|
+
* Sets The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
114
|
+
* @param {Date} runwayStartTime The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
115
|
+
*/
|
|
116
|
+
setRunwayStartTime(runwayStartTime: Date): void;
|
|
117
|
+
get$Reserved(): any;
|
|
118
|
+
get$ObjectType(): string;
|
|
119
|
+
get$UnknownFields(): any;
|
|
120
|
+
toJson(forMutation: any): any;
|
|
121
|
+
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
122
|
+
validateProperty(scope: any, property: any): ValidationError;
|
|
123
|
+
#private;
|
|
124
|
+
}
|
|
125
|
+
import ValidationError from "../../../validation/ValidationError";
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
12
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
13
|
+
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
14
|
+
* Nutanix AIOps APIs
|
|
15
|
+
*
|
|
16
|
+
* OpenAPI spec version: 4.2.2-beta-1
|
|
17
|
+
*
|
|
18
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
19
|
+
*
|
|
20
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
21
|
+
*
|
|
22
|
+
* Do not edit the class manually.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* The Runway model module.
|
|
27
|
+
* @module Ntnx/Runway
|
|
28
|
+
* @version 4.2.2-beta-1
|
|
29
|
+
* @class Runway
|
|
30
|
+
*
|
|
31
|
+
* @param { Number } minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
32
|
+
*
|
|
33
|
+
* @param { Number } cpuRunwayDays Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
34
|
+
*
|
|
35
|
+
* @param { Number } memoryRunwayDays Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
36
|
+
*
|
|
37
|
+
* @param { Number } storageRunwayDays Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
38
|
+
*
|
|
39
|
+
* @param { Date } runwayStartTime The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
40
|
+
*/
|
|
41
|
+
var _Runway_brand = /*#__PURE__*/new WeakSet();
|
|
42
|
+
class Runway {
|
|
43
|
+
/**
|
|
44
|
+
* Constructs a new <code>Runway</code>.
|
|
45
|
+
* Runway in a scenario.
|
|
46
|
+
* @alias module:Ntnx/Runway
|
|
47
|
+
*
|
|
48
|
+
* @param { Number } minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
49
|
+
*
|
|
50
|
+
* @param { Number } cpuRunwayDays Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
51
|
+
*
|
|
52
|
+
* @param { Number } memoryRunwayDays Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
53
|
+
*
|
|
54
|
+
* @param { Number } storageRunwayDays Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
55
|
+
*
|
|
56
|
+
* @param { Date } runwayStartTime The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
57
|
+
*/
|
|
58
|
+
constructor(minimumRunwayDays, cpuRunwayDays, memoryRunwayDays, storageRunwayDays, runwayStartTime) {
|
|
59
|
+
/*
|
|
60
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
61
|
+
* @param {Object} obj
|
|
62
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
63
|
+
* Otherwise, just returns the input object.
|
|
64
|
+
*/
|
|
65
|
+
_classPrivateMethodInitSpec(this, _Runway_brand);
|
|
66
|
+
this.minimumRunwayDays = minimumRunwayDays;
|
|
67
|
+
this.cpuRunwayDays = cpuRunwayDays;
|
|
68
|
+
this.memoryRunwayDays = memoryRunwayDays;
|
|
69
|
+
this.storageRunwayDays = storageRunwayDays;
|
|
70
|
+
this.runwayStartTime = runwayStartTime;
|
|
71
|
+
this.$objectType = "aiops.v4.config.Runway";
|
|
72
|
+
/** @type {object<string, any>} */
|
|
73
|
+
this.$reserved = {
|
|
74
|
+
'$fv': "v4.r2.b1"
|
|
75
|
+
};
|
|
76
|
+
/** @type {object<string, any>} */
|
|
77
|
+
this.$unknownFields = {};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Constructs a <code>Runway</code> from a plain JavaScript object, optionally creating a new instance.
|
|
82
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @param {module:Ntnx/Runway} obj Optional instance to populate.
|
|
85
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
86
|
+
* @return {module:Ntnx/Runway} The populated <code>Runway</code> instance.
|
|
87
|
+
*/
|
|
88
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
89
|
+
let items, item, i, itemArr, discriminator;
|
|
90
|
+
if (data) {
|
|
91
|
+
obj = obj || new Runway();
|
|
92
|
+
if (data.hasOwnProperty('minimumRunwayDays') && data.minimumRunwayDays !== null && data.minimumRunwayDays !== undefined) {
|
|
93
|
+
obj.setMinimumRunwayDays(data['minimumRunwayDays']);
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('cpuRunwayDays') && data.cpuRunwayDays !== null && data.cpuRunwayDays !== undefined) {
|
|
96
|
+
obj.setCpuRunwayDays(data['cpuRunwayDays']);
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('memoryRunwayDays') && data.memoryRunwayDays !== null && data.memoryRunwayDays !== undefined) {
|
|
99
|
+
obj.setMemoryRunwayDays(data['memoryRunwayDays']);
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('storageRunwayDays') && data.storageRunwayDays !== null && data.storageRunwayDays !== undefined) {
|
|
102
|
+
obj.setStorageRunwayDays(data['storageRunwayDays']);
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('runwayStartTime') && data.runwayStartTime !== null && data.runwayStartTime !== undefined) {
|
|
105
|
+
obj.setRunwayStartTime(data['runwayStartTime']);
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
108
|
+
obj.$reserved = data['$reserved'];
|
|
109
|
+
}
|
|
110
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
111
|
+
obj.$objectType = data['$objectType'];
|
|
112
|
+
}
|
|
113
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
114
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
115
|
+
}
|
|
116
|
+
if (!callFromChild) {
|
|
117
|
+
obj.$unknownFields = {
|
|
118
|
+
...data.$unknownFields
|
|
119
|
+
};
|
|
120
|
+
for (const property in data) {
|
|
121
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
122
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
123
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
124
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
125
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
126
|
+
obj.$unknownFields[property] = data[property];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Converts a given snake_case string to camelCase.
|
|
136
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
137
|
+
* @returns {string} - The converted string in camelCase format.
|
|
138
|
+
*/
|
|
139
|
+
static snakeToCamel(snakeStr) {
|
|
140
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Returns Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
145
|
+
* minimum: -1
|
|
146
|
+
* maximum: 366
|
|
147
|
+
* @return {Number}
|
|
148
|
+
*/
|
|
149
|
+
getMinimumRunwayDays() {
|
|
150
|
+
return this.minimumRunwayDays;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Sets Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
155
|
+
* @param {Number} minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
156
|
+
*/
|
|
157
|
+
setMinimumRunwayDays(minimumRunwayDays) {
|
|
158
|
+
this.minimumRunwayDays = minimumRunwayDays;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Returns Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
163
|
+
* minimum: -1
|
|
164
|
+
* maximum: 366
|
|
165
|
+
* @return {Number}
|
|
166
|
+
*/
|
|
167
|
+
getCpuRunwayDays() {
|
|
168
|
+
return this.cpuRunwayDays;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Sets Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
173
|
+
* @param {Number} cpuRunwayDays Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
174
|
+
*/
|
|
175
|
+
setCpuRunwayDays(cpuRunwayDays) {
|
|
176
|
+
this.cpuRunwayDays = cpuRunwayDays;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Returns Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
181
|
+
* minimum: -1
|
|
182
|
+
* maximum: 366
|
|
183
|
+
* @return {Number}
|
|
184
|
+
*/
|
|
185
|
+
getMemoryRunwayDays() {
|
|
186
|
+
return this.memoryRunwayDays;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Sets Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
191
|
+
* @param {Number} memoryRunwayDays Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
192
|
+
*/
|
|
193
|
+
setMemoryRunwayDays(memoryRunwayDays) {
|
|
194
|
+
this.memoryRunwayDays = memoryRunwayDays;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Returns Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
199
|
+
* minimum: -1
|
|
200
|
+
* maximum: 366
|
|
201
|
+
* @return {Number}
|
|
202
|
+
*/
|
|
203
|
+
getStorageRunwayDays() {
|
|
204
|
+
return this.storageRunwayDays;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Sets Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
209
|
+
* @param {Number} storageRunwayDays Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
210
|
+
*/
|
|
211
|
+
setStorageRunwayDays(storageRunwayDays) {
|
|
212
|
+
this.storageRunwayDays = storageRunwayDays;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Returns The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
217
|
+
* @return {Date}
|
|
218
|
+
*/
|
|
219
|
+
getRunwayStartTime() {
|
|
220
|
+
return this.runwayStartTime;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Sets The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
225
|
+
* @param {Date} runwayStartTime The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
226
|
+
*/
|
|
227
|
+
setRunwayStartTime(runwayStartTime) {
|
|
228
|
+
this.runwayStartTime = runwayStartTime;
|
|
229
|
+
}
|
|
230
|
+
get$Reserved() {
|
|
231
|
+
return this.$reserved;
|
|
232
|
+
}
|
|
233
|
+
get$ObjectType() {
|
|
234
|
+
return this.$objectType;
|
|
235
|
+
}
|
|
236
|
+
get$UnknownFields() {
|
|
237
|
+
return this.$unknownFields;
|
|
238
|
+
}
|
|
239
|
+
toJson(forMutation) {
|
|
240
|
+
if (forMutation === false) {
|
|
241
|
+
return {
|
|
242
|
+
...(typeof this.getMinimumRunwayDays() !== 'undefined' && this.getMinimumRunwayDays() !== null ? {
|
|
243
|
+
'minimumRunwayDays': this.getMinimumRunwayDays()
|
|
244
|
+
} : {}),
|
|
245
|
+
...(typeof this.getCpuRunwayDays() !== 'undefined' && this.getCpuRunwayDays() !== null ? {
|
|
246
|
+
'cpuRunwayDays': this.getCpuRunwayDays()
|
|
247
|
+
} : {}),
|
|
248
|
+
...(typeof this.getMemoryRunwayDays() !== 'undefined' && this.getMemoryRunwayDays() !== null ? {
|
|
249
|
+
'memoryRunwayDays': this.getMemoryRunwayDays()
|
|
250
|
+
} : {}),
|
|
251
|
+
...(typeof this.getStorageRunwayDays() !== 'undefined' && this.getStorageRunwayDays() !== null ? {
|
|
252
|
+
'storageRunwayDays': this.getStorageRunwayDays()
|
|
253
|
+
} : {}),
|
|
254
|
+
...(typeof this.getRunwayStartTime() !== 'undefined' && this.getRunwayStartTime() !== null ? {
|
|
255
|
+
'runwayStartTime': _assertClassBrand(_Runway_brand, this, _handleDateType).call(this, this.getRunwayStartTime(), false)
|
|
256
|
+
} : {}),
|
|
257
|
+
'$reserved': this.get$Reserved(),
|
|
258
|
+
'$objectType': this.get$ObjectType(),
|
|
259
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
260
|
+
'$unknownFields': {}
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
return {
|
|
264
|
+
...(typeof this.getMinimumRunwayDays() !== 'undefined' && this.getMinimumRunwayDays() !== null ? {
|
|
265
|
+
'minimumRunwayDays': this.getMinimumRunwayDays()
|
|
266
|
+
} : {}),
|
|
267
|
+
...(typeof this.getCpuRunwayDays() !== 'undefined' && this.getCpuRunwayDays() !== null ? {
|
|
268
|
+
'cpuRunwayDays': this.getCpuRunwayDays()
|
|
269
|
+
} : {}),
|
|
270
|
+
...(typeof this.getMemoryRunwayDays() !== 'undefined' && this.getMemoryRunwayDays() !== null ? {
|
|
271
|
+
'memoryRunwayDays': this.getMemoryRunwayDays()
|
|
272
|
+
} : {}),
|
|
273
|
+
...(typeof this.getStorageRunwayDays() !== 'undefined' && this.getStorageRunwayDays() !== null ? {
|
|
274
|
+
'storageRunwayDays': this.getStorageRunwayDays()
|
|
275
|
+
} : {}),
|
|
276
|
+
...(typeof this.getRunwayStartTime() !== 'undefined' && this.getRunwayStartTime() !== null ? {
|
|
277
|
+
'runwayStartTime': _assertClassBrand(_Runway_brand, this, _handleDateType).call(this, this.getRunwayStartTime(), false)
|
|
278
|
+
} : {}),
|
|
279
|
+
'$reserved': this.get$Reserved(),
|
|
280
|
+
'$objectType': this.get$ObjectType(),
|
|
281
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
282
|
+
'$unknownFields': {}
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
validate(scope, properties) {
|
|
286
|
+
let propList = [];
|
|
287
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
288
|
+
//cases validate() and validate(scope)
|
|
289
|
+
propList = ["minimumRunwayDays", "cpuRunwayDays", "memoryRunwayDays", "storageRunwayDays", "runwayStartTime"];
|
|
290
|
+
} else if (arguments.length === 1) {
|
|
291
|
+
//case validate(properties)
|
|
292
|
+
propList = arguments[0];
|
|
293
|
+
scope = null;
|
|
294
|
+
} else {
|
|
295
|
+
//case validate(scope, properties)
|
|
296
|
+
propList = arguments[1];
|
|
297
|
+
}
|
|
298
|
+
let res = [];
|
|
299
|
+
let err = null;
|
|
300
|
+
propList.forEach(property => {
|
|
301
|
+
err = this.validateProperty(property, scope);
|
|
302
|
+
if (err) {
|
|
303
|
+
res.push(err);
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
return new Promise(function (resolve, reject) {
|
|
307
|
+
if (res.length !== 0) {
|
|
308
|
+
reject(err);
|
|
309
|
+
} else {
|
|
310
|
+
resolve();
|
|
311
|
+
}
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
validateProperty(scope, property) {
|
|
315
|
+
if (property === "minimumRunwayDays") {
|
|
316
|
+
if (typeof this.minimumRunwayDays === 'undefined' || this.minimumRunwayDays === null) {
|
|
317
|
+
return new _ValidationError.default("minimumRunwayDays", "undefined or null");
|
|
318
|
+
}
|
|
319
|
+
if (!_ValidationUtils.default.validateMaximum(this.minimumRunwayDays, 366)) {
|
|
320
|
+
return new _ValidationError.default("minimumRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
321
|
+
}
|
|
322
|
+
if (!_ValidationUtils.default.validateMinimum(this.minimumRunwayDays, -1)) {
|
|
323
|
+
return new _ValidationError.default("minimumRunwayDays", "does not satisfy required minimum constraint: -1");
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
if (property === "cpuRunwayDays") {
|
|
327
|
+
if (typeof this.cpuRunwayDays === 'undefined' || this.cpuRunwayDays === null) {
|
|
328
|
+
return new _ValidationError.default("cpuRunwayDays", "undefined or null");
|
|
329
|
+
}
|
|
330
|
+
if (!_ValidationUtils.default.validateMaximum(this.cpuRunwayDays, 366)) {
|
|
331
|
+
return new _ValidationError.default("cpuRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
332
|
+
}
|
|
333
|
+
if (!_ValidationUtils.default.validateMinimum(this.cpuRunwayDays, -1)) {
|
|
334
|
+
return new _ValidationError.default("cpuRunwayDays", "does not satisfy required minimum constraint: -1");
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
if (property === "memoryRunwayDays") {
|
|
338
|
+
if (typeof this.memoryRunwayDays === 'undefined' || this.memoryRunwayDays === null) {
|
|
339
|
+
return new _ValidationError.default("memoryRunwayDays", "undefined or null");
|
|
340
|
+
}
|
|
341
|
+
if (!_ValidationUtils.default.validateMaximum(this.memoryRunwayDays, 366)) {
|
|
342
|
+
return new _ValidationError.default("memoryRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
343
|
+
}
|
|
344
|
+
if (!_ValidationUtils.default.validateMinimum(this.memoryRunwayDays, -1)) {
|
|
345
|
+
return new _ValidationError.default("memoryRunwayDays", "does not satisfy required minimum constraint: -1");
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
if (property === "storageRunwayDays") {
|
|
349
|
+
if (typeof this.storageRunwayDays === 'undefined' || this.storageRunwayDays === null) {
|
|
350
|
+
return new _ValidationError.default("storageRunwayDays", "undefined or null");
|
|
351
|
+
}
|
|
352
|
+
if (!_ValidationUtils.default.validateMaximum(this.storageRunwayDays, 366)) {
|
|
353
|
+
return new _ValidationError.default("storageRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
354
|
+
}
|
|
355
|
+
if (!_ValidationUtils.default.validateMinimum(this.storageRunwayDays, -1)) {
|
|
356
|
+
return new _ValidationError.default("storageRunwayDays", "does not satisfy required minimum constraint: -1");
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
if (property === "runwayStartTime") {
|
|
360
|
+
if (typeof this.runwayStartTime === 'undefined' || this.runwayStartTime === null) {
|
|
361
|
+
return new _ValidationError.default("runwayStartTime", "undefined or null");
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
if (property === "$reserved") {
|
|
365
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
366
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if (property === "$objectType") {
|
|
370
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
371
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
if (property === "$unknownFields") {
|
|
375
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
376
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Number of days the cluster will be able to sustain the existing and added workloads. If the value is -1, it indicates that the runway has not yet been calculated for one or more resources.
|
|
385
|
+
* @memberof Runway
|
|
386
|
+
*/
|
|
387
|
+
exports.default = Runway;
|
|
388
|
+
function _toJsonMapType(obj, forMutation) {
|
|
389
|
+
if (obj instanceof Map) {
|
|
390
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
391
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
392
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
393
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
394
|
+
}));
|
|
395
|
+
}
|
|
396
|
+
return obj;
|
|
397
|
+
}
|
|
398
|
+
/*
|
|
399
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
400
|
+
* @param {Object} obj Object to serialize
|
|
401
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
402
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
403
|
+
*/
|
|
404
|
+
function _handleDateType(obj, isDateOnly) {
|
|
405
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
406
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
407
|
+
}
|
|
408
|
+
return obj;
|
|
409
|
+
}
|
|
410
|
+
Runway.prototype.minimumRunwayDays = undefined;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Number of days the CPU can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for CPU.
|
|
414
|
+
* @memberof Runway
|
|
415
|
+
*/
|
|
416
|
+
Runway.prototype.cpuRunwayDays = undefined;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Number of days the memory can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for memory.
|
|
420
|
+
* @memberof Runway
|
|
421
|
+
*/
|
|
422
|
+
Runway.prototype.memoryRunwayDays = undefined;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Number of days the storage can sustain the added and existing workload. If the value is -1, it indicates that the runway is not yet calculated for storage.
|
|
426
|
+
* @memberof Runway
|
|
427
|
+
*/
|
|
428
|
+
Runway.prototype.storageRunwayDays = undefined;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The starting time of the usage, capacity, and effective capacity forecasts. It is used as the start-time in stats API to query scenario statistics.
|
|
432
|
+
* @memberof Runway
|
|
433
|
+
*/
|
|
434
|
+
Runway.prototype.runwayStartTime = undefined;
|
|
435
|
+
Runway.prototype.$reserved = undefined;
|
|
436
|
+
Runway.prototype.$objectType = undefined;
|
|
437
|
+
Runway.prototype.$unknownFields = undefined;
|