@nutanix-scratch/aiops-js-client 4.0.2 → 4.2.1-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/README.md +16 -4
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -1
- package/dist/Ntnx-Aiops-js-client.js +560 -675
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/scenarios-endpoints.d.ts +1 -1
- package/dist/es/apis/scenarios-endpoints.js +535 -552
- package/dist/es/apis/stats-endpoints.d.ts +1 -1
- package/dist/es/apis/stats-endpoints.js +196 -202
- package/dist/es/index.d.ts +13 -35
- package/dist/es/index.js +331 -419
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +233 -280
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +233 -280
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
- package/dist/es/models/aiops/v4/common/ClusterType.js +7 -9
- package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → es/models/aiops/v4/config/CapacityType.d.ts} +6 -6
- package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +7 -9
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +7 -9
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +173 -223
- package/dist/es/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
- package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.js → es/models/aiops/v4/config/ClusterType.js} +24 -26
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +364 -421
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +250 -308
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
- 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 +1 -16
- package/dist/es/models/aiops/v4/config/EntityType.js +129 -171
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +401 -464
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +13 -21
- package/dist/es/models/aiops/v4/config/NodeConfig.js +305 -317
- package/dist/es/models/aiops/v4/config/NodeSource.js +7 -9
- package/dist/es/models/aiops/v4/config/PolicyType.js +7 -9
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +7 -9
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +241 -288
- package/dist/es/models/aiops/v4/config/Runway.d.ts +26 -35
- package/dist/es/models/aiops/v4/config/Runway.js +283 -330
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +39 -83
- package/dist/es/models/aiops/v4/config/Scenario.js +444 -397
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +74 -103
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +1 -25
- package/dist/es/models/aiops/v4/config/Simulation.js +155 -199
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +74 -103
- package/dist/es/models/aiops/v4/config/Source.d.ts +1 -16
- package/dist/es/models/aiops/v4/config/Source.js +129 -171
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +246 -291
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +7 -9
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +7 -9
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +219 -264
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/ValueRange.js +166 -207
- package/dist/es/models/aiops/v4/config/ValueType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiUserType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +216 -261
- package/dist/es/models/aiops/v4/config/Vendor.js +7 -9
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/VmWorkload.js +176 -217
- package/dist/es/models/aiops/v4/config/Workload.d.ts +2 -19
- package/dist/es/models/aiops/v4/config/Workload.js +248 -297
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +7 -9
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +2 -12
- package/dist/es/models/aiops/v4/config/XenWorkload.js +302 -351
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +359 -407
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/aiops/v4/error/AppMessage.js +264 -313
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +175 -218
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/BoolList.js +147 -186
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/BoolVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/DoubleList.js +147 -186
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +1 -2
- package/dist/es/models/aiops/v4/stats/Entity.js +223 -279
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/IntList.js +147 -186
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/IntVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +2 -20
- package/dist/es/models/aiops/v4/stats/Metric.js +166 -207
- package/dist/es/models/aiops/v4/stats/Point.d.ts +2 -8
- package/dist/es/models/aiops/v4/stats/Point.js +199 -244
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/StrList.js +147 -186
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/StrVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +175 -220
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/scenarios-endpoints.d.ts +1 -1
- package/dist/lib/apis/scenarios-endpoints.js +535 -552
- package/dist/lib/apis/stats-endpoints.d.ts +1 -1
- package/dist/lib/apis/stats-endpoints.js +196 -202
- package/dist/lib/index.d.ts +13 -35
- package/dist/lib/index.js +331 -419
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +233 -280
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +233 -280
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
- package/dist/lib/models/aiops/v4/common/ClusterType.js +7 -9
- package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → lib/models/aiops/v4/config/CapacityType.d.ts} +6 -6
- package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +7 -9
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +7 -9
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +173 -223
- package/dist/lib/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
- package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.js → lib/models/aiops/v4/config/ClusterType.js} +24 -26
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +364 -421
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +250 -308
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
- 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 +1 -16
- package/dist/lib/models/aiops/v4/config/EntityType.js +129 -171
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +401 -464
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +13 -21
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +305 -317
- package/dist/lib/models/aiops/v4/config/NodeSource.js +7 -9
- package/dist/lib/models/aiops/v4/config/PolicyType.js +7 -9
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +7 -9
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +241 -288
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +26 -35
- package/dist/lib/models/aiops/v4/config/Runway.js +283 -330
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +39 -83
- package/dist/lib/models/aiops/v4/config/Scenario.js +444 -397
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +74 -103
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +1 -25
- package/dist/lib/models/aiops/v4/config/Simulation.js +155 -199
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +74 -103
- package/dist/lib/models/aiops/v4/config/Source.d.ts +1 -16
- package/dist/lib/models/aiops/v4/config/Source.js +129 -171
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +246 -291
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +7 -9
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +219 -264
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/ValueRange.js +166 -207
- package/dist/lib/models/aiops/v4/config/ValueType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +216 -261
- package/dist/lib/models/aiops/v4/config/Vendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +176 -217
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +2 -19
- package/dist/lib/models/aiops/v4/config/Workload.js +248 -297
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +7 -9
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +2 -12
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +302 -351
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +359 -407
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/aiops/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +175 -218
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/BoolList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +1 -2
- package/dist/lib/models/aiops/v4/stats/Entity.js +223 -279
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/IntList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/IntVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +2 -20
- package/dist/lib/models/aiops/v4/stats/Metric.js +166 -207
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +2 -8
- package/dist/lib/models/aiops/v4/stats/Point.js +199 -244
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/StrList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/StrVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +175 -220
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
- package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
- package/dist/es/models/aiops/v4/capacityplanning/Runway.js +0 -340
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
- package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
- package/dist/es/models/aiops/v4/config/CategoryDetail.js +0 -315
- package/dist/es/models/aiops/v4/config/HardwareModel.d.ts +0 -144
- package/dist/es/models/aiops/v4/config/HardwareModel.js +0 -550
- package/dist/es/models/aiops/v4/config/HardwarePart.d.ts +0 -92
- package/dist/es/models/aiops/v4/config/HardwarePart.js +0 -363
- package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
- package/dist/es/models/aiops/v4/config/IgnoreWindow.js +0 -458
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
- package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +0 -77
- package/dist/es/models/aiops/v4/config/RunwayParams.js +0 -323
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
- package/dist/es/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
- package/dist/es/models/aiops/v4/stats/ScenarioStats.js +0 -323
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +0 -340
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
- package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
- package/dist/lib/models/aiops/v4/config/CategoryDetail.js +0 -315
- package/dist/lib/models/aiops/v4/config/HardwareModel.d.ts +0 -144
- package/dist/lib/models/aiops/v4/config/HardwareModel.js +0 -550
- package/dist/lib/models/aiops/v4/config/HardwarePart.d.ts +0 -92
- package/dist/lib/models/aiops/v4/config/HardwarePart.js +0 -363
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +0 -458
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
- package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +0 -77
- package/dist/lib/models/aiops/v4/config/RunwayParams.js +0 -323
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.js +0 -323
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
|
@@ -3,36 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
8
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
9
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
11
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
13
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
14
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
15
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
17
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
18
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
21
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
23
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
11
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
27
12
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
28
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"); } /*
|
|
29
14
|
* Nutanix AIOps APIs
|
|
30
15
|
*
|
|
31
|
-
* OpenAPI spec version: 4.
|
|
16
|
+
* OpenAPI spec version: 4.2.1-beta-1
|
|
32
17
|
*
|
|
33
18
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
19
|
*
|
|
35
|
-
* Open API Dev Platform Codegen version: 17.
|
|
20
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
36
21
|
*
|
|
37
22
|
* Do not edit the class manually.
|
|
38
23
|
*
|
|
@@ -40,38 +25,37 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
40
25
|
/**
|
|
41
26
|
* The Runway model module.
|
|
42
27
|
* @module Ntnx/Runway
|
|
43
|
-
* @version 4.
|
|
28
|
+
* @version 4.2.1-beta-1
|
|
44
29
|
* @class Runway
|
|
45
30
|
*
|
|
46
|
-
* @param { Number } minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads.
|
|
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.
|
|
47
32
|
*
|
|
48
|
-
* @param { Number } cpuRunwayDays Number of days the CPU can sustain the added and existing workload.
|
|
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.
|
|
49
34
|
*
|
|
50
|
-
* @param { Number } memoryRunwayDays Number of days the memory can sustain the added and existing workload.
|
|
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.
|
|
51
36
|
*
|
|
52
|
-
* @param { Number } storageRunwayDays Number of days the storage can sustain the added and existing workload.
|
|
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.
|
|
53
38
|
*
|
|
54
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.
|
|
55
40
|
*/
|
|
56
41
|
var _Runway_brand = /*#__PURE__*/new WeakSet();
|
|
57
|
-
|
|
42
|
+
class Runway {
|
|
58
43
|
/**
|
|
59
44
|
* Constructs a new <code>Runway</code>.
|
|
60
45
|
* Runway in a scenario.
|
|
61
46
|
* @alias module:Ntnx/Runway
|
|
62
47
|
*
|
|
63
|
-
* @param { Number } minimumRunwayDays Number of days the cluster will be able to sustain the existing and added workloads.
|
|
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.
|
|
64
49
|
*
|
|
65
|
-
* @param { Number } cpuRunwayDays Number of days the CPU can sustain the added and existing workload.
|
|
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.
|
|
66
51
|
*
|
|
67
|
-
* @param { Number } memoryRunwayDays Number of days the memory can sustain the added and existing workload.
|
|
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.
|
|
68
53
|
*
|
|
69
|
-
* @param { Number } storageRunwayDays Number of days the storage can sustain the added and existing workload.
|
|
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.
|
|
70
55
|
*
|
|
71
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.
|
|
72
57
|
*/
|
|
73
|
-
|
|
74
|
-
_classCallCheck(this, Runway);
|
|
58
|
+
constructor(minimumRunwayDays, cpuRunwayDays, memoryRunwayDays, storageRunwayDays, runwayStartTime) {
|
|
75
59
|
/*
|
|
76
60
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
77
61
|
* @param {Object} obj
|
|
@@ -87,7 +71,7 @@ var Runway = exports["default"] = /*#__PURE__*/function () {
|
|
|
87
71
|
this.$objectType = "aiops.v4.config.Runway";
|
|
88
72
|
/** @type {object<string, any>} */
|
|
89
73
|
this.$reserved = {
|
|
90
|
-
'$fv': "v4.
|
|
74
|
+
'$fv': "v4.r2.b1"
|
|
91
75
|
};
|
|
92
76
|
/** @type {object<string, any>} */
|
|
93
77
|
this.$unknownFields = {};
|
|
@@ -101,342 +85,311 @@ var Runway = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
85
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
102
86
|
* @return {module:Ntnx/Runway} The populated <code>Runway</code> instance.
|
|
103
87
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
+
}
|
|
115
130
|
}
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
116
133
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
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
|
+
}
|
|
126
142
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return this.cpuRunwayDays;
|
|
137
|
-
}
|
|
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
|
+
}
|
|
138
152
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
this.cpuRunwayDays = cpuRunwayDays;
|
|
147
|
-
}
|
|
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
|
+
}
|
|
148
160
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return this.memoryRunwayDays;
|
|
159
|
-
}
|
|
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
|
+
}
|
|
160
170
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
this.memoryRunwayDays = memoryRunwayDays;
|
|
169
|
-
}
|
|
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
|
+
}
|
|
170
178
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
return this.storageRunwayDays;
|
|
181
|
-
}
|
|
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
|
+
}
|
|
182
188
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.storageRunwayDays = storageRunwayDays;
|
|
191
|
-
}
|
|
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
|
+
}
|
|
192
196
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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
|
+
}
|
|
202
206
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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 ? {
|
|
232
243
|
'minimumRunwayDays': this.getMinimumRunwayDays()
|
|
233
|
-
} : {}),
|
|
244
|
+
} : {}),
|
|
245
|
+
...(typeof this.getCpuRunwayDays() !== 'undefined' && this.getCpuRunwayDays() !== null ? {
|
|
234
246
|
'cpuRunwayDays': this.getCpuRunwayDays()
|
|
235
|
-
} : {}),
|
|
247
|
+
} : {}),
|
|
248
|
+
...(typeof this.getMemoryRunwayDays() !== 'undefined' && this.getMemoryRunwayDays() !== null ? {
|
|
236
249
|
'memoryRunwayDays': this.getMemoryRunwayDays()
|
|
237
|
-
} : {}),
|
|
250
|
+
} : {}),
|
|
251
|
+
...(typeof this.getStorageRunwayDays() !== 'undefined' && this.getStorageRunwayDays() !== null ? {
|
|
238
252
|
'storageRunwayDays': this.getStorageRunwayDays()
|
|
239
|
-
} : {}),
|
|
253
|
+
} : {}),
|
|
254
|
+
...(typeof this.getRunwayStartTime() !== 'undefined' && this.getRunwayStartTime() !== null ? {
|
|
240
255
|
'runwayStartTime': _assertClassBrand(_Runway_brand, this, _handleDateType).call(this, this.getRunwayStartTime(), false)
|
|
241
|
-
} : {}),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
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 ? {
|
|
248
265
|
'minimumRunwayDays': this.getMinimumRunwayDays()
|
|
249
|
-
} : {}),
|
|
266
|
+
} : {}),
|
|
267
|
+
...(typeof this.getCpuRunwayDays() !== 'undefined' && this.getCpuRunwayDays() !== null ? {
|
|
250
268
|
'cpuRunwayDays': this.getCpuRunwayDays()
|
|
251
|
-
} : {}),
|
|
269
|
+
} : {}),
|
|
270
|
+
...(typeof this.getMemoryRunwayDays() !== 'undefined' && this.getMemoryRunwayDays() !== null ? {
|
|
252
271
|
'memoryRunwayDays': this.getMemoryRunwayDays()
|
|
253
|
-
} : {}),
|
|
272
|
+
} : {}),
|
|
273
|
+
...(typeof this.getStorageRunwayDays() !== 'undefined' && this.getStorageRunwayDays() !== null ? {
|
|
254
274
|
'storageRunwayDays': this.getStorageRunwayDays()
|
|
255
|
-
} : {}),
|
|
275
|
+
} : {}),
|
|
276
|
+
...(typeof this.getRunwayStartTime() !== 'undefined' && this.getRunwayStartTime() !== null ? {
|
|
256
277
|
'runwayStartTime': _assertClassBrand(_Runway_brand, this, _handleDateType).call(this, this.getRunwayStartTime(), false)
|
|
257
|
-
} : {}),
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
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];
|
|
262
297
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
scope = null;
|
|
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);
|
|
275
309
|
} else {
|
|
276
|
-
|
|
277
|
-
|
|
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");
|
|
278
324
|
}
|
|
279
|
-
var res = [];
|
|
280
|
-
var err = null;
|
|
281
|
-
propList.forEach(function (property) {
|
|
282
|
-
err = _this.validateProperty(property, scope);
|
|
283
|
-
if (err) {
|
|
284
|
-
res.push(err);
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
return new Promise(function (resolve, reject) {
|
|
288
|
-
if (res.length !== 0) {
|
|
289
|
-
reject(err);
|
|
290
|
-
} else {
|
|
291
|
-
resolve();
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
325
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
if (property === "minimumRunwayDays") {
|
|
299
|
-
if (typeof this.minimumRunwayDays === 'undefined' || this.minimumRunwayDays === null) {
|
|
300
|
-
return new _ValidationError["default"]("minimumRunwayDays", "undefined or null");
|
|
301
|
-
}
|
|
302
|
-
if (!_ValidationUtils["default"].validateMaximum(this.minimumRunwayDays, 366)) {
|
|
303
|
-
return new _ValidationError["default"]("minimumRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
304
|
-
}
|
|
305
|
-
if (!_ValidationUtils["default"].validateMinimum(this.minimumRunwayDays, 0)) {
|
|
306
|
-
return new _ValidationError["default"]("minimumRunwayDays", "does not satisfy required minimum constraint: 0");
|
|
307
|
-
}
|
|
326
|
+
if (property === "cpuRunwayDays") {
|
|
327
|
+
if (typeof this.cpuRunwayDays === 'undefined' || this.cpuRunwayDays === null) {
|
|
328
|
+
return new _ValidationError.default("cpuRunwayDays", "undefined or null");
|
|
308
329
|
}
|
|
309
|
-
if (
|
|
310
|
-
|
|
311
|
-
return new _ValidationError["default"]("cpuRunwayDays", "undefined or null");
|
|
312
|
-
}
|
|
313
|
-
if (!_ValidationUtils["default"].validateMaximum(this.cpuRunwayDays, 366)) {
|
|
314
|
-
return new _ValidationError["default"]("cpuRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
315
|
-
}
|
|
316
|
-
if (!_ValidationUtils["default"].validateMinimum(this.cpuRunwayDays, 0)) {
|
|
317
|
-
return new _ValidationError["default"]("cpuRunwayDays", "does not satisfy required minimum constraint: 0");
|
|
318
|
-
}
|
|
330
|
+
if (!_ValidationUtils.default.validateMaximum(this.cpuRunwayDays, 366)) {
|
|
331
|
+
return new _ValidationError.default("cpuRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
319
332
|
}
|
|
320
|
-
if (
|
|
321
|
-
|
|
322
|
-
return new _ValidationError["default"]("memoryRunwayDays", "undefined or null");
|
|
323
|
-
}
|
|
324
|
-
if (!_ValidationUtils["default"].validateMaximum(this.memoryRunwayDays, 366)) {
|
|
325
|
-
return new _ValidationError["default"]("memoryRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
326
|
-
}
|
|
327
|
-
if (!_ValidationUtils["default"].validateMinimum(this.memoryRunwayDays, 0)) {
|
|
328
|
-
return new _ValidationError["default"]("memoryRunwayDays", "does not satisfy required minimum constraint: 0");
|
|
329
|
-
}
|
|
333
|
+
if (!_ValidationUtils.default.validateMinimum(this.cpuRunwayDays, -1)) {
|
|
334
|
+
return new _ValidationError.default("cpuRunwayDays", "does not satisfy required minimum constraint: -1");
|
|
330
335
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
if (!_ValidationUtils["default"].validateMaximum(this.storageRunwayDays, 366)) {
|
|
336
|
-
return new _ValidationError["default"]("storageRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
337
|
-
}
|
|
338
|
-
if (!_ValidationUtils["default"].validateMinimum(this.storageRunwayDays, 0)) {
|
|
339
|
-
return new _ValidationError["default"]("storageRunwayDays", "does not satisfy required minimum constraint: 0");
|
|
340
|
-
}
|
|
336
|
+
}
|
|
337
|
+
if (property === "memoryRunwayDays") {
|
|
338
|
+
if (typeof this.memoryRunwayDays === 'undefined' || this.memoryRunwayDays === null) {
|
|
339
|
+
return new _ValidationError.default("memoryRunwayDays", "undefined or null");
|
|
341
340
|
}
|
|
342
|
-
if (
|
|
343
|
-
|
|
344
|
-
return new _ValidationError["default"]("runwayStartTime", "undefined or null");
|
|
345
|
-
}
|
|
341
|
+
if (!_ValidationUtils.default.validateMaximum(this.memoryRunwayDays, 366)) {
|
|
342
|
+
return new _ValidationError.default("memoryRunwayDays", "does not satisfy required maximum constraint: 366");
|
|
346
343
|
}
|
|
347
|
-
if (
|
|
348
|
-
|
|
349
|
-
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
350
|
-
}
|
|
344
|
+
if (!_ValidationUtils.default.validateMinimum(this.memoryRunwayDays, -1)) {
|
|
345
|
+
return new _ValidationError.default("memoryRunwayDays", "does not satisfy required minimum constraint: -1");
|
|
351
346
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
347
|
+
}
|
|
348
|
+
if (property === "storageRunwayDays") {
|
|
349
|
+
if (typeof this.storageRunwayDays === 'undefined' || this.storageRunwayDays === null) {
|
|
350
|
+
return new _ValidationError.default("storageRunwayDays", "undefined or null");
|
|
356
351
|
}
|
|
357
|
-
if (
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
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");
|
|
361
357
|
}
|
|
362
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
363
358
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
368
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
369
|
-
var items, item, i, itemArr, discriminator;
|
|
370
|
-
if (data) {
|
|
371
|
-
obj = obj || new Runway();
|
|
372
|
-
if (data.hasOwnProperty('minimumRunwayDays') && data.minimumRunwayDays !== null && data.minimumRunwayDays !== undefined) {
|
|
373
|
-
obj.setMinimumRunwayDays(data['minimumRunwayDays']);
|
|
374
|
-
}
|
|
375
|
-
if (data.hasOwnProperty('cpuRunwayDays') && data.cpuRunwayDays !== null && data.cpuRunwayDays !== undefined) {
|
|
376
|
-
obj.setCpuRunwayDays(data['cpuRunwayDays']);
|
|
377
|
-
}
|
|
378
|
-
if (data.hasOwnProperty('memoryRunwayDays') && data.memoryRunwayDays !== null && data.memoryRunwayDays !== undefined) {
|
|
379
|
-
obj.setMemoryRunwayDays(data['memoryRunwayDays']);
|
|
380
|
-
}
|
|
381
|
-
if (data.hasOwnProperty('storageRunwayDays') && data.storageRunwayDays !== null && data.storageRunwayDays !== undefined) {
|
|
382
|
-
obj.setStorageRunwayDays(data['storageRunwayDays']);
|
|
383
|
-
}
|
|
384
|
-
if (data.hasOwnProperty('runwayStartTime') && data.runwayStartTime !== null && data.runwayStartTime !== undefined) {
|
|
385
|
-
obj.setRunwayStartTime(data['runwayStartTime']);
|
|
386
|
-
}
|
|
387
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
388
|
-
obj.$reserved = data['$reserved'];
|
|
389
|
-
}
|
|
390
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
391
|
-
obj.$objectType = data['$objectType'];
|
|
392
|
-
}
|
|
393
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
394
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
395
|
-
}
|
|
396
|
-
if (!callFromChild) {
|
|
397
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
398
|
-
for (var property in data) {
|
|
399
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
400
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
401
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
402
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
403
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
404
|
-
obj.$unknownFields[property] = data[property];
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
}
|
|
359
|
+
if (property === "runwayStartTime") {
|
|
360
|
+
if (typeof this.runwayStartTime === 'undefined' || this.runwayStartTime === null) {
|
|
361
|
+
return new _ValidationError.default("runwayStartTime", "undefined or null");
|
|
408
362
|
}
|
|
409
|
-
return obj;
|
|
410
363
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
* @returns {string} - The converted string in camelCase format.
|
|
416
|
-
*/
|
|
417
|
-
}, {
|
|
418
|
-
key: "snakeToCamel",
|
|
419
|
-
value: function snakeToCamel(snakeStr) {
|
|
420
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
421
|
-
return match[1].toUpperCase();
|
|
422
|
-
});
|
|
364
|
+
if (property === "$reserved") {
|
|
365
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
366
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
367
|
+
}
|
|
423
368
|
}
|
|
424
|
-
|
|
425
|
-
|
|
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
|
+
|
|
426
383
|
/**
|
|
427
|
-
* Number of days the cluster will be able to sustain the existing and added workloads.
|
|
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.
|
|
428
385
|
* @memberof Runway
|
|
429
386
|
*/
|
|
387
|
+
exports.default = Runway;
|
|
430
388
|
function _toJsonMapType(obj, forMutation) {
|
|
431
389
|
if (obj instanceof Map) {
|
|
432
|
-
return Object.fromEntries(Array.from(obj,
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
v = _ref2[1];
|
|
436
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
437
|
-
}));
|
|
438
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
439
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
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 => {
|
|
440
393
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
441
394
|
}));
|
|
442
395
|
}
|
|
@@ -457,19 +410,19 @@ function _handleDateType(obj, isDateOnly) {
|
|
|
457
410
|
Runway.prototype.minimumRunwayDays = undefined;
|
|
458
411
|
|
|
459
412
|
/**
|
|
460
|
-
* Number of days the CPU can sustain the added and existing workload.
|
|
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.
|
|
461
414
|
* @memberof Runway
|
|
462
415
|
*/
|
|
463
416
|
Runway.prototype.cpuRunwayDays = undefined;
|
|
464
417
|
|
|
465
418
|
/**
|
|
466
|
-
* Number of days the memory can sustain the added and existing workload.
|
|
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.
|
|
467
420
|
* @memberof Runway
|
|
468
421
|
*/
|
|
469
422
|
Runway.prototype.memoryRunwayDays = undefined;
|
|
470
423
|
|
|
471
424
|
/**
|
|
472
|
-
* Number of days the storage can sustain the added and existing workload.
|
|
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.
|
|
473
426
|
* @memberof Runway
|
|
474
427
|
*/
|
|
475
428
|
Runway.prototype.storageRunwayDays = undefined;
|