@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,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ClusterConfig = _interopRequireDefault(require("./ClusterConfig"));
|
|
8
8
|
var _Runway = _interopRequireDefault(require("./Runway"));
|
|
9
9
|
var _Vendor = _interopRequireDefault(require("./Vendor"));
|
|
@@ -14,39 +14,17 @@ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../comm
|
|
|
14
14
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
15
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
16
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
18
|
-
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); }
|
|
19
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
20
|
-
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."); }
|
|
21
|
-
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; } }
|
|
22
|
-
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; }
|
|
23
|
-
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; } }
|
|
24
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
25
|
-
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; }
|
|
26
|
-
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; }
|
|
27
|
-
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; }
|
|
28
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
|
-
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); } }
|
|
30
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
31
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
32
|
-
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); }
|
|
33
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
34
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
35
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
36
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
38
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
39
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
40
18
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
41
19
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
42
20
|
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"); } /*
|
|
43
21
|
* Nutanix AIOps APIs
|
|
44
22
|
*
|
|
45
|
-
* OpenAPI spec version: 4.
|
|
23
|
+
* OpenAPI spec version: 4.2.1-beta-1
|
|
46
24
|
*
|
|
47
25
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
48
26
|
*
|
|
49
|
-
* Open API Dev Platform Codegen version: 17.
|
|
27
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
50
28
|
*
|
|
51
29
|
* Do not edit the class manually.
|
|
52
30
|
*
|
|
@@ -54,37 +32,34 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
54
32
|
/**
|
|
55
33
|
* The Scenario model module.
|
|
56
34
|
* @module Ntnx/Scenario
|
|
57
|
-
* @version 4.
|
|
35
|
+
* @version 4.2.1-beta-1
|
|
58
36
|
* @class Scenario
|
|
59
37
|
* @extends ExternalizableAbstractModel
|
|
60
38
|
*/
|
|
61
39
|
var _Scenario_brand = /*#__PURE__*/new WeakSet();
|
|
62
|
-
|
|
40
|
+
class Scenario extends _ExternalizableAbstractModel.default {
|
|
63
41
|
/**
|
|
64
42
|
* Constructs a new <code>Scenario</code>.
|
|
65
43
|
* WhatIf Scenario.
|
|
66
44
|
* @alias module:Ntnx/Scenario
|
|
67
45
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
68
46
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
_classCallCheck(this, Scenario);
|
|
72
|
-
_this = _callSuper(this, Scenario);
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
73
49
|
/*
|
|
74
50
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
75
51
|
* @param {Object} obj
|
|
76
52
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
77
53
|
* Otherwise, just returns the input object.
|
|
78
54
|
*/
|
|
79
|
-
_classPrivateMethodInitSpec(
|
|
80
|
-
|
|
55
|
+
_classPrivateMethodInitSpec(this, _Scenario_brand);
|
|
56
|
+
this.$objectType = "aiops.v4.config.Scenario";
|
|
81
57
|
/** @type {object<string, any>} */
|
|
82
|
-
|
|
83
|
-
'$fv': "v4.
|
|
58
|
+
this.$reserved = {
|
|
59
|
+
'$fv': "v4.r2.b1"
|
|
84
60
|
};
|
|
85
61
|
/** @type {object<string, any>} */
|
|
86
|
-
|
|
87
|
-
return _this;
|
|
62
|
+
this.$unknownFields = {};
|
|
88
63
|
}
|
|
89
64
|
|
|
90
65
|
/**
|
|
@@ -95,413 +70,467 @@ var Scenario = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra
|
|
|
95
70
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
96
71
|
* @return {module:Ntnx/Scenario} The populated <code>Scenario</code> instance.
|
|
97
72
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
73
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
74
|
+
let items, item, i, itemArr, discriminator;
|
|
75
|
+
if (data) {
|
|
76
|
+
obj = obj || new Scenario();
|
|
77
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
78
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
79
|
+
obj.setName(data['name']);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
82
|
+
obj.setClusterExtId(data['clusterExtId']);
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('vendors') && data.vendors !== null && data.vendors !== undefined) {
|
|
85
|
+
itemArr = [];
|
|
86
|
+
items = data.vendors;
|
|
87
|
+
for (i = 0; i < items.length; i++) {
|
|
88
|
+
item = _Vendor.default.constructFromObject(items[i], undefined);
|
|
89
|
+
itemArr.push(item);
|
|
90
|
+
}
|
|
91
|
+
obj.setVendors(itemArr);
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('updatedTime') && data.updatedTime !== null && data.updatedTime !== undefined) {
|
|
94
|
+
obj.setUpdatedTime(data['updatedTime']);
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('targetRunwayDays') && data.targetRunwayDays !== null && data.targetRunwayDays !== undefined) {
|
|
97
|
+
obj.setTargetRunwayDays(data['targetRunwayDays']);
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('runway') && data.runway !== null && data.runway !== undefined) {
|
|
100
|
+
obj.setRunway(_Runway.default.constructFromObject(data['runway']));
|
|
101
|
+
}
|
|
102
|
+
if (data.hasOwnProperty('workloads') && data.workloads !== null && data.workloads !== undefined) {
|
|
103
|
+
itemArr = [];
|
|
104
|
+
items = data.workloads;
|
|
105
|
+
for (i = 0; i < items.length; i++) {
|
|
106
|
+
item = _Workload.default.constructFromObject(items[i], undefined);
|
|
107
|
+
itemArr.push(item);
|
|
108
|
+
}
|
|
109
|
+
obj.setWorkloads(itemArr);
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('clusterConfig') && data.clusterConfig !== null && data.clusterConfig !== undefined) {
|
|
112
|
+
obj.setClusterConfig(_ClusterConfig.default.constructFromObject(data['clusterConfig']));
|
|
113
|
+
}
|
|
114
|
+
if (data.hasOwnProperty('accountId') && data.accountId !== null && data.accountId !== undefined) {
|
|
115
|
+
obj.setAccountId(data['accountId']);
|
|
116
|
+
}
|
|
117
|
+
if (data.hasOwnProperty('domainId') && data.domainId !== null && data.domainId !== undefined) {
|
|
118
|
+
obj.setDomainId(data['domainId']);
|
|
119
|
+
}
|
|
120
|
+
if (data.hasOwnProperty('providerId') && data.providerId !== null && data.providerId !== undefined) {
|
|
121
|
+
obj.setProviderId(data['providerId']);
|
|
122
|
+
}
|
|
123
|
+
if (!callFromChild) {
|
|
124
|
+
obj.$unknownFields = {
|
|
125
|
+
...data.$unknownFields
|
|
126
|
+
};
|
|
127
|
+
for (const property in data) {
|
|
128
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
129
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
130
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
131
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
132
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
133
|
+
obj.$unknownFields[property] = data[property];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
108
137
|
}
|
|
138
|
+
return obj;
|
|
139
|
+
}
|
|
109
140
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
141
|
+
/**
|
|
142
|
+
* Converts a given snake_case string to camelCase.
|
|
143
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
144
|
+
* @returns {string} - The converted string in camelCase format.
|
|
145
|
+
*/
|
|
146
|
+
static snakeToCamel(snakeStr) {
|
|
147
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
148
|
+
}
|
|
119
149
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return this.clusterExtId;
|
|
128
|
-
}
|
|
150
|
+
/**
|
|
151
|
+
* Returns Name of capacity planning scenario.
|
|
152
|
+
* @return {string}
|
|
153
|
+
*/
|
|
154
|
+
getName() {
|
|
155
|
+
return this.name;
|
|
156
|
+
}
|
|
129
157
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
this.clusterExtId = clusterExtId;
|
|
138
|
-
}
|
|
158
|
+
/**
|
|
159
|
+
* Sets Name of capacity planning scenario.
|
|
160
|
+
* @param {string} name Name of capacity planning scenario.
|
|
161
|
+
*/
|
|
162
|
+
setName(name) {
|
|
163
|
+
this.name = name;
|
|
164
|
+
}
|
|
139
165
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
return this.vendors;
|
|
148
|
-
}
|
|
166
|
+
/**
|
|
167
|
+
* Returns UUID of the cluster for which Whatif analysis is being performed.
|
|
168
|
+
* @return {string}
|
|
169
|
+
*/
|
|
170
|
+
getClusterExtId() {
|
|
171
|
+
return this.clusterExtId;
|
|
172
|
+
}
|
|
149
173
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this.vendors = vendors;
|
|
158
|
-
}
|
|
174
|
+
/**
|
|
175
|
+
* Sets UUID of the cluster for which Whatif analysis is being performed.
|
|
176
|
+
* @param {string} clusterExtId UUID of the cluster for which Whatif analysis is being performed.
|
|
177
|
+
*/
|
|
178
|
+
setClusterExtId(clusterExtId) {
|
|
179
|
+
this.clusterExtId = clusterExtId;
|
|
180
|
+
}
|
|
159
181
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
return this.updatedTime;
|
|
168
|
-
}
|
|
182
|
+
/**
|
|
183
|
+
* Returns A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario. This is an optional attribute but must be provided in case clusterExtId is not provided.
|
|
184
|
+
* @return {Vendor[]}
|
|
185
|
+
*/
|
|
186
|
+
getVendors() {
|
|
187
|
+
return this.vendors;
|
|
188
|
+
}
|
|
169
189
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
this.updatedTime = updatedTime;
|
|
178
|
-
}
|
|
190
|
+
/**
|
|
191
|
+
* Sets A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario. This is an optional attribute but must be provided in case clusterExtId is not provided.
|
|
192
|
+
* @param {Vendor[]} vendors A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario. This is an optional attribute but must be provided in case clusterExtId is not provided.
|
|
193
|
+
*/
|
|
194
|
+
setVendors(vendors) {
|
|
195
|
+
this.vendors = vendors;
|
|
196
|
+
}
|
|
179
197
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
key: "getTargetRunwayDays",
|
|
188
|
-
value: function getTargetRunwayDays() {
|
|
189
|
-
return this.targetRunwayDays;
|
|
190
|
-
}
|
|
198
|
+
/**
|
|
199
|
+
* Returns Timestamp when the capacity planning scenario is updated. The value should be in ISO-8601 format. For example, 2022-02-20T00:00:00.458Z.
|
|
200
|
+
* @return {Date}
|
|
201
|
+
*/
|
|
202
|
+
getUpdatedTime() {
|
|
203
|
+
return this.updatedTime;
|
|
204
|
+
}
|
|
191
205
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
this.targetRunwayDays = targetRunwayDays;
|
|
200
|
-
}
|
|
206
|
+
/**
|
|
207
|
+
* Sets Timestamp when the capacity planning scenario is updated. The value should be in ISO-8601 format. For example, 2022-02-20T00:00:00.458Z.
|
|
208
|
+
* @param {Date} updatedTime Timestamp when the capacity planning scenario is updated. The value should be in ISO-8601 format. For example, 2022-02-20T00:00:00.458Z.
|
|
209
|
+
*/
|
|
210
|
+
setUpdatedTime(updatedTime) {
|
|
211
|
+
this.updatedTime = updatedTime;
|
|
212
|
+
}
|
|
201
213
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
214
|
+
/**
|
|
215
|
+
* Returns Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
|
|
216
|
+
* minimum: 30
|
|
217
|
+
* maximum: 360
|
|
218
|
+
* @return {Number}
|
|
219
|
+
*/
|
|
220
|
+
getTargetRunwayDays() {
|
|
221
|
+
return this.targetRunwayDays;
|
|
222
|
+
}
|
|
210
223
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
224
|
+
/**
|
|
225
|
+
* Sets Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
|
|
226
|
+
* @param {Number} targetRunwayDays Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
|
|
227
|
+
*/
|
|
228
|
+
setTargetRunwayDays(targetRunwayDays) {
|
|
229
|
+
this.targetRunwayDays = targetRunwayDays;
|
|
230
|
+
}
|
|
219
231
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
value: function getWorkloads() {
|
|
227
|
-
return this.workloads;
|
|
228
|
-
}
|
|
232
|
+
/**
|
|
233
|
+
* @return {Runway}
|
|
234
|
+
*/
|
|
235
|
+
getRunway() {
|
|
236
|
+
return this.runway;
|
|
237
|
+
}
|
|
229
238
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
value: function setWorkloads(workloads) {
|
|
237
|
-
this.workloads = workloads;
|
|
238
|
-
}
|
|
239
|
+
/**
|
|
240
|
+
* @param {Runway} runway
|
|
241
|
+
*/
|
|
242
|
+
setRunway(runway) {
|
|
243
|
+
this.runway = runway;
|
|
244
|
+
}
|
|
239
245
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
246
|
+
/**
|
|
247
|
+
* Returns List of workloads for which runway analysis is being done. It can be considered an additional resource requirement required to run a specific use case. For example, a SQL server.
|
|
248
|
+
* @return {Workload[]}
|
|
249
|
+
*/
|
|
250
|
+
getWorkloads() {
|
|
251
|
+
return this.workloads;
|
|
252
|
+
}
|
|
248
253
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
254
|
+
/**
|
|
255
|
+
* Sets List of workloads for which runway analysis is being done. It can be considered an additional resource requirement required to run a specific use case. For example, a SQL server.
|
|
256
|
+
* @param {Workload[]} workloads List of workloads for which runway analysis is being done. It can be considered an additional resource requirement required to run a specific use case. For example, a SQL server.
|
|
257
|
+
*/
|
|
258
|
+
setWorkloads(workloads) {
|
|
259
|
+
this.workloads = workloads;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @return {ClusterConfig}
|
|
264
|
+
*/
|
|
265
|
+
getClusterConfig() {
|
|
266
|
+
return this.clusterConfig;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* @param {ClusterConfig} clusterConfig
|
|
271
|
+
*/
|
|
272
|
+
setClusterConfig(clusterConfig) {
|
|
273
|
+
this.clusterConfig = clusterConfig;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Returns Account ID of the cluster.
|
|
278
|
+
* @return {string}
|
|
279
|
+
*/
|
|
280
|
+
getAccountId() {
|
|
281
|
+
return this.accountId;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Sets Account ID of the cluster.
|
|
286
|
+
* @param {string} accountId Account ID of the cluster.
|
|
287
|
+
*/
|
|
288
|
+
setAccountId(accountId) {
|
|
289
|
+
this.accountId = accountId;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Returns Domain ID of the cluster.
|
|
294
|
+
* @return {string}
|
|
295
|
+
*/
|
|
296
|
+
getDomainId() {
|
|
297
|
+
return this.domainId;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Sets Domain ID of the cluster.
|
|
302
|
+
* @param {string} domainId Domain ID of the cluster.
|
|
303
|
+
*/
|
|
304
|
+
setDomainId(domainId) {
|
|
305
|
+
this.domainId = domainId;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Returns Provider ID of the cluster.
|
|
310
|
+
* @return {string}
|
|
311
|
+
*/
|
|
312
|
+
getProviderId() {
|
|
313
|
+
return this.providerId;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Sets Provider ID of the cluster.
|
|
318
|
+
* @param {string} providerId Provider ID of the cluster.
|
|
319
|
+
*/
|
|
320
|
+
setProviderId(providerId) {
|
|
321
|
+
this.providerId = providerId;
|
|
322
|
+
}
|
|
323
|
+
toJson(forMutation) {
|
|
324
|
+
if (forMutation === false) {
|
|
325
|
+
return {
|
|
326
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
262
327
|
'name': this.getName()
|
|
263
|
-
} : {}),
|
|
328
|
+
} : {}),
|
|
329
|
+
...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
264
330
|
'clusterExtId': this.getClusterExtId()
|
|
265
|
-
} : {}),
|
|
331
|
+
} : {}),
|
|
332
|
+
...(typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
|
|
266
333
|
'vendors': this.getVendors()
|
|
267
|
-
} : {}),
|
|
334
|
+
} : {}),
|
|
335
|
+
...(typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
|
|
268
336
|
'updatedTime': _assertClassBrand(_Scenario_brand, this, _handleDateType).call(this, this.getUpdatedTime(), false)
|
|
269
|
-
} : {}),
|
|
337
|
+
} : {}),
|
|
338
|
+
...(typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
|
|
270
339
|
'targetRunwayDays': this.getTargetRunwayDays()
|
|
271
|
-
} : {}),
|
|
340
|
+
} : {}),
|
|
341
|
+
...(typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
|
|
272
342
|
'runway': this.getRunway().toJson(false)
|
|
273
|
-
} : {}),
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
343
|
+
} : {}),
|
|
344
|
+
...(typeof this.getWorkloads() !== 'undefined' && this.getWorkloads() !== null ? {
|
|
345
|
+
'workloads': this.getWorkloads().map(item => item.toJson(false))
|
|
346
|
+
} : {}),
|
|
347
|
+
...(typeof this.getClusterConfig() !== 'undefined' && this.getClusterConfig() !== null ? {
|
|
278
348
|
'clusterConfig': this.getClusterConfig().toJson(false)
|
|
279
|
-
} : {}),
|
|
349
|
+
} : {}),
|
|
350
|
+
...(typeof this.getAccountId() !== 'undefined' && this.getAccountId() !== null ? {
|
|
351
|
+
'accountId': this.getAccountId()
|
|
352
|
+
} : {}),
|
|
353
|
+
...(typeof this.getDomainId() !== 'undefined' && this.getDomainId() !== null ? {
|
|
354
|
+
'domainId': this.getDomainId()
|
|
355
|
+
} : {}),
|
|
356
|
+
...(typeof this.getProviderId() !== 'undefined' && this.getProviderId() !== null ? {
|
|
357
|
+
'providerId': this.getProviderId()
|
|
358
|
+
} : {}),
|
|
359
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
280
360
|
'extId': this.getExtId()
|
|
281
|
-
} : {}),
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
361
|
+
} : {}),
|
|
362
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
363
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
364
|
+
} : {}),
|
|
365
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
286
366
|
'tenantId': this.getTenantId()
|
|
287
|
-
} : {}),
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
367
|
+
} : {}),
|
|
368
|
+
'$reserved': this.get$Reserved(),
|
|
369
|
+
'$objectType': this.get$ObjectType(),
|
|
370
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
371
|
+
'$unknownFields': {}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
return {
|
|
375
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
294
376
|
'name': this.getName()
|
|
295
|
-
} : {}),
|
|
377
|
+
} : {}),
|
|
378
|
+
...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
296
379
|
'clusterExtId': this.getClusterExtId()
|
|
297
|
-
} : {}),
|
|
380
|
+
} : {}),
|
|
381
|
+
...(typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
|
|
298
382
|
'vendors': this.getVendors()
|
|
299
|
-
} : {}),
|
|
383
|
+
} : {}),
|
|
384
|
+
...(typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
|
|
300
385
|
'targetRunwayDays': this.getTargetRunwayDays()
|
|
301
|
-
} : {}),
|
|
386
|
+
} : {}),
|
|
387
|
+
...(typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
|
|
302
388
|
'runway': this.getRunway().toJson(false)
|
|
303
|
-
} : {}),
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
389
|
+
} : {}),
|
|
390
|
+
...(typeof this.getWorkloads() !== 'undefined' && this.getWorkloads() !== null ? {
|
|
391
|
+
'workloads': this.getWorkloads().map(item => item.toJson(false))
|
|
392
|
+
} : {}),
|
|
393
|
+
...(typeof this.getClusterConfig() !== 'undefined' && this.getClusterConfig() !== null ? {
|
|
308
394
|
'clusterConfig': this.getClusterConfig().toJson(false)
|
|
309
|
-
} : {}),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
395
|
+
} : {}),
|
|
396
|
+
'$reserved': this.get$Reserved(),
|
|
397
|
+
'$objectType': this.get$ObjectType(),
|
|
398
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
399
|
+
'$unknownFields': {}
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
validate(scope, properties) {
|
|
403
|
+
let propList = [];
|
|
404
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
405
|
+
//cases validate() and validate(scope)
|
|
406
|
+
propList = [];
|
|
407
|
+
} else if (arguments.length === 1) {
|
|
408
|
+
//case validate(properties)
|
|
409
|
+
propList = arguments[0];
|
|
410
|
+
scope = null;
|
|
411
|
+
} else {
|
|
412
|
+
//case validate(scope, properties)
|
|
413
|
+
propList = arguments[1];
|
|
314
414
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
scope = null;
|
|
415
|
+
let res = [];
|
|
416
|
+
let err = null;
|
|
417
|
+
propList.forEach(property => {
|
|
418
|
+
err = this.validateProperty(property, scope);
|
|
419
|
+
if (err) {
|
|
420
|
+
res.push(err);
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
return new Promise(function (resolve, reject) {
|
|
424
|
+
if (res.length !== 0) {
|
|
425
|
+
reject(err);
|
|
327
426
|
} else {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
resolve();
|
|
344
|
-
}
|
|
345
|
-
});
|
|
427
|
+
resolve();
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
validateProperty(scope, property) {
|
|
432
|
+
if (property === "name") {
|
|
433
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
434
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
435
|
+
}
|
|
436
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 256)) {
|
|
437
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 256");
|
|
438
|
+
}
|
|
439
|
+
if (!_ValidationUtils.default.validateMinLength(this.name, 1)) {
|
|
440
|
+
return new _ValidationError.default("name", "does not satisfy required minLength constraint: 1");
|
|
441
|
+
}
|
|
346
442
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
if (property === "name") {
|
|
351
|
-
if (typeof this.name === 'undefined' || this.name === null) {
|
|
352
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
353
|
-
}
|
|
354
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
|
|
355
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
|
|
356
|
-
}
|
|
357
|
-
if (!_ValidationUtils["default"].validateMinLength(this.name, 1)) {
|
|
358
|
-
return new _ValidationError["default"]("name", "does not satisfy required minLength constraint: 1");
|
|
359
|
-
}
|
|
443
|
+
if (property === "clusterExtId") {
|
|
444
|
+
if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
|
|
445
|
+
return new _ValidationError.default("clusterExtId", "undefined or null");
|
|
360
446
|
}
|
|
361
|
-
if (
|
|
362
|
-
|
|
363
|
-
return new _ValidationError["default"]("clusterExtId", "undefined or null");
|
|
364
|
-
}
|
|
365
|
-
if (!_ValidationUtils["default"].validatePattern(this.clusterExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
366
|
-
return new _ValidationError["default"]("clusterExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
367
|
-
}
|
|
447
|
+
if (!_ValidationUtils.default.validatePattern(this.clusterExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
448
|
+
return new _ValidationError.default("clusterExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
368
449
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.vendors, 10)) {
|
|
374
|
-
return new _ValidationError["default"]("vendors", "does not satisfy required maxItems constraint: 10");
|
|
375
|
-
}
|
|
376
|
-
if (!_ValidationUtils["default"].validateMinItems(this.vendors, 1)) {
|
|
377
|
-
return new _ValidationError["default"]("vendors", "does not satisfy required minItems constraint: 1");
|
|
378
|
-
}
|
|
450
|
+
}
|
|
451
|
+
if (property === "vendors") {
|
|
452
|
+
if (typeof this.vendors === 'undefined' || this.vendors === null) {
|
|
453
|
+
return new _ValidationError.default("vendors", "undefined or null");
|
|
379
454
|
}
|
|
380
|
-
if (
|
|
381
|
-
|
|
382
|
-
return new _ValidationError["default"]("updatedTime", "undefined or null");
|
|
383
|
-
}
|
|
455
|
+
if (!_ValidationUtils.default.validateMaxItems(this.vendors, 10)) {
|
|
456
|
+
return new _ValidationError.default("vendors", "does not satisfy required maxItems constraint: 10");
|
|
384
457
|
}
|
|
385
|
-
if (
|
|
386
|
-
|
|
387
|
-
return new _ValidationError["default"]("targetRunwayDays", "undefined or null");
|
|
388
|
-
}
|
|
389
|
-
if (!_ValidationUtils["default"].validateMaximum(this.targetRunwayDays, 360)) {
|
|
390
|
-
return new _ValidationError["default"]("targetRunwayDays", "does not satisfy required maximum constraint: 360");
|
|
391
|
-
}
|
|
392
|
-
if (!_ValidationUtils["default"].validateMinimum(this.targetRunwayDays, 30)) {
|
|
393
|
-
return new _ValidationError["default"]("targetRunwayDays", "does not satisfy required minimum constraint: 30");
|
|
394
|
-
}
|
|
458
|
+
if (!_ValidationUtils.default.validateMinItems(this.vendors, 1)) {
|
|
459
|
+
return new _ValidationError.default("vendors", "does not satisfy required minItems constraint: 1");
|
|
395
460
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
461
|
+
}
|
|
462
|
+
if (property === "updatedTime") {
|
|
463
|
+
if (typeof this.updatedTime === 'undefined' || this.updatedTime === null) {
|
|
464
|
+
return new _ValidationError.default("updatedTime", "undefined or null");
|
|
400
465
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.workloads, 250)) {
|
|
406
|
-
return new _ValidationError["default"]("workloads", "does not satisfy required maxItems constraint: 250");
|
|
407
|
-
}
|
|
466
|
+
}
|
|
467
|
+
if (property === "targetRunwayDays") {
|
|
468
|
+
if (typeof this.targetRunwayDays === 'undefined' || this.targetRunwayDays === null) {
|
|
469
|
+
return new _ValidationError.default("targetRunwayDays", "undefined or null");
|
|
408
470
|
}
|
|
409
|
-
if (
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
471
|
+
if (!_ValidationUtils.default.validateMaximum(this.targetRunwayDays, 360)) {
|
|
472
|
+
return new _ValidationError.default("targetRunwayDays", "does not satisfy required maximum constraint: 360");
|
|
473
|
+
}
|
|
474
|
+
if (!_ValidationUtils.default.validateMinimum(this.targetRunwayDays, 30)) {
|
|
475
|
+
return new _ValidationError.default("targetRunwayDays", "does not satisfy required minimum constraint: 30");
|
|
413
476
|
}
|
|
414
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
415
477
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
420
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
421
|
-
var items, item, i, itemArr, discriminator;
|
|
422
|
-
if (data) {
|
|
423
|
-
obj = obj || new Scenario();
|
|
424
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
425
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
426
|
-
obj.setName(data['name']);
|
|
427
|
-
}
|
|
428
|
-
if (data.hasOwnProperty('clusterExtId') && data.clusterExtId !== null && data.clusterExtId !== undefined) {
|
|
429
|
-
obj.setClusterExtId(data['clusterExtId']);
|
|
430
|
-
}
|
|
431
|
-
if (data.hasOwnProperty('vendors') && data.vendors !== null && data.vendors !== undefined) {
|
|
432
|
-
itemArr = [];
|
|
433
|
-
items = data.vendors;
|
|
434
|
-
for (i = 0; i < items.length; i++) {
|
|
435
|
-
item = _Vendor["default"].constructFromObject(items[i], undefined);
|
|
436
|
-
itemArr.push(item);
|
|
437
|
-
}
|
|
438
|
-
obj.setVendors(itemArr);
|
|
439
|
-
}
|
|
440
|
-
if (data.hasOwnProperty('updatedTime') && data.updatedTime !== null && data.updatedTime !== undefined) {
|
|
441
|
-
obj.setUpdatedTime(data['updatedTime']);
|
|
442
|
-
}
|
|
443
|
-
if (data.hasOwnProperty('targetRunwayDays') && data.targetRunwayDays !== null && data.targetRunwayDays !== undefined) {
|
|
444
|
-
obj.setTargetRunwayDays(data['targetRunwayDays']);
|
|
445
|
-
}
|
|
446
|
-
if (data.hasOwnProperty('runway') && data.runway !== null && data.runway !== undefined) {
|
|
447
|
-
obj.setRunway(_Runway["default"].constructFromObject(data['runway']));
|
|
448
|
-
}
|
|
449
|
-
if (data.hasOwnProperty('workloads') && data.workloads !== null && data.workloads !== undefined) {
|
|
450
|
-
itemArr = [];
|
|
451
|
-
items = data.workloads;
|
|
452
|
-
for (i = 0; i < items.length; i++) {
|
|
453
|
-
item = _Workload["default"].constructFromObject(items[i], undefined);
|
|
454
|
-
itemArr.push(item);
|
|
455
|
-
}
|
|
456
|
-
obj.setWorkloads(itemArr);
|
|
457
|
-
}
|
|
458
|
-
if (data.hasOwnProperty('clusterConfig') && data.clusterConfig !== null && data.clusterConfig !== undefined) {
|
|
459
|
-
obj.setClusterConfig(_ClusterConfig["default"].constructFromObject(data['clusterConfig']));
|
|
460
|
-
}
|
|
461
|
-
if (!callFromChild) {
|
|
462
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
463
|
-
for (var property in data) {
|
|
464
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
465
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
466
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
467
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
468
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
469
|
-
obj.$unknownFields[property] = data[property];
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
}
|
|
478
|
+
if (property === "runway") {
|
|
479
|
+
if (typeof this.runway === 'undefined' || this.runway === null) {
|
|
480
|
+
return new _ValidationError.default("runway", "undefined or null");
|
|
473
481
|
}
|
|
474
|
-
return obj;
|
|
475
482
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
return
|
|
487
|
-
}
|
|
483
|
+
if (property === "workloads") {
|
|
484
|
+
if (typeof this.workloads === 'undefined' || this.workloads === null) {
|
|
485
|
+
return new _ValidationError.default("workloads", "undefined or null");
|
|
486
|
+
}
|
|
487
|
+
if (!_ValidationUtils.default.validateMaxItems(this.workloads, 250)) {
|
|
488
|
+
return new _ValidationError.default("workloads", "does not satisfy required maxItems constraint: 250");
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
if (property === "clusterConfig") {
|
|
492
|
+
if (typeof this.clusterConfig === 'undefined' || this.clusterConfig === null) {
|
|
493
|
+
return new _ValidationError.default("clusterConfig", "undefined or null");
|
|
494
|
+
}
|
|
488
495
|
}
|
|
489
|
-
|
|
490
|
-
|
|
496
|
+
if (property === "accountId") {
|
|
497
|
+
if (typeof this.accountId === 'undefined' || this.accountId === null) {
|
|
498
|
+
return new _ValidationError.default("accountId", "undefined or null");
|
|
499
|
+
}
|
|
500
|
+
if (!_ValidationUtils.default.validatePattern(this.accountId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
501
|
+
return new _ValidationError.default("accountId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
if (property === "domainId") {
|
|
505
|
+
if (typeof this.domainId === 'undefined' || this.domainId === null) {
|
|
506
|
+
return new _ValidationError.default("domainId", "undefined or null");
|
|
507
|
+
}
|
|
508
|
+
if (!_ValidationUtils.default.validatePattern(this.domainId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
509
|
+
return new _ValidationError.default("domainId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
if (property === "providerId") {
|
|
513
|
+
if (typeof this.providerId === 'undefined' || this.providerId === null) {
|
|
514
|
+
return new _ValidationError.default("providerId", "undefined or null");
|
|
515
|
+
}
|
|
516
|
+
if (!_ValidationUtils.default.validatePattern(this.providerId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
|
|
517
|
+
return new _ValidationError.default("providerId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
491
524
|
/**
|
|
492
525
|
* Name of capacity planning scenario.
|
|
493
526
|
* @memberof Scenario
|
|
494
527
|
*/
|
|
528
|
+
exports.default = Scenario;
|
|
495
529
|
function _toJsonMapType(obj, forMutation) {
|
|
496
530
|
if (obj instanceof Map) {
|
|
497
|
-
return Object.fromEntries(Array.from(obj,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
v = _ref2[1];
|
|
501
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
502
|
-
}));
|
|
503
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
504
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
531
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
532
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
533
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
505
534
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
506
535
|
}));
|
|
507
536
|
}
|
|
@@ -528,7 +557,7 @@ Scenario.prototype.name = undefined;
|
|
|
528
557
|
Scenario.prototype.clusterExtId = undefined;
|
|
529
558
|
|
|
530
559
|
/**
|
|
531
|
-
* A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario.
|
|
560
|
+
* A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario. This is an optional attribute but must be provided in case clusterExtId is not provided.
|
|
532
561
|
* @memberof Scenario
|
|
533
562
|
*/
|
|
534
563
|
Scenario.prototype.vendors = undefined;
|
|
@@ -561,19 +590,37 @@ Scenario.prototype.workloads = undefined;
|
|
|
561
590
|
*/
|
|
562
591
|
Scenario.prototype.clusterConfig = undefined;
|
|
563
592
|
|
|
593
|
+
/**
|
|
594
|
+
* Account ID of the cluster.
|
|
595
|
+
* @memberof Scenario
|
|
596
|
+
*/
|
|
597
|
+
Scenario.prototype.accountId = undefined;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Domain ID of the cluster.
|
|
601
|
+
* @memberof Scenario
|
|
602
|
+
*/
|
|
603
|
+
Scenario.prototype.domainId = undefined;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Provider ID of the cluster.
|
|
607
|
+
* @memberof Scenario
|
|
608
|
+
*/
|
|
609
|
+
Scenario.prototype.providerId = undefined;
|
|
610
|
+
|
|
564
611
|
/**
|
|
565
612
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
566
613
|
* @memberof Scenario
|
|
567
614
|
*/
|
|
568
|
-
_ExternalizableAbstractModel
|
|
615
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
569
616
|
/**
|
|
570
617
|
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
571
618
|
* @memberof Scenario
|
|
572
619
|
*/
|
|
573
|
-
_ExternalizableAbstractModel
|
|
620
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
574
621
|
/**
|
|
575
622
|
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
576
623
|
* @memberof Scenario
|
|
577
624
|
*/
|
|
578
|
-
_TenantAwareModel
|
|
625
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
579
626
|
// Implement OneOfaiops.v4.config.GetScenarioApiResponsedata interface:
|