@nutanix-scratch/aiops-js-client 4.0.3-alpha.2 → 4.2.2-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +202 -49
- package/README.md +70 -43
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -11
- package/dist/Ntnx-Aiops-js-client.js +1045 -1019
- package/dist/es/ApiClient.d.ts +43 -7
- package/dist/es/ApiClient.js +1071 -678
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +153 -194
- package/dist/es/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/es/apis/scenarios-endpoints.js +624 -0
- package/dist/es/apis/stats-endpoints.d.ts +31 -41
- package/dist/es/apis/stats-endpoints.js +215 -230
- package/dist/es/index.d.ts +157 -21
- package/dist/es/index.js +669 -126
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +366 -0
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +366 -0
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
- package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/common/ClusterType.js +77 -0
- package/dist/es/models/aiops/v4/config/CapacityType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +83 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +279 -0
- package/dist/es/models/aiops/v4/config/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ClusterType.js +83 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +616 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +396 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/es/models/aiops/v4/config/EntityType.d.ts +22 -0
- package/dist/es/models/aiops/v4/config/EntityType.js +233 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +604 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +135 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.js +478 -0
- package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/NodeSource.js +89 -0
- package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/PolicyType.js +83 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +83 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +404 -0
- package/dist/es/models/aiops/v4/config/Runway.d.ts +125 -0
- package/dist/es/models/aiops/v4/config/Runway.js +437 -0
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +134 -0
- package/dist/es/models/aiops/v4/config/Scenario.js +626 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +127 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +32 -0
- package/dist/es/models/aiops/v4/config/Simulation.js +273 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +124 -0
- package/dist/es/models/aiops/v4/config/Source.d.ts +22 -0
- package/dist/es/models/aiops/v4/config/Source.js +233 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +401 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +89 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +83 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +370 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/ValueRange.js +271 -0
- package/dist/es/models/aiops/v4/{stats → config}/ValueType.js +12 -15
- package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +101 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.js +95 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.js +83 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +367 -0
- package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/Vendor.js +125 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +74 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.js +294 -0
- package/dist/es/models/aiops/v4/config/Workload.d.ts +105 -0
- package/dist/es/models/aiops/v4/config/Workload.js +398 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +83 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +141 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.js +483 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +541 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +62 -55
- package/dist/es/models/aiops/v4/error/AppMessage.js +303 -310
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +224 -223
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +287 -292
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/BoolList.js +182 -185
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/BoolVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/DoubleList.js +182 -185
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +25 -37
- package/dist/es/models/aiops/v4/stats/Entity.js +269 -280
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/IntList.js +182 -185
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/IntVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/Metric.js +197 -205
- package/dist/es/models/aiops/v4/stats/Point.d.ts +34 -30
- package/dist/es/models/aiops/v4/stats/Point.js +231 -246
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/StrList.js +182 -185
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/StrVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +207 -218
- package/dist/es/models/common/v1/config/Flag.d.ts +30 -30
- package/dist/es/models/common/v1/config/Flag.js +203 -202
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +34 -31
- package/dist/es/models/common/v1/config/KVPair.js +259 -260
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +58 -0
- package/dist/es/models/common/v1/config/KVStringPair.js +277 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/es/models/common/v1/config/Message.d.ts +37 -42
- package/dist/es/models/common/v1/config/Message.js +244 -259
- package/dist/es/models/common/v1/config/MessageSeverity.js +18 -21
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +23 -26
- package/dist/es/models/common/v1/config/TenantAwareModel.js +169 -179
- package/dist/es/models/common/v1/response/ApiLink.d.ts +26 -30
- package/dist/es/models/common/v1/response/ApiLink.js +197 -208
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +313 -334
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +24 -27
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +244 -0
- package/dist/es/models/validation/ValidationError.js +27 -45
- package/dist/es/models/validation/ValidationScopes.js +3 -4
- package/dist/es/utils/ValidationUtils.js +40 -72
- package/dist/lib/ApiClient.d.ts +43 -7
- package/dist/lib/ApiClient.js +1071 -678
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +153 -194
- package/dist/lib/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/lib/apis/scenarios-endpoints.js +624 -0
- package/dist/lib/apis/stats-endpoints.d.ts +31 -41
- package/dist/lib/apis/stats-endpoints.js +215 -230
- package/dist/lib/index.d.ts +157 -21
- package/dist/lib/index.js +669 -126
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +366 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +366 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.js +77 -0
- package/dist/lib/models/aiops/v4/config/CapacityType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +83 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +279 -0
- package/dist/lib/models/aiops/v4/config/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ClusterType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +616 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +396 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/lib/models/aiops/v4/config/EntityType.d.ts +22 -0
- package/dist/lib/models/aiops/v4/config/EntityType.js +233 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +604 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +135 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +478 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.js +89 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.js +83 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +83 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +404 -0
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +125 -0
- package/dist/lib/models/aiops/v4/config/Runway.js +437 -0
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +134 -0
- package/dist/lib/models/aiops/v4/config/Scenario.js +626 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +127 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +32 -0
- package/dist/lib/models/aiops/v4/config/Simulation.js +273 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +124 -0
- package/dist/lib/models/aiops/v4/config/Source.d.ts +22 -0
- package/dist/lib/models/aiops/v4/config/Source.js +233 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +401 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +89 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +83 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +370 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.js +271 -0
- package/dist/lib/models/aiops/v4/{stats → config}/ValueType.js +12 -15
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +101 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +95 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +83 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +367 -0
- package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/Vendor.js +125 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +74 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +294 -0
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +105 -0
- package/dist/lib/models/aiops/v4/config/Workload.js +398 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +83 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +141 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +483 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +541 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +62 -55
- package/dist/lib/models/aiops/v4/error/AppMessage.js +303 -310
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +224 -223
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +287 -292
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/BoolList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +25 -37
- package/dist/lib/models/aiops/v4/stats/Entity.js +269 -280
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/IntList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/IntVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/Metric.js +197 -205
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +34 -30
- package/dist/lib/models/aiops/v4/stats/Point.js +231 -246
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/StrList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/StrVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +207 -218
- package/dist/lib/models/common/v1/config/Flag.d.ts +30 -30
- package/dist/lib/models/common/v1/config/Flag.js +203 -202
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +34 -31
- package/dist/lib/models/common/v1/config/KVPair.js +259 -260
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +58 -0
- package/dist/lib/models/common/v1/config/KVStringPair.js +277 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +37 -42
- package/dist/lib/models/common/v1/config/Message.js +244 -259
- package/dist/lib/models/common/v1/config/MessageSeverity.js +18 -21
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +23 -26
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +169 -179
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +26 -30
- package/dist/lib/models/common/v1/response/ApiLink.js +197 -208
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +313 -334
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +24 -27
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +244 -0
- package/dist/lib/models/validation/ValidationError.js +27 -45
- package/dist/lib/models/validation/ValidationScopes.js +3 -4
- package/dist/lib/utils/ValidationUtils.js +40 -72
- package/package.json +6 -5
- package/dist/es/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
- package/dist/es/models/aiops/v4/stats/DeprecationModel.js +0 -358
- package/dist/es/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
- package/dist/es/models/aiops/v4/stats/EntityDescriptor.js +0 -403
- package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/EntityType.d.ts +0 -32
- package/dist/es/models/aiops/v4/stats/EntityType.js +0 -227
- package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
- package/dist/es/models/aiops/v4/stats/MetricDescriptor.js +0 -667
- package/dist/es/models/aiops/v4/stats/Source.d.ts +0 -32
- package/dist/es/models/aiops/v4/stats/Source.js +0 -227
- package/dist/es/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/ValueRange.d.ts +0 -58
- package/dist/es/models/aiops/v4/stats/ValueRange.js +0 -276
- package/dist/lib/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
- package/dist/lib/models/aiops/v4/stats/DeprecationModel.js +0 -358
- package/dist/lib/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
- package/dist/lib/models/aiops/v4/stats/EntityDescriptor.js +0 -403
- package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/EntityType.d.ts +0 -32
- package/dist/lib/models/aiops/v4/stats/EntityType.js +0 -227
- package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
- package/dist/lib/models/aiops/v4/stats/MetricDescriptor.js +0 -667
- package/dist/lib/models/aiops/v4/stats/Source.d.ts +0 -32
- package/dist/lib/models/aiops/v4/stats/Source.js +0 -227
- package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/ValueRange.d.ts +0 -58
- package/dist/lib/models/aiops/v4/stats/ValueRange.js +0 -276
- /package/dist/es/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
- /package/dist/lib/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _ClusterConfig = _interopRequireDefault(require("./ClusterConfig"));
|
|
8
|
+
var _Runway = _interopRequireDefault(require("./Runway"));
|
|
9
|
+
var _Vendor = _interopRequireDefault(require("./Vendor"));
|
|
10
|
+
var _Workload = _interopRequireDefault(require("./Workload"));
|
|
11
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
12
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
13
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
14
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
15
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
16
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
19
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
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"); } /*
|
|
21
|
+
* Nutanix AIOps APIs
|
|
22
|
+
*
|
|
23
|
+
* OpenAPI spec version: 4.2.2-beta-1
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
26
|
+
*
|
|
27
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
28
|
+
*
|
|
29
|
+
* Do not edit the class manually.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* The Scenario model module.
|
|
34
|
+
* @module Ntnx/Scenario
|
|
35
|
+
* @version 4.2.2-beta-1
|
|
36
|
+
* @class Scenario
|
|
37
|
+
* @extends ExternalizableAbstractModel
|
|
38
|
+
*/
|
|
39
|
+
var _Scenario_brand = /*#__PURE__*/new WeakSet();
|
|
40
|
+
class Scenario extends _ExternalizableAbstractModel.default {
|
|
41
|
+
/**
|
|
42
|
+
* Constructs a new <code>Scenario</code>.
|
|
43
|
+
* WhatIf Scenario.
|
|
44
|
+
* @alias module:Ntnx/Scenario
|
|
45
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
46
|
+
*/
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
/*
|
|
50
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
51
|
+
* @param {Object} obj
|
|
52
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
53
|
+
* Otherwise, just returns the input object.
|
|
54
|
+
*/
|
|
55
|
+
_classPrivateMethodInitSpec(this, _Scenario_brand);
|
|
56
|
+
this.$objectType = "aiops.v4.config.Scenario";
|
|
57
|
+
/** @type {object<string, any>} */
|
|
58
|
+
this.$reserved = {
|
|
59
|
+
'$fv': "v4.r2.b1"
|
|
60
|
+
};
|
|
61
|
+
/** @type {object<string, any>} */
|
|
62
|
+
this.$unknownFields = {};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Constructs a <code>Scenario</code> from a plain JavaScript object, optionally creating a new instance.
|
|
67
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @param {module:Ntnx/Scenario} obj Optional instance to populate.
|
|
70
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
71
|
+
* @return {module:Ntnx/Scenario} The populated <code>Scenario</code> instance.
|
|
72
|
+
*/
|
|
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
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
}
|
|
140
|
+
|
|
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
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Returns Name of capacity planning scenario.
|
|
152
|
+
* @return {string}
|
|
153
|
+
*/
|
|
154
|
+
getName() {
|
|
155
|
+
return this.name;
|
|
156
|
+
}
|
|
157
|
+
|
|
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
|
+
}
|
|
165
|
+
|
|
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
|
+
}
|
|
173
|
+
|
|
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
|
+
}
|
|
181
|
+
|
|
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
|
+
}
|
|
189
|
+
|
|
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
|
+
}
|
|
197
|
+
|
|
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
|
+
}
|
|
205
|
+
|
|
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
|
+
}
|
|
213
|
+
|
|
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
|
+
}
|
|
223
|
+
|
|
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
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @return {Runway}
|
|
234
|
+
*/
|
|
235
|
+
getRunway() {
|
|
236
|
+
return this.runway;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @param {Runway} runway
|
|
241
|
+
*/
|
|
242
|
+
setRunway(runway) {
|
|
243
|
+
this.runway = runway;
|
|
244
|
+
}
|
|
245
|
+
|
|
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
|
+
}
|
|
253
|
+
|
|
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 ? {
|
|
327
|
+
'name': this.getName()
|
|
328
|
+
} : {}),
|
|
329
|
+
...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
330
|
+
'clusterExtId': this.getClusterExtId()
|
|
331
|
+
} : {}),
|
|
332
|
+
...(typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
|
|
333
|
+
'vendors': this.getVendors()
|
|
334
|
+
} : {}),
|
|
335
|
+
...(typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
|
|
336
|
+
'updatedTime': _assertClassBrand(_Scenario_brand, this, _handleDateType).call(this, this.getUpdatedTime(), false)
|
|
337
|
+
} : {}),
|
|
338
|
+
...(typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
|
|
339
|
+
'targetRunwayDays': this.getTargetRunwayDays()
|
|
340
|
+
} : {}),
|
|
341
|
+
...(typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
|
|
342
|
+
'runway': this.getRunway().toJson(false)
|
|
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 ? {
|
|
348
|
+
'clusterConfig': this.getClusterConfig().toJson(false)
|
|
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 ? {
|
|
360
|
+
'extId': this.getExtId()
|
|
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 ? {
|
|
366
|
+
'tenantId': this.getTenantId()
|
|
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 ? {
|
|
376
|
+
'name': this.getName()
|
|
377
|
+
} : {}),
|
|
378
|
+
...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
|
|
379
|
+
'clusterExtId': this.getClusterExtId()
|
|
380
|
+
} : {}),
|
|
381
|
+
...(typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
|
|
382
|
+
'vendors': this.getVendors()
|
|
383
|
+
} : {}),
|
|
384
|
+
...(typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
|
|
385
|
+
'targetRunwayDays': this.getTargetRunwayDays()
|
|
386
|
+
} : {}),
|
|
387
|
+
...(typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
|
|
388
|
+
'runway': this.getRunway().toJson(false)
|
|
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 ? {
|
|
394
|
+
'clusterConfig': this.getClusterConfig().toJson(false)
|
|
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];
|
|
414
|
+
}
|
|
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);
|
|
426
|
+
} else {
|
|
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
|
+
}
|
|
442
|
+
}
|
|
443
|
+
if (property === "clusterExtId") {
|
|
444
|
+
if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
|
|
445
|
+
return new _ValidationError.default("clusterExtId", "undefined or null");
|
|
446
|
+
}
|
|
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}$/");
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (property === "vendors") {
|
|
452
|
+
if (typeof this.vendors === 'undefined' || this.vendors === null) {
|
|
453
|
+
return new _ValidationError.default("vendors", "undefined or null");
|
|
454
|
+
}
|
|
455
|
+
if (!_ValidationUtils.default.validateMaxItems(this.vendors, 10)) {
|
|
456
|
+
return new _ValidationError.default("vendors", "does not satisfy required maxItems constraint: 10");
|
|
457
|
+
}
|
|
458
|
+
if (!_ValidationUtils.default.validateMinItems(this.vendors, 1)) {
|
|
459
|
+
return new _ValidationError.default("vendors", "does not satisfy required minItems constraint: 1");
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
if (property === "updatedTime") {
|
|
463
|
+
if (typeof this.updatedTime === 'undefined' || this.updatedTime === null) {
|
|
464
|
+
return new _ValidationError.default("updatedTime", "undefined or null");
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
if (property === "targetRunwayDays") {
|
|
468
|
+
if (typeof this.targetRunwayDays === 'undefined' || this.targetRunwayDays === null) {
|
|
469
|
+
return new _ValidationError.default("targetRunwayDays", "undefined or null");
|
|
470
|
+
}
|
|
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");
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
if (property === "runway") {
|
|
479
|
+
if (typeof this.runway === 'undefined' || this.runway === null) {
|
|
480
|
+
return new _ValidationError.default("runway", "undefined or null");
|
|
481
|
+
}
|
|
482
|
+
}
|
|
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
|
+
}
|
|
495
|
+
}
|
|
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
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Name of capacity planning scenario.
|
|
526
|
+
* @memberof Scenario
|
|
527
|
+
*/
|
|
528
|
+
exports.default = Scenario;
|
|
529
|
+
function _toJsonMapType(obj, forMutation) {
|
|
530
|
+
if (obj instanceof Map) {
|
|
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 => {
|
|
534
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
535
|
+
}));
|
|
536
|
+
}
|
|
537
|
+
return obj;
|
|
538
|
+
}
|
|
539
|
+
/*
|
|
540
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
541
|
+
* @param {Object} obj Object to serialize
|
|
542
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
543
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
544
|
+
*/
|
|
545
|
+
function _handleDateType(obj, isDateOnly) {
|
|
546
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
547
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
548
|
+
}
|
|
549
|
+
return obj;
|
|
550
|
+
}
|
|
551
|
+
Scenario.prototype.name = undefined;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* UUID of the cluster for which Whatif analysis is being performed.
|
|
555
|
+
* @memberof Scenario
|
|
556
|
+
*/
|
|
557
|
+
Scenario.prototype.clusterExtId = undefined;
|
|
558
|
+
|
|
559
|
+
/**
|
|
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.
|
|
561
|
+
* @memberof Scenario
|
|
562
|
+
*/
|
|
563
|
+
Scenario.prototype.vendors = undefined;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Timestamp when the capacity planning scenario is updated. The value should be in ISO-8601 format. For example, 2022-02-20T00:00:00.458Z.
|
|
567
|
+
* @memberof Scenario
|
|
568
|
+
*/
|
|
569
|
+
Scenario.prototype.updatedTime = undefined;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
|
|
573
|
+
* @memberof Scenario
|
|
574
|
+
*/
|
|
575
|
+
Scenario.prototype.targetRunwayDays = undefined;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* @memberof Scenario
|
|
579
|
+
*/
|
|
580
|
+
Scenario.prototype.runway = undefined;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* 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.
|
|
584
|
+
* @memberof Scenario
|
|
585
|
+
*/
|
|
586
|
+
Scenario.prototype.workloads = undefined;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* @memberof Scenario
|
|
590
|
+
*/
|
|
591
|
+
Scenario.prototype.clusterConfig = undefined;
|
|
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
|
+
|
|
611
|
+
/**
|
|
612
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
613
|
+
* @memberof Scenario
|
|
614
|
+
*/
|
|
615
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
616
|
+
/**
|
|
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.
|
|
618
|
+
* @memberof Scenario
|
|
619
|
+
*/
|
|
620
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
621
|
+
/**
|
|
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).
|
|
623
|
+
* @memberof Scenario
|
|
624
|
+
*/
|
|
625
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
626
|
+
// Implement OneOfaiops.v4.config.GetScenarioApiResponsedata interface:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ScenarioProjection model module.
|
|
3
|
+
* @module Ntnx/ScenarioProjection
|
|
4
|
+
* @version 4.2.2-beta-1
|
|
5
|
+
* @class ScenarioProjection
|
|
6
|
+
* @extends Scenario
|
|
7
|
+
*/
|
|
8
|
+
export default class ScenarioProjection extends Scenario {
|
|
9
|
+
}
|
|
10
|
+
import Scenario from "./Scenario";
|