@nutanix-scratch/aiops-js-client 4.0.2 → 4.2.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/README.md +16 -4
  2. package/dist/Ntnx-Aiops-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Aiops-js-client.js +560 -675
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/scenarios-endpoints.d.ts +1 -1
  9. package/dist/es/apis/scenarios-endpoints.js +535 -552
  10. package/dist/es/apis/stats-endpoints.d.ts +1 -1
  11. package/dist/es/apis/stats-endpoints.js +196 -202
  12. package/dist/es/index.d.ts +13 -35
  13. package/dist/es/index.js +331 -419
  14. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
  15. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
  16. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
  17. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
  18. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
  19. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
  20. package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
  21. package/dist/es/models/aiops/v4/clusterMetrics/Node.js +233 -280
  22. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
  23. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
  24. package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
  25. package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +233 -280
  26. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
  27. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
  28. package/dist/es/models/aiops/v4/common/ClusterType.js +7 -9
  29. package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → es/models/aiops/v4/config/CapacityType.d.ts} +6 -6
  30. package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
  31. package/dist/es/models/aiops/v4/config/CapacityUnit.js +7 -9
  32. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
  33. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
  34. package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +7 -9
  35. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
  36. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
  37. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
  38. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
  39. package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
  40. package/dist/es/models/aiops/v4/config/ClusterConfig.js +173 -223
  41. package/dist/es/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
  42. package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.js → es/models/aiops/v4/config/ClusterType.js} +24 -26
  43. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
  44. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
  45. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
  46. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
  47. package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
  48. package/dist/es/models/aiops/v4/config/DataStoreConfig.js +364 -421
  49. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
  50. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
  51. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
  52. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
  53. package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
  54. package/dist/es/models/aiops/v4/config/EntityDescriptor.js +250 -308
  55. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
  56. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
  57. package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
  58. package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
  59. package/dist/es/models/aiops/v4/config/EntityType.d.ts +1 -16
  60. package/dist/es/models/aiops/v4/config/EntityType.js +129 -171
  61. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
  62. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
  63. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
  64. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
  65. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
  66. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
  67. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
  68. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
  69. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
  70. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
  71. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
  72. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
  73. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
  74. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
  75. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
  76. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
  77. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
  78. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
  79. package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
  80. package/dist/es/models/aiops/v4/config/MetricDescriptor.js +401 -464
  81. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
  82. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
  83. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
  84. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
  85. package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +13 -21
  86. package/dist/es/models/aiops/v4/config/NodeConfig.js +305 -317
  87. package/dist/es/models/aiops/v4/config/NodeSource.js +7 -9
  88. package/dist/es/models/aiops/v4/config/PolicyType.js +7 -9
  89. package/dist/es/models/aiops/v4/config/ReplicationFactor.js +7 -9
  90. package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
  91. package/dist/es/models/aiops/v4/config/ResourceCapacity.js +241 -288
  92. package/dist/es/models/aiops/v4/config/Runway.d.ts +26 -35
  93. package/dist/es/models/aiops/v4/config/Runway.js +283 -330
  94. package/dist/es/models/aiops/v4/config/Scenario.d.ts +39 -83
  95. package/dist/es/models/aiops/v4/config/Scenario.js +444 -397
  96. package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
  97. package/dist/es/models/aiops/v4/config/ScenarioProjection.js +74 -103
  98. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
  99. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
  100. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
  101. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
  102. package/dist/es/models/aiops/v4/config/Simulation.d.ts +1 -25
  103. package/dist/es/models/aiops/v4/config/Simulation.js +155 -199
  104. package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
  105. package/dist/es/models/aiops/v4/config/SimulationProjection.js +74 -103
  106. package/dist/es/models/aiops/v4/config/Source.d.ts +1 -16
  107. package/dist/es/models/aiops/v4/config/Source.js +129 -171
  108. package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
  109. package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +209 -264
  110. package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
  111. package/dist/es/models/aiops/v4/config/SplunkWorkload.js +246 -291
  112. package/dist/es/models/aiops/v4/config/SqlProfileType.js +7 -9
  113. package/dist/es/models/aiops/v4/config/SqlTransactionType.js +7 -9
  114. package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
  115. package/dist/es/models/aiops/v4/config/SqlWorkload.js +219 -264
  116. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
  117. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
  118. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
  119. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
  120. package/dist/es/models/aiops/v4/config/ValueRange.d.ts +2 -8
  121. package/dist/es/models/aiops/v4/config/ValueRange.js +166 -207
  122. package/dist/es/models/aiops/v4/config/ValueType.js +7 -9
  123. package/dist/es/models/aiops/v4/config/VdiProvisionType.js +7 -9
  124. package/dist/es/models/aiops/v4/config/VdiUserType.js +7 -9
  125. package/dist/es/models/aiops/v4/config/VdiVendor.js +7 -9
  126. package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
  127. package/dist/es/models/aiops/v4/config/VdiWorkload.js +216 -261
  128. package/dist/es/models/aiops/v4/config/Vendor.js +7 -9
  129. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
  130. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
  131. package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +2 -8
  132. package/dist/es/models/aiops/v4/config/VmWorkload.js +176 -217
  133. package/dist/es/models/aiops/v4/config/Workload.d.ts +2 -19
  134. package/dist/es/models/aiops/v4/config/Workload.js +248 -297
  135. package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +7 -9
  136. package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +2 -12
  137. package/dist/es/models/aiops/v4/config/XenWorkload.js +302 -351
  138. package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
  139. package/dist/es/models/aiops/v4/config/XfitPolicy.js +359 -407
  140. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
  141. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
  142. package/dist/es/models/aiops/v4/error/AppMessage.d.ts +2 -12
  143. package/dist/es/models/aiops/v4/error/AppMessage.js +264 -313
  144. package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
  145. package/dist/es/models/aiops/v4/error/ErrorResponse.js +175 -218
  146. package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
  147. package/dist/es/models/aiops/v4/error/SchemaValidationError.js +249 -300
  148. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  149. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
  150. package/dist/es/models/aiops/v4/stats/BoolList.d.ts +2 -7
  151. package/dist/es/models/aiops/v4/stats/BoolList.js +147 -186
  152. package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +2 -7
  153. package/dist/es/models/aiops/v4/stats/BoolVal.js +140 -179
  154. package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +2 -7
  155. package/dist/es/models/aiops/v4/stats/DoubleList.js +147 -186
  156. package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
  157. package/dist/es/models/aiops/v4/stats/DoubleVal.js +140 -179
  158. package/dist/es/models/aiops/v4/stats/Entity.d.ts +1 -2
  159. package/dist/es/models/aiops/v4/stats/Entity.js +223 -279
  160. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
  161. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
  162. package/dist/es/models/aiops/v4/stats/IntList.d.ts +2 -7
  163. package/dist/es/models/aiops/v4/stats/IntList.js +147 -186
  164. package/dist/es/models/aiops/v4/stats/IntVal.d.ts +2 -7
  165. package/dist/es/models/aiops/v4/stats/IntVal.js +140 -179
  166. package/dist/es/models/aiops/v4/stats/Metric.d.ts +2 -20
  167. package/dist/es/models/aiops/v4/stats/Metric.js +166 -207
  168. package/dist/es/models/aiops/v4/stats/Point.d.ts +2 -8
  169. package/dist/es/models/aiops/v4/stats/Point.js +199 -244
  170. package/dist/es/models/aiops/v4/stats/StrList.d.ts +2 -7
  171. package/dist/es/models/aiops/v4/stats/StrList.js +147 -186
  172. package/dist/es/models/aiops/v4/stats/StrVal.d.ts +2 -7
  173. package/dist/es/models/aiops/v4/stats/StrVal.js +140 -179
  174. package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
  175. package/dist/es/models/aiops/v4/stats/TimeSeries.js +175 -220
  176. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  177. package/dist/es/models/common/v1/config/Flag.js +170 -211
  178. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  179. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  180. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  181. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  182. package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
  183. package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
  184. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  185. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  186. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  187. package/dist/es/models/common/v1/config/Message.js +213 -258
  188. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  189. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  190. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  191. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  192. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  193. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  194. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  195. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  196. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  197. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
  198. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  199. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  200. package/dist/es/models/validation/ValidationError.js +26 -42
  201. package/dist/es/models/validation/ValidationScopes.js +3 -3
  202. package/dist/es/utils/ValidationUtils.js +39 -69
  203. package/dist/lib/ApiClient.d.ts +29 -7
  204. package/dist/lib/ApiClient.js +854 -667
  205. package/dist/lib/Paginable.d.ts +1 -1
  206. package/dist/lib/Paginable.js +144 -183
  207. package/dist/lib/apis/scenarios-endpoints.d.ts +1 -1
  208. package/dist/lib/apis/scenarios-endpoints.js +535 -552
  209. package/dist/lib/apis/stats-endpoints.d.ts +1 -1
  210. package/dist/lib/apis/stats-endpoints.js +196 -202
  211. package/dist/lib/index.d.ts +13 -35
  212. package/dist/lib/index.js +331 -419
  213. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
  214. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
  215. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
  216. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
  217. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
  218. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
  219. package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
  220. package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +233 -280
  221. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
  222. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
  223. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
  224. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +233 -280
  225. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
  226. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
  227. package/dist/lib/models/aiops/v4/common/ClusterType.js +7 -9
  228. package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → lib/models/aiops/v4/config/CapacityType.d.ts} +6 -6
  229. package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
  230. package/dist/lib/models/aiops/v4/config/CapacityUnit.js +7 -9
  231. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
  232. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
  233. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +7 -9
  234. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
  235. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
  236. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
  237. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
  238. package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
  239. package/dist/lib/models/aiops/v4/config/ClusterConfig.js +173 -223
  240. package/dist/lib/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
  241. package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.js → lib/models/aiops/v4/config/ClusterType.js} +24 -26
  242. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
  243. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
  244. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
  245. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
  246. package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
  247. package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +364 -421
  248. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
  249. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
  250. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
  251. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
  252. package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
  253. package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +250 -308
  254. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
  255. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
  256. package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
  257. package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
  258. package/dist/lib/models/aiops/v4/config/EntityType.d.ts +1 -16
  259. package/dist/lib/models/aiops/v4/config/EntityType.js +129 -171
  260. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
  261. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
  262. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
  263. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
  264. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
  265. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
  266. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
  267. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
  268. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
  269. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
  270. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
  271. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
  272. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
  273. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
  274. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
  275. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
  276. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
  277. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
  278. package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
  279. package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +401 -464
  280. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
  281. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
  282. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
  283. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
  284. package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +13 -21
  285. package/dist/lib/models/aiops/v4/config/NodeConfig.js +305 -317
  286. package/dist/lib/models/aiops/v4/config/NodeSource.js +7 -9
  287. package/dist/lib/models/aiops/v4/config/PolicyType.js +7 -9
  288. package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +7 -9
  289. package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
  290. package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +241 -288
  291. package/dist/lib/models/aiops/v4/config/Runway.d.ts +26 -35
  292. package/dist/lib/models/aiops/v4/config/Runway.js +283 -330
  293. package/dist/lib/models/aiops/v4/config/Scenario.d.ts +39 -83
  294. package/dist/lib/models/aiops/v4/config/Scenario.js +444 -397
  295. package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
  296. package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +74 -103
  297. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
  298. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
  299. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
  300. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
  301. package/dist/lib/models/aiops/v4/config/Simulation.d.ts +1 -25
  302. package/dist/lib/models/aiops/v4/config/Simulation.js +155 -199
  303. package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
  304. package/dist/lib/models/aiops/v4/config/SimulationProjection.js +74 -103
  305. package/dist/lib/models/aiops/v4/config/Source.d.ts +1 -16
  306. package/dist/lib/models/aiops/v4/config/Source.js +129 -171
  307. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
  308. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +209 -264
  309. package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
  310. package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +246 -291
  311. package/dist/lib/models/aiops/v4/config/SqlProfileType.js +7 -9
  312. package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +7 -9
  313. package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
  314. package/dist/lib/models/aiops/v4/config/SqlWorkload.js +219 -264
  315. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
  316. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
  317. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
  318. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
  319. package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +2 -8
  320. package/dist/lib/models/aiops/v4/config/ValueRange.js +166 -207
  321. package/dist/lib/models/aiops/v4/config/ValueType.js +7 -9
  322. package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +7 -9
  323. package/dist/lib/models/aiops/v4/config/VdiUserType.js +7 -9
  324. package/dist/lib/models/aiops/v4/config/VdiVendor.js +7 -9
  325. package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
  326. package/dist/lib/models/aiops/v4/config/VdiWorkload.js +216 -261
  327. package/dist/lib/models/aiops/v4/config/Vendor.js +7 -9
  328. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
  329. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
  330. package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +2 -8
  331. package/dist/lib/models/aiops/v4/config/VmWorkload.js +176 -217
  332. package/dist/lib/models/aiops/v4/config/Workload.d.ts +2 -19
  333. package/dist/lib/models/aiops/v4/config/Workload.js +248 -297
  334. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +7 -9
  335. package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +2 -12
  336. package/dist/lib/models/aiops/v4/config/XenWorkload.js +302 -351
  337. package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
  338. package/dist/lib/models/aiops/v4/config/XfitPolicy.js +359 -407
  339. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
  340. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
  341. package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +2 -12
  342. package/dist/lib/models/aiops/v4/error/AppMessage.js +264 -313
  343. package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
  344. package/dist/lib/models/aiops/v4/error/ErrorResponse.js +175 -218
  345. package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
  346. package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +249 -300
  347. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  348. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
  349. package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +2 -7
  350. package/dist/lib/models/aiops/v4/stats/BoolList.js +147 -186
  351. package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +2 -7
  352. package/dist/lib/models/aiops/v4/stats/BoolVal.js +140 -179
  353. package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +2 -7
  354. package/dist/lib/models/aiops/v4/stats/DoubleList.js +147 -186
  355. package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
  356. package/dist/lib/models/aiops/v4/stats/DoubleVal.js +140 -179
  357. package/dist/lib/models/aiops/v4/stats/Entity.d.ts +1 -2
  358. package/dist/lib/models/aiops/v4/stats/Entity.js +223 -279
  359. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
  360. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
  361. package/dist/lib/models/aiops/v4/stats/IntList.d.ts +2 -7
  362. package/dist/lib/models/aiops/v4/stats/IntList.js +147 -186
  363. package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +2 -7
  364. package/dist/lib/models/aiops/v4/stats/IntVal.js +140 -179
  365. package/dist/lib/models/aiops/v4/stats/Metric.d.ts +2 -20
  366. package/dist/lib/models/aiops/v4/stats/Metric.js +166 -207
  367. package/dist/lib/models/aiops/v4/stats/Point.d.ts +2 -8
  368. package/dist/lib/models/aiops/v4/stats/Point.js +199 -244
  369. package/dist/lib/models/aiops/v4/stats/StrList.d.ts +2 -7
  370. package/dist/lib/models/aiops/v4/stats/StrList.js +147 -186
  371. package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +2 -7
  372. package/dist/lib/models/aiops/v4/stats/StrVal.js +140 -179
  373. package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
  374. package/dist/lib/models/aiops/v4/stats/TimeSeries.js +175 -220
  375. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  376. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  377. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  378. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  379. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  380. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  381. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
  382. package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
  383. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  384. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  385. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  386. package/dist/lib/models/common/v1/config/Message.js +213 -258
  387. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  388. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  389. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  390. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  391. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  392. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  393. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  394. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  395. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  396. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
  397. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  398. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  399. package/dist/lib/models/validation/ValidationError.js +26 -42
  400. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  401. package/dist/lib/utils/ValidationUtils.js +39 -69
  402. package/package.json +1 -1
  403. package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
  404. package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
  405. package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
  406. package/dist/es/models/aiops/v4/capacityplanning/Runway.js +0 -340
  407. package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
  408. package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
  409. package/dist/es/models/aiops/v4/config/CategoryDetail.js +0 -315
  410. package/dist/es/models/aiops/v4/config/HardwareModel.d.ts +0 -144
  411. package/dist/es/models/aiops/v4/config/HardwareModel.js +0 -550
  412. package/dist/es/models/aiops/v4/config/HardwarePart.d.ts +0 -92
  413. package/dist/es/models/aiops/v4/config/HardwarePart.js +0 -363
  414. package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
  415. package/dist/es/models/aiops/v4/config/IgnoreWindow.js +0 -458
  416. package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
  417. package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
  418. package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +0 -77
  419. package/dist/es/models/aiops/v4/config/RunwayParams.js +0 -323
  420. package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
  421. package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
  422. package/dist/es/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
  423. package/dist/es/models/aiops/v4/stats/ScenarioStats.js +0 -323
  424. package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
  425. package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
  426. package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
  427. package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
  428. package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
  429. package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
  430. package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
  431. package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +0 -340
  432. package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
  433. package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
  434. package/dist/lib/models/aiops/v4/config/CategoryDetail.js +0 -315
  435. package/dist/lib/models/aiops/v4/config/HardwareModel.d.ts +0 -144
  436. package/dist/lib/models/aiops/v4/config/HardwareModel.js +0 -550
  437. package/dist/lib/models/aiops/v4/config/HardwarePart.d.ts +0 -92
  438. package/dist/lib/models/aiops/v4/config/HardwarePart.js +0 -363
  439. package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
  440. package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +0 -458
  441. package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
  442. package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
  443. package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +0 -77
  444. package/dist/lib/models/aiops/v4/config/RunwayParams.js +0 -323
  445. package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
  446. package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
  447. package/dist/lib/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
  448. package/dist/lib/models/aiops/v4/stats/ScenarioStats.js +0 -323
  449. package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
  450. package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
  451. package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
  452. package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
  var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
8
8
  var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
9
9
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
@@ -11,38 +11,16 @@ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../comm
11
11
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
12
12
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
13
13
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
- 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); }
16
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
19
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
- 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; }
23
- 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; }
24
- 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; }
25
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
26
- 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); } }
27
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
28
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
- 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); }
30
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
31
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
32
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
33
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
34
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
35
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
36
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
37
15
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
38
16
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
39
17
  * Nutanix AIOps APIs
40
18
  *
41
- * OpenAPI spec version: 4.0.2
19
+ * OpenAPI spec version: 4.2.1-beta-1
42
20
  *
43
21
  * NOTE: This class is auto generated by the Open API Dev Platform.
44
22
  *
45
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
23
+ * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
46
24
  *
47
25
  * Do not edit the class manually.
48
26
  *
@@ -50,36 +28,33 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
50
28
  /**
51
29
  * The ClusterMetrics model module.
52
30
  * @module Ntnx/ClusterMetrics
53
- * @version 4.0.2
31
+ * @version 4.2.1-beta-1
54
32
  * @class ClusterMetrics
55
33
  * @extends ExternalizableAbstractModel
56
34
  */
57
35
  var _ClusterMetrics_brand = /*#__PURE__*/new WeakSet();
58
- var ClusterMetrics = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
36
+ class ClusterMetrics extends _ExternalizableAbstractModel.default {
59
37
  /**
60
38
  * Constructs a new <code>ClusterMetrics</code>.
61
39
  * @alias module:Ntnx/ClusterMetrics
62
40
  * @extends module:Ntnx/ExternalizableAbstractModel
63
41
  */
64
- function ClusterMetrics() {
65
- var _this;
66
- _classCallCheck(this, ClusterMetrics);
67
- _this = _callSuper(this, ClusterMetrics);
42
+ constructor() {
43
+ super();
68
44
  /*
69
45
  * toJson method for a map type which supports map with primitive keys and values of object types
70
46
  * @param {Object} obj
71
47
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
72
48
  * Otherwise, just returns the input object.
73
49
  */
74
- _classPrivateMethodInitSpec(_this, _ClusterMetrics_brand);
75
- _this.$objectType = "aiops.v4.clusterMetrics.ClusterMetrics";
50
+ _classPrivateMethodInitSpec(this, _ClusterMetrics_brand);
51
+ this.$objectType = "aiops.v4.clusterMetrics.ClusterMetrics";
76
52
  /** @type {object<string, any>} */
77
- _this.$reserved = {
78
- '$fv': "v4.r0"
53
+ this.$reserved = {
54
+ '$fv': "v4.r2.b1"
79
55
  };
80
56
  /** @type {object<string, any>} */
81
- _this.$unknownFields = {};
82
- return _this;
57
+ this.$unknownFields = {};
83
58
  }
84
59
 
85
60
  /**
@@ -90,897 +65,830 @@ var ClusterMetrics = exports["default"] = /*#__PURE__*/function (_Externalizable
90
65
  * @param callFromChild {Boolean} Flag to recognise calling instance
91
66
  * @return {module:Ntnx/ClusterMetrics} The populated <code>ClusterMetrics</code> instance.
92
67
  */
93
- _inherits(ClusterMetrics, _ExternalizableAbstra);
94
- return _createClass(ClusterMetrics, [{
95
- key: "getClusterName",
96
- value:
97
- /**
98
- * Returns Name of the cluster
99
- * @return {string}
100
- */
101
- function getClusterName() {
102
- return this.clusterName;
68
+ static constructFromObject(data, obj = null, callFromChild = false) {
69
+ let items, item, i, itemArr, discriminator;
70
+ if (data) {
71
+ obj = obj || new ClusterMetrics();
72
+ _ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
73
+ if (data.hasOwnProperty('clusterName') && data.clusterName !== null && data.clusterName !== undefined) {
74
+ obj.setClusterName(data['clusterName']);
75
+ }
76
+ if (data.hasOwnProperty('externalIP') && data.externalIP !== null && data.externalIP !== undefined) {
77
+ obj.setExternalIP(_IPv4Address.default.constructFromObject(data['externalIP']));
78
+ }
79
+ if (data.hasOwnProperty('cvmIPs') && data.cvmIPs !== null && data.cvmIPs !== undefined) {
80
+ itemArr = [];
81
+ items = data.cvmIPs;
82
+ for (i = 0; i < items.length; i++) {
83
+ item = _IPv4Address.default.constructFromObject(items[i], undefined);
84
+ itemArr.push(item);
85
+ }
86
+ obj.setCvmIPs(itemArr);
87
+ }
88
+ if (data.hasOwnProperty('totalMemorySizeBytes') && data.totalMemorySizeBytes !== null && data.totalMemorySizeBytes !== undefined) {
89
+ obj.setTotalMemorySizeBytes(data['totalMemorySizeBytes']);
90
+ }
91
+ if (data.hasOwnProperty('currentMemoryUsageSizeBytes') && data.currentMemoryUsageSizeBytes !== null && data.currentMemoryUsageSizeBytes !== undefined) {
92
+ obj.setCurrentMemoryUsageSizeBytes(data['currentMemoryUsageSizeBytes']);
93
+ }
94
+ if (data.hasOwnProperty('provisionedMemoryUsageBytes') && data.provisionedMemoryUsageBytes !== null && data.provisionedMemoryUsageBytes !== undefined) {
95
+ obj.setProvisionedMemoryUsageBytes(data['provisionedMemoryUsageBytes']);
96
+ }
97
+ if (data.hasOwnProperty('maxVmMemorySizeBytes') && data.maxVmMemorySizeBytes !== null && data.maxVmMemorySizeBytes !== undefined) {
98
+ obj.setMaxVmMemorySizeBytes(data['maxVmMemorySizeBytes']);
99
+ }
100
+ if (data.hasOwnProperty('availableMemorySizeBytes') && data.availableMemorySizeBytes !== null && data.availableMemorySizeBytes !== undefined) {
101
+ obj.setAvailableMemorySizeBytes(data['availableMemorySizeBytes']);
102
+ }
103
+ if (data.hasOwnProperty('largestPoweredOffVMMemory') && data.largestPoweredOffVMMemory !== null && data.largestPoweredOffVMMemory !== undefined) {
104
+ obj.setLargestPoweredOffVMMemory(data['largestPoweredOffVMMemory']);
105
+ }
106
+ if (data.hasOwnProperty('totalVCpuCount') && data.totalVCpuCount !== null && data.totalVCpuCount !== undefined) {
107
+ obj.setTotalVCpuCount(data['totalVCpuCount']);
108
+ }
109
+ if (data.hasOwnProperty('currentUsedVCpuCount') && data.currentUsedVCpuCount !== null && data.currentUsedVCpuCount !== undefined) {
110
+ obj.setCurrentUsedVCpuCount(data['currentUsedVCpuCount']);
111
+ }
112
+ if (data.hasOwnProperty('provisionedVCpuCount') && data.provisionedVCpuCount !== null && data.provisionedVCpuCount !== undefined) {
113
+ obj.setProvisionedVCpuCount(data['provisionedVCpuCount']);
114
+ }
115
+ if (data.hasOwnProperty('maxVmVCpuSize') && data.maxVmVCpuSize !== null && data.maxVmVCpuSize !== undefined) {
116
+ obj.setMaxVmVCpuSize(data['maxVmVCpuSize']);
117
+ }
118
+ if (data.hasOwnProperty('availableVCpuCount') && data.availableVCpuCount !== null && data.availableVCpuCount !== undefined) {
119
+ obj.setAvailableVCpuCount(data['availableVCpuCount']);
120
+ }
121
+ if (data.hasOwnProperty('largestPoweredOffVMVCpu') && data.largestPoweredOffVMVCpu !== null && data.largestPoweredOffVMVCpu !== undefined) {
122
+ obj.setLargestPoweredOffVMVCpu(data['largestPoweredOffVMVCpu']);
123
+ }
124
+ if (data.hasOwnProperty('totalCpuHz') && data.totalCpuHz !== null && data.totalCpuHz !== undefined) {
125
+ obj.setTotalCpuHz(data['totalCpuHz']);
126
+ }
127
+ if (data.hasOwnProperty('currentUsedCpuHz') && data.currentUsedCpuHz !== null && data.currentUsedCpuHz !== undefined) {
128
+ obj.setCurrentUsedCpuHz(data['currentUsedCpuHz']);
129
+ }
130
+ if (data.hasOwnProperty('provisionedCpuHz') && data.provisionedCpuHz !== null && data.provisionedCpuHz !== undefined) {
131
+ obj.setProvisionedCpuHz(data['provisionedCpuHz']);
132
+ }
133
+ if (data.hasOwnProperty('totalStorageCapacityRawBytes') && data.totalStorageCapacityRawBytes !== null && data.totalStorageCapacityRawBytes !== undefined) {
134
+ obj.setTotalStorageCapacityRawBytes(data['totalStorageCapacityRawBytes']);
135
+ }
136
+ if (data.hasOwnProperty('totalStorageCapacityLogicalBytes') && data.totalStorageCapacityLogicalBytes !== null && data.totalStorageCapacityLogicalBytes !== undefined) {
137
+ obj.setTotalStorageCapacityLogicalBytes(data['totalStorageCapacityLogicalBytes']);
138
+ }
139
+ if (data.hasOwnProperty('totalStorageCapacityLogicalWithSavingsBytes') && data.totalStorageCapacityLogicalWithSavingsBytes !== null && data.totalStorageCapacityLogicalWithSavingsBytes !== undefined) {
140
+ obj.setTotalStorageCapacityLogicalWithSavingsBytes(data['totalStorageCapacityLogicalWithSavingsBytes']);
141
+ }
142
+ if (data.hasOwnProperty('totalStorageUsageBytes') && data.totalStorageUsageBytes !== null && data.totalStorageUsageBytes !== undefined) {
143
+ obj.setTotalStorageUsageBytes(data['totalStorageUsageBytes']);
144
+ }
145
+ if (data.hasOwnProperty('totalStorageAvailableBytes') && data.totalStorageAvailableBytes !== null && data.totalStorageAvailableBytes !== undefined) {
146
+ obj.setTotalStorageAvailableBytes(data['totalStorageAvailableBytes']);
147
+ }
148
+ if (data.hasOwnProperty('totalStorageAvailableLogicalBytes') && data.totalStorageAvailableLogicalBytes !== null && data.totalStorageAvailableLogicalBytes !== undefined) {
149
+ obj.setTotalStorageAvailableLogicalBytes(data['totalStorageAvailableLogicalBytes']);
150
+ }
151
+ if (!callFromChild) {
152
+ obj.$unknownFields = {
153
+ ...data.$unknownFields
154
+ };
155
+ for (const property in data) {
156
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
157
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
158
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
159
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
160
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
161
+ obj.$unknownFields[property] = data[property];
162
+ }
163
+ }
164
+ }
103
165
  }
166
+ return obj;
167
+ }
104
168
 
105
- /**
106
- * Sets Name of the cluster
107
- * @param {string} clusterName Name of the cluster
108
- */
109
- }, {
110
- key: "setClusterName",
111
- value: function setClusterName(clusterName) {
112
- this.clusterName = clusterName;
113
- }
169
+ /**
170
+ * Converts a given snake_case string to camelCase.
171
+ * @param {string} snakeStr - The input string in snake_case format.
172
+ * @returns {string} - The converted string in camelCase format.
173
+ */
174
+ static snakeToCamel(snakeStr) {
175
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
176
+ }
114
177
 
115
- /**
116
- * @return {IPv4Address}
117
- */
118
- }, {
119
- key: "getExternalIP",
120
- value: function getExternalIP() {
121
- return this.externalIP;
122
- }
178
+ /**
179
+ * Returns Name of the cluster
180
+ * @return {string}
181
+ */
182
+ getClusterName() {
183
+ return this.clusterName;
184
+ }
123
185
 
124
- /**
125
- * @param {IPv4Address} externalIP
126
- */
127
- }, {
128
- key: "setExternalIP",
129
- value: function setExternalIP(externalIP) {
130
- this.externalIP = externalIP;
131
- }
186
+ /**
187
+ * Sets Name of the cluster
188
+ * @param {string} clusterName Name of the cluster
189
+ */
190
+ setClusterName(clusterName) {
191
+ this.clusterName = clusterName;
192
+ }
132
193
 
133
- /**
134
- * Returns CVM IPs of the nodes in the cluster
135
- * @return {IPv4Address[]}
136
- */
137
- }, {
138
- key: "getCvmIPs",
139
- value: function getCvmIPs() {
140
- return this.cvmIPs;
141
- }
194
+ /**
195
+ * @return {IPv4Address}
196
+ */
197
+ getExternalIP() {
198
+ return this.externalIP;
199
+ }
142
200
 
143
- /**
144
- * Sets CVM IPs of the nodes in the cluster
145
- * @param {IPv4Address[]} cvmIPs CVM IPs of the nodes in the cluster
146
- */
147
- }, {
148
- key: "setCvmIPs",
149
- value: function setCvmIPs(cvmIPs) {
150
- this.cvmIPs = cvmIPs;
151
- }
201
+ /**
202
+ * @param {IPv4Address} externalIP
203
+ */
204
+ setExternalIP(externalIP) {
205
+ this.externalIP = externalIP;
206
+ }
152
207
 
153
- /**
154
- * Returns Total memory size in bytes in the cluster
155
- * @return {Number}
156
- */
157
- }, {
158
- key: "getTotalMemorySizeBytes",
159
- value: function getTotalMemorySizeBytes() {
160
- return this.totalMemorySizeBytes;
161
- }
208
+ /**
209
+ * Returns CVM IPs of the nodes in the cluster
210
+ * @return {IPv4Address[]}
211
+ */
212
+ getCvmIPs() {
213
+ return this.cvmIPs;
214
+ }
162
215
 
163
- /**
164
- * Sets Total memory size in bytes in the cluster
165
- * @param {Number} totalMemorySizeBytes Total memory size in bytes in the cluster
166
- */
167
- }, {
168
- key: "setTotalMemorySizeBytes",
169
- value: function setTotalMemorySizeBytes(totalMemorySizeBytes) {
170
- this.totalMemorySizeBytes = totalMemorySizeBytes;
171
- }
216
+ /**
217
+ * Sets CVM IPs of the nodes in the cluster
218
+ * @param {IPv4Address[]} cvmIPs CVM IPs of the nodes in the cluster
219
+ */
220
+ setCvmIPs(cvmIPs) {
221
+ this.cvmIPs = cvmIPs;
222
+ }
172
223
 
173
- /**
174
- * Returns Total memory size in bytes currently being used by the active VMs
175
- * @return {Number}
176
- */
177
- }, {
178
- key: "getCurrentMemoryUsageSizeBytes",
179
- value: function getCurrentMemoryUsageSizeBytes() {
180
- return this.currentMemoryUsageSizeBytes;
181
- }
224
+ /**
225
+ * Returns Total memory size in bytes in the cluster
226
+ * @return {Number}
227
+ */
228
+ getTotalMemorySizeBytes() {
229
+ return this.totalMemorySizeBytes;
230
+ }
182
231
 
183
- /**
184
- * Sets Total memory size in bytes currently being used by the active VMs
185
- * @param {Number} currentMemoryUsageSizeBytes Total memory size in bytes currently being used by the active VMs
186
- */
187
- }, {
188
- key: "setCurrentMemoryUsageSizeBytes",
189
- value: function setCurrentMemoryUsageSizeBytes(currentMemoryUsageSizeBytes) {
190
- this.currentMemoryUsageSizeBytes = currentMemoryUsageSizeBytes;
191
- }
232
+ /**
233
+ * Sets Total memory size in bytes in the cluster
234
+ * @param {Number} totalMemorySizeBytes Total memory size in bytes in the cluster
235
+ */
236
+ setTotalMemorySizeBytes(totalMemorySizeBytes) {
237
+ this.totalMemorySizeBytes = totalMemorySizeBytes;
238
+ }
192
239
 
193
- /**
194
- * Returns Total memory size in bytes provisioned for all the VMs
195
- * @return {Number}
196
- */
197
- }, {
198
- key: "getProvisionedMemoryUsageBytes",
199
- value: function getProvisionedMemoryUsageBytes() {
200
- return this.provisionedMemoryUsageBytes;
201
- }
240
+ /**
241
+ * Returns Total memory size in bytes currently being used by the active VMs
242
+ * @return {Number}
243
+ */
244
+ getCurrentMemoryUsageSizeBytes() {
245
+ return this.currentMemoryUsageSizeBytes;
246
+ }
202
247
 
203
- /**
204
- * Sets Total memory size in bytes provisioned for all the VMs
205
- * @param {Number} provisionedMemoryUsageBytes Total memory size in bytes provisioned for all the VMs
206
- */
207
- }, {
208
- key: "setProvisionedMemoryUsageBytes",
209
- value: function setProvisionedMemoryUsageBytes(provisionedMemoryUsageBytes) {
210
- this.provisionedMemoryUsageBytes = provisionedMemoryUsageBytes;
211
- }
248
+ /**
249
+ * Sets Total memory size in bytes currently being used by the active VMs
250
+ * @param {Number} currentMemoryUsageSizeBytes Total memory size in bytes currently being used by the active VMs
251
+ */
252
+ setCurrentMemoryUsageSizeBytes(currentMemoryUsageSizeBytes) {
253
+ this.currentMemoryUsageSizeBytes = currentMemoryUsageSizeBytes;
254
+ }
212
255
 
213
- /**
214
- * Returns Largest possible memory size in bytes for the next VM that can be added
215
- * @return {Number}
216
- */
217
- }, {
218
- key: "getMaxVmMemorySizeBytes",
219
- value: function getMaxVmMemorySizeBytes() {
220
- return this.maxVmMemorySizeBytes;
221
- }
256
+ /**
257
+ * Returns Total memory size in bytes provisioned for all the VMs
258
+ * @return {Number}
259
+ */
260
+ getProvisionedMemoryUsageBytes() {
261
+ return this.provisionedMemoryUsageBytes;
262
+ }
222
263
 
223
- /**
224
- * Sets Largest possible memory size in bytes for the next VM that can be added
225
- * @param {Number} maxVmMemorySizeBytes Largest possible memory size in bytes for the next VM that can be added
226
- */
227
- }, {
228
- key: "setMaxVmMemorySizeBytes",
229
- value: function setMaxVmMemorySizeBytes(maxVmMemorySizeBytes) {
230
- this.maxVmMemorySizeBytes = maxVmMemorySizeBytes;
231
- }
264
+ /**
265
+ * Sets Total memory size in bytes provisioned for all the VMs
266
+ * @param {Number} provisionedMemoryUsageBytes Total memory size in bytes provisioned for all the VMs
267
+ */
268
+ setProvisionedMemoryUsageBytes(provisionedMemoryUsageBytes) {
269
+ this.provisionedMemoryUsageBytes = provisionedMemoryUsageBytes;
270
+ }
232
271
 
233
- /**
234
- * Returns Total amount of available memory in bytes for deploying new VMs
235
- * @return {Number}
236
- */
237
- }, {
238
- key: "getAvailableMemorySizeBytes",
239
- value: function getAvailableMemorySizeBytes() {
240
- return this.availableMemorySizeBytes;
241
- }
272
+ /**
273
+ * Returns Largest possible memory size in bytes for the next VM that can be added
274
+ * @return {Number}
275
+ */
276
+ getMaxVmMemorySizeBytes() {
277
+ return this.maxVmMemorySizeBytes;
278
+ }
242
279
 
243
- /**
244
- * Sets Total amount of available memory in bytes for deploying new VMs
245
- * @param {Number} availableMemorySizeBytes Total amount of available memory in bytes for deploying new VMs
246
- */
247
- }, {
248
- key: "setAvailableMemorySizeBytes",
249
- value: function setAvailableMemorySizeBytes(availableMemorySizeBytes) {
250
- this.availableMemorySizeBytes = availableMemorySizeBytes;
251
- }
280
+ /**
281
+ * Sets Largest possible memory size in bytes for the next VM that can be added
282
+ * @param {Number} maxVmMemorySizeBytes Largest possible memory size in bytes for the next VM that can be added
283
+ */
284
+ setMaxVmMemorySizeBytes(maxVmMemorySizeBytes) {
285
+ this.maxVmMemorySizeBytes = maxVmMemorySizeBytes;
286
+ }
252
287
 
253
- /**
254
- * Returns Powered OFF VM with the largest memory size
255
- * @return {Number}
256
- */
257
- }, {
258
- key: "getLargestPoweredOffVMMemory",
259
- value: function getLargestPoweredOffVMMemory() {
260
- return this.largestPoweredOffVMMemory;
261
- }
288
+ /**
289
+ * Returns Total amount of available memory in bytes for deploying new VMs
290
+ * @return {Number}
291
+ */
292
+ getAvailableMemorySizeBytes() {
293
+ return this.availableMemorySizeBytes;
294
+ }
262
295
 
263
- /**
264
- * Sets Powered OFF VM with the largest memory size
265
- * @param {Number} largestPoweredOffVMMemory Powered OFF VM with the largest memory size
266
- */
267
- }, {
268
- key: "setLargestPoweredOffVMMemory",
269
- value: function setLargestPoweredOffVMMemory(largestPoweredOffVMMemory) {
270
- this.largestPoweredOffVMMemory = largestPoweredOffVMMemory;
271
- }
296
+ /**
297
+ * Sets Total amount of available memory in bytes for deploying new VMs
298
+ * @param {Number} availableMemorySizeBytes Total amount of available memory in bytes for deploying new VMs
299
+ */
300
+ setAvailableMemorySizeBytes(availableMemorySizeBytes) {
301
+ this.availableMemorySizeBytes = availableMemorySizeBytes;
302
+ }
272
303
 
273
- /**
274
- * Returns Total number of vCPUs in the cluster
275
- * @return {Number}
276
- */
277
- }, {
278
- key: "getTotalVCpuCount",
279
- value: function getTotalVCpuCount() {
280
- return this.totalVCpuCount;
281
- }
304
+ /**
305
+ * Returns Powered OFF VM with the largest memory size
306
+ * @return {Number}
307
+ */
308
+ getLargestPoweredOffVMMemory() {
309
+ return this.largestPoweredOffVMMemory;
310
+ }
282
311
 
283
- /**
284
- * Sets Total number of vCPUs in the cluster
285
- * @param {Number} totalVCpuCount Total number of vCPUs in the cluster
286
- */
287
- }, {
288
- key: "setTotalVCpuCount",
289
- value: function setTotalVCpuCount(totalVCpuCount) {
290
- this.totalVCpuCount = totalVCpuCount;
291
- }
312
+ /**
313
+ * Sets Powered OFF VM with the largest memory size
314
+ * @param {Number} largestPoweredOffVMMemory Powered OFF VM with the largest memory size
315
+ */
316
+ setLargestPoweredOffVMMemory(largestPoweredOffVMMemory) {
317
+ this.largestPoweredOffVMMemory = largestPoweredOffVMMemory;
318
+ }
292
319
 
293
- /**
294
- * Returns Total number of vCPUs currently being used by the active VMs
295
- * @return {Number}
296
- */
297
- }, {
298
- key: "getCurrentUsedVCpuCount",
299
- value: function getCurrentUsedVCpuCount() {
300
- return this.currentUsedVCpuCount;
301
- }
320
+ /**
321
+ * Returns Total number of vCPUs in the cluster
322
+ * @return {Number}
323
+ */
324
+ getTotalVCpuCount() {
325
+ return this.totalVCpuCount;
326
+ }
302
327
 
303
- /**
304
- * Sets Total number of vCPUs currently being used by the active VMs
305
- * @param {Number} currentUsedVCpuCount Total number of vCPUs currently being used by the active VMs
306
- */
307
- }, {
308
- key: "setCurrentUsedVCpuCount",
309
- value: function setCurrentUsedVCpuCount(currentUsedVCpuCount) {
310
- this.currentUsedVCpuCount = currentUsedVCpuCount;
311
- }
328
+ /**
329
+ * Sets Total number of vCPUs in the cluster
330
+ * @param {Number} totalVCpuCount Total number of vCPUs in the cluster
331
+ */
332
+ setTotalVCpuCount(totalVCpuCount) {
333
+ this.totalVCpuCount = totalVCpuCount;
334
+ }
312
335
 
313
- /**
314
- * Returns Total number of vCPUs provisioned for all the VMs
315
- * @return {Number}
316
- */
317
- }, {
318
- key: "getProvisionedVCpuCount",
319
- value: function getProvisionedVCpuCount() {
320
- return this.provisionedVCpuCount;
321
- }
336
+ /**
337
+ * Returns Total number of vCPUs currently being used by the active VMs
338
+ * @return {Number}
339
+ */
340
+ getCurrentUsedVCpuCount() {
341
+ return this.currentUsedVCpuCount;
342
+ }
322
343
 
323
- /**
324
- * Sets Total number of vCPUs provisioned for all the VMs
325
- * @param {Number} provisionedVCpuCount Total number of vCPUs provisioned for all the VMs
326
- */
327
- }, {
328
- key: "setProvisionedVCpuCount",
329
- value: function setProvisionedVCpuCount(provisionedVCpuCount) {
330
- this.provisionedVCpuCount = provisionedVCpuCount;
331
- }
344
+ /**
345
+ * Sets Total number of vCPUs currently being used by the active VMs
346
+ * @param {Number} currentUsedVCpuCount Total number of vCPUs currently being used by the active VMs
347
+ */
348
+ setCurrentUsedVCpuCount(currentUsedVCpuCount) {
349
+ this.currentUsedVCpuCount = currentUsedVCpuCount;
350
+ }
332
351
 
333
- /**
334
- * Returns Largest possible VM size in vCPUs for the next VM that can be added
335
- * @return {Number}
336
- */
337
- }, {
338
- key: "getMaxVmVCpuSize",
339
- value: function getMaxVmVCpuSize() {
340
- return this.maxVmVCpuSize;
341
- }
352
+ /**
353
+ * Returns Total number of vCPUs provisioned for all the VMs
354
+ * @return {Number}
355
+ */
356
+ getProvisionedVCpuCount() {
357
+ return this.provisionedVCpuCount;
358
+ }
342
359
 
343
- /**
344
- * Sets Largest possible VM size in vCPUs for the next VM that can be added
345
- * @param {Number} maxVmVCpuSize Largest possible VM size in vCPUs for the next VM that can be added
346
- */
347
- }, {
348
- key: "setMaxVmVCpuSize",
349
- value: function setMaxVmVCpuSize(maxVmVCpuSize) {
350
- this.maxVmVCpuSize = maxVmVCpuSize;
351
- }
360
+ /**
361
+ * Sets Total number of vCPUs provisioned for all the VMs
362
+ * @param {Number} provisionedVCpuCount Total number of vCPUs provisioned for all the VMs
363
+ */
364
+ setProvisionedVCpuCount(provisionedVCpuCount) {
365
+ this.provisionedVCpuCount = provisionedVCpuCount;
366
+ }
352
367
 
353
- /**
354
- * Returns Total number of available VMs for deploying new VMs
355
- * @return {Number}
356
- */
357
- }, {
358
- key: "getAvailableVCpuCount",
359
- value: function getAvailableVCpuCount() {
360
- return this.availableVCpuCount;
361
- }
368
+ /**
369
+ * Returns Largest possible VM size in vCPUs for the next VM that can be added
370
+ * @return {Number}
371
+ */
372
+ getMaxVmVCpuSize() {
373
+ return this.maxVmVCpuSize;
374
+ }
362
375
 
363
- /**
364
- * Sets Total number of available VMs for deploying new VMs
365
- * @param {Number} availableVCpuCount Total number of available VMs for deploying new VMs
366
- */
367
- }, {
368
- key: "setAvailableVCpuCount",
369
- value: function setAvailableVCpuCount(availableVCpuCount) {
370
- this.availableVCpuCount = availableVCpuCount;
371
- }
376
+ /**
377
+ * Sets Largest possible VM size in vCPUs for the next VM that can be added
378
+ * @param {Number} maxVmVCpuSize Largest possible VM size in vCPUs for the next VM that can be added
379
+ */
380
+ setMaxVmVCpuSize(maxVmVCpuSize) {
381
+ this.maxVmVCpuSize = maxVmVCpuSize;
382
+ }
372
383
 
373
- /**
374
- * Returns Largest powered OFF VM in terms of vCPU count
375
- * @return {Number}
376
- */
377
- }, {
378
- key: "getLargestPoweredOffVMVCpu",
379
- value: function getLargestPoweredOffVMVCpu() {
380
- return this.largestPoweredOffVMVCpu;
381
- }
384
+ /**
385
+ * Returns Total number of available VMs for deploying new VMs
386
+ * @return {Number}
387
+ */
388
+ getAvailableVCpuCount() {
389
+ return this.availableVCpuCount;
390
+ }
382
391
 
383
- /**
384
- * Sets Largest powered OFF VM in terms of vCPU count
385
- * @param {Number} largestPoweredOffVMVCpu Largest powered OFF VM in terms of vCPU count
386
- */
387
- }, {
388
- key: "setLargestPoweredOffVMVCpu",
389
- value: function setLargestPoweredOffVMVCpu(largestPoweredOffVMVCpu) {
390
- this.largestPoweredOffVMVCpu = largestPoweredOffVMVCpu;
391
- }
392
+ /**
393
+ * Sets Total number of available VMs for deploying new VMs
394
+ * @param {Number} availableVCpuCount Total number of available VMs for deploying new VMs
395
+ */
396
+ setAvailableVCpuCount(availableVCpuCount) {
397
+ this.availableVCpuCount = availableVCpuCount;
398
+ }
392
399
 
393
- /**
394
- * Returns Total amount of CPU in hertz in the cluster
395
- * @return {Number}
396
- */
397
- }, {
398
- key: "getTotalCpuHz",
399
- value: function getTotalCpuHz() {
400
- return this.totalCpuHz;
401
- }
400
+ /**
401
+ * Returns Largest powered OFF VM in terms of vCPU count
402
+ * @return {Number}
403
+ */
404
+ getLargestPoweredOffVMVCpu() {
405
+ return this.largestPoweredOffVMVCpu;
406
+ }
402
407
 
403
- /**
404
- * Sets Total amount of CPU in hertz in the cluster
405
- * @param {Number} totalCpuHz Total amount of CPU in hertz in the cluster
406
- */
407
- }, {
408
- key: "setTotalCpuHz",
409
- value: function setTotalCpuHz(totalCpuHz) {
410
- this.totalCpuHz = totalCpuHz;
411
- }
408
+ /**
409
+ * Sets Largest powered OFF VM in terms of vCPU count
410
+ * @param {Number} largestPoweredOffVMVCpu Largest powered OFF VM in terms of vCPU count
411
+ */
412
+ setLargestPoweredOffVMVCpu(largestPoweredOffVMVCpu) {
413
+ this.largestPoweredOffVMVCpu = largestPoweredOffVMVCpu;
414
+ }
412
415
 
413
- /**
414
- * Returns Total amount of CPU in hertz currently being used by the active VMs
415
- * @return {Number}
416
- */
417
- }, {
418
- key: "getCurrentUsedCpuHz",
419
- value: function getCurrentUsedCpuHz() {
420
- return this.currentUsedCpuHz;
421
- }
416
+ /**
417
+ * Returns Total amount of CPU in hertz in the cluster
418
+ * @return {Number}
419
+ */
420
+ getTotalCpuHz() {
421
+ return this.totalCpuHz;
422
+ }
422
423
 
423
- /**
424
- * Sets Total amount of CPU in hertz currently being used by the active VMs
425
- * @param {Number} currentUsedCpuHz Total amount of CPU in hertz currently being used by the active VMs
426
- */
427
- }, {
428
- key: "setCurrentUsedCpuHz",
429
- value: function setCurrentUsedCpuHz(currentUsedCpuHz) {
430
- this.currentUsedCpuHz = currentUsedCpuHz;
431
- }
424
+ /**
425
+ * Sets Total amount of CPU in hertz in the cluster
426
+ * @param {Number} totalCpuHz Total amount of CPU in hertz in the cluster
427
+ */
428
+ setTotalCpuHz(totalCpuHz) {
429
+ this.totalCpuHz = totalCpuHz;
430
+ }
432
431
 
433
- /**
434
- * Returns Total amount of CPU in hertz provisioned for all the VMs
435
- * @return {Number}
436
- */
437
- }, {
438
- key: "getProvisionedCpuHz",
439
- value: function getProvisionedCpuHz() {
440
- return this.provisionedCpuHz;
441
- }
432
+ /**
433
+ * Returns Total amount of CPU in hertz currently being used by the active VMs
434
+ * @return {Number}
435
+ */
436
+ getCurrentUsedCpuHz() {
437
+ return this.currentUsedCpuHz;
438
+ }
442
439
 
443
- /**
444
- * Sets Total amount of CPU in hertz provisioned for all the VMs
445
- * @param {Number} provisionedCpuHz Total amount of CPU in hertz provisioned for all the VMs
446
- */
447
- }, {
448
- key: "setProvisionedCpuHz",
449
- value: function setProvisionedCpuHz(provisionedCpuHz) {
450
- this.provisionedCpuHz = provisionedCpuHz;
451
- }
440
+ /**
441
+ * Sets Total amount of CPU in hertz currently being used by the active VMs
442
+ * @param {Number} currentUsedCpuHz Total amount of CPU in hertz currently being used by the active VMs
443
+ */
444
+ setCurrentUsedCpuHz(currentUsedCpuHz) {
445
+ this.currentUsedCpuHz = currentUsedCpuHz;
446
+ }
452
447
 
453
- /**
454
- * Returns Total storage in bytes capacity in the cluster
455
- * @return {Number}
456
- */
457
- }, {
458
- key: "getTotalStorageCapacityRawBytes",
459
- value: function getTotalStorageCapacityRawBytes() {
460
- return this.totalStorageCapacityRawBytes;
461
- }
448
+ /**
449
+ * Returns Total amount of CPU in hertz provisioned for all the VMs
450
+ * @return {Number}
451
+ */
452
+ getProvisionedCpuHz() {
453
+ return this.provisionedCpuHz;
454
+ }
462
455
 
463
- /**
464
- * Sets Total storage in bytes capacity in the cluster
465
- * @param {Number} totalStorageCapacityRawBytes Total storage in bytes capacity in the cluster
466
- */
467
- }, {
468
- key: "setTotalStorageCapacityRawBytes",
469
- value: function setTotalStorageCapacityRawBytes(totalStorageCapacityRawBytes) {
470
- this.totalStorageCapacityRawBytes = totalStorageCapacityRawBytes;
471
- }
456
+ /**
457
+ * Sets Total amount of CPU in hertz provisioned for all the VMs
458
+ * @param {Number} provisionedCpuHz Total amount of CPU in hertz provisioned for all the VMs
459
+ */
460
+ setProvisionedCpuHz(provisionedCpuHz) {
461
+ this.provisionedCpuHz = provisionedCpuHz;
462
+ }
472
463
 
473
- /**
474
- * Returns Total logical storage in bytes capacity after considering RF
475
- * @return {Number}
476
- */
477
- }, {
478
- key: "getTotalStorageCapacityLogicalBytes",
479
- value: function getTotalStorageCapacityLogicalBytes() {
480
- return this.totalStorageCapacityLogicalBytes;
481
- }
464
+ /**
465
+ * Returns Total storage in bytes capacity in the cluster
466
+ * @return {Number}
467
+ */
468
+ getTotalStorageCapacityRawBytes() {
469
+ return this.totalStorageCapacityRawBytes;
470
+ }
482
471
 
483
- /**
484
- * Sets Total logical storage in bytes capacity after considering RF
485
- * @param {Number} totalStorageCapacityLogicalBytes Total logical storage in bytes capacity after considering RF
486
- */
487
- }, {
488
- key: "setTotalStorageCapacityLogicalBytes",
489
- value: function setTotalStorageCapacityLogicalBytes(totalStorageCapacityLogicalBytes) {
490
- this.totalStorageCapacityLogicalBytes = totalStorageCapacityLogicalBytes;
491
- }
472
+ /**
473
+ * Sets Total storage in bytes capacity in the cluster
474
+ * @param {Number} totalStorageCapacityRawBytes Total storage in bytes capacity in the cluster
475
+ */
476
+ setTotalStorageCapacityRawBytes(totalStorageCapacityRawBytes) {
477
+ this.totalStorageCapacityRawBytes = totalStorageCapacityRawBytes;
478
+ }
492
479
 
493
- /**
494
- * Returns Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
495
- * @return {Number}
496
- */
497
- }, {
498
- key: "getTotalStorageCapacityLogicalWithSavingsBytes",
499
- value: function getTotalStorageCapacityLogicalWithSavingsBytes() {
500
- return this.totalStorageCapacityLogicalWithSavingsBytes;
501
- }
480
+ /**
481
+ * Returns Total logical storage in bytes capacity after considering RF
482
+ * @return {Number}
483
+ */
484
+ getTotalStorageCapacityLogicalBytes() {
485
+ return this.totalStorageCapacityLogicalBytes;
486
+ }
502
487
 
503
- /**
504
- * Sets Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
505
- * @param {Number} totalStorageCapacityLogicalWithSavingsBytes Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
506
- */
507
- }, {
508
- key: "setTotalStorageCapacityLogicalWithSavingsBytes",
509
- value: function setTotalStorageCapacityLogicalWithSavingsBytes(totalStorageCapacityLogicalWithSavingsBytes) {
510
- this.totalStorageCapacityLogicalWithSavingsBytes = totalStorageCapacityLogicalWithSavingsBytes;
511
- }
488
+ /**
489
+ * Sets Total logical storage in bytes capacity after considering RF
490
+ * @param {Number} totalStorageCapacityLogicalBytes Total logical storage in bytes capacity after considering RF
491
+ */
492
+ setTotalStorageCapacityLogicalBytes(totalStorageCapacityLogicalBytes) {
493
+ this.totalStorageCapacityLogicalBytes = totalStorageCapacityLogicalBytes;
494
+ }
512
495
 
513
- /**
514
- * Returns Total raw storage usage by the cluster
515
- * @return {Number}
516
- */
517
- }, {
518
- key: "getTotalStorageUsageBytes",
519
- value: function getTotalStorageUsageBytes() {
520
- return this.totalStorageUsageBytes;
521
- }
496
+ /**
497
+ * Returns Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
498
+ * @return {Number}
499
+ */
500
+ getTotalStorageCapacityLogicalWithSavingsBytes() {
501
+ return this.totalStorageCapacityLogicalWithSavingsBytes;
502
+ }
522
503
 
523
- /**
524
- * Sets Total raw storage usage by the cluster
525
- * @param {Number} totalStorageUsageBytes Total raw storage usage by the cluster
526
- */
527
- }, {
528
- key: "setTotalStorageUsageBytes",
529
- value: function setTotalStorageUsageBytes(totalStorageUsageBytes) {
530
- this.totalStorageUsageBytes = totalStorageUsageBytes;
531
- }
504
+ /**
505
+ * Sets Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
506
+ * @param {Number} totalStorageCapacityLogicalWithSavingsBytes Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
507
+ */
508
+ setTotalStorageCapacityLogicalWithSavingsBytes(totalStorageCapacityLogicalWithSavingsBytes) {
509
+ this.totalStorageCapacityLogicalWithSavingsBytes = totalStorageCapacityLogicalWithSavingsBytes;
510
+ }
532
511
 
533
- /**
534
- * Returns Total raw storage bytes still available in the cluster
535
- * @return {Number}
536
- */
537
- }, {
538
- key: "getTotalStorageAvailableBytes",
539
- value: function getTotalStorageAvailableBytes() {
540
- return this.totalStorageAvailableBytes;
541
- }
512
+ /**
513
+ * Returns Total raw storage usage by the cluster
514
+ * @return {Number}
515
+ */
516
+ getTotalStorageUsageBytes() {
517
+ return this.totalStorageUsageBytes;
518
+ }
542
519
 
543
- /**
544
- * Sets Total raw storage bytes still available in the cluster
545
- * @param {Number} totalStorageAvailableBytes Total raw storage bytes still available in the cluster
546
- */
547
- }, {
548
- key: "setTotalStorageAvailableBytes",
549
- value: function setTotalStorageAvailableBytes(totalStorageAvailableBytes) {
550
- this.totalStorageAvailableBytes = totalStorageAvailableBytes;
551
- }
520
+ /**
521
+ * Sets Total raw storage usage by the cluster
522
+ * @param {Number} totalStorageUsageBytes Total raw storage usage by the cluster
523
+ */
524
+ setTotalStorageUsageBytes(totalStorageUsageBytes) {
525
+ this.totalStorageUsageBytes = totalStorageUsageBytes;
526
+ }
552
527
 
553
- /**
554
- * Returns Total logical storage bytes still available in the cluster
555
- * @return {Number}
556
- */
557
- }, {
558
- key: "getTotalStorageAvailableLogicalBytes",
559
- value: function getTotalStorageAvailableLogicalBytes() {
560
- return this.totalStorageAvailableLogicalBytes;
561
- }
528
+ /**
529
+ * Returns Total raw storage bytes still available in the cluster
530
+ * @return {Number}
531
+ */
532
+ getTotalStorageAvailableBytes() {
533
+ return this.totalStorageAvailableBytes;
534
+ }
562
535
 
563
- /**
564
- * Sets Total logical storage bytes still available in the cluster
565
- * @param {Number} totalStorageAvailableLogicalBytes Total logical storage bytes still available in the cluster
566
- */
567
- }, {
568
- key: "setTotalStorageAvailableLogicalBytes",
569
- value: function setTotalStorageAvailableLogicalBytes(totalStorageAvailableLogicalBytes) {
570
- this.totalStorageAvailableLogicalBytes = totalStorageAvailableLogicalBytes;
571
- }
572
- }, {
573
- key: "toJson",
574
- value: function toJson(forMutation) {
575
- if (forMutation === false) {
576
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
536
+ /**
537
+ * Sets Total raw storage bytes still available in the cluster
538
+ * @param {Number} totalStorageAvailableBytes Total raw storage bytes still available in the cluster
539
+ */
540
+ setTotalStorageAvailableBytes(totalStorageAvailableBytes) {
541
+ this.totalStorageAvailableBytes = totalStorageAvailableBytes;
542
+ }
543
+
544
+ /**
545
+ * Returns Total logical storage bytes still available in the cluster
546
+ * @return {Number}
547
+ */
548
+ getTotalStorageAvailableLogicalBytes() {
549
+ return this.totalStorageAvailableLogicalBytes;
550
+ }
551
+
552
+ /**
553
+ * Sets Total logical storage bytes still available in the cluster
554
+ * @param {Number} totalStorageAvailableLogicalBytes Total logical storage bytes still available in the cluster
555
+ */
556
+ setTotalStorageAvailableLogicalBytes(totalStorageAvailableLogicalBytes) {
557
+ this.totalStorageAvailableLogicalBytes = totalStorageAvailableLogicalBytes;
558
+ }
559
+ toJson(forMutation) {
560
+ if (forMutation === false) {
561
+ return {
562
+ ...(typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
577
563
  'clusterName': this.getClusterName()
578
- } : {}), typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
564
+ } : {}),
565
+ ...(typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
579
566
  'externalIP': this.getExternalIP().toJson(false)
580
- } : {}), typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
581
- 'cvmIPs': this.getCvmIPs().map(function (item) {
582
- return item.toJson(false);
583
- })
584
- } : {}), typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
567
+ } : {}),
568
+ ...(typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
569
+ 'cvmIPs': this.getCvmIPs().map(item => item.toJson(false))
570
+ } : {}),
571
+ ...(typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
585
572
  'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
586
- } : {}), typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
573
+ } : {}),
574
+ ...(typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
587
575
  'currentMemoryUsageSizeBytes': this.getCurrentMemoryUsageSizeBytes()
588
- } : {}), typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
576
+ } : {}),
577
+ ...(typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
589
578
  'provisionedMemoryUsageBytes': this.getProvisionedMemoryUsageBytes()
590
- } : {}), typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
579
+ } : {}),
580
+ ...(typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
591
581
  'maxVmMemorySizeBytes': this.getMaxVmMemorySizeBytes()
592
- } : {}), typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
582
+ } : {}),
583
+ ...(typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
593
584
  'availableMemorySizeBytes': this.getAvailableMemorySizeBytes()
594
- } : {}), typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
585
+ } : {}),
586
+ ...(typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
595
587
  'largestPoweredOffVMMemory': this.getLargestPoweredOffVMMemory()
596
- } : {}), typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
588
+ } : {}),
589
+ ...(typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
597
590
  'totalVCpuCount': this.getTotalVCpuCount()
598
- } : {}), typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
591
+ } : {}),
592
+ ...(typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
599
593
  'currentUsedVCpuCount': this.getCurrentUsedVCpuCount()
600
- } : {}), typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
594
+ } : {}),
595
+ ...(typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
601
596
  'provisionedVCpuCount': this.getProvisionedVCpuCount()
602
- } : {}), typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
597
+ } : {}),
598
+ ...(typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
603
599
  'maxVmVCpuSize': this.getMaxVmVCpuSize()
604
- } : {}), typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
600
+ } : {}),
601
+ ...(typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
605
602
  'availableVCpuCount': this.getAvailableVCpuCount()
606
- } : {}), typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
603
+ } : {}),
604
+ ...(typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
607
605
  'largestPoweredOffVMVCpu': this.getLargestPoweredOffVMVCpu()
608
- } : {}), typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
606
+ } : {}),
607
+ ...(typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
609
608
  'totalCpuHz': this.getTotalCpuHz()
610
- } : {}), typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
609
+ } : {}),
610
+ ...(typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
611
611
  'currentUsedCpuHz': this.getCurrentUsedCpuHz()
612
- } : {}), typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
612
+ } : {}),
613
+ ...(typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
613
614
  'provisionedCpuHz': this.getProvisionedCpuHz()
614
- } : {}), typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
615
+ } : {}),
616
+ ...(typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
615
617
  'totalStorageCapacityRawBytes': this.getTotalStorageCapacityRawBytes()
616
- } : {}), typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
618
+ } : {}),
619
+ ...(typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
617
620
  'totalStorageCapacityLogicalBytes': this.getTotalStorageCapacityLogicalBytes()
618
- } : {}), typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
621
+ } : {}),
622
+ ...(typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
619
623
  'totalStorageCapacityLogicalWithSavingsBytes': this.getTotalStorageCapacityLogicalWithSavingsBytes()
620
- } : {}), typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
624
+ } : {}),
625
+ ...(typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
621
626
  'totalStorageUsageBytes': this.getTotalStorageUsageBytes()
622
- } : {}), typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
627
+ } : {}),
628
+ ...(typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
623
629
  'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
624
- } : {}), typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
630
+ } : {}),
631
+ ...(typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
625
632
  'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
626
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
633
+ } : {}),
634
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
627
635
  'extId': this.getExtId()
628
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
629
- 'links': this.getLinks().map(function (item) {
630
- return item.toJson(false);
631
- })
632
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
636
+ } : {}),
637
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
638
+ 'links': this.getLinks().map(item => item.toJson(false))
639
+ } : {}),
640
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
633
641
  'tenantId': this.getTenantId()
634
- } : {}), {}, {
635
- '$reserved': this.get$Reserved(),
636
- '$objectType': this.get$ObjectType(),
637
- '$unknownFields': this.get$UnknownFields()
638
- });
639
- }
640
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
642
+ } : {}),
643
+ '$reserved': this.get$Reserved(),
644
+ '$objectType': this.get$ObjectType(),
645
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
646
+ '$unknownFields': {}
647
+ };
648
+ }
649
+ return {
650
+ ...(typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
641
651
  'clusterName': this.getClusterName()
642
- } : {}), typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
652
+ } : {}),
653
+ ...(typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
643
654
  'externalIP': this.getExternalIP().toJson(false)
644
- } : {}), typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
645
- 'cvmIPs': this.getCvmIPs().map(function (item) {
646
- return item.toJson(false);
647
- })
648
- } : {}), typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
655
+ } : {}),
656
+ ...(typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
657
+ 'cvmIPs': this.getCvmIPs().map(item => item.toJson(false))
658
+ } : {}),
659
+ ...(typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
649
660
  'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
650
- } : {}), typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
661
+ } : {}),
662
+ ...(typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
651
663
  'currentMemoryUsageSizeBytes': this.getCurrentMemoryUsageSizeBytes()
652
- } : {}), typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
664
+ } : {}),
665
+ ...(typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
653
666
  'provisionedMemoryUsageBytes': this.getProvisionedMemoryUsageBytes()
654
- } : {}), typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
667
+ } : {}),
668
+ ...(typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
655
669
  'maxVmMemorySizeBytes': this.getMaxVmMemorySizeBytes()
656
- } : {}), typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
670
+ } : {}),
671
+ ...(typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
657
672
  'availableMemorySizeBytes': this.getAvailableMemorySizeBytes()
658
- } : {}), typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
673
+ } : {}),
674
+ ...(typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
659
675
  'largestPoweredOffVMMemory': this.getLargestPoweredOffVMMemory()
660
- } : {}), typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
676
+ } : {}),
677
+ ...(typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
661
678
  'totalVCpuCount': this.getTotalVCpuCount()
662
- } : {}), typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
679
+ } : {}),
680
+ ...(typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
663
681
  'currentUsedVCpuCount': this.getCurrentUsedVCpuCount()
664
- } : {}), typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
682
+ } : {}),
683
+ ...(typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
665
684
  'provisionedVCpuCount': this.getProvisionedVCpuCount()
666
- } : {}), typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
685
+ } : {}),
686
+ ...(typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
667
687
  'maxVmVCpuSize': this.getMaxVmVCpuSize()
668
- } : {}), typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
688
+ } : {}),
689
+ ...(typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
669
690
  'availableVCpuCount': this.getAvailableVCpuCount()
670
- } : {}), typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
691
+ } : {}),
692
+ ...(typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
671
693
  'largestPoweredOffVMVCpu': this.getLargestPoweredOffVMVCpu()
672
- } : {}), typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
694
+ } : {}),
695
+ ...(typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
673
696
  'totalCpuHz': this.getTotalCpuHz()
674
- } : {}), typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
697
+ } : {}),
698
+ ...(typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
675
699
  'currentUsedCpuHz': this.getCurrentUsedCpuHz()
676
- } : {}), typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
700
+ } : {}),
701
+ ...(typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
677
702
  'provisionedCpuHz': this.getProvisionedCpuHz()
678
- } : {}), typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
703
+ } : {}),
704
+ ...(typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
679
705
  'totalStorageCapacityRawBytes': this.getTotalStorageCapacityRawBytes()
680
- } : {}), typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
706
+ } : {}),
707
+ ...(typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
681
708
  'totalStorageCapacityLogicalBytes': this.getTotalStorageCapacityLogicalBytes()
682
- } : {}), typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
709
+ } : {}),
710
+ ...(typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
683
711
  'totalStorageCapacityLogicalWithSavingsBytes': this.getTotalStorageCapacityLogicalWithSavingsBytes()
684
- } : {}), typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
712
+ } : {}),
713
+ ...(typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
685
714
  'totalStorageUsageBytes': this.getTotalStorageUsageBytes()
686
- } : {}), typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
715
+ } : {}),
716
+ ...(typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
687
717
  'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
688
- } : {}), typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
718
+ } : {}),
719
+ ...(typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
689
720
  'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
690
- } : {}), {}, {
691
- '$reserved': this.get$Reserved(),
692
- '$objectType': this.get$ObjectType(),
693
- '$unknownFields': this.get$UnknownFields()
694
- });
721
+ } : {}),
722
+ '$reserved': this.get$Reserved(),
723
+ '$objectType': this.get$ObjectType(),
724
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
725
+ '$unknownFields': {}
726
+ };
727
+ }
728
+ validate(scope, properties) {
729
+ let propList = [];
730
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
731
+ //cases validate() and validate(scope)
732
+ propList = [];
733
+ } else if (arguments.length === 1) {
734
+ //case validate(properties)
735
+ propList = arguments[0];
736
+ scope = null;
737
+ } else {
738
+ //case validate(scope, properties)
739
+ propList = arguments[1];
695
740
  }
696
- }, {
697
- key: "validate",
698
- value: function validate(scope, properties) {
699
- var _this2 = this;
700
- var propList = [];
701
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
702
- //cases validate() and validate(scope)
703
- propList = [];
704
- } else if (arguments.length === 1) {
705
- //case validate(properties)
706
- propList = arguments[0];
707
- scope = null;
708
- } else {
709
- //case validate(scope, properties)
710
- propList = arguments[1];
741
+ let res = [];
742
+ let err = null;
743
+ propList.forEach(property => {
744
+ err = this.validateProperty(property, scope);
745
+ if (err) {
746
+ res.push(err);
711
747
  }
712
- var res = [];
713
- var err = null;
714
- propList.forEach(function (property) {
715
- err = _this2.validateProperty(property, scope);
716
- if (err) {
717
- res.push(err);
718
- }
719
- });
720
- return new Promise(function (resolve, reject) {
721
- if (res.length !== 0) {
722
- reject(err);
723
- } else {
724
- resolve();
725
- }
726
- });
727
- }
728
- }, {
729
- key: "validateProperty",
730
- value: function validateProperty(scope, property) {
731
- if (property === "clusterName") {
732
- if (typeof this.clusterName === 'undefined' || this.clusterName === null) {
733
- return new _ValidationError["default"]("clusterName", "undefined or null");
734
- }
748
+ });
749
+ return new Promise(function (resolve, reject) {
750
+ if (res.length !== 0) {
751
+ reject(err);
752
+ } else {
753
+ resolve();
735
754
  }
736
- if (property === "externalIP") {
737
- if (typeof this.externalIP === 'undefined' || this.externalIP === null) {
738
- return new _ValidationError["default"]("externalIP", "undefined or null");
739
- }
755
+ });
756
+ }
757
+ validateProperty(scope, property) {
758
+ if (property === "clusterName") {
759
+ if (typeof this.clusterName === 'undefined' || this.clusterName === null) {
760
+ return new _ValidationError.default("clusterName", "undefined or null");
740
761
  }
741
- if (property === "cvmIPs") {
742
- if (typeof this.cvmIPs === 'undefined' || this.cvmIPs === null) {
743
- return new _ValidationError["default"]("cvmIPs", "undefined or null");
744
- }
762
+ }
763
+ if (property === "externalIP") {
764
+ if (typeof this.externalIP === 'undefined' || this.externalIP === null) {
765
+ return new _ValidationError.default("externalIP", "undefined or null");
745
766
  }
746
- if (property === "totalMemorySizeBytes") {
747
- if (typeof this.totalMemorySizeBytes === 'undefined' || this.totalMemorySizeBytes === null) {
748
- return new _ValidationError["default"]("totalMemorySizeBytes", "undefined or null");
749
- }
767
+ }
768
+ if (property === "cvmIPs") {
769
+ if (typeof this.cvmIPs === 'undefined' || this.cvmIPs === null) {
770
+ return new _ValidationError.default("cvmIPs", "undefined or null");
750
771
  }
751
- if (property === "currentMemoryUsageSizeBytes") {
752
- if (typeof this.currentMemoryUsageSizeBytes === 'undefined' || this.currentMemoryUsageSizeBytes === null) {
753
- return new _ValidationError["default"]("currentMemoryUsageSizeBytes", "undefined or null");
754
- }
772
+ }
773
+ if (property === "totalMemorySizeBytes") {
774
+ if (typeof this.totalMemorySizeBytes === 'undefined' || this.totalMemorySizeBytes === null) {
775
+ return new _ValidationError.default("totalMemorySizeBytes", "undefined or null");
755
776
  }
756
- if (property === "provisionedMemoryUsageBytes") {
757
- if (typeof this.provisionedMemoryUsageBytes === 'undefined' || this.provisionedMemoryUsageBytes === null) {
758
- return new _ValidationError["default"]("provisionedMemoryUsageBytes", "undefined or null");
759
- }
777
+ }
778
+ if (property === "currentMemoryUsageSizeBytes") {
779
+ if (typeof this.currentMemoryUsageSizeBytes === 'undefined' || this.currentMemoryUsageSizeBytes === null) {
780
+ return new _ValidationError.default("currentMemoryUsageSizeBytes", "undefined or null");
760
781
  }
761
- if (property === "maxVmMemorySizeBytes") {
762
- if (typeof this.maxVmMemorySizeBytes === 'undefined' || this.maxVmMemorySizeBytes === null) {
763
- return new _ValidationError["default"]("maxVmMemorySizeBytes", "undefined or null");
764
- }
782
+ }
783
+ if (property === "provisionedMemoryUsageBytes") {
784
+ if (typeof this.provisionedMemoryUsageBytes === 'undefined' || this.provisionedMemoryUsageBytes === null) {
785
+ return new _ValidationError.default("provisionedMemoryUsageBytes", "undefined or null");
765
786
  }
766
- if (property === "availableMemorySizeBytes") {
767
- if (typeof this.availableMemorySizeBytes === 'undefined' || this.availableMemorySizeBytes === null) {
768
- return new _ValidationError["default"]("availableMemorySizeBytes", "undefined or null");
769
- }
787
+ }
788
+ if (property === "maxVmMemorySizeBytes") {
789
+ if (typeof this.maxVmMemorySizeBytes === 'undefined' || this.maxVmMemorySizeBytes === null) {
790
+ return new _ValidationError.default("maxVmMemorySizeBytes", "undefined or null");
770
791
  }
771
- if (property === "largestPoweredOffVMMemory") {
772
- if (typeof this.largestPoweredOffVMMemory === 'undefined' || this.largestPoweredOffVMMemory === null) {
773
- return new _ValidationError["default"]("largestPoweredOffVMMemory", "undefined or null");
774
- }
792
+ }
793
+ if (property === "availableMemorySizeBytes") {
794
+ if (typeof this.availableMemorySizeBytes === 'undefined' || this.availableMemorySizeBytes === null) {
795
+ return new _ValidationError.default("availableMemorySizeBytes", "undefined or null");
775
796
  }
776
- if (property === "totalVCpuCount") {
777
- if (typeof this.totalVCpuCount === 'undefined' || this.totalVCpuCount === null) {
778
- return new _ValidationError["default"]("totalVCpuCount", "undefined or null");
779
- }
797
+ }
798
+ if (property === "largestPoweredOffVMMemory") {
799
+ if (typeof this.largestPoweredOffVMMemory === 'undefined' || this.largestPoweredOffVMMemory === null) {
800
+ return new _ValidationError.default("largestPoweredOffVMMemory", "undefined or null");
780
801
  }
781
- if (property === "currentUsedVCpuCount") {
782
- if (typeof this.currentUsedVCpuCount === 'undefined' || this.currentUsedVCpuCount === null) {
783
- return new _ValidationError["default"]("currentUsedVCpuCount", "undefined or null");
784
- }
802
+ }
803
+ if (property === "totalVCpuCount") {
804
+ if (typeof this.totalVCpuCount === 'undefined' || this.totalVCpuCount === null) {
805
+ return new _ValidationError.default("totalVCpuCount", "undefined or null");
785
806
  }
786
- if (property === "provisionedVCpuCount") {
787
- if (typeof this.provisionedVCpuCount === 'undefined' || this.provisionedVCpuCount === null) {
788
- return new _ValidationError["default"]("provisionedVCpuCount", "undefined or null");
789
- }
807
+ }
808
+ if (property === "currentUsedVCpuCount") {
809
+ if (typeof this.currentUsedVCpuCount === 'undefined' || this.currentUsedVCpuCount === null) {
810
+ return new _ValidationError.default("currentUsedVCpuCount", "undefined or null");
790
811
  }
791
- if (property === "maxVmVCpuSize") {
792
- if (typeof this.maxVmVCpuSize === 'undefined' || this.maxVmVCpuSize === null) {
793
- return new _ValidationError["default"]("maxVmVCpuSize", "undefined or null");
794
- }
812
+ }
813
+ if (property === "provisionedVCpuCount") {
814
+ if (typeof this.provisionedVCpuCount === 'undefined' || this.provisionedVCpuCount === null) {
815
+ return new _ValidationError.default("provisionedVCpuCount", "undefined or null");
795
816
  }
796
- if (property === "availableVCpuCount") {
797
- if (typeof this.availableVCpuCount === 'undefined' || this.availableVCpuCount === null) {
798
- return new _ValidationError["default"]("availableVCpuCount", "undefined or null");
799
- }
817
+ }
818
+ if (property === "maxVmVCpuSize") {
819
+ if (typeof this.maxVmVCpuSize === 'undefined' || this.maxVmVCpuSize === null) {
820
+ return new _ValidationError.default("maxVmVCpuSize", "undefined or null");
800
821
  }
801
- if (property === "largestPoweredOffVMVCpu") {
802
- if (typeof this.largestPoweredOffVMVCpu === 'undefined' || this.largestPoweredOffVMVCpu === null) {
803
- return new _ValidationError["default"]("largestPoweredOffVMVCpu", "undefined or null");
804
- }
822
+ }
823
+ if (property === "availableVCpuCount") {
824
+ if (typeof this.availableVCpuCount === 'undefined' || this.availableVCpuCount === null) {
825
+ return new _ValidationError.default("availableVCpuCount", "undefined or null");
805
826
  }
806
- if (property === "totalCpuHz") {
807
- if (typeof this.totalCpuHz === 'undefined' || this.totalCpuHz === null) {
808
- return new _ValidationError["default"]("totalCpuHz", "undefined or null");
809
- }
827
+ }
828
+ if (property === "largestPoweredOffVMVCpu") {
829
+ if (typeof this.largestPoweredOffVMVCpu === 'undefined' || this.largestPoweredOffVMVCpu === null) {
830
+ return new _ValidationError.default("largestPoweredOffVMVCpu", "undefined or null");
810
831
  }
811
- if (property === "currentUsedCpuHz") {
812
- if (typeof this.currentUsedCpuHz === 'undefined' || this.currentUsedCpuHz === null) {
813
- return new _ValidationError["default"]("currentUsedCpuHz", "undefined or null");
814
- }
832
+ }
833
+ if (property === "totalCpuHz") {
834
+ if (typeof this.totalCpuHz === 'undefined' || this.totalCpuHz === null) {
835
+ return new _ValidationError.default("totalCpuHz", "undefined or null");
815
836
  }
816
- if (property === "provisionedCpuHz") {
817
- if (typeof this.provisionedCpuHz === 'undefined' || this.provisionedCpuHz === null) {
818
- return new _ValidationError["default"]("provisionedCpuHz", "undefined or null");
819
- }
837
+ }
838
+ if (property === "currentUsedCpuHz") {
839
+ if (typeof this.currentUsedCpuHz === 'undefined' || this.currentUsedCpuHz === null) {
840
+ return new _ValidationError.default("currentUsedCpuHz", "undefined or null");
820
841
  }
821
- if (property === "totalStorageCapacityRawBytes") {
822
- if (typeof this.totalStorageCapacityRawBytes === 'undefined' || this.totalStorageCapacityRawBytes === null) {
823
- return new _ValidationError["default"]("totalStorageCapacityRawBytes", "undefined or null");
824
- }
842
+ }
843
+ if (property === "provisionedCpuHz") {
844
+ if (typeof this.provisionedCpuHz === 'undefined' || this.provisionedCpuHz === null) {
845
+ return new _ValidationError.default("provisionedCpuHz", "undefined or null");
825
846
  }
826
- if (property === "totalStorageCapacityLogicalBytes") {
827
- if (typeof this.totalStorageCapacityLogicalBytes === 'undefined' || this.totalStorageCapacityLogicalBytes === null) {
828
- return new _ValidationError["default"]("totalStorageCapacityLogicalBytes", "undefined or null");
829
- }
847
+ }
848
+ if (property === "totalStorageCapacityRawBytes") {
849
+ if (typeof this.totalStorageCapacityRawBytes === 'undefined' || this.totalStorageCapacityRawBytes === null) {
850
+ return new _ValidationError.default("totalStorageCapacityRawBytes", "undefined or null");
830
851
  }
831
- if (property === "totalStorageCapacityLogicalWithSavingsBytes") {
832
- if (typeof this.totalStorageCapacityLogicalWithSavingsBytes === 'undefined' || this.totalStorageCapacityLogicalWithSavingsBytes === null) {
833
- return new _ValidationError["default"]("totalStorageCapacityLogicalWithSavingsBytes", "undefined or null");
834
- }
852
+ }
853
+ if (property === "totalStorageCapacityLogicalBytes") {
854
+ if (typeof this.totalStorageCapacityLogicalBytes === 'undefined' || this.totalStorageCapacityLogicalBytes === null) {
855
+ return new _ValidationError.default("totalStorageCapacityLogicalBytes", "undefined or null");
835
856
  }
836
- if (property === "totalStorageUsageBytes") {
837
- if (typeof this.totalStorageUsageBytes === 'undefined' || this.totalStorageUsageBytes === null) {
838
- return new _ValidationError["default"]("totalStorageUsageBytes", "undefined or null");
839
- }
857
+ }
858
+ if (property === "totalStorageCapacityLogicalWithSavingsBytes") {
859
+ if (typeof this.totalStorageCapacityLogicalWithSavingsBytes === 'undefined' || this.totalStorageCapacityLogicalWithSavingsBytes === null) {
860
+ return new _ValidationError.default("totalStorageCapacityLogicalWithSavingsBytes", "undefined or null");
840
861
  }
841
- if (property === "totalStorageAvailableBytes") {
842
- if (typeof this.totalStorageAvailableBytes === 'undefined' || this.totalStorageAvailableBytes === null) {
843
- return new _ValidationError["default"]("totalStorageAvailableBytes", "undefined or null");
844
- }
862
+ }
863
+ if (property === "totalStorageUsageBytes") {
864
+ if (typeof this.totalStorageUsageBytes === 'undefined' || this.totalStorageUsageBytes === null) {
865
+ return new _ValidationError.default("totalStorageUsageBytes", "undefined or null");
845
866
  }
846
- if (property === "totalStorageAvailableLogicalBytes") {
847
- if (typeof this.totalStorageAvailableLogicalBytes === 'undefined' || this.totalStorageAvailableLogicalBytes === null) {
848
- return new _ValidationError["default"]("totalStorageAvailableLogicalBytes", "undefined or null");
849
- }
867
+ }
868
+ if (property === "totalStorageAvailableBytes") {
869
+ if (typeof this.totalStorageAvailableBytes === 'undefined' || this.totalStorageAvailableBytes === null) {
870
+ return new _ValidationError.default("totalStorageAvailableBytes", "undefined or null");
850
871
  }
851
- return new _ValidationError["default"](property, "no such property exists");
852
872
  }
853
- }], [{
854
- key: "constructFromObject",
855
- value: function constructFromObject(data) {
856
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
857
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
858
- var items, item, i, itemArr, discriminator;
859
- if (data) {
860
- obj = obj || new ClusterMetrics();
861
- _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
862
- if (data.hasOwnProperty('clusterName') && data.clusterName !== null && data.clusterName !== undefined) {
863
- obj.setClusterName(data['clusterName']);
864
- }
865
- if (data.hasOwnProperty('externalIP') && data.externalIP !== null && data.externalIP !== undefined) {
866
- obj.setExternalIP(_IPv4Address["default"].constructFromObject(data['externalIP']));
867
- }
868
- if (data.hasOwnProperty('cvmIPs') && data.cvmIPs !== null && data.cvmIPs !== undefined) {
869
- itemArr = [];
870
- items = data.cvmIPs;
871
- for (i = 0; i < items.length; i++) {
872
- item = _IPv4Address["default"].constructFromObject(items[i], undefined);
873
- itemArr.push(item);
874
- }
875
- obj.setCvmIPs(itemArr);
876
- }
877
- if (data.hasOwnProperty('totalMemorySizeBytes') && data.totalMemorySizeBytes !== null && data.totalMemorySizeBytes !== undefined) {
878
- obj.setTotalMemorySizeBytes(data['totalMemorySizeBytes']);
879
- }
880
- if (data.hasOwnProperty('currentMemoryUsageSizeBytes') && data.currentMemoryUsageSizeBytes !== null && data.currentMemoryUsageSizeBytes !== undefined) {
881
- obj.setCurrentMemoryUsageSizeBytes(data['currentMemoryUsageSizeBytes']);
882
- }
883
- if (data.hasOwnProperty('provisionedMemoryUsageBytes') && data.provisionedMemoryUsageBytes !== null && data.provisionedMemoryUsageBytes !== undefined) {
884
- obj.setProvisionedMemoryUsageBytes(data['provisionedMemoryUsageBytes']);
885
- }
886
- if (data.hasOwnProperty('maxVmMemorySizeBytes') && data.maxVmMemorySizeBytes !== null && data.maxVmMemorySizeBytes !== undefined) {
887
- obj.setMaxVmMemorySizeBytes(data['maxVmMemorySizeBytes']);
888
- }
889
- if (data.hasOwnProperty('availableMemorySizeBytes') && data.availableMemorySizeBytes !== null && data.availableMemorySizeBytes !== undefined) {
890
- obj.setAvailableMemorySizeBytes(data['availableMemorySizeBytes']);
891
- }
892
- if (data.hasOwnProperty('largestPoweredOffVMMemory') && data.largestPoweredOffVMMemory !== null && data.largestPoweredOffVMMemory !== undefined) {
893
- obj.setLargestPoweredOffVMMemory(data['largestPoweredOffVMMemory']);
894
- }
895
- if (data.hasOwnProperty('totalVCpuCount') && data.totalVCpuCount !== null && data.totalVCpuCount !== undefined) {
896
- obj.setTotalVCpuCount(data['totalVCpuCount']);
897
- }
898
- if (data.hasOwnProperty('currentUsedVCpuCount') && data.currentUsedVCpuCount !== null && data.currentUsedVCpuCount !== undefined) {
899
- obj.setCurrentUsedVCpuCount(data['currentUsedVCpuCount']);
900
- }
901
- if (data.hasOwnProperty('provisionedVCpuCount') && data.provisionedVCpuCount !== null && data.provisionedVCpuCount !== undefined) {
902
- obj.setProvisionedVCpuCount(data['provisionedVCpuCount']);
903
- }
904
- if (data.hasOwnProperty('maxVmVCpuSize') && data.maxVmVCpuSize !== null && data.maxVmVCpuSize !== undefined) {
905
- obj.setMaxVmVCpuSize(data['maxVmVCpuSize']);
906
- }
907
- if (data.hasOwnProperty('availableVCpuCount') && data.availableVCpuCount !== null && data.availableVCpuCount !== undefined) {
908
- obj.setAvailableVCpuCount(data['availableVCpuCount']);
909
- }
910
- if (data.hasOwnProperty('largestPoweredOffVMVCpu') && data.largestPoweredOffVMVCpu !== null && data.largestPoweredOffVMVCpu !== undefined) {
911
- obj.setLargestPoweredOffVMVCpu(data['largestPoweredOffVMVCpu']);
912
- }
913
- if (data.hasOwnProperty('totalCpuHz') && data.totalCpuHz !== null && data.totalCpuHz !== undefined) {
914
- obj.setTotalCpuHz(data['totalCpuHz']);
915
- }
916
- if (data.hasOwnProperty('currentUsedCpuHz') && data.currentUsedCpuHz !== null && data.currentUsedCpuHz !== undefined) {
917
- obj.setCurrentUsedCpuHz(data['currentUsedCpuHz']);
918
- }
919
- if (data.hasOwnProperty('provisionedCpuHz') && data.provisionedCpuHz !== null && data.provisionedCpuHz !== undefined) {
920
- obj.setProvisionedCpuHz(data['provisionedCpuHz']);
921
- }
922
- if (data.hasOwnProperty('totalStorageCapacityRawBytes') && data.totalStorageCapacityRawBytes !== null && data.totalStorageCapacityRawBytes !== undefined) {
923
- obj.setTotalStorageCapacityRawBytes(data['totalStorageCapacityRawBytes']);
924
- }
925
- if (data.hasOwnProperty('totalStorageCapacityLogicalBytes') && data.totalStorageCapacityLogicalBytes !== null && data.totalStorageCapacityLogicalBytes !== undefined) {
926
- obj.setTotalStorageCapacityLogicalBytes(data['totalStorageCapacityLogicalBytes']);
927
- }
928
- if (data.hasOwnProperty('totalStorageCapacityLogicalWithSavingsBytes') && data.totalStorageCapacityLogicalWithSavingsBytes !== null && data.totalStorageCapacityLogicalWithSavingsBytes !== undefined) {
929
- obj.setTotalStorageCapacityLogicalWithSavingsBytes(data['totalStorageCapacityLogicalWithSavingsBytes']);
930
- }
931
- if (data.hasOwnProperty('totalStorageUsageBytes') && data.totalStorageUsageBytes !== null && data.totalStorageUsageBytes !== undefined) {
932
- obj.setTotalStorageUsageBytes(data['totalStorageUsageBytes']);
933
- }
934
- if (data.hasOwnProperty('totalStorageAvailableBytes') && data.totalStorageAvailableBytes !== null && data.totalStorageAvailableBytes !== undefined) {
935
- obj.setTotalStorageAvailableBytes(data['totalStorageAvailableBytes']);
936
- }
937
- if (data.hasOwnProperty('totalStorageAvailableLogicalBytes') && data.totalStorageAvailableLogicalBytes !== null && data.totalStorageAvailableLogicalBytes !== undefined) {
938
- obj.setTotalStorageAvailableLogicalBytes(data['totalStorageAvailableLogicalBytes']);
939
- }
940
- if (!callFromChild) {
941
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
942
- for (var property in data) {
943
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
944
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
945
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
946
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
947
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
948
- obj.$unknownFields[property] = data[property];
949
- }
950
- }
951
- }
873
+ if (property === "totalStorageAvailableLogicalBytes") {
874
+ if (typeof this.totalStorageAvailableLogicalBytes === 'undefined' || this.totalStorageAvailableLogicalBytes === null) {
875
+ return new _ValidationError.default("totalStorageAvailableLogicalBytes", "undefined or null");
952
876
  }
953
- return obj;
954
877
  }
878
+ return new _ValidationError.default(property, "no such property exists");
879
+ }
880
+ }
955
881
 
956
- /**
957
- * Converts a given snake_case string to camelCase.
958
- * @param {string} snakeStr - The input string in snake_case format.
959
- * @returns {string} - The converted string in camelCase format.
960
- */
961
- }, {
962
- key: "snakeToCamel",
963
- value: function snakeToCamel(snakeStr) {
964
- return snakeStr.replace(/(_\w)/g, function (match) {
965
- return match[1].toUpperCase();
966
- });
967
- }
968
- }]);
969
- }(_ExternalizableAbstractModel["default"]);
970
882
  /**
971
883
  * Name of the cluster
972
884
  * @memberof ClusterMetrics
973
885
  */
886
+ exports.default = ClusterMetrics;
974
887
  function _toJsonMapType(obj, forMutation) {
975
888
  if (obj instanceof Map) {
976
- return Object.fromEntries(Array.from(obj, function (_ref) {
977
- var _ref2 = _slicedToArray(_ref, 2),
978
- k = _ref2[0],
979
- v = _ref2[1];
980
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
981
- }));
982
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
983
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
889
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
890
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
891
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
984
892
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
985
893
  }));
986
894
  }
@@ -1141,14 +1049,14 @@ ClusterMetrics.prototype.totalStorageAvailableLogicalBytes = undefined;
1141
1049
  * A globally unique identifier of an instance that is suitable for external consumption.
1142
1050
  * @memberof ClusterMetrics
1143
1051
  */
1144
- _ExternalizableAbstractModel["default"].prototype.extId = undefined;
1052
+ _ExternalizableAbstractModel.default.prototype.extId = undefined;
1145
1053
  /**
1146
1054
  * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
1147
1055
  * @memberof ClusterMetrics
1148
1056
  */
1149
- _ExternalizableAbstractModel["default"].prototype.links = undefined;
1057
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
1150
1058
  /**
1151
1059
  * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
1152
1060
  * @memberof ClusterMetrics
1153
1061
  */
1154
- _TenantAwareModel["default"].prototype.tenantId = undefined;
1062
+ _TenantAwareModel.default.prototype.tenantId = undefined;