@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.
Files changed (452) hide show
  1. package/README.md +16 -4
  2. package/dist/Ntnx-Aiops-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Aiops-js-client.js +560 -675
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/scenarios-endpoints.d.ts +1 -1
  9. package/dist/es/apis/scenarios-endpoints.js +535 -552
  10. package/dist/es/apis/stats-endpoints.d.ts +1 -1
  11. package/dist/es/apis/stats-endpoints.js +196 -202
  12. package/dist/es/index.d.ts +13 -35
  13. package/dist/es/index.js +331 -419
  14. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
  15. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
  16. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
  17. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
  18. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
  19. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
  20. package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
  21. package/dist/es/models/aiops/v4/clusterMetrics/Node.js +233 -280
  22. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
  23. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
  24. package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
  25. package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +233 -280
  26. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
  27. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
  28. package/dist/es/models/aiops/v4/common/ClusterType.js +7 -9
  29. package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → es/models/aiops/v4/config/CapacityType.d.ts} +6 -6
  30. package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
  31. package/dist/es/models/aiops/v4/config/CapacityUnit.js +7 -9
  32. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
  33. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
  34. package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +7 -9
  35. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
  36. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
  37. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
  38. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
  39. package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
  40. package/dist/es/models/aiops/v4/config/ClusterConfig.js +173 -223
  41. package/dist/es/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
  42. package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.js → es/models/aiops/v4/config/ClusterType.js} +24 -26
  43. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
  44. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
  45. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
  46. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
  47. package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
  48. package/dist/es/models/aiops/v4/config/DataStoreConfig.js +364 -421
  49. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
  50. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
  51. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
  52. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
  53. package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
  54. package/dist/es/models/aiops/v4/config/EntityDescriptor.js +250 -308
  55. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
  56. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
  57. package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
  58. package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
  59. package/dist/es/models/aiops/v4/config/EntityType.d.ts +1 -16
  60. package/dist/es/models/aiops/v4/config/EntityType.js +129 -171
  61. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
  62. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
  63. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
  64. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
  65. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
  66. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
  67. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
  68. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
  69. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
  70. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
  71. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
  72. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
  73. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
  74. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
  75. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
  76. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
  77. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
  78. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
  79. package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
  80. package/dist/es/models/aiops/v4/config/MetricDescriptor.js +401 -464
  81. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
  82. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
  83. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
  84. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
  85. package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +13 -21
  86. package/dist/es/models/aiops/v4/config/NodeConfig.js +305 -317
  87. package/dist/es/models/aiops/v4/config/NodeSource.js +7 -9
  88. package/dist/es/models/aiops/v4/config/PolicyType.js +7 -9
  89. package/dist/es/models/aiops/v4/config/ReplicationFactor.js +7 -9
  90. package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
  91. package/dist/es/models/aiops/v4/config/ResourceCapacity.js +241 -288
  92. package/dist/es/models/aiops/v4/config/Runway.d.ts +26 -35
  93. package/dist/es/models/aiops/v4/config/Runway.js +283 -330
  94. package/dist/es/models/aiops/v4/config/Scenario.d.ts +39 -83
  95. package/dist/es/models/aiops/v4/config/Scenario.js +444 -397
  96. package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
  97. package/dist/es/models/aiops/v4/config/ScenarioProjection.js +74 -103
  98. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
  99. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
  100. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
  101. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
  102. package/dist/es/models/aiops/v4/config/Simulation.d.ts +1 -25
  103. package/dist/es/models/aiops/v4/config/Simulation.js +155 -199
  104. package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
  105. package/dist/es/models/aiops/v4/config/SimulationProjection.js +74 -103
  106. package/dist/es/models/aiops/v4/config/Source.d.ts +1 -16
  107. package/dist/es/models/aiops/v4/config/Source.js +129 -171
  108. package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
  109. package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +209 -264
  110. package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
  111. package/dist/es/models/aiops/v4/config/SplunkWorkload.js +246 -291
  112. package/dist/es/models/aiops/v4/config/SqlProfileType.js +7 -9
  113. package/dist/es/models/aiops/v4/config/SqlTransactionType.js +7 -9
  114. package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
  115. package/dist/es/models/aiops/v4/config/SqlWorkload.js +219 -264
  116. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
  117. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
  118. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
  119. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
  120. package/dist/es/models/aiops/v4/config/ValueRange.d.ts +2 -8
  121. package/dist/es/models/aiops/v4/config/ValueRange.js +166 -207
  122. package/dist/es/models/aiops/v4/config/ValueType.js +7 -9
  123. package/dist/es/models/aiops/v4/config/VdiProvisionType.js +7 -9
  124. package/dist/es/models/aiops/v4/config/VdiUserType.js +7 -9
  125. package/dist/es/models/aiops/v4/config/VdiVendor.js +7 -9
  126. package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
  127. package/dist/es/models/aiops/v4/config/VdiWorkload.js +216 -261
  128. package/dist/es/models/aiops/v4/config/Vendor.js +7 -9
  129. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
  130. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
  131. package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +2 -8
  132. package/dist/es/models/aiops/v4/config/VmWorkload.js +176 -217
  133. package/dist/es/models/aiops/v4/config/Workload.d.ts +2 -19
  134. package/dist/es/models/aiops/v4/config/Workload.js +248 -297
  135. package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +7 -9
  136. package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +2 -12
  137. package/dist/es/models/aiops/v4/config/XenWorkload.js +302 -351
  138. package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
  139. package/dist/es/models/aiops/v4/config/XfitPolicy.js +359 -407
  140. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
  141. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
  142. package/dist/es/models/aiops/v4/error/AppMessage.d.ts +2 -12
  143. package/dist/es/models/aiops/v4/error/AppMessage.js +264 -313
  144. package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
  145. package/dist/es/models/aiops/v4/error/ErrorResponse.js +175 -218
  146. package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
  147. package/dist/es/models/aiops/v4/error/SchemaValidationError.js +249 -300
  148. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  149. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
  150. package/dist/es/models/aiops/v4/stats/BoolList.d.ts +2 -7
  151. package/dist/es/models/aiops/v4/stats/BoolList.js +147 -186
  152. package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +2 -7
  153. package/dist/es/models/aiops/v4/stats/BoolVal.js +140 -179
  154. package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +2 -7
  155. package/dist/es/models/aiops/v4/stats/DoubleList.js +147 -186
  156. package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
  157. package/dist/es/models/aiops/v4/stats/DoubleVal.js +140 -179
  158. package/dist/es/models/aiops/v4/stats/Entity.d.ts +1 -2
  159. package/dist/es/models/aiops/v4/stats/Entity.js +223 -279
  160. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
  161. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
  162. package/dist/es/models/aiops/v4/stats/IntList.d.ts +2 -7
  163. package/dist/es/models/aiops/v4/stats/IntList.js +147 -186
  164. package/dist/es/models/aiops/v4/stats/IntVal.d.ts +2 -7
  165. package/dist/es/models/aiops/v4/stats/IntVal.js +140 -179
  166. package/dist/es/models/aiops/v4/stats/Metric.d.ts +2 -20
  167. package/dist/es/models/aiops/v4/stats/Metric.js +166 -207
  168. package/dist/es/models/aiops/v4/stats/Point.d.ts +2 -8
  169. package/dist/es/models/aiops/v4/stats/Point.js +199 -244
  170. package/dist/es/models/aiops/v4/stats/StrList.d.ts +2 -7
  171. package/dist/es/models/aiops/v4/stats/StrList.js +147 -186
  172. package/dist/es/models/aiops/v4/stats/StrVal.d.ts +2 -7
  173. package/dist/es/models/aiops/v4/stats/StrVal.js +140 -179
  174. package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
  175. package/dist/es/models/aiops/v4/stats/TimeSeries.js +175 -220
  176. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  177. package/dist/es/models/common/v1/config/Flag.js +170 -211
  178. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  179. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  180. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  181. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  182. package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
  183. package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
  184. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  185. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  186. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  187. package/dist/es/models/common/v1/config/Message.js +213 -258
  188. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  189. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  190. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  191. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  192. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  193. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  194. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  195. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  196. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  197. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
  198. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  199. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  200. package/dist/es/models/validation/ValidationError.js +26 -42
  201. package/dist/es/models/validation/ValidationScopes.js +3 -3
  202. package/dist/es/utils/ValidationUtils.js +39 -69
  203. package/dist/lib/ApiClient.d.ts +29 -7
  204. package/dist/lib/ApiClient.js +854 -667
  205. package/dist/lib/Paginable.d.ts +1 -1
  206. package/dist/lib/Paginable.js +144 -183
  207. package/dist/lib/apis/scenarios-endpoints.d.ts +1 -1
  208. package/dist/lib/apis/scenarios-endpoints.js +535 -552
  209. package/dist/lib/apis/stats-endpoints.d.ts +1 -1
  210. package/dist/lib/apis/stats-endpoints.js +196 -202
  211. package/dist/lib/index.d.ts +13 -35
  212. package/dist/lib/index.js +331 -419
  213. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
  214. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
  215. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
  216. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
  217. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
  218. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
  219. package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
  220. package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +233 -280
  221. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
  222. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
  223. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
  224. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +233 -280
  225. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
  226. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
  227. package/dist/lib/models/aiops/v4/common/ClusterType.js +7 -9
  228. package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → lib/models/aiops/v4/config/CapacityType.d.ts} +6 -6
  229. package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
  230. package/dist/lib/models/aiops/v4/config/CapacityUnit.js +7 -9
  231. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
  232. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
  233. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +7 -9
  234. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
  235. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
  236. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
  237. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
  238. package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
  239. package/dist/lib/models/aiops/v4/config/ClusterConfig.js +173 -223
  240. package/dist/lib/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
  241. package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.js → lib/models/aiops/v4/config/ClusterType.js} +24 -26
  242. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
  243. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
  244. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
  245. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
  246. package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
  247. package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +364 -421
  248. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
  249. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
  250. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
  251. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
  252. package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
  253. package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +250 -308
  254. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
  255. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
  256. package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
  257. package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
  258. package/dist/lib/models/aiops/v4/config/EntityType.d.ts +1 -16
  259. package/dist/lib/models/aiops/v4/config/EntityType.js +129 -171
  260. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
  261. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
  262. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
  263. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
  264. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
  265. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
  266. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
  267. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
  268. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
  269. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
  270. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
  271. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
  272. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
  273. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
  274. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
  275. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
  276. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
  277. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
  278. package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
  279. package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +401 -464
  280. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
  281. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
  282. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
  283. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
  284. package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +13 -21
  285. package/dist/lib/models/aiops/v4/config/NodeConfig.js +305 -317
  286. package/dist/lib/models/aiops/v4/config/NodeSource.js +7 -9
  287. package/dist/lib/models/aiops/v4/config/PolicyType.js +7 -9
  288. package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +7 -9
  289. package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
  290. package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +241 -288
  291. package/dist/lib/models/aiops/v4/config/Runway.d.ts +26 -35
  292. package/dist/lib/models/aiops/v4/config/Runway.js +283 -330
  293. package/dist/lib/models/aiops/v4/config/Scenario.d.ts +39 -83
  294. package/dist/lib/models/aiops/v4/config/Scenario.js +444 -397
  295. package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
  296. package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +74 -103
  297. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
  298. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
  299. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
  300. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
  301. package/dist/lib/models/aiops/v4/config/Simulation.d.ts +1 -25
  302. package/dist/lib/models/aiops/v4/config/Simulation.js +155 -199
  303. package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
  304. package/dist/lib/models/aiops/v4/config/SimulationProjection.js +74 -103
  305. package/dist/lib/models/aiops/v4/config/Source.d.ts +1 -16
  306. package/dist/lib/models/aiops/v4/config/Source.js +129 -171
  307. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
  308. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +209 -264
  309. package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
  310. package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +246 -291
  311. package/dist/lib/models/aiops/v4/config/SqlProfileType.js +7 -9
  312. package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +7 -9
  313. package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
  314. package/dist/lib/models/aiops/v4/config/SqlWorkload.js +219 -264
  315. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
  316. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
  317. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
  318. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
  319. package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +2 -8
  320. package/dist/lib/models/aiops/v4/config/ValueRange.js +166 -207
  321. package/dist/lib/models/aiops/v4/config/ValueType.js +7 -9
  322. package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +7 -9
  323. package/dist/lib/models/aiops/v4/config/VdiUserType.js +7 -9
  324. package/dist/lib/models/aiops/v4/config/VdiVendor.js +7 -9
  325. package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
  326. package/dist/lib/models/aiops/v4/config/VdiWorkload.js +216 -261
  327. package/dist/lib/models/aiops/v4/config/Vendor.js +7 -9
  328. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
  329. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
  330. package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +2 -8
  331. package/dist/lib/models/aiops/v4/config/VmWorkload.js +176 -217
  332. package/dist/lib/models/aiops/v4/config/Workload.d.ts +2 -19
  333. package/dist/lib/models/aiops/v4/config/Workload.js +248 -297
  334. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +7 -9
  335. package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +2 -12
  336. package/dist/lib/models/aiops/v4/config/XenWorkload.js +302 -351
  337. package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
  338. package/dist/lib/models/aiops/v4/config/XfitPolicy.js +359 -407
  339. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
  340. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
  341. package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +2 -12
  342. package/dist/lib/models/aiops/v4/error/AppMessage.js +264 -313
  343. package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
  344. package/dist/lib/models/aiops/v4/error/ErrorResponse.js +175 -218
  345. package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
  346. package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +249 -300
  347. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  348. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
  349. package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +2 -7
  350. package/dist/lib/models/aiops/v4/stats/BoolList.js +147 -186
  351. package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +2 -7
  352. package/dist/lib/models/aiops/v4/stats/BoolVal.js +140 -179
  353. package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +2 -7
  354. package/dist/lib/models/aiops/v4/stats/DoubleList.js +147 -186
  355. package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
  356. package/dist/lib/models/aiops/v4/stats/DoubleVal.js +140 -179
  357. package/dist/lib/models/aiops/v4/stats/Entity.d.ts +1 -2
  358. package/dist/lib/models/aiops/v4/stats/Entity.js +223 -279
  359. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
  360. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
  361. package/dist/lib/models/aiops/v4/stats/IntList.d.ts +2 -7
  362. package/dist/lib/models/aiops/v4/stats/IntList.js +147 -186
  363. package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +2 -7
  364. package/dist/lib/models/aiops/v4/stats/IntVal.js +140 -179
  365. package/dist/lib/models/aiops/v4/stats/Metric.d.ts +2 -20
  366. package/dist/lib/models/aiops/v4/stats/Metric.js +166 -207
  367. package/dist/lib/models/aiops/v4/stats/Point.d.ts +2 -8
  368. package/dist/lib/models/aiops/v4/stats/Point.js +199 -244
  369. package/dist/lib/models/aiops/v4/stats/StrList.d.ts +2 -7
  370. package/dist/lib/models/aiops/v4/stats/StrList.js +147 -186
  371. package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +2 -7
  372. package/dist/lib/models/aiops/v4/stats/StrVal.js +140 -179
  373. package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
  374. package/dist/lib/models/aiops/v4/stats/TimeSeries.js +175 -220
  375. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  376. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  377. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  378. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  379. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  380. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  381. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
  382. package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
  383. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  384. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  385. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  386. package/dist/lib/models/common/v1/config/Message.js +213 -258
  387. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  388. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  389. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  390. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  391. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  392. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  393. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  394. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  395. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  396. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
  397. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  398. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  399. package/dist/lib/models/validation/ValidationError.js +26 -42
  400. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  401. package/dist/lib/utils/ValidationUtils.js +39 -69
  402. package/package.json +1 -1
  403. package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
  404. package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
  405. package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
  406. package/dist/es/models/aiops/v4/capacityplanning/Runway.js +0 -340
  407. package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
  408. package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
  409. package/dist/es/models/aiops/v4/config/CategoryDetail.js +0 -315
  410. package/dist/es/models/aiops/v4/config/HardwareModel.d.ts +0 -144
  411. package/dist/es/models/aiops/v4/config/HardwareModel.js +0 -550
  412. package/dist/es/models/aiops/v4/config/HardwarePart.d.ts +0 -92
  413. package/dist/es/models/aiops/v4/config/HardwarePart.js +0 -363
  414. package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
  415. package/dist/es/models/aiops/v4/config/IgnoreWindow.js +0 -458
  416. package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
  417. package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
  418. package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +0 -77
  419. package/dist/es/models/aiops/v4/config/RunwayParams.js +0 -323
  420. package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
  421. package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
  422. package/dist/es/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
  423. package/dist/es/models/aiops/v4/stats/ScenarioStats.js +0 -323
  424. package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
  425. package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
  426. package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
  427. package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
  428. package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
  429. package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
  430. package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
  431. package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +0 -340
  432. package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
  433. package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
  434. package/dist/lib/models/aiops/v4/config/CategoryDetail.js +0 -315
  435. package/dist/lib/models/aiops/v4/config/HardwareModel.d.ts +0 -144
  436. package/dist/lib/models/aiops/v4/config/HardwareModel.js +0 -550
  437. package/dist/lib/models/aiops/v4/config/HardwarePart.d.ts +0 -92
  438. package/dist/lib/models/aiops/v4/config/HardwarePart.js +0 -363
  439. package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
  440. package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +0 -458
  441. package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
  442. package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
  443. package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +0 -77
  444. package/dist/lib/models/aiops/v4/config/RunwayParams.js +0 -323
  445. package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
  446. package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
  447. package/dist/lib/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
  448. package/dist/lib/models/aiops/v4/stats/ScenarioStats.js +0 -323
  449. package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
  450. package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
  451. package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
  452. 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["default"] = void 0;
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 : { "default": 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.0.2
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.4.0.8851-RELEASE
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.0.2
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
- var Scenario = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
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
- function Scenario() {
70
- var _this;
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(_this, _Scenario_brand);
80
- _this.$objectType = "aiops.v4.config.Scenario";
55
+ _classPrivateMethodInitSpec(this, _Scenario_brand);
56
+ this.$objectType = "aiops.v4.config.Scenario";
81
57
  /** @type {object<string, any>} */
82
- _this.$reserved = {
83
- '$fv': "v4.r0"
58
+ this.$reserved = {
59
+ '$fv': "v4.r2.b1"
84
60
  };
85
61
  /** @type {object<string, any>} */
86
- _this.$unknownFields = {};
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
- _inherits(Scenario, _ExternalizableAbstra);
99
- return _createClass(Scenario, [{
100
- key: "getName",
101
- value:
102
- /**
103
- * Returns Name of capacity planning scenario.
104
- * @return {string}
105
- */
106
- function getName() {
107
- return this.name;
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
- * Sets Name of capacity planning scenario.
112
- * @param {string} name Name of capacity planning scenario.
113
- */
114
- }, {
115
- key: "setName",
116
- value: function setName(name) {
117
- this.name = name;
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
- * Returns UUID of the cluster for which Whatif analysis is being performed.
122
- * @return {string}
123
- */
124
- }, {
125
- key: "getClusterExtId",
126
- value: function getClusterExtId() {
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
- * Sets UUID of the cluster for which Whatif analysis is being performed.
132
- * @param {string} clusterExtId UUID of the cluster for which Whatif analysis is being performed.
133
- */
134
- }, {
135
- key: "setClusterExtId",
136
- value: function setClusterExtId(clusterExtId) {
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
- * Returns A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario.
142
- * @return {Vendor[]}
143
- */
144
- }, {
145
- key: "getVendors",
146
- value: function getVendors() {
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
- * Sets A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario.
152
- * @param {Vendor[]} vendors A list of allowed vendors whose model can be requested to sustain the workload in a capacity planning scenario.
153
- */
154
- }, {
155
- key: "setVendors",
156
- value: function setVendors(vendors) {
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
- * 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.
162
- * @return {Date}
163
- */
164
- }, {
165
- key: "getUpdatedTime",
166
- value: function getUpdatedTime() {
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
- * 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.
172
- * @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.
173
- */
174
- }, {
175
- key: "setUpdatedTime",
176
- value: function setUpdatedTime(updatedTime) {
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
- * Returns Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
182
- * minimum: 30
183
- * maximum: 360
184
- * @return {Number}
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
- * Sets Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
194
- * @param {Number} targetRunwayDays Number of days a cluster is expected to sustain the workload in a capacity planning scenario.
195
- */
196
- }, {
197
- key: "setTargetRunwayDays",
198
- value: function setTargetRunwayDays(targetRunwayDays) {
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
- * @return {Runway}
204
- */
205
- }, {
206
- key: "getRunway",
207
- value: function getRunway() {
208
- return this.runway;
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
- * @param {Runway} runway
213
- */
214
- }, {
215
- key: "setRunway",
216
- value: function setRunway(runway) {
217
- this.runway = runway;
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
- * 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.
222
- * @return {Workload[]}
223
- */
224
- }, {
225
- key: "getWorkloads",
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
- * 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.
232
- * @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.
233
- */
234
- }, {
235
- key: "setWorkloads",
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
- * @return {ClusterConfig}
242
- */
243
- }, {
244
- key: "getClusterConfig",
245
- value: function getClusterConfig() {
246
- return this.clusterConfig;
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
- * @param {ClusterConfig} clusterConfig
251
- */
252
- }, {
253
- key: "setClusterConfig",
254
- value: function setClusterConfig(clusterConfig) {
255
- this.clusterConfig = clusterConfig;
256
- }
257
- }, {
258
- key: "toJson",
259
- value: function toJson(forMutation) {
260
- if (forMutation === false) {
261
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
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
- } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
328
+ } : {}),
329
+ ...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
264
330
  'clusterExtId': this.getClusterExtId()
265
- } : {}), typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
331
+ } : {}),
332
+ ...(typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
266
333
  'vendors': this.getVendors()
267
- } : {}), typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
334
+ } : {}),
335
+ ...(typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
268
336
  'updatedTime': _assertClassBrand(_Scenario_brand, this, _handleDateType).call(this, this.getUpdatedTime(), false)
269
- } : {}), typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
337
+ } : {}),
338
+ ...(typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
270
339
  'targetRunwayDays': this.getTargetRunwayDays()
271
- } : {}), typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
340
+ } : {}),
341
+ ...(typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
272
342
  'runway': this.getRunway().toJson(false)
273
- } : {}), typeof this.getWorkloads() !== 'undefined' && this.getWorkloads() !== null ? {
274
- 'workloads': this.getWorkloads().map(function (item) {
275
- return item.toJson(false);
276
- })
277
- } : {}), typeof this.getClusterConfig() !== 'undefined' && this.getClusterConfig() !== null ? {
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
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
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
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
282
- 'links': this.getLinks().map(function (item) {
283
- return item.toJson(false);
284
- })
285
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
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
- '$reserved': this.get$Reserved(),
289
- '$objectType': this.get$ObjectType(),
290
- '$unknownFields': this.get$UnknownFields()
291
- });
292
- }
293
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
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
- } : {}), typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
377
+ } : {}),
378
+ ...(typeof this.getClusterExtId() !== 'undefined' && this.getClusterExtId() !== null ? {
296
379
  'clusterExtId': this.getClusterExtId()
297
- } : {}), typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
380
+ } : {}),
381
+ ...(typeof this.getVendors() !== 'undefined' && this.getVendors() !== null ? {
298
382
  'vendors': this.getVendors()
299
- } : {}), typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
383
+ } : {}),
384
+ ...(typeof this.getTargetRunwayDays() !== 'undefined' && this.getTargetRunwayDays() !== null ? {
300
385
  'targetRunwayDays': this.getTargetRunwayDays()
301
- } : {}), typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
386
+ } : {}),
387
+ ...(typeof this.getRunway() !== 'undefined' && this.getRunway() !== null ? {
302
388
  'runway': this.getRunway().toJson(false)
303
- } : {}), typeof this.getWorkloads() !== 'undefined' && this.getWorkloads() !== null ? {
304
- 'workloads': this.getWorkloads().map(function (item) {
305
- return item.toJson(false);
306
- })
307
- } : {}), typeof this.getClusterConfig() !== 'undefined' && this.getClusterConfig() !== null ? {
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
- '$reserved': this.get$Reserved(),
311
- '$objectType': this.get$ObjectType(),
312
- '$unknownFields': this.get$UnknownFields()
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
- key: "validate",
317
- value: function validate(scope, properties) {
318
- var _this2 = this;
319
- var propList = [];
320
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
321
- //cases validate() and validate(scope)
322
- propList = [];
323
- } else if (arguments.length === 1) {
324
- //case validate(properties)
325
- propList = arguments[0];
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
- //case validate(scope, properties)
329
- propList = arguments[1];
330
- }
331
- var res = [];
332
- var err = null;
333
- propList.forEach(function (property) {
334
- err = _this2.validateProperty(property, scope);
335
- if (err) {
336
- res.push(err);
337
- }
338
- });
339
- return new Promise(function (resolve, reject) {
340
- if (res.length !== 0) {
341
- reject(err);
342
- } else {
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
- key: "validateProperty",
349
- value: function validateProperty(scope, property) {
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 (property === "clusterExtId") {
362
- if (typeof this.clusterExtId === 'undefined' || this.clusterExtId === null) {
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
- if (property === "vendors") {
370
- if (typeof this.vendors === 'undefined' || this.vendors === null) {
371
- return new _ValidationError["default"]("vendors", "undefined or null");
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 (property === "updatedTime") {
381
- if (typeof this.updatedTime === 'undefined' || this.updatedTime === null) {
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 (property === "targetRunwayDays") {
386
- if (typeof this.targetRunwayDays === 'undefined' || this.targetRunwayDays === null) {
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
- if (property === "runway") {
397
- if (typeof this.runway === 'undefined' || this.runway === null) {
398
- return new _ValidationError["default"]("runway", "undefined or null");
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
- if (property === "workloads") {
402
- if (typeof this.workloads === 'undefined' || this.workloads === null) {
403
- return new _ValidationError["default"]("workloads", "undefined or null");
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 (property === "clusterConfig") {
410
- if (typeof this.clusterConfig === 'undefined' || this.clusterConfig === null) {
411
- return new _ValidationError["default"]("clusterConfig", "undefined or null");
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
- key: "constructFromObject",
418
- value: function constructFromObject(data) {
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
- * Converts a given snake_case string to camelCase.
479
- * @param {string} snakeStr - The input string in snake_case format.
480
- * @returns {string} - The converted string in camelCase format.
481
- */
482
- }, {
483
- key: "snakeToCamel",
484
- value: function snakeToCamel(snakeStr) {
485
- return snakeStr.replace(/(_\w)/g, function (match) {
486
- return match[1].toUpperCase();
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
- }(_ExternalizableAbstractModel["default"]);
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, function (_ref) {
498
- var _ref2 = _slicedToArray(_ref, 2),
499
- k = _ref2[0],
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["default"].prototype.extId = undefined;
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["default"].prototype.links = undefined;
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["default"].prototype.tenantId = undefined;
625
+ _TenantAwareModel.default.prototype.tenantId = undefined;
579
626
  // Implement OneOfaiops.v4.config.GetScenarioApiResponsedata interface: