@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,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
7
- var _CategoryDetail = _interopRequireDefault(require("./CategoryDetail"));
6
+ exports.default = void 0;
7
+ var _EntityDetail = _interopRequireDefault(require("./EntityDetail"));
8
8
  var _PolicyType = _interopRequireDefault(require("./PolicyType"));
9
9
  var _KVStringPair = _interopRequireDefault(require("../../../common/v1/config/KVStringPair"));
10
10
  var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
@@ -13,39 +13,17 @@ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../comm
13
13
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
14
14
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
15
15
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
16
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
- 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); }
18
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
19
- 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."); }
20
- 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; } }
21
- 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; }
22
- 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; } }
23
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
24
- 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; }
25
- 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; }
26
- 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; }
27
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
28
- 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); } }
29
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
30
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
31
- 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); }
32
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
33
- 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); }
34
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
35
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
36
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
37
- 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); }
38
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
39
17
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
40
18
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
41
19
  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"); } /*
42
20
  * Nutanix AIOps APIs
43
21
  *
44
- * OpenAPI spec version: 4.0.2
22
+ * OpenAPI spec version: 4.2.1-beta-1
45
23
  *
46
24
  * NOTE: This class is auto generated by the Open API Dev Platform.
47
25
  *
48
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
26
+ * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
49
27
  *
50
28
  * Do not edit the class manually.
51
29
  *
@@ -53,18 +31,16 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
53
31
  /**
54
32
  * The XfitPolicy model module.
55
33
  * @module Ntnx/XfitPolicy
56
- * @version 4.0.2
34
+ * @version 4.2.1-beta-1
57
35
  * @class XfitPolicy
58
36
  * @extends ExternalizableAbstractModel
59
37
  *
60
38
  * @param { boolean } isEnabled Indicates if the policy is enabled or disabled.
61
39
  *
62
- * @param { CategoryDetail[] } categories List of associated category details for the policy.
63
- *
64
- * @param { KVStringPair[] } parameters Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
40
+ * @param { EntityDetail[] } entities
65
41
  */
66
42
  var _XfitPolicy_brand = /*#__PURE__*/new WeakSet();
67
- var XfitPolicy = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
43
+ class XfitPolicy extends _ExternalizableAbstractModel.default {
68
44
  /**
69
45
  * Constructs a new <code>XfitPolicy</code>.
70
46
  * @alias module:Ntnx/XfitPolicy
@@ -72,32 +48,26 @@ var XfitPolicy = exports["default"] = /*#__PURE__*/function (_ExternalizableAbst
72
48
  *
73
49
  * @param { boolean } isEnabled Indicates if the policy is enabled or disabled.
74
50
  *
75
- * @param { CategoryDetail[] } categories List of associated category details for the policy.
76
- *
77
- * @param { KVStringPair[] } parameters Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
51
+ * @param { EntityDetail[] } entities
78
52
  */
79
- function XfitPolicy(isEnabled, categories, parameters) {
80
- var _this;
81
- _classCallCheck(this, XfitPolicy);
82
- _this = _callSuper(this, XfitPolicy);
53
+ constructor(isEnabled, entities) {
54
+ super();
83
55
  /*
84
56
  * toJson method for a map type which supports map with primitive keys and values of object types
85
57
  * @param {Object} obj
86
58
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
87
59
  * Otherwise, just returns the input object.
88
60
  */
89
- _classPrivateMethodInitSpec(_this, _XfitPolicy_brand);
90
- _this.isEnabled = isEnabled;
91
- _this.categories = categories;
92
- _this.parameters = parameters;
93
- _this.$objectType = "aiops.v4.config.XfitPolicy";
61
+ _classPrivateMethodInitSpec(this, _XfitPolicy_brand);
62
+ this.isEnabled = isEnabled;
63
+ this.entities = entities;
64
+ this.$objectType = "aiops.v4.config.XfitPolicy";
94
65
  /** @type {object<string, any>} */
95
- _this.$reserved = {
96
- '$fv': "v4.r0"
66
+ this.$reserved = {
67
+ '$fv': "v4.r2.b1"
97
68
  };
98
69
  /** @type {object<string, any>} */
99
- _this.$unknownFields = {};
100
- return _this;
70
+ this.$unknownFields = {};
101
71
  }
102
72
 
103
73
  /**
@@ -108,407 +78,384 @@ var XfitPolicy = exports["default"] = /*#__PURE__*/function (_ExternalizableAbst
108
78
  * @param callFromChild {Boolean} Flag to recognise calling instance
109
79
  * @return {module:Ntnx/XfitPolicy} The populated <code>XfitPolicy</code> instance.
110
80
  */
111
- _inherits(XfitPolicy, _ExternalizableAbstra);
112
- return _createClass(XfitPolicy, [{
113
- key: "getPolicyType",
114
- value:
115
- /**
116
- * @return {PolicyType}
117
- */
118
- function getPolicyType() {
119
- return this.policyType;
81
+ static constructFromObject(data, obj = null, callFromChild = false) {
82
+ let items, item, i, itemArr, discriminator;
83
+ if (data) {
84
+ obj = obj || new XfitPolicy();
85
+ _ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
86
+ if (data.hasOwnProperty('policyType') && data.policyType !== null && data.policyType !== undefined) {
87
+ obj.setPolicyType(_PolicyType.default.constructFromObject(data['policyType']));
88
+ }
89
+ if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
90
+ obj.setName(data['name']);
91
+ }
92
+ if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
93
+ obj.setDescription(data['description']);
94
+ }
95
+ if (data.hasOwnProperty('updatedTime') && data.updatedTime !== null && data.updatedTime !== undefined) {
96
+ obj.setUpdatedTime(data['updatedTime']);
97
+ }
98
+ if (data.hasOwnProperty('isDefault') && data.isDefault !== null && data.isDefault !== undefined) {
99
+ obj.setIsDefault(data['isDefault']);
100
+ }
101
+ if (data.hasOwnProperty('isEnabled') && data.isEnabled !== null && data.isEnabled !== undefined) {
102
+ obj.setIsEnabled(data['isEnabled']);
103
+ }
104
+ if (data.hasOwnProperty('toRemove') && data.toRemove !== null && data.toRemove !== undefined) {
105
+ obj.setToRemove(data['toRemove']);
106
+ }
107
+ if (data.hasOwnProperty('parameters') && data.parameters !== null && data.parameters !== undefined) {
108
+ itemArr = [];
109
+ items = data.parameters;
110
+ for (i = 0; i < items.length; i++) {
111
+ item = _KVStringPair.default.constructFromObject(items[i], undefined);
112
+ itemArr.push(item);
113
+ }
114
+ obj.setParameters(itemArr);
115
+ }
116
+ if (data.hasOwnProperty('entities') && data.entities !== null && data.entities !== undefined) {
117
+ itemArr = [];
118
+ items = data.entities;
119
+ for (i = 0; i < items.length; i++) {
120
+ item = _EntityDetail.default.constructFromObject(items[i], undefined);
121
+ itemArr.push(item);
122
+ }
123
+ obj.setEntities(itemArr);
124
+ }
125
+ if (!callFromChild) {
126
+ obj.$unknownFields = {
127
+ ...data.$unknownFields
128
+ };
129
+ for (const property in data) {
130
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
131
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
132
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
133
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
134
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
135
+ obj.$unknownFields[property] = data[property];
136
+ }
137
+ }
138
+ }
120
139
  }
140
+ return obj;
141
+ }
121
142
 
122
- /**
123
- * @param {PolicyType} policyType
124
- */
125
- }, {
126
- key: "setPolicyType",
127
- value: function setPolicyType(policyType) {
128
- this.policyType = policyType;
129
- }
143
+ /**
144
+ * Converts a given snake_case string to camelCase.
145
+ * @param {string} snakeStr - The input string in snake_case format.
146
+ * @returns {string} - The converted string in camelCase format.
147
+ */
148
+ static snakeToCamel(snakeStr) {
149
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
150
+ }
130
151
 
131
- /**
132
- * Returns The name of the policy.
133
- * @return {string}
134
- */
135
- }, {
136
- key: "getName",
137
- value: function getName() {
138
- return this.name;
139
- }
152
+ /**
153
+ * @return {PolicyType}
154
+ */
155
+ getPolicyType() {
156
+ return this.policyType;
157
+ }
140
158
 
141
- /**
142
- * Sets The name of the policy.
143
- * @param {string} name The name of the policy.
144
- */
145
- }, {
146
- key: "setName",
147
- value: function setName(name) {
148
- this.name = name;
149
- }
159
+ /**
160
+ * @param {PolicyType} policyType
161
+ */
162
+ setPolicyType(policyType) {
163
+ this.policyType = policyType;
164
+ }
150
165
 
151
- /**
152
- * Returns The description of the policy.
153
- * @return {string}
154
- */
155
- }, {
156
- key: "getDescription",
157
- value: function getDescription() {
158
- return this.description;
159
- }
166
+ /**
167
+ * Returns The name of the policy.
168
+ * @return {string}
169
+ */
170
+ getName() {
171
+ return this.name;
172
+ }
160
173
 
161
- /**
162
- * Sets The description of the policy.
163
- * @param {string} description The description of the policy.
164
- */
165
- }, {
166
- key: "setDescription",
167
- value: function setDescription(description) {
168
- this.description = description;
169
- }
174
+ /**
175
+ * Sets The name of the policy.
176
+ * @param {string} name The name of the policy.
177
+ */
178
+ setName(name) {
179
+ this.name = name;
180
+ }
170
181
 
171
- /**
172
- * Returns Last updated time of the policy in ISO-8601 format.
173
- * @return {Date}
174
- */
175
- }, {
176
- key: "getUpdatedTime",
177
- value: function getUpdatedTime() {
178
- return this.updatedTime;
179
- }
182
+ /**
183
+ * Returns The description of the policy.
184
+ * @return {string}
185
+ */
186
+ getDescription() {
187
+ return this.description;
188
+ }
180
189
 
181
- /**
182
- * Sets Last updated time of the policy in ISO-8601 format.
183
- * @param {Date} updatedTime Last updated time of the policy in ISO-8601 format.
184
- */
185
- }, {
186
- key: "setUpdatedTime",
187
- value: function setUpdatedTime(updatedTime) {
188
- this.updatedTime = updatedTime;
189
- }
190
+ /**
191
+ * Sets The description of the policy.
192
+ * @param {string} description The description of the policy.
193
+ */
194
+ setDescription(description) {
195
+ this.description = description;
196
+ }
190
197
 
191
- /**
192
- * Returns Indicates whether the policy is applied by default.
193
- * @return {boolean}
194
- */
195
- }, {
196
- key: "getIsDefault",
197
- value: function getIsDefault() {
198
- return this.isDefault;
199
- }
198
+ /**
199
+ * Returns Last updated time of the policy in ISO-8601 format.
200
+ * @return {Date}
201
+ */
202
+ getUpdatedTime() {
203
+ return this.updatedTime;
204
+ }
200
205
 
201
- /**
202
- * Sets Indicates whether the policy is applied by default.
203
- * @param {boolean} isDefault Indicates whether the policy is applied by default.
204
- */
205
- }, {
206
- key: "setIsDefault",
207
- value: function setIsDefault(isDefault) {
208
- this.isDefault = isDefault;
209
- }
206
+ /**
207
+ * Sets Last updated time of the policy in ISO-8601 format.
208
+ * @param {Date} updatedTime Last updated time of the policy in ISO-8601 format.
209
+ */
210
+ setUpdatedTime(updatedTime) {
211
+ this.updatedTime = updatedTime;
212
+ }
210
213
 
211
- /**
212
- * Returns Indicates if the policy is enabled or disabled.
213
- * @return {boolean}
214
- */
215
- }, {
216
- key: "getIsEnabled",
217
- value: function getIsEnabled() {
218
- return this.isEnabled;
219
- }
214
+ /**
215
+ * Returns Indicates whether the policy is applied by default.
216
+ * @return {boolean}
217
+ */
218
+ getIsDefault() {
219
+ return this.isDefault;
220
+ }
220
221
 
221
- /**
222
- * Sets Indicates if the policy is enabled or disabled.
223
- * @param {boolean} isEnabled Indicates if the policy is enabled or disabled.
224
- */
225
- }, {
226
- key: "setIsEnabled",
227
- value: function setIsEnabled(isEnabled) {
228
- this.isEnabled = isEnabled;
229
- }
222
+ /**
223
+ * Sets Indicates whether the policy is applied by default.
224
+ * @param {boolean} isDefault Indicates whether the policy is applied by default.
225
+ */
226
+ setIsDefault(isDefault) {
227
+ this.isDefault = isDefault;
228
+ }
230
229
 
231
- /**
232
- * Returns List of associated category details for the policy.
233
- * @return {CategoryDetail[]}
234
- */
235
- }, {
236
- key: "getCategories",
237
- value: function getCategories() {
238
- return this.categories;
239
- }
230
+ /**
231
+ * Returns Indicates if the policy is enabled or disabled.
232
+ * @return {boolean}
233
+ */
234
+ getIsEnabled() {
235
+ return this.isEnabled;
236
+ }
240
237
 
241
- /**
242
- * Sets List of associated category details for the policy.
243
- * @param {CategoryDetail[]} categories List of associated category details for the policy.
244
- */
245
- }, {
246
- key: "setCategories",
247
- value: function setCategories(categories) {
248
- this.categories = categories;
249
- }
238
+ /**
239
+ * Sets Indicates if the policy is enabled or disabled.
240
+ * @param {boolean} isEnabled Indicates if the policy is enabled or disabled.
241
+ */
242
+ setIsEnabled(isEnabled) {
243
+ this.isEnabled = isEnabled;
244
+ }
250
245
 
251
- /**
252
- * Returns Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
253
- * @return {KVStringPair[]}
254
- */
255
- }, {
256
- key: "getParameters",
257
- value: function getParameters() {
258
- return this.parameters;
259
- }
246
+ /**
247
+ * @return {boolean}
248
+ */
249
+ getToRemove() {
250
+ return this.toRemove;
251
+ }
260
252
 
261
- /**
262
- * Sets Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
263
- * @param {KVStringPair[]} parameters Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
264
- */
265
- }, {
266
- key: "setParameters",
267
- value: function setParameters(parameters) {
268
- this.parameters = parameters;
269
- }
270
- }, {
271
- key: "toJson",
272
- value: function toJson(forMutation) {
273
- if (forMutation === false) {
274
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getPolicyType() !== 'undefined' && this.getPolicyType() !== null ? {
253
+ /**
254
+ * @param {boolean} toRemove
255
+ */
256
+ setToRemove(toRemove) {
257
+ this.toRemove = toRemove;
258
+ }
259
+
260
+ /**
261
+ * Returns Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
262
+ * @return {KVStringPair[]}
263
+ */
264
+ getParameters() {
265
+ return this.parameters;
266
+ }
267
+
268
+ /**
269
+ * Sets Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
270
+ * @param {KVStringPair[]} parameters Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
271
+ */
272
+ setParameters(parameters) {
273
+ this.parameters = parameters;
274
+ }
275
+
276
+ /**
277
+ * @return {EntityDetail[]}
278
+ */
279
+ getEntities() {
280
+ return this.entities;
281
+ }
282
+
283
+ /**
284
+ * @param {EntityDetail[]} entities
285
+ */
286
+ setEntities(entities) {
287
+ this.entities = entities;
288
+ }
289
+ toJson(forMutation) {
290
+ if (forMutation === false) {
291
+ return {
292
+ ...(typeof this.getPolicyType() !== 'undefined' && this.getPolicyType() !== null ? {
275
293
  'policyType': this.getPolicyType()
276
- } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
294
+ } : {}),
295
+ ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
277
296
  'name': this.getName()
278
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
297
+ } : {}),
298
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
279
299
  'description': this.getDescription()
280
- } : {}), typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
300
+ } : {}),
301
+ ...(typeof this.getUpdatedTime() !== 'undefined' && this.getUpdatedTime() !== null ? {
281
302
  'updatedTime': _assertClassBrand(_XfitPolicy_brand, this, _handleDateType).call(this, this.getUpdatedTime(), false)
282
- } : {}), typeof this.getIsDefault() !== 'undefined' && this.getIsDefault() !== null ? {
303
+ } : {}),
304
+ ...(typeof this.getIsDefault() !== 'undefined' && this.getIsDefault() !== null ? {
283
305
  'isDefault': this.getIsDefault()
284
- } : {}), typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {
306
+ } : {}),
307
+ ...(typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {
285
308
  'isEnabled': this.getIsEnabled()
286
- } : {}), typeof this.getCategories() !== 'undefined' && this.getCategories() !== null ? {
287
- 'categories': this.getCategories().map(function (item) {
288
- return item.toJson(false);
289
- })
290
- } : {}), typeof this.getParameters() !== 'undefined' && this.getParameters() !== null ? {
291
- 'parameters': this.getParameters().map(function (item) {
292
- return item.toJson(false);
293
- })
294
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
309
+ } : {}),
310
+ ...(typeof this.getToRemove() !== 'undefined' && this.getToRemove() !== null ? {
311
+ 'toRemove': this.getToRemove()
312
+ } : {}),
313
+ ...(typeof this.getParameters() !== 'undefined' && this.getParameters() !== null ? {
314
+ 'parameters': this.getParameters().map(item => item.toJson(false))
315
+ } : {}),
316
+ ...(typeof this.getEntities() !== 'undefined' && this.getEntities() !== null ? {
317
+ 'entities': this.getEntities().map(item => item.toJson(false))
318
+ } : {}),
319
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
295
320
  'extId': this.getExtId()
296
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
297
- 'links': this.getLinks().map(function (item) {
298
- return item.toJson(false);
299
- })
300
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
321
+ } : {}),
322
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
323
+ 'links': this.getLinks().map(item => item.toJson(false))
324
+ } : {}),
325
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
301
326
  'tenantId': this.getTenantId()
302
- } : {}), {}, {
303
- '$reserved': this.get$Reserved(),
304
- '$objectType': this.get$ObjectType(),
305
- '$unknownFields': this.get$UnknownFields()
306
- });
307
- }
308
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getPolicyType() !== 'undefined' && this.getPolicyType() !== null ? {
309
- 'policyType': this.getPolicyType()
310
- } : {}), typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {
311
- 'isEnabled': this.getIsEnabled()
312
- } : {}), typeof this.getCategories() !== 'undefined' && this.getCategories() !== null ? {
313
- 'categories': this.getCategories().map(function (item) {
314
- return item.toJson(false);
315
- })
316
- } : {}), typeof this.getParameters() !== 'undefined' && this.getParameters() !== null ? {
317
- 'parameters': this.getParameters().map(function (item) {
318
- return item.toJson(false);
319
- })
320
- } : {}), {}, {
327
+ } : {}),
321
328
  '$reserved': this.get$Reserved(),
322
329
  '$objectType': this.get$ObjectType(),
323
- '$unknownFields': this.get$UnknownFields()
324
- });
330
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
331
+ '$unknownFields': {}
332
+ };
325
333
  }
326
- }, {
327
- key: "validate",
328
- value: function validate(scope, properties) {
329
- var _this2 = this;
330
- var propList = [];
331
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
332
- //cases validate() and validate(scope)
333
- propList = ["isEnabled", "categories", "parameters"];
334
- } else if (arguments.length === 1) {
335
- //case validate(properties)
336
- propList = arguments[0];
337
- scope = null;
334
+ return {
335
+ ...(typeof this.getPolicyType() !== 'undefined' && this.getPolicyType() !== null ? {
336
+ 'policyType': this.getPolicyType()
337
+ } : {}),
338
+ ...(typeof this.getIsEnabled() !== 'undefined' && this.getIsEnabled() !== null ? {
339
+ 'isEnabled': this.getIsEnabled()
340
+ } : {}),
341
+ ...(typeof this.getToRemove() !== 'undefined' && this.getToRemove() !== null ? {
342
+ 'toRemove': this.getToRemove()
343
+ } : {}),
344
+ ...(typeof this.getParameters() !== 'undefined' && this.getParameters() !== null ? {
345
+ 'parameters': this.getParameters().map(item => item.toJson(false))
346
+ } : {}),
347
+ ...(typeof this.getEntities() !== 'undefined' && this.getEntities() !== null ? {
348
+ 'entities': this.getEntities().map(item => item.toJson(false))
349
+ } : {}),
350
+ '$reserved': this.get$Reserved(),
351
+ '$objectType': this.get$ObjectType(),
352
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
353
+ '$unknownFields': {}
354
+ };
355
+ }
356
+ validate(scope, properties) {
357
+ let propList = [];
358
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
359
+ //cases validate() and validate(scope)
360
+ propList = ["isEnabled", "entities"];
361
+ } else if (arguments.length === 1) {
362
+ //case validate(properties)
363
+ propList = arguments[0];
364
+ scope = null;
365
+ } else {
366
+ //case validate(scope, properties)
367
+ propList = arguments[1];
368
+ }
369
+ let res = [];
370
+ let err = null;
371
+ propList.forEach(property => {
372
+ err = this.validateProperty(property, scope);
373
+ if (err) {
374
+ res.push(err);
375
+ }
376
+ });
377
+ return new Promise(function (resolve, reject) {
378
+ if (res.length !== 0) {
379
+ reject(err);
338
380
  } else {
339
- //case validate(scope, properties)
340
- propList = arguments[1];
381
+ resolve();
382
+ }
383
+ });
384
+ }
385
+ validateProperty(scope, property) {
386
+ if (property === "policyType") {
387
+ if (typeof this.policyType === 'undefined' || this.policyType === null) {
388
+ return new _ValidationError.default("policyType", "undefined or null");
341
389
  }
342
- var res = [];
343
- var err = null;
344
- propList.forEach(function (property) {
345
- err = _this2.validateProperty(property, scope);
346
- if (err) {
347
- res.push(err);
348
- }
349
- });
350
- return new Promise(function (resolve, reject) {
351
- if (res.length !== 0) {
352
- reject(err);
353
- } else {
354
- resolve();
355
- }
356
- });
357
390
  }
358
- }, {
359
- key: "validateProperty",
360
- value: function validateProperty(scope, property) {
361
- if (property === "policyType") {
362
- if (typeof this.policyType === 'undefined' || this.policyType === null) {
363
- return new _ValidationError["default"]("policyType", "undefined or null");
364
- }
391
+ if (property === "name") {
392
+ if (typeof this.name === 'undefined' || this.name === null) {
393
+ return new _ValidationError.default("name", "undefined or null");
365
394
  }
366
- if (property === "name") {
367
- if (typeof this.name === 'undefined' || this.name === null) {
368
- return new _ValidationError["default"]("name", "undefined or null");
369
- }
370
- if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
371
- return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
372
- }
373
- if (!_ValidationUtils["default"].validateMinLength(this.name, 1)) {
374
- return new _ValidationError["default"]("name", "does not satisfy required minLength constraint: 1");
375
- }
395
+ if (!_ValidationUtils.default.validateMaxLength(this.name, 256)) {
396
+ return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 256");
376
397
  }
377
- if (property === "description") {
378
- if (typeof this.description === 'undefined' || this.description === null) {
379
- return new _ValidationError["default"]("description", "undefined or null");
380
- }
381
- if (!_ValidationUtils["default"].validateMaxLength(this.description, 512)) {
382
- return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 512");
383
- }
384
- if (!_ValidationUtils["default"].validateMinLength(this.description, 1)) {
385
- return new _ValidationError["default"]("description", "does not satisfy required minLength constraint: 1");
386
- }
398
+ if (!_ValidationUtils.default.validateMinLength(this.name, 1)) {
399
+ return new _ValidationError.default("name", "does not satisfy required minLength constraint: 1");
387
400
  }
388
- if (property === "updatedTime") {
389
- if (typeof this.updatedTime === 'undefined' || this.updatedTime === null) {
390
- return new _ValidationError["default"]("updatedTime", "undefined or null");
391
- }
401
+ }
402
+ if (property === "description") {
403
+ if (typeof this.description === 'undefined' || this.description === null) {
404
+ return new _ValidationError.default("description", "undefined or null");
392
405
  }
393
- if (property === "isDefault") {
394
- if (typeof this.isDefault === 'undefined' || this.isDefault === null) {
395
- return new _ValidationError["default"]("isDefault", "undefined or null");
396
- }
406
+ if (!_ValidationUtils.default.validateMaxLength(this.description, 512)) {
407
+ return new _ValidationError.default("description", "does not satisfy required maxLength constraint: 512");
397
408
  }
398
- if (property === "isEnabled") {
399
- if (typeof this.isEnabled === 'undefined' || this.isEnabled === null) {
400
- return new _ValidationError["default"]("isEnabled", "undefined or null");
401
- }
409
+ if (!_ValidationUtils.default.validateMinLength(this.description, 1)) {
410
+ return new _ValidationError.default("description", "does not satisfy required minLength constraint: 1");
402
411
  }
403
- if (property === "categories") {
404
- if (typeof this.categories === 'undefined' || this.categories === null) {
405
- return new _ValidationError["default"]("categories", "undefined or null");
406
- }
407
- if (!_ValidationUtils["default"].validateMaxItems(this.categories, 1250)) {
408
- return new _ValidationError["default"]("categories", "does not satisfy required maxItems constraint: 1250");
409
- }
410
- if (!_ValidationUtils["default"].validateMinItems(this.categories, 1)) {
411
- return new _ValidationError["default"]("categories", "does not satisfy required minItems constraint: 1");
412
- }
412
+ }
413
+ if (property === "updatedTime") {
414
+ if (typeof this.updatedTime === 'undefined' || this.updatedTime === null) {
415
+ return new _ValidationError.default("updatedTime", "undefined or null");
413
416
  }
414
- if (property === "parameters") {
415
- if (typeof this.parameters === 'undefined' || this.parameters === null) {
416
- return new _ValidationError["default"]("parameters", "undefined or null");
417
- }
418
- if (!_ValidationUtils["default"].validateMaxItems(this.parameters, 50)) {
419
- return new _ValidationError["default"]("parameters", "does not satisfy required maxItems constraint: 50");
420
- }
417
+ }
418
+ if (property === "isDefault") {
419
+ if (typeof this.isDefault === 'undefined' || this.isDefault === null) {
420
+ return new _ValidationError.default("isDefault", "undefined or null");
421
421
  }
422
- return new _ValidationError["default"](property, "no such property exists");
423
422
  }
424
- }], [{
425
- key: "constructFromObject",
426
- value: function constructFromObject(data) {
427
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
428
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
429
- var items, item, i, itemArr, discriminator;
430
- if (data) {
431
- obj = obj || new XfitPolicy();
432
- _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
433
- if (data.hasOwnProperty('policyType') && data.policyType !== null && data.policyType !== undefined) {
434
- obj.setPolicyType(_PolicyType["default"].constructFromObject(data['policyType']));
435
- }
436
- if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
437
- obj.setName(data['name']);
438
- }
439
- if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
440
- obj.setDescription(data['description']);
441
- }
442
- if (data.hasOwnProperty('updatedTime') && data.updatedTime !== null && data.updatedTime !== undefined) {
443
- obj.setUpdatedTime(data['updatedTime']);
444
- }
445
- if (data.hasOwnProperty('isDefault') && data.isDefault !== null && data.isDefault !== undefined) {
446
- obj.setIsDefault(data['isDefault']);
447
- }
448
- if (data.hasOwnProperty('isEnabled') && data.isEnabled !== null && data.isEnabled !== undefined) {
449
- obj.setIsEnabled(data['isEnabled']);
450
- }
451
- if (data.hasOwnProperty('categories') && data.categories !== null && data.categories !== undefined) {
452
- itemArr = [];
453
- items = data.categories;
454
- for (i = 0; i < items.length; i++) {
455
- item = _CategoryDetail["default"].constructFromObject(items[i], undefined);
456
- itemArr.push(item);
457
- }
458
- obj.setCategories(itemArr);
459
- }
460
- if (data.hasOwnProperty('parameters') && data.parameters !== null && data.parameters !== undefined) {
461
- itemArr = [];
462
- items = data.parameters;
463
- for (i = 0; i < items.length; i++) {
464
- item = _KVStringPair["default"].constructFromObject(items[i], undefined);
465
- itemArr.push(item);
466
- }
467
- obj.setParameters(itemArr);
468
- }
469
- if (!callFromChild) {
470
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
471
- for (var property in data) {
472
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
473
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
474
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
475
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
476
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
477
- obj.$unknownFields[property] = data[property];
478
- }
479
- }
480
- }
423
+ if (property === "isEnabled") {
424
+ if (typeof this.isEnabled === 'undefined' || this.isEnabled === null) {
425
+ return new _ValidationError.default("isEnabled", "undefined or null");
481
426
  }
482
- return obj;
483
427
  }
484
-
485
- /**
486
- * Converts a given snake_case string to camelCase.
487
- * @param {string} snakeStr - The input string in snake_case format.
488
- * @returns {string} - The converted string in camelCase format.
489
- */
490
- }, {
491
- key: "snakeToCamel",
492
- value: function snakeToCamel(snakeStr) {
493
- return snakeStr.replace(/(_\w)/g, function (match) {
494
- return match[1].toUpperCase();
495
- });
428
+ if (property === "toRemove") {
429
+ if (typeof this.toRemove === 'undefined' || this.toRemove === null) {
430
+ return new _ValidationError.default("toRemove", "undefined or null");
431
+ }
432
+ }
433
+ if (property === "parameters") {
434
+ if (typeof this.parameters === 'undefined' || this.parameters === null) {
435
+ return new _ValidationError.default("parameters", "undefined or null");
436
+ }
437
+ if (!_ValidationUtils.default.validateMaxItems(this.parameters, 50)) {
438
+ return new _ValidationError.default("parameters", "does not satisfy required maxItems constraint: 50");
439
+ }
440
+ }
441
+ if (property === "entities") {
442
+ if (typeof this.entities === 'undefined' || this.entities === null) {
443
+ return new _ValidationError.default("entities", "undefined or null");
444
+ }
496
445
  }
497
- }]);
498
- }(_ExternalizableAbstractModel["default"]);
446
+ return new _ValidationError.default(property, "no such property exists");
447
+ }
448
+ }
449
+
499
450
  /**
500
451
  * @memberof XfitPolicy
501
452
  */
453
+ exports.default = XfitPolicy;
502
454
  function _toJsonMapType(obj, forMutation) {
503
455
  if (obj instanceof Map) {
504
- return Object.fromEntries(Array.from(obj, function (_ref) {
505
- var _ref2 = _slicedToArray(_ref, 2),
506
- k = _ref2[0],
507
- v = _ref2[1];
508
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
509
- }));
510
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
511
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
456
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
457
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
458
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
512
459
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
513
460
  }));
514
461
  }
@@ -561,10 +508,10 @@ XfitPolicy.prototype.isDefault = false;
561
508
  XfitPolicy.prototype.isEnabled = true;
562
509
 
563
510
  /**
564
- * List of associated category details for the policy.
565
511
  * @memberof XfitPolicy
512
+ * @default false
566
513
  */
567
- XfitPolicy.prototype.categories = undefined;
514
+ XfitPolicy.prototype.toRemove = false;
568
515
 
569
516
  /**
570
517
  * Key value pairs for the relevant properties of a policy. For example, it can hold the lookback period for an Inefficiency exclusion policy.
@@ -572,18 +519,23 @@ XfitPolicy.prototype.categories = undefined;
572
519
  */
573
520
  XfitPolicy.prototype.parameters = undefined;
574
521
 
522
+ /**
523
+ * @memberof XfitPolicy
524
+ */
525
+ XfitPolicy.prototype.entities = undefined;
526
+
575
527
  /**
576
528
  * A globally unique identifier of an instance that is suitable for external consumption.
577
529
  * @memberof XfitPolicy
578
530
  */
579
- _ExternalizableAbstractModel["default"].prototype.extId = undefined;
531
+ _ExternalizableAbstractModel.default.prototype.extId = undefined;
580
532
  /**
581
533
  * 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.
582
534
  * @memberof XfitPolicy
583
535
  */
584
- _ExternalizableAbstractModel["default"].prototype.links = undefined;
536
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
585
537
  /**
586
538
  * 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).
587
539
  * @memberof XfitPolicy
588
540
  */
589
- _TenantAwareModel["default"].prototype.tenantId = undefined;
541
+ _TenantAwareModel.default.prototype.tenantId = undefined;