@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
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- 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); }
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -22,38 +21,36 @@ var _GetScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4
22
21
  var _UpdateScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/UpdateScenarioApiResponse"));
23
22
  var _GenerateRunwayApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GenerateRunwayApiResponse"));
24
23
  var _Simulation = _interopRequireDefault(require("../models/aiops/v4/config/Simulation"));
25
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
26
- 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; }
27
- 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; }
28
- 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; }
29
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
30
- 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); } }
31
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
32
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
33
- 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); }
34
- function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
35
- function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
36
- function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
37
- function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
38
- 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"); } /*
24
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
25
+ /*
39
26
  * Nutanix AIOps APIs
40
27
  *
41
- * OpenAPI spec version: 4.0.2
28
+ * OpenAPI spec version: 4.2.1-beta-1
42
29
  *
43
30
  * NOTE: This class is auto generated by the Open API Dev Platform.
44
31
  *
45
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
32
+ * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
46
33
  *
47
34
  * Do not edit the class manually.
48
35
  *
49
36
  */
37
+
50
38
  /**
51
39
  * Scenarios service.
52
- * @version 4.0.2
40
+ * @version 4.2.1-beta-1
53
41
  * @class ScenariosApi
54
42
  */
55
- var _headersToSkip = /*#__PURE__*/new WeakMap();
56
- var ScenariosApi = exports.ScenariosApi = /*#__PURE__*/function () {
43
+ class ScenariosApi {
44
+ #headersToSkip;
45
+
46
+ /**
47
+ * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
48
+ * their own fetch methods into the SDK
49
+ */
50
+ static get ApiClient() {
51
+ return _ApiClient.ApiClient;
52
+ }
53
+
57
54
  /**
58
55
  * Constructs a new ScenariosApi.
59
56
  * @alias module:api/ScenariosApi
@@ -61,15 +58,13 @@ var ScenariosApi = exports.ScenariosApi = /*#__PURE__*/function () {
61
58
  * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
62
59
  * default to {@link module:ApiClient#instance} if unspecified.
63
60
  */
64
- function ScenariosApi(apiClient) {
65
- _classCallCheck(this, ScenariosApi);
66
- _classPrivateFieldInitSpec(this, _headersToSkip, void 0);
61
+ constructor(apiClient) {
67
62
  this.apiClient = apiClient || _ApiClient.ApiClient.instance;
68
- _classPrivateFieldSet(_headersToSkip, this, new Set());
69
- _classPrivateFieldGet(_headersToSkip, this).add('authorization');
70
- _classPrivateFieldGet(_headersToSkip, this).add('cookie');
71
- _classPrivateFieldGet(_headersToSkip, this).add('host');
72
- _classPrivateFieldGet(_headersToSkip, this).add('user-agent');
63
+ this.#headersToSkip = new Set();
64
+ this.#headersToSkip.add('authorization');
65
+ this.#headersToSkip.add('cookie');
66
+ this.#headersToSkip.add('host');
67
+ this.#headersToSkip.add('user-agent');
73
68
  }
74
69
 
75
70
  /**
@@ -79,563 +74,551 @@ var ScenariosApi = exports.ScenariosApi = /*#__PURE__*/function () {
79
74
  * @param {Object} args Additional Arguments
80
75
  * @return {Promise<CreateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateScenarioApiResponse } and HTTP response
81
76
  */
82
- return _createClass(ScenariosApi, [{
83
- key: "createScenario",
84
- value: function createScenario(body) {
85
- var _this = this;
86
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
87
- var postBody = null;
88
- if (body instanceof _Scenario["default"] && typeof body.toJson === 'function') {
89
- postBody = body.toJson();
90
- } else {
91
- postBody = body;
92
- }
93
- // verify the required parameter 'body' is set
94
- if (typeof postBody === 'undefined' || postBody === null) {
95
- throw new Error("Invalid body when calling createScenario");
96
- }
97
- var pathParams = {};
98
- var queryParams = {};
99
- var headersToInclude = {};
100
- Object.keys(argMap).forEach(function (header) {
101
- if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
102
- headersToInclude[header] = argMap[header];
103
- }
104
- });
105
- var headerParams = _objectSpread({}, headersToInclude);
106
- var formParams = {};
107
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
108
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
109
- var contentTypes = ['application/json'];
110
- var accepts = ['application/json'];
111
- var returnType = _CreateScenarioApiResponse["default"];
112
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
77
+ createScenario(body, ...args) {
78
+ let argMap = args.length > 0 ? args[0] : {};
79
+ let postBody = null;
80
+ if (body instanceof _Scenario.default && typeof body.toJson === 'function') {
81
+ postBody = body.toJson();
82
+ } else {
83
+ postBody = body;
113
84
  }
114
-
115
- /**
116
- * Create a simulation
117
- * Creates a simulation which can be used in the capacity scenario as a part of VM workload.
118
- * @param { Partial<Simulation> } body specification
119
- * @param {Object} args Additional Arguments
120
- * @return {Promise<CreateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateSimulationApiResponse } and HTTP response
121
- */
122
- }, {
123
- key: "createSimulation",
124
- value: function createSimulation(body) {
125
- var _this2 = this;
126
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
127
- var postBody = null;
128
- if (body instanceof _Simulation["default"] && typeof body.toJson === 'function') {
129
- postBody = body.toJson();
130
- } else {
131
- postBody = body;
132
- }
133
- // verify the required parameter 'body' is set
134
- if (typeof postBody === 'undefined' || postBody === null) {
135
- throw new Error("Invalid body when calling createSimulation");
136
- }
137
- var pathParams = {};
138
- var queryParams = {};
139
- var headersToInclude = {};
140
- Object.keys(argMap).forEach(function (header) {
141
- if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
142
- headersToInclude[header] = argMap[header];
143
- }
144
- });
145
- var headerParams = _objectSpread({}, headersToInclude);
146
- var formParams = {};
147
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
148
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
149
- var contentTypes = ['application/json'];
150
- var accepts = ['application/json'];
151
- var returnType = _CreateSimulationApiResponse["default"];
152
- return this.apiClient.callApi('/api/aiops/v4.0/config/simulations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
85
+ // verify the required parameter 'body' is set
86
+ if (typeof postBody === 'undefined' || postBody === null) {
87
+ throw new Error("Invalid body when calling createScenario");
153
88
  }
154
-
155
- /**
156
- * Delete a capacity planning scenario
157
- * Deletes a capacity planning scenario using the provided UUID.
158
- * @param { String } extId UUID of a capacity planning scenario.
159
- * @param {Object} args Additional Arguments
160
- * @return {Promise<DeleteScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteScenarioApiResponse } and HTTP response
161
- */
162
- }, {
163
- key: "deleteScenarioById",
164
- value: function deleteScenarioById(extId) {
165
- var _this3 = this;
166
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
167
- var postBody = null;
168
- // verify the required parameter 'extId' is set
169
- if (typeof extId === 'undefined' || extId === null) {
170
- throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");
89
+ const pathParams = {};
90
+ const queryParams = {};
91
+ let headersToInclude = {};
92
+ Object.keys(argMap).forEach(header => {
93
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
94
+ headersToInclude[header] = argMap[header];
171
95
  }
172
- var pathParams = {
173
- 'extId': extId
174
- };
175
- var queryParams = {};
176
- var headersToInclude = {};
177
- Object.keys(argMap).forEach(function (header) {
178
- if (!_classPrivateFieldGet(_headersToSkip, _this3).has(header.toLowerCase())) {
179
- headersToInclude[header] = argMap[header];
180
- }
181
- });
182
- var headerParams = _objectSpread({}, headersToInclude);
183
- var formParams = {};
184
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
185
- var contentTypes = [];
186
- var accepts = ['application/json'];
187
- var returnType = _DeleteScenarioApiResponse["default"];
188
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
189
- }
96
+ });
97
+ const headerParams = {
98
+ ...headersToInclude
99
+ };
100
+ const formParams = {};
101
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
102
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
103
+ const contentTypes = ['application/json'];
104
+ const accepts = ['application/json'];
105
+ const returnType = _CreateScenarioApiResponse.default;
106
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
107
+ }
190
108
 
191
- /**
192
- * Delete a simulation
193
- * Deletes a simulation identified by the provided UUID.
194
- * @param { String } extId UUID of a simulation.
195
- * @param {Object} args Additional Arguments
196
- * @return {Promise<DeleteSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteSimulationApiResponse } and HTTP response
197
- */
198
- }, {
199
- key: "deleteSimulationById",
200
- value: function deleteSimulationById(extId) {
201
- var _this4 = this;
202
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
203
- var postBody = null;
204
- // verify the required parameter 'extId' is set
205
- if (typeof extId === 'undefined' || extId === null) {
206
- throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");
207
- }
208
- var pathParams = {
209
- 'extId': extId
210
- };
211
- var queryParams = {};
212
- var headersToInclude = {};
213
- Object.keys(argMap).forEach(function (header) {
214
- if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
215
- headersToInclude[header] = argMap[header];
216
- }
217
- });
218
- var headerParams = _objectSpread({}, headersToInclude);
219
- var formParams = {};
220
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
221
- var contentTypes = [];
222
- var accepts = ['application/json'];
223
- var returnType = _DeleteSimulationApiResponse["default"];
224
- return this.apiClient.callApi('/api/aiops/v4.0/config/simulations/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
109
+ /**
110
+ * Create a simulation
111
+ * Creates a simulation which can be used in the capacity scenario as a part of VM workload.
112
+ * @param { Partial<Simulation> } body specification
113
+ * @param {Object} args Additional Arguments
114
+ * @return {Promise<CreateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateSimulationApiResponse } and HTTP response
115
+ */
116
+ createSimulation(body, ...args) {
117
+ let argMap = args.length > 0 ? args[0] : {};
118
+ let postBody = null;
119
+ if (body instanceof _Simulation.default && typeof body.toJson === 'function') {
120
+ postBody = body.toJson();
121
+ } else {
122
+ postBody = body;
225
123
  }
226
-
227
- /**
228
- * Generate recommendation for a capacity planning scenario
229
- * Generates recommendation for a planned capacity scenario using the provided UUID. You can send a polling request to find out the task status. The external identifier provided in the response can be used in GET scenarios API to retrieve the recommendation result upon the task completion.
230
- * @param { String } extId UUID of a capacity planning scenario.
231
- * @param {Object} args Additional Arguments
232
- * @return {Promise<GenerateRecommendationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRecommendationApiResponse } and HTTP response
233
- */
234
- }, {
235
- key: "generateRecommendation",
236
- value: function generateRecommendation(extId) {
237
- var _this5 = this;
238
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
239
- var postBody = null;
240
- // verify the required parameter 'extId' is set
241
- if (typeof extId === 'undefined' || extId === null) {
242
- throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");
243
- }
244
- var pathParams = {
245
- 'extId': extId
246
- };
247
- var queryParams = {};
248
- var headersToInclude = {};
249
- Object.keys(argMap).forEach(function (header) {
250
- if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
251
- headersToInclude[header] = argMap[header];
252
- }
253
- });
254
- var headerParams = _objectSpread({}, headersToInclude);
255
- var formParams = {};
256
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
257
- var contentTypes = [];
258
- var accepts = ['application/json'];
259
- var returnType = _GenerateRecommendationApiResponse["default"];
260
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-recommendation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
124
+ // verify the required parameter 'body' is set
125
+ if (typeof postBody === 'undefined' || postBody === null) {
126
+ throw new Error("Invalid body when calling createSimulation");
261
127
  }
262
-
263
- /**
264
- * Generate a report for a planned capacity scenario
265
- * Generates a report for a planned capacity scenario by the provided scenario UUID. You can send a polling request to know the task status. The external identifier from the response can be used in GET report API to fetch the generated report upon the task completion.
266
- * @param { String } extId UUID of a capacity planning scenario.
267
- * @param {Object} args Additional Arguments
268
- * @return {Promise<GenerateReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateReportApiResponse } and HTTP response
269
- */
270
- }, {
271
- key: "generateReport",
272
- value: function generateReport(extId) {
273
- var _this6 = this;
274
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
275
- var postBody = null;
276
- // verify the required parameter 'extId' is set
277
- if (typeof extId === 'undefined' || extId === null) {
278
- throw new Error("Missing the required parameter 'extId' when calling generateReport");
128
+ const pathParams = {};
129
+ const queryParams = {};
130
+ let headersToInclude = {};
131
+ Object.keys(argMap).forEach(header => {
132
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
133
+ headersToInclude[header] = argMap[header];
279
134
  }
280
- var pathParams = {
281
- 'extId': extId
282
- };
283
- var queryParams = {};
284
- var headersToInclude = {};
285
- Object.keys(argMap).forEach(function (header) {
286
- if (!_classPrivateFieldGet(_headersToSkip, _this6).has(header.toLowerCase())) {
287
- headersToInclude[header] = argMap[header];
288
- }
289
- });
290
- var headerParams = _objectSpread({}, headersToInclude);
291
- var formParams = {};
292
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
293
- var contentTypes = [];
294
- var accepts = ['application/json'];
295
- var returnType = _GenerateReportApiResponse["default"];
296
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-report', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
297
- }
135
+ });
136
+ const headerParams = {
137
+ ...headersToInclude
138
+ };
139
+ const formParams = {};
140
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
141
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
142
+ const contentTypes = ['application/json'];
143
+ const accepts = ['application/json'];
144
+ const returnType = _CreateSimulationApiResponse.default;
145
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
146
+ }
298
147
 
299
- /**
300
- * Generate runway for a planned capacity scenario
301
- * Generates runway for planned capacity scenario with the given UUID. You can send a polling request to know about the task status. The external identifier from the response can be used in the GET capacity scenarios API to fetch the runway result upon task completion.
302
- * @param { String } extId UUID of a capacity planning scenario.
303
- * @param {Object} args Additional Arguments
304
- * @return {Promise<GenerateRunwayApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRunwayApiResponse } and HTTP response
305
- */
306
- }, {
307
- key: "generateRunway",
308
- value: function generateRunway(extId) {
309
- var _this7 = this;
310
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
311
- var postBody = null;
312
- // verify the required parameter 'extId' is set
313
- if (typeof extId === 'undefined' || extId === null) {
314
- throw new Error("Missing the required parameter 'extId' when calling generateRunway");
148
+ /**
149
+ * Delete a capacity planning scenario
150
+ * Deletes a capacity planning scenario using the provided UUID.
151
+ * @param { String } extId UUID of a capacity planning scenario.
152
+ * @param {Object} args Additional Arguments
153
+ * @return {Promise<DeleteScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteScenarioApiResponse } and HTTP response
154
+ */
155
+ deleteScenarioById(extId, ...args) {
156
+ let argMap = args.length > 0 ? args[0] : {};
157
+ const postBody = null;
158
+ // verify the required parameter 'extId' is set
159
+ if (typeof extId === 'undefined' || extId === null) {
160
+ throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");
161
+ }
162
+ const pathParams = {
163
+ 'extId': extId
164
+ };
165
+ const queryParams = {};
166
+ let headersToInclude = {};
167
+ Object.keys(argMap).forEach(header => {
168
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
169
+ headersToInclude[header] = argMap[header];
315
170
  }
316
- var pathParams = {
317
- 'extId': extId
318
- };
319
- var queryParams = {};
320
- var headersToInclude = {};
321
- Object.keys(argMap).forEach(function (header) {
322
- if (!_classPrivateFieldGet(_headersToSkip, _this7).has(header.toLowerCase())) {
323
- headersToInclude[header] = argMap[header];
324
- }
325
- });
326
- var headerParams = _objectSpread({}, headersToInclude);
327
- var formParams = {};
328
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
329
- var contentTypes = [];
330
- var accepts = ['application/json'];
331
- var returnType = _GenerateRunwayApiResponse["default"];
332
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-runway', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
171
+ });
172
+ const headerParams = {
173
+ ...headersToInclude
174
+ };
175
+ const formParams = {};
176
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
177
+ const contentTypes = [];
178
+ const accepts = ['application/json'];
179
+ const returnType = _DeleteScenarioApiResponse.default;
180
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
181
+ }
182
+
183
+ /**
184
+ * Delete a simulation
185
+ * Deletes a simulation identified by the provided UUID.
186
+ * @param { String } extId UUID of a simulation.
187
+ * @param {Object} args Additional Arguments
188
+ * @return {Promise<DeleteSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteSimulationApiResponse } and HTTP response
189
+ */
190
+ deleteSimulationById(extId, ...args) {
191
+ let argMap = args.length > 0 ? args[0] : {};
192
+ const postBody = null;
193
+ // verify the required parameter 'extId' is set
194
+ if (typeof extId === 'undefined' || extId === null) {
195
+ throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");
333
196
  }
197
+ const pathParams = {
198
+ 'extId': extId
199
+ };
200
+ const queryParams = {};
201
+ let headersToInclude = {};
202
+ Object.keys(argMap).forEach(header => {
203
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
204
+ headersToInclude[header] = argMap[header];
205
+ }
206
+ });
207
+ const headerParams = {
208
+ ...headersToInclude
209
+ };
210
+ const formParams = {};
211
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
212
+ const contentTypes = [];
213
+ const accepts = ['application/json'];
214
+ const returnType = _DeleteSimulationApiResponse.default;
215
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
216
+ }
334
217
 
335
- /**
336
- * Get a single capacity planning scenario
337
- * Fetches a single capacity planing scenario using the UUID of the scenario.
338
- * @param { String } extId UUID of a capacity planning scenario.
339
- * @param {Object} args Additional Arguments
340
- * @return {Promise<GetScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetScenarioApiResponse } and HTTP response
341
- */
342
- }, {
343
- key: "getScenarioById",
344
- value: function getScenarioById(extId) {
345
- var _this8 = this;
346
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
347
- var postBody = null;
348
- // verify the required parameter 'extId' is set
349
- if (typeof extId === 'undefined' || extId === null) {
350
- throw new Error("Missing the required parameter 'extId' when calling getScenarioById");
218
+ /**
219
+ * Generate recommendation for a capacity planning scenario
220
+ * Generates recommendation for a planned capacity scenario using the provided UUID. You can send a polling request to find out the task status. The external identifier provided in the response can be used in GET scenarios API to retrieve the recommendation result upon the task completion.
221
+ * @param { String } extId UUID of a capacity planning scenario.
222
+ * @param {Object} args Additional Arguments
223
+ * @return {Promise<GenerateRecommendationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRecommendationApiResponse } and HTTP response
224
+ */
225
+ generateRecommendation(extId, ...args) {
226
+ let argMap = args.length > 0 ? args[0] : {};
227
+ const postBody = null;
228
+ // verify the required parameter 'extId' is set
229
+ if (typeof extId === 'undefined' || extId === null) {
230
+ throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");
231
+ }
232
+ const pathParams = {
233
+ 'extId': extId
234
+ };
235
+ const queryParams = {};
236
+ let headersToInclude = {};
237
+ Object.keys(argMap).forEach(header => {
238
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
239
+ headersToInclude[header] = argMap[header];
351
240
  }
352
- var pathParams = {
353
- 'extId': extId
354
- };
355
- var queryParams = {};
356
- var headersToInclude = {};
357
- Object.keys(argMap).forEach(function (header) {
358
- if (!_classPrivateFieldGet(_headersToSkip, _this8).has(header.toLowerCase())) {
359
- headersToInclude[header] = argMap[header];
360
- }
361
- });
362
- var headerParams = _objectSpread({}, headersToInclude);
363
- var formParams = {};
364
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
365
- var contentTypes = [];
366
- var accepts = ['application/json'];
367
- var returnType = _GetScenarioApiResponse["default"];
368
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
241
+ });
242
+ const headerParams = {
243
+ ...headersToInclude
244
+ };
245
+ const formParams = {};
246
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
247
+ const contentTypes = [];
248
+ const accepts = ['application/json'];
249
+ const returnType = _GenerateRecommendationApiResponse.default;
250
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-recommendation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
251
+ }
252
+
253
+ /**
254
+ * Generate a report for a planned capacity scenario
255
+ * Generates a report for a planned capacity scenario by the provided scenario UUID. You can send a polling request to know the task status. The external identifier from the response can be used in GET report API to fetch the generated report upon the task completion.
256
+ * @param { String } extId UUID of a capacity planning scenario.
257
+ * @param {Object} args Additional Arguments
258
+ * @return {Promise<GenerateReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateReportApiResponse } and HTTP response
259
+ */
260
+ generateReport(extId, ...args) {
261
+ let argMap = args.length > 0 ? args[0] : {};
262
+ const postBody = null;
263
+ // verify the required parameter 'extId' is set
264
+ if (typeof extId === 'undefined' || extId === null) {
265
+ throw new Error("Missing the required parameter 'extId' when calling generateReport");
369
266
  }
267
+ const pathParams = {
268
+ 'extId': extId
269
+ };
270
+ const queryParams = {};
271
+ let headersToInclude = {};
272
+ Object.keys(argMap).forEach(header => {
273
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
274
+ headersToInclude[header] = argMap[header];
275
+ }
276
+ });
277
+ const headerParams = {
278
+ ...headersToInclude
279
+ };
280
+ const formParams = {};
281
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
282
+ const contentTypes = [];
283
+ const accepts = ['application/json'];
284
+ const returnType = _GenerateReportApiResponse.default;
285
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-report', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
286
+ }
370
287
 
371
- /**
372
- * Get the generated report for a planned capacity scenario
373
- * Fetches the generated capacity planning scenario report by the report UUID.
374
- * @param { String } scenarioExtId UUID of the capacity planning scenario to get the report.
375
- * @param {Object} args Additional Arguments
376
- * @return {Promise<GetScenarioReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetScenarioReportApiResponse } and HTTP response
377
- */
378
- }, {
379
- key: "getScenarioReport",
380
- value: function getScenarioReport(scenarioExtId) {
381
- var _this9 = this;
382
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
383
- var postBody = null;
384
- // verify the required parameter 'scenarioExtId' is set
385
- if (typeof scenarioExtId === 'undefined' || scenarioExtId === null) {
386
- throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");
288
+ /**
289
+ * Generate runway for a planned capacity scenario
290
+ * Generates runway for planned capacity scenario with the given UUID. You can send a polling request to know about the task status. The external identifier from the response can be used in the GET capacity scenarios API to fetch the runway result upon task completion.
291
+ * @param { String } extId UUID of a capacity planning scenario.
292
+ * @param {Object} args Additional Arguments
293
+ * @return {Promise<GenerateRunwayApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRunwayApiResponse } and HTTP response
294
+ */
295
+ generateRunway(extId, ...args) {
296
+ let argMap = args.length > 0 ? args[0] : {};
297
+ const postBody = null;
298
+ // verify the required parameter 'extId' is set
299
+ if (typeof extId === 'undefined' || extId === null) {
300
+ throw new Error("Missing the required parameter 'extId' when calling generateRunway");
301
+ }
302
+ const pathParams = {
303
+ 'extId': extId
304
+ };
305
+ const queryParams = {};
306
+ let headersToInclude = {};
307
+ Object.keys(argMap).forEach(header => {
308
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
309
+ headersToInclude[header] = argMap[header];
387
310
  }
388
- var pathParams = {
389
- 'scenarioExtId': scenarioExtId
390
- };
391
- var queryParams = {};
392
- var headersToInclude = {};
393
- Object.keys(argMap).forEach(function (header) {
394
- if (!_classPrivateFieldGet(_headersToSkip, _this9).has(header.toLowerCase())) {
395
- headersToInclude[header] = argMap[header];
396
- }
397
- });
398
- var headerParams = _objectSpread({}, headersToInclude);
399
- var formParams = {};
400
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
401
- var contentTypes = [];
402
- var accepts = ['application/octet-stream', 'application/json'];
403
- var returnType = _GetScenarioReportApiResponse["default"];
404
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{scenarioExtId}/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
311
+ });
312
+ const headerParams = {
313
+ ...headersToInclude
314
+ };
315
+ const formParams = {};
316
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
317
+ const contentTypes = [];
318
+ const accepts = ['application/json'];
319
+ const returnType = _GenerateRunwayApiResponse.default;
320
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-runway', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
321
+ }
322
+
323
+ /**
324
+ * Get a single capacity planning scenario
325
+ * Fetches a single capacity planing scenario using the UUID of the scenario.
326
+ * @param { String } extId UUID of a capacity planning scenario.
327
+ * @param {Object} args Additional Arguments
328
+ * @return {Promise<GetScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetScenarioApiResponse } and HTTP response
329
+ */
330
+ getScenarioById(extId, ...args) {
331
+ let argMap = args.length > 0 ? args[0] : {};
332
+ const postBody = null;
333
+ // verify the required parameter 'extId' is set
334
+ if (typeof extId === 'undefined' || extId === null) {
335
+ throw new Error("Missing the required parameter 'extId' when calling getScenarioById");
405
336
  }
337
+ const pathParams = {
338
+ 'extId': extId
339
+ };
340
+ const queryParams = {};
341
+ let headersToInclude = {};
342
+ Object.keys(argMap).forEach(header => {
343
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
344
+ headersToInclude[header] = argMap[header];
345
+ }
346
+ });
347
+ const headerParams = {
348
+ ...headersToInclude
349
+ };
350
+ const formParams = {};
351
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
352
+ const contentTypes = [];
353
+ const accepts = ['application/json'];
354
+ const returnType = _GetScenarioApiResponse.default;
355
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
356
+ }
406
357
 
407
- /**
408
- * Get a simulation
409
- * Fetches a simulation from the provided UUID.
410
- * @param { String } extId UUID of a simulation.
411
- * @param {Object} args Additional Arguments
412
- * @return {Promise<GetSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSimulationApiResponse } and HTTP response
413
- */
414
- }, {
415
- key: "getSimulationById",
416
- value: function getSimulationById(extId) {
417
- var _this0 = this;
418
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
419
- var postBody = null;
420
- // verify the required parameter 'extId' is set
421
- if (typeof extId === 'undefined' || extId === null) {
422
- throw new Error("Missing the required parameter 'extId' when calling getSimulationById");
358
+ /**
359
+ * Get the generated report for a planned capacity scenario
360
+ * Fetches the generated capacity planning scenario report by the report UUID.
361
+ * @param { String } scenarioExtId UUID of the capacity planning scenario to get the report.
362
+ * @param {Object} args Additional Arguments
363
+ * @return {Promise<GetScenarioReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetScenarioReportApiResponse } and HTTP response
364
+ */
365
+ getScenarioReport(scenarioExtId, ...args) {
366
+ let argMap = args.length > 0 ? args[0] : {};
367
+ const postBody = null;
368
+ // verify the required parameter 'scenarioExtId' is set
369
+ if (typeof scenarioExtId === 'undefined' || scenarioExtId === null) {
370
+ throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");
371
+ }
372
+ const pathParams = {
373
+ 'scenarioExtId': scenarioExtId
374
+ };
375
+ const queryParams = {};
376
+ let headersToInclude = {};
377
+ Object.keys(argMap).forEach(header => {
378
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
379
+ headersToInclude[header] = argMap[header];
423
380
  }
424
- var pathParams = {
425
- 'extId': extId
426
- };
427
- var queryParams = {};
428
- var headersToInclude = {};
429
- Object.keys(argMap).forEach(function (header) {
430
- if (!_classPrivateFieldGet(_headersToSkip, _this0).has(header.toLowerCase())) {
431
- headersToInclude[header] = argMap[header];
432
- }
433
- });
434
- var headerParams = _objectSpread({}, headersToInclude);
435
- var formParams = {};
436
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
437
- var contentTypes = [];
438
- var accepts = ['application/json'];
439
- var returnType = _GetSimulationApiResponse["default"];
440
- return this.apiClient.callApi('/api/aiops/v4.0/config/simulations/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
381
+ });
382
+ const headerParams = {
383
+ ...headersToInclude
384
+ };
385
+ const formParams = {};
386
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
387
+ const contentTypes = [];
388
+ const accepts = ['application/octet-stream', 'application/json'];
389
+ const returnType = _GetScenarioReportApiResponse.default;
390
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{scenarioExtId}/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
391
+ }
392
+
393
+ /**
394
+ * Get a simulation
395
+ * Fetches a simulation from the provided UUID.
396
+ * @param { String } extId UUID of a simulation.
397
+ * @param {Object} args Additional Arguments
398
+ * @return {Promise<GetSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSimulationApiResponse } and HTTP response
399
+ */
400
+ getSimulationById(extId, ...args) {
401
+ let argMap = args.length > 0 ? args[0] : {};
402
+ const postBody = null;
403
+ // verify the required parameter 'extId' is set
404
+ if (typeof extId === 'undefined' || extId === null) {
405
+ throw new Error("Missing the required parameter 'extId' when calling getSimulationById");
441
406
  }
407
+ const pathParams = {
408
+ 'extId': extId
409
+ };
410
+ const queryParams = {};
411
+ let headersToInclude = {};
412
+ Object.keys(argMap).forEach(header => {
413
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
414
+ headersToInclude[header] = argMap[header];
415
+ }
416
+ });
417
+ const headerParams = {
418
+ ...headersToInclude
419
+ };
420
+ const formParams = {};
421
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
422
+ const contentTypes = [];
423
+ const accepts = ['application/json'];
424
+ const returnType = _GetSimulationApiResponse.default;
425
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
426
+ }
442
427
 
443
- /**
444
- * Get a list of capacity planning scenarios
445
- * Fetches a list of capacity planning scenarios in a paginated manner.
446
- * @param {Object} opts Optional parameters defined for the operation
447
- * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
448
- * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
449
- * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
450
- * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
451
- * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
452
- * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
453
- * @param {Object} args Additional Arguments
454
- * @return {Promise<ListScenariosApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListScenariosApiResponse } and HTTP response
455
- */
456
- }, {
457
- key: "listScenarios",
458
- value: function listScenarios(opts) {
459
- var _this1 = this;
460
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
461
- opts = opts || {};
462
- var postBody = null;
463
- var pathParams = {};
464
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
428
+ /**
429
+ * Get a list of capacity planning scenarios
430
+ * Fetches a list of capacity planning scenarios in a paginated manner.
431
+ * @param {Object} opts Optional parameters defined for the operation
432
+ * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
433
+ * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
434
+ * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
435
+ * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
436
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
437
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
438
+ * @param {Object} args Additional Arguments
439
+ * @return {Promise<ListScenariosApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListScenariosApiResponse } and HTTP response
440
+ */
441
+ listScenarios(opts, ...args) {
442
+ let argMap = args.length > 0 ? args[0] : {};
443
+ opts = opts || {};
444
+ const postBody = null;
445
+ const pathParams = {};
446
+ const queryParams = {
447
+ ...(opts.hasOwnProperty('$page') ? {
465
448
  '$page': opts['$page']
466
- } : {}), opts.hasOwnProperty('$limit') ? {
449
+ } : {}),
450
+ ...(opts.hasOwnProperty('$limit') ? {
467
451
  '$limit': opts['$limit']
468
- } : {}), opts.hasOwnProperty('$filter') ? {
452
+ } : {}),
453
+ ...(opts.hasOwnProperty('$filter') ? {
469
454
  '$filter': opts['$filter']
470
- } : {}), opts.hasOwnProperty('$orderby') ? {
455
+ } : {}),
456
+ ...(opts.hasOwnProperty('$orderby') ? {
471
457
  '$orderby': opts['$orderby']
472
- } : {}), opts.hasOwnProperty('$select') ? {
458
+ } : {}),
459
+ ...(opts.hasOwnProperty('$select') ? {
473
460
  '$select': opts['$select']
474
- } : {});
475
- var headersToInclude = {};
476
- Object.keys(argMap).forEach(function (header) {
477
- if (!_classPrivateFieldGet(_headersToSkip, _this1).has(header.toLowerCase())) {
478
- headersToInclude[header] = argMap[header];
479
- }
480
- });
481
- var headerParams = _objectSpread({}, headersToInclude);
482
- var formParams = {};
483
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
484
- var contentTypes = [];
485
- var accepts = ['application/json'];
486
- var returnType = _ListScenariosApiResponse["default"];
487
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
488
- }
461
+ } : {})
462
+ };
463
+ let headersToInclude = {};
464
+ Object.keys(argMap).forEach(header => {
465
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
466
+ headersToInclude[header] = argMap[header];
467
+ }
468
+ });
469
+ const headerParams = {
470
+ ...headersToInclude
471
+ };
472
+ const formParams = {};
473
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
474
+ const contentTypes = [];
475
+ const accepts = ['application/json'];
476
+ const returnType = _ListScenariosApiResponse.default;
477
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
478
+ }
489
479
 
490
- /**
491
- * Get a list of simulations
492
- * Fetches a list of simulations in a paginated manner.
493
- * @param {Object} opts Optional parameters defined for the operation
494
- * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
495
- * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
496
- * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
497
- * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
498
- * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
499
- * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
500
- * @param {Object} args Additional Arguments
501
- * @return {Promise<ListSimulationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSimulationsApiResponse } and HTTP response
502
- */
503
- }, {
504
- key: "listSimulations",
505
- value: function listSimulations(opts) {
506
- var _this10 = this;
507
- var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
508
- opts = opts || {};
509
- var postBody = null;
510
- var pathParams = {};
511
- var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
480
+ /**
481
+ * Get a list of simulations
482
+ * Fetches a list of simulations in a paginated manner.
483
+ * @param {Object} opts Optional parameters defined for the operation
484
+ * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
485
+ * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
486
+ * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
487
+ * For example, filter '$filter=name eq 'karbon-ntnx-1.0' would filter the result on cluster name 'karbon-ntnx1.0', filter '$filter=startswith(name, 'C')' would filter on cluster name starting with 'C'.
488
+ * @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
489
+ * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
490
+ * @param {Object} args Additional Arguments
491
+ * @return {Promise<ListSimulationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSimulationsApiResponse } and HTTP response
492
+ */
493
+ listSimulations(opts, ...args) {
494
+ let argMap = args.length > 0 ? args[0] : {};
495
+ opts = opts || {};
496
+ const postBody = null;
497
+ const pathParams = {};
498
+ const queryParams = {
499
+ ...(opts.hasOwnProperty('$page') ? {
512
500
  '$page': opts['$page']
513
- } : {}), opts.hasOwnProperty('$limit') ? {
501
+ } : {}),
502
+ ...(opts.hasOwnProperty('$limit') ? {
514
503
  '$limit': opts['$limit']
515
- } : {}), opts.hasOwnProperty('$filter') ? {
504
+ } : {}),
505
+ ...(opts.hasOwnProperty('$filter') ? {
516
506
  '$filter': opts['$filter']
517
- } : {}), opts.hasOwnProperty('$orderby') ? {
507
+ } : {}),
508
+ ...(opts.hasOwnProperty('$orderby') ? {
518
509
  '$orderby': opts['$orderby']
519
- } : {}), opts.hasOwnProperty('$select') ? {
510
+ } : {}),
511
+ ...(opts.hasOwnProperty('$select') ? {
520
512
  '$select': opts['$select']
521
- } : {});
522
- var headersToInclude = {};
523
- Object.keys(argMap).forEach(function (header) {
524
- if (!_classPrivateFieldGet(_headersToSkip, _this10).has(header.toLowerCase())) {
525
- headersToInclude[header] = argMap[header];
526
- }
527
- });
528
- var headerParams = _objectSpread({}, headersToInclude);
529
- var formParams = {};
530
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
531
- var contentTypes = [];
532
- var accepts = ['application/json'];
533
- var returnType = _ListSimulationsApiResponse["default"];
534
- return this.apiClient.callApi('/api/aiops/v4.0/config/simulations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
535
- }
536
-
537
- /**
538
- * Update a capacity planning scenario
539
- * Updates a capacity planning scenario using the provided UUID.
540
- * @param { Partial<Scenario> } body specification
541
- * @param { String } extId UUID of a capacity planning scenario.
542
- * @param {Object} args Additional Arguments
543
- * @return {Promise<UpdateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateScenarioApiResponse } and HTTP response
544
- */
545
- }, {
546
- key: "updateScenarioById",
547
- value: function updateScenarioById(extId, body) {
548
- var _this11 = this;
549
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
550
- var postBody = null;
551
- if (body instanceof _Scenario["default"] && typeof body.toJson === 'function') {
552
- postBody = body.toJson();
553
- } else {
554
- postBody = body;
513
+ } : {})
514
+ };
515
+ let headersToInclude = {};
516
+ Object.keys(argMap).forEach(header => {
517
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
518
+ headersToInclude[header] = argMap[header];
555
519
  }
556
- // verify the required parameter 'extId' is set
557
- if (typeof extId === 'undefined' || extId === null) {
558
- throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");
559
- }
560
- // verify the required parameter 'body' is set
561
- if (typeof postBody === 'undefined' || postBody === null) {
562
- throw new Error("Invalid body when calling updateScenarioById");
563
- }
564
- var pathParams = {
565
- 'extId': extId
566
- };
567
- var queryParams = {};
568
- var headersToInclude = {};
569
- Object.keys(argMap).forEach(function (header) {
570
- if (!_classPrivateFieldGet(_headersToSkip, _this11).has(header.toLowerCase())) {
571
- headersToInclude[header] = argMap[header];
572
- }
573
- });
574
- var headerParams = _objectSpread({}, headersToInclude);
575
- var formParams = {};
576
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
577
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
578
- var contentTypes = ['application/json'];
579
- var accepts = ['application/json'];
580
- var returnType = _UpdateScenarioApiResponse["default"];
581
- return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
582
- }
520
+ });
521
+ const headerParams = {
522
+ ...headersToInclude
523
+ };
524
+ const formParams = {};
525
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
526
+ const contentTypes = [];
527
+ const accepts = ['application/json'];
528
+ const returnType = _ListSimulationsApiResponse.default;
529
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
530
+ }
583
531
 
584
- /**
585
- * Update a simulation
586
- * Updates a simulation identified by the provided UUID.
587
- * @param { Partial<Simulation> } body specification
588
- * @param { String } extId UUID of a simulation.
589
- * @param {Object} args Additional Arguments
590
- * @return {Promise<UpdateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateSimulationApiResponse } and HTTP response
591
- */
592
- }, {
593
- key: "updateSimulationById",
594
- value: function updateSimulationById(extId, body) {
595
- var _this12 = this;
596
- var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
597
- var postBody = null;
598
- if (body instanceof _Simulation["default"] && typeof body.toJson === 'function') {
599
- postBody = body.toJson();
600
- } else {
601
- postBody = body;
602
- }
603
- // verify the required parameter 'extId' is set
604
- if (typeof extId === 'undefined' || extId === null) {
605
- throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");
606
- }
607
- // verify the required parameter 'body' is set
608
- if (typeof postBody === 'undefined' || postBody === null) {
609
- throw new Error("Invalid body when calling updateSimulationById");
532
+ /**
533
+ * Update a capacity planning scenario
534
+ * Updates a capacity planning scenario using the provided UUID.
535
+ * @param { Partial<Scenario> } body specification
536
+ * @param { String } extId UUID of a capacity planning scenario.
537
+ * @param {Object} args Additional Arguments
538
+ * @return {Promise<UpdateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateScenarioApiResponse } and HTTP response
539
+ */
540
+ updateScenarioById(extId, body, ...args) {
541
+ let argMap = args.length > 0 ? args[0] : {};
542
+ let postBody = null;
543
+ if (body instanceof _Scenario.default && typeof body.toJson === 'function') {
544
+ postBody = body.toJson();
545
+ } else {
546
+ postBody = body;
547
+ }
548
+ // verify the required parameter 'extId' is set
549
+ if (typeof extId === 'undefined' || extId === null) {
550
+ throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");
551
+ }
552
+ // verify the required parameter 'body' is set
553
+ if (typeof postBody === 'undefined' || postBody === null) {
554
+ throw new Error("Invalid body when calling updateScenarioById");
555
+ }
556
+ const pathParams = {
557
+ 'extId': extId
558
+ };
559
+ const queryParams = {};
560
+ let headersToInclude = {};
561
+ Object.keys(argMap).forEach(header => {
562
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
563
+ headersToInclude[header] = argMap[header];
610
564
  }
611
- var pathParams = {
612
- 'extId': extId
613
- };
614
- var queryParams = {};
615
- var headersToInclude = {};
616
- Object.keys(argMap).forEach(function (header) {
617
- if (!_classPrivateFieldGet(_headersToSkip, _this12).has(header.toLowerCase())) {
618
- headersToInclude[header] = argMap[header];
619
- }
620
- });
621
- var headerParams = _objectSpread({}, headersToInclude);
622
- var formParams = {};
623
- _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
624
- var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
625
- var contentTypes = ['application/json'];
626
- var accepts = ['application/json'];
627
- var returnType = _UpdateSimulationApiResponse["default"];
628
- return this.apiClient.callApi('/api/aiops/v4.0/config/simulations/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
565
+ });
566
+ const headerParams = {
567
+ ...headersToInclude
568
+ };
569
+ const formParams = {};
570
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
571
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
572
+ const contentTypes = ['application/json'];
573
+ const accepts = ['application/json'];
574
+ const returnType = _UpdateScenarioApiResponse.default;
575
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
576
+ }
577
+
578
+ /**
579
+ * Update a simulation
580
+ * Updates a simulation identified by the provided UUID.
581
+ * @param { Partial<Simulation> } body specification
582
+ * @param { String } extId UUID of a simulation.
583
+ * @param {Object} args Additional Arguments
584
+ * @return {Promise<UpdateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateSimulationApiResponse } and HTTP response
585
+ */
586
+ updateSimulationById(extId, body, ...args) {
587
+ let argMap = args.length > 0 ? args[0] : {};
588
+ let postBody = null;
589
+ if (body instanceof _Simulation.default && typeof body.toJson === 'function') {
590
+ postBody = body.toJson();
591
+ } else {
592
+ postBody = body;
629
593
  }
630
- }], [{
631
- key: "ApiClient",
632
- get:
633
- /**
634
- * Make the default {@link ApiClient} class available for developers to be able to extend it and bring
635
- * their own fetch methods into the SDK
636
- */
637
- function get() {
638
- return _ApiClient.ApiClient;
594
+ // verify the required parameter 'extId' is set
595
+ if (typeof extId === 'undefined' || extId === null) {
596
+ throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");
639
597
  }
640
- }]);
641
- }();
598
+ // verify the required parameter 'body' is set
599
+ if (typeof postBody === 'undefined' || postBody === null) {
600
+ throw new Error("Invalid body when calling updateSimulationById");
601
+ }
602
+ const pathParams = {
603
+ 'extId': extId
604
+ };
605
+ const queryParams = {};
606
+ let headersToInclude = {};
607
+ Object.keys(argMap).forEach(header => {
608
+ if (!this.#headersToSkip.has(header.toLowerCase())) {
609
+ headersToInclude[header] = argMap[header];
610
+ }
611
+ });
612
+ const headerParams = {
613
+ ...headersToInclude
614
+ };
615
+ const formParams = {};
616
+ _ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
617
+ const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
618
+ const contentTypes = ['application/json'];
619
+ const accepts = ['application/json'];
620
+ const returnType = _UpdateSimulationApiResponse.default;
621
+ return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
622
+ }
623
+ }
624
+ exports.ScenariosApi = ScenariosApi;