@nutanix-scratch/aiops-js-client 4.0.1-alpha.1 → 4.0.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 (493) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +58 -40
  3. package/dist/Ntnx-Aiops-js-client-prod.js +1 -10
  4. package/dist/Ntnx-Aiops-js-client.js +1160 -709
  5. package/dist/es/ApiClient.d.ts +33 -43
  6. package/dist/es/ApiClient.js +764 -483
  7. package/dist/es/Paginable.d.ts +9 -9
  8. package/dist/es/Paginable.js +44 -64
  9. package/dist/es/apis/scenarios-endpoints.d.ts +217 -0
  10. package/dist/es/apis/scenarios-endpoints.js +675 -0
  11. package/dist/es/apis/stats-endpoints.d.ts +102 -0
  12. package/dist/es/apis/stats-endpoints.js +273 -0
  13. package/dist/es/index.d.ts +191 -7
  14. package/dist/es/index.js +754 -45
  15. package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +110 -0
  16. package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
  17. package/dist/es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts +19 -0
  18. package/dist/es/models/aiops/v4/capacityplanning/CapacityUnit.js +85 -0
  19. package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +86 -0
  20. package/dist/es/models/aiops/v4/capacityplanning/Runway.js +340 -0
  21. package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.d.ts +19 -0
  22. package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +91 -0
  23. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +90 -87
  24. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +151 -145
  25. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
  26. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +241 -268
  27. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
  28. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +186 -87
  29. package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
  30. package/dist/es/models/aiops/v4/clusterMetrics/Node.js +116 -89
  31. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
  32. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +61 -58
  33. package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
  34. package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +116 -89
  35. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
  36. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +61 -58
  37. package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
  38. package/dist/es/models/aiops/v4/common/ClusterType.js +79 -0
  39. package/dist/es/models/aiops/v4/config/CalculateRunwayApiResponse.d.ts +99 -0
  40. package/dist/es/models/aiops/v4/config/CalculateRunwayApiResponse.js +343 -0
  41. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +77 -0
  42. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +322 -0
  43. package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
  44. package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +85 -0
  45. package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +60 -0
  46. package/dist/es/models/aiops/v4/config/CategoryDetail.js +315 -0
  47. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
  48. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +85 -0
  49. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +83 -0
  50. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +371 -0
  51. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
  52. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +79 -0
  53. package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +107 -0
  54. package/dist/es/models/aiops/v4/config/ClusterConfig.js +329 -0
  55. package/dist/es/models/aiops/v4/config/CreateIgnoreWindowApiResponse.d.ts +99 -0
  56. package/dist/es/models/aiops/v4/config/CreateIgnoreWindowApiResponse.js +343 -0
  57. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +99 -0
  58. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +343 -0
  59. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +102 -0
  60. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +343 -0
  61. package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +205 -0
  62. package/dist/es/models/aiops/v4/config/DataStoreConfig.js +673 -0
  63. package/dist/es/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.d.ts +98 -0
  64. package/dist/es/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.js +345 -0
  65. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +98 -0
  66. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +345 -0
  67. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +98 -0
  68. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +345 -0
  69. package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +68 -0
  70. package/dist/es/models/aiops/v4/config/EntityDescriptor.js +454 -0
  71. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +101 -0
  72. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +365 -0
  73. package/dist/es/models/aiops/v4/config/EntityType.d.ts +37 -0
  74. package/dist/es/models/aiops/v4/config/EntityType.js +275 -0
  75. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +99 -0
  76. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +365 -0
  77. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +99 -0
  78. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +343 -0
  79. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +99 -0
  80. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +343 -0
  81. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +99 -0
  82. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +343 -0
  83. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +99 -0
  84. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +343 -0
  85. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +98 -0
  86. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +342 -0
  87. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +99 -0
  88. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +343 -0
  89. package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
  90. package/dist/es/models/aiops/v4/config/IgnoreWindow.js +460 -0
  91. package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +20 -0
  92. package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +173 -0
  93. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +100 -0
  94. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +370 -0
  95. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +100 -0
  96. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +370 -0
  97. package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +182 -0
  98. package/dist/es/models/aiops/v4/config/MetricDescriptor.js +667 -0
  99. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
  100. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +79 -0
  101. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +83 -0
  102. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +371 -0
  103. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
  104. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +79 -0
  105. package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +143 -0
  106. package/dist/es/models/aiops/v4/config/NodeConfig.js +490 -0
  107. package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
  108. package/dist/es/models/aiops/v4/config/NodeSource.js +91 -0
  109. package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
  110. package/dist/es/models/aiops/v4/config/PolicyType.js +85 -0
  111. package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
  112. package/dist/es/models/aiops/v4/config/ReplicationFactor.js +85 -0
  113. package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +126 -0
  114. package/dist/es/models/aiops/v4/config/ResourceCapacity.js +451 -0
  115. package/dist/es/models/aiops/v4/config/Runway.d.ts +130 -0
  116. package/dist/es/models/aiops/v4/config/Runway.js +479 -0
  117. package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +77 -0
  118. package/dist/es/models/aiops/v4/config/RunwayParams.js +323 -0
  119. package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +14 -0
  120. package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +159 -0
  121. package/dist/es/models/aiops/v4/config/Scenario.d.ts +178 -0
  122. package/dist/es/models/aiops/v4/config/Scenario.js +579 -0
  123. package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
  124. package/dist/es/models/aiops/v4/config/ScenarioProjection.js +156 -0
  125. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +106 -0
  126. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +403 -0
  127. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
  128. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +162 -0
  129. package/dist/es/models/aiops/v4/config/Simulation.d.ts +56 -0
  130. package/dist/es/models/aiops/v4/config/Simulation.js +317 -0
  131. package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
  132. package/dist/es/models/aiops/v4/config/SimulationProjection.js +153 -0
  133. package/dist/es/models/aiops/v4/config/Source.d.ts +37 -0
  134. package/dist/es/models/aiops/v4/config/Source.js +275 -0
  135. package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +106 -0
  136. package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +365 -0
  137. package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +118 -0
  138. package/dist/es/models/aiops/v4/config/SplunkWorkload.js +446 -0
  139. package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
  140. package/dist/es/models/aiops/v4/config/SqlProfileType.js +91 -0
  141. package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
  142. package/dist/es/models/aiops/v4/config/SqlTransactionType.js +85 -0
  143. package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +110 -0
  144. package/dist/es/models/aiops/v4/config/SqlWorkload.js +415 -0
  145. package/dist/es/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.d.ts +99 -0
  146. package/dist/es/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.js +343 -0
  147. package/dist/es/models/aiops/v4/config/UpdatePolicyTaskApiResponse.d.ts +99 -0
  148. package/dist/es/models/aiops/v4/config/UpdatePolicyTaskApiResponse.js +343 -0
  149. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +99 -0
  150. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +343 -0
  151. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +99 -0
  152. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +365 -0
  153. package/dist/es/models/aiops/v4/config/ValueRange.d.ts +64 -0
  154. package/dist/es/models/aiops/v4/config/ValueRange.js +312 -0
  155. package/dist/es/models/aiops/v4/config/ValueType.d.ts +19 -0
  156. package/dist/es/models/aiops/v4/config/ValueType.js +121 -0
  157. package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
  158. package/dist/es/models/aiops/v4/config/VdiProvisionType.js +103 -0
  159. package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
  160. package/dist/es/models/aiops/v4/config/VdiUserType.js +97 -0
  161. package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
  162. package/dist/es/models/aiops/v4/config/VdiVendor.js +85 -0
  163. package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +109 -0
  164. package/dist/es/models/aiops/v4/config/VdiWorkload.js +412 -0
  165. package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
  166. package/dist/es/models/aiops/v4/config/Vendor.js +127 -0
  167. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +94 -0
  168. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +370 -0
  169. package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +80 -0
  170. package/dist/es/models/aiops/v4/config/VmWorkload.js +335 -0
  171. package/dist/es/models/aiops/v4/config/Workload.d.ts +122 -0
  172. package/dist/es/models/aiops/v4/config/Workload.js +447 -0
  173. package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
  174. package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +85 -0
  175. package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +151 -0
  176. package/dist/es/models/aiops/v4/config/XenWorkload.js +532 -0
  177. package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +161 -0
  178. package/dist/es/models/aiops/v4/config/XfitPolicy.js +589 -0
  179. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +16 -0
  180. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +167 -0
  181. package/dist/es/models/aiops/v4/error/AppMessage.d.ts +69 -51
  182. package/dist/es/models/aiops/v4/error/AppMessage.js +140 -103
  183. package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
  184. package/dist/es/models/aiops/v4/error/ErrorResponse.js +159 -103
  185. package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
  186. package/dist/es/models/aiops/v4/error/SchemaValidationError.js +138 -95
  187. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
  188. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +115 -72
  189. package/dist/es/models/aiops/v4/stats/BoolList.d.ts +61 -0
  190. package/dist/es/models/aiops/v4/stats/BoolList.js +288 -0
  191. package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +61 -0
  192. package/dist/es/models/aiops/v4/stats/BoolVal.js +280 -0
  193. package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +61 -0
  194. package/dist/es/models/aiops/v4/stats/DoubleList.js +288 -0
  195. package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +61 -0
  196. package/dist/es/models/aiops/v4/stats/DoubleVal.js +280 -0
  197. package/dist/es/models/aiops/v4/stats/Entity.d.ts +57 -0
  198. package/dist/es/models/aiops/v4/stats/Entity.js +413 -0
  199. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +99 -0
  200. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +365 -0
  201. package/dist/es/models/aiops/v4/stats/IntList.d.ts +61 -0
  202. package/dist/es/models/aiops/v4/stats/IntList.js +288 -0
  203. package/dist/es/models/aiops/v4/stats/IntVal.d.ts +61 -0
  204. package/dist/es/models/aiops/v4/stats/IntVal.js +280 -0
  205. package/dist/es/models/aiops/v4/stats/Metric.d.ts +75 -0
  206. package/dist/es/models/aiops/v4/stats/Metric.js +312 -0
  207. package/dist/es/models/aiops/v4/stats/Point.d.ts +72 -0
  208. package/dist/es/models/aiops/v4/stats/Point.js +356 -0
  209. package/dist/es/models/aiops/v4/stats/StrList.d.ts +61 -0
  210. package/dist/es/models/aiops/v4/stats/StrList.js +288 -0
  211. package/dist/es/models/aiops/v4/stats/StrVal.d.ts +61 -0
  212. package/dist/es/models/aiops/v4/stats/StrVal.js +280 -0
  213. package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +71 -0
  214. package/dist/es/models/aiops/v4/stats/TimeSeries.js +326 -0
  215. package/dist/es/models/common/v1/config/Flag.d.ts +34 -27
  216. package/dist/es/models/common/v1/config/Flag.js +114 -65
  217. package/dist/es/models/common/v1/config/IPv4Address.d.ts +42 -27
  218. package/dist/es/models/common/v1/config/IPv4Address.js +112 -69
  219. package/dist/es/models/common/v1/config/KVPair.d.ts +37 -29
  220. package/dist/es/models/common/v1/config/KVPair.js +167 -98
  221. package/dist/es/models/common/v1/config/KVStringPair.d.ts +64 -0
  222. package/dist/es/models/common/v1/config/KVStringPair.js +318 -0
  223. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  224. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  225. package/dist/es/models/common/v1/config/Message.d.ts +45 -39
  226. package/dist/es/models/common/v1/config/Message.js +114 -81
  227. package/dist/es/models/common/v1/config/MessageSeverity.js +22 -35
  228. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +26 -23
  229. package/dist/es/models/common/v1/config/TenantAwareModel.js +99 -60
  230. package/dist/es/models/common/v1/response/ApiLink.d.ts +34 -31
  231. package/dist/es/models/common/v1/response/ApiLink.js +108 -71
  232. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +91 -47
  233. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +148 -108
  234. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
  235. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +126 -95
  236. package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  237. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
  238. package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
  239. package/dist/es/models/prism/v4/config/TaskReference.js +285 -0
  240. package/dist/es/models/validation/ValidationError.js +12 -19
  241. package/dist/es/models/validation/ValidationScopes.js +2 -7
  242. package/dist/es/utils/ValidationUtils.js +12 -18
  243. package/dist/lib/ApiClient.d.ts +33 -43
  244. package/dist/lib/ApiClient.js +764 -483
  245. package/dist/lib/Paginable.d.ts +9 -9
  246. package/dist/lib/Paginable.js +44 -64
  247. package/dist/lib/apis/scenarios-endpoints.d.ts +217 -0
  248. package/dist/lib/apis/scenarios-endpoints.js +675 -0
  249. package/dist/lib/apis/stats-endpoints.d.ts +102 -0
  250. package/dist/lib/apis/stats-endpoints.js +273 -0
  251. package/dist/lib/index.d.ts +191 -7
  252. package/dist/lib/index.js +754 -45
  253. package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +110 -0
  254. package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
  255. package/dist/lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts +19 -0
  256. package/dist/lib/models/aiops/v4/capacityplanning/CapacityUnit.js +85 -0
  257. package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +86 -0
  258. package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +340 -0
  259. package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.d.ts +19 -0
  260. package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +91 -0
  261. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +90 -87
  262. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +151 -145
  263. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
  264. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +241 -268
  265. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
  266. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +186 -87
  267. package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
  268. package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +116 -89
  269. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
  270. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +61 -58
  271. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
  272. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +116 -89
  273. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
  274. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +61 -58
  275. package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
  276. package/dist/lib/models/aiops/v4/common/ClusterType.js +79 -0
  277. package/dist/lib/models/aiops/v4/config/CalculateRunwayApiResponse.d.ts +99 -0
  278. package/dist/lib/models/aiops/v4/config/CalculateRunwayApiResponse.js +343 -0
  279. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +77 -0
  280. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +322 -0
  281. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
  282. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +85 -0
  283. package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +60 -0
  284. package/dist/lib/models/aiops/v4/config/CategoryDetail.js +315 -0
  285. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
  286. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +85 -0
  287. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +83 -0
  288. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +371 -0
  289. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
  290. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +79 -0
  291. package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +107 -0
  292. package/dist/lib/models/aiops/v4/config/ClusterConfig.js +329 -0
  293. package/dist/lib/models/aiops/v4/config/CreateIgnoreWindowApiResponse.d.ts +99 -0
  294. package/dist/lib/models/aiops/v4/config/CreateIgnoreWindowApiResponse.js +343 -0
  295. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +99 -0
  296. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +343 -0
  297. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +102 -0
  298. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +343 -0
  299. package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +205 -0
  300. package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +673 -0
  301. package/dist/lib/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.d.ts +98 -0
  302. package/dist/lib/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.js +345 -0
  303. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +98 -0
  304. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +345 -0
  305. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +98 -0
  306. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +345 -0
  307. package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +68 -0
  308. package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +454 -0
  309. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +101 -0
  310. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +365 -0
  311. package/dist/lib/models/aiops/v4/config/EntityType.d.ts +37 -0
  312. package/dist/lib/models/aiops/v4/config/EntityType.js +275 -0
  313. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +99 -0
  314. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +365 -0
  315. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +99 -0
  316. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +343 -0
  317. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +99 -0
  318. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +343 -0
  319. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +99 -0
  320. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +343 -0
  321. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +99 -0
  322. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +343 -0
  323. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +98 -0
  324. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +342 -0
  325. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +99 -0
  326. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +343 -0
  327. package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
  328. package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +460 -0
  329. package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +20 -0
  330. package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +173 -0
  331. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +100 -0
  332. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +370 -0
  333. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +100 -0
  334. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +370 -0
  335. package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +182 -0
  336. package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +667 -0
  337. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
  338. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +79 -0
  339. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +83 -0
  340. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +371 -0
  341. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
  342. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +79 -0
  343. package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +143 -0
  344. package/dist/lib/models/aiops/v4/config/NodeConfig.js +490 -0
  345. package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
  346. package/dist/lib/models/aiops/v4/config/NodeSource.js +91 -0
  347. package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
  348. package/dist/lib/models/aiops/v4/config/PolicyType.js +85 -0
  349. package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
  350. package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +85 -0
  351. package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +126 -0
  352. package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +451 -0
  353. package/dist/lib/models/aiops/v4/config/Runway.d.ts +130 -0
  354. package/dist/lib/models/aiops/v4/config/Runway.js +479 -0
  355. package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +77 -0
  356. package/dist/lib/models/aiops/v4/config/RunwayParams.js +323 -0
  357. package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +14 -0
  358. package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +159 -0
  359. package/dist/lib/models/aiops/v4/config/Scenario.d.ts +178 -0
  360. package/dist/lib/models/aiops/v4/config/Scenario.js +579 -0
  361. package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
  362. package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +156 -0
  363. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +106 -0
  364. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +403 -0
  365. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
  366. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +162 -0
  367. package/dist/lib/models/aiops/v4/config/Simulation.d.ts +56 -0
  368. package/dist/lib/models/aiops/v4/config/Simulation.js +317 -0
  369. package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
  370. package/dist/lib/models/aiops/v4/config/SimulationProjection.js +153 -0
  371. package/dist/lib/models/aiops/v4/config/Source.d.ts +37 -0
  372. package/dist/lib/models/aiops/v4/config/Source.js +275 -0
  373. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +106 -0
  374. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +365 -0
  375. package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +118 -0
  376. package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +446 -0
  377. package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
  378. package/dist/lib/models/aiops/v4/config/SqlProfileType.js +91 -0
  379. package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
  380. package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +85 -0
  381. package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +110 -0
  382. package/dist/lib/models/aiops/v4/config/SqlWorkload.js +415 -0
  383. package/dist/lib/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.d.ts +99 -0
  384. package/dist/lib/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.js +343 -0
  385. package/dist/lib/models/aiops/v4/config/UpdatePolicyTaskApiResponse.d.ts +99 -0
  386. package/dist/lib/models/aiops/v4/config/UpdatePolicyTaskApiResponse.js +343 -0
  387. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +99 -0
  388. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +343 -0
  389. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +99 -0
  390. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +365 -0
  391. package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +64 -0
  392. package/dist/lib/models/aiops/v4/config/ValueRange.js +312 -0
  393. package/dist/lib/models/aiops/v4/config/ValueType.d.ts +19 -0
  394. package/dist/lib/models/aiops/v4/config/ValueType.js +121 -0
  395. package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
  396. package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +103 -0
  397. package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
  398. package/dist/lib/models/aiops/v4/config/VdiUserType.js +97 -0
  399. package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
  400. package/dist/lib/models/aiops/v4/config/VdiVendor.js +85 -0
  401. package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +109 -0
  402. package/dist/lib/models/aiops/v4/config/VdiWorkload.js +412 -0
  403. package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
  404. package/dist/lib/models/aiops/v4/config/Vendor.js +127 -0
  405. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +94 -0
  406. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +370 -0
  407. package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +80 -0
  408. package/dist/lib/models/aiops/v4/config/VmWorkload.js +335 -0
  409. package/dist/lib/models/aiops/v4/config/Workload.d.ts +122 -0
  410. package/dist/lib/models/aiops/v4/config/Workload.js +447 -0
  411. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
  412. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +85 -0
  413. package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +151 -0
  414. package/dist/lib/models/aiops/v4/config/XenWorkload.js +532 -0
  415. package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +161 -0
  416. package/dist/lib/models/aiops/v4/config/XfitPolicy.js +589 -0
  417. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +16 -0
  418. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +167 -0
  419. package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +69 -51
  420. package/dist/lib/models/aiops/v4/error/AppMessage.js +140 -103
  421. package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
  422. package/dist/lib/models/aiops/v4/error/ErrorResponse.js +159 -103
  423. package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
  424. package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +138 -95
  425. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
  426. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +115 -72
  427. package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +61 -0
  428. package/dist/lib/models/aiops/v4/stats/BoolList.js +288 -0
  429. package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +61 -0
  430. package/dist/lib/models/aiops/v4/stats/BoolVal.js +280 -0
  431. package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +61 -0
  432. package/dist/lib/models/aiops/v4/stats/DoubleList.js +288 -0
  433. package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +61 -0
  434. package/dist/lib/models/aiops/v4/stats/DoubleVal.js +280 -0
  435. package/dist/lib/models/aiops/v4/stats/Entity.d.ts +57 -0
  436. package/dist/lib/models/aiops/v4/stats/Entity.js +413 -0
  437. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +99 -0
  438. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +365 -0
  439. package/dist/lib/models/aiops/v4/stats/IntList.d.ts +61 -0
  440. package/dist/lib/models/aiops/v4/stats/IntList.js +288 -0
  441. package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +61 -0
  442. package/dist/lib/models/aiops/v4/stats/IntVal.js +280 -0
  443. package/dist/lib/models/aiops/v4/stats/Metric.d.ts +75 -0
  444. package/dist/lib/models/aiops/v4/stats/Metric.js +312 -0
  445. package/dist/lib/models/aiops/v4/stats/Point.d.ts +72 -0
  446. package/dist/lib/models/aiops/v4/stats/Point.js +356 -0
  447. package/dist/lib/models/aiops/v4/stats/StrList.d.ts +61 -0
  448. package/dist/lib/models/aiops/v4/stats/StrList.js +288 -0
  449. package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +61 -0
  450. package/dist/lib/models/aiops/v4/stats/StrVal.js +280 -0
  451. package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +71 -0
  452. package/dist/lib/models/aiops/v4/stats/TimeSeries.js +326 -0
  453. package/dist/lib/models/common/v1/config/Flag.d.ts +34 -27
  454. package/dist/lib/models/common/v1/config/Flag.js +114 -65
  455. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +42 -27
  456. package/dist/lib/models/common/v1/config/IPv4Address.js +112 -69
  457. package/dist/lib/models/common/v1/config/KVPair.d.ts +37 -29
  458. package/dist/lib/models/common/v1/config/KVPair.js +167 -98
  459. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +64 -0
  460. package/dist/lib/models/common/v1/config/KVStringPair.js +318 -0
  461. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  462. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  463. package/dist/lib/models/common/v1/config/Message.d.ts +45 -39
  464. package/dist/lib/models/common/v1/config/Message.js +114 -81
  465. package/dist/lib/models/common/v1/config/MessageSeverity.js +22 -35
  466. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +26 -23
  467. package/dist/lib/models/common/v1/config/TenantAwareModel.js +99 -60
  468. package/dist/lib/models/common/v1/response/ApiLink.d.ts +34 -31
  469. package/dist/lib/models/common/v1/response/ApiLink.js +108 -71
  470. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +91 -47
  471. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +148 -108
  472. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
  473. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +126 -95
  474. package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
  475. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
  476. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
  477. package/dist/lib/models/prism/v4/config/TaskReference.js +285 -0
  478. package/dist/lib/models/validation/ValidationError.js +12 -19
  479. package/dist/lib/models/validation/ValidationScopes.js +2 -7
  480. package/dist/lib/utils/ValidationUtils.js +12 -18
  481. package/package.json +7 -9
  482. package/dist/es/apis/cluster-endpoints.d.ts +0 -48
  483. package/dist/es/apis/cluster-endpoints.js +0 -145
  484. package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
  485. package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -339
  486. package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
  487. package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -351
  488. package/dist/lib/apis/cluster-endpoints.d.ts +0 -48
  489. package/dist/lib/apis/cluster-endpoints.js +0 -145
  490. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
  491. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -339
  492. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
  493. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -351
@@ -1,81 +1,87 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports["default"] = void 0;
9
-
10
7
  var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
11
-
8
+ var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
12
9
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
13
-
14
10
  var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
15
-
16
11
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
17
-
18
12
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
19
-
20
13
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
25
-
26
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
-
28
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
-
30
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
31
-
32
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
33
-
34
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
-
36
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
-
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
-
40
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
-
42
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
43
-
44
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
-
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); }
37
+ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
38
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
39
+ * Nutanix AIOps APIs
40
+ *
41
+ * OpenAPI spec version: 4.0.1
42
+ *
43
+ * NOTE: This class is auto generated by the Open API Dev Platform.
44
+ *
45
+ * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
46
+ *
47
+ * Do not edit the class manually.
48
+ *
49
+ */
50
50
  /**
51
51
  * The ClusterMetrics model module.
52
52
  * @module Ntnx/ClusterMetrics
53
- * @version 4.0.1-alpha-1
53
+ * @version 4.0.1
54
54
  * @class ClusterMetrics
55
+ * @extends ExternalizableAbstractModel
55
56
  */
56
- var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
57
- _inherits(ClusterMetrics, _ExternalizableAbstra);
58
-
59
- var _super = _createSuper(ClusterMetrics);
60
-
57
+ var _ClusterMetrics_brand = /*#__PURE__*/new WeakSet();
58
+ var ClusterMetrics = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
61
59
  /**
62
60
  * Constructs a new <code>ClusterMetrics</code>.
63
61
  * @alias module:Ntnx/ClusterMetrics
64
62
  * @extends module:Ntnx/ExternalizableAbstractModel
65
- */
63
+ */
66
64
  function ClusterMetrics() {
67
65
  var _this;
68
-
69
66
  _classCallCheck(this, ClusterMetrics);
70
-
71
- _this = _super.call(this);
67
+ _this = _callSuper(this, ClusterMetrics);
68
+ /*
69
+ * toJson method for a map type which supports map with primitive keys and values of object types
70
+ * @param {Object} obj
71
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
72
+ * Otherwise, just returns the input object.
73
+ */
74
+ _classPrivateMethodInitSpec(_this, _ClusterMetrics_brand);
72
75
  _this.$objectType = "aiops.v4.clusterMetrics.ClusterMetrics";
76
+ /** @type {object<string, any>} */
73
77
  _this.$reserved = {
74
- '$fqObjectType': "aiops.v4.r0.a1.clusterMetrics.ClusterMetrics"
78
+ '$fv': "v4.r0"
75
79
  };
80
+ /** @type {object<string, any>} */
76
81
  _this.$unknownFields = {};
77
82
  return _this;
78
83
  }
84
+
79
85
  /**
80
86
  * Constructs a <code>ClusterMetrics</code> from a plain JavaScript object, optionally creating a new instance.
81
87
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
@@ -84,481 +90,480 @@ var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
84
90
  * @param callFromChild {Boolean} Flag to recognise calling instance
85
91
  * @return {module:Ntnx/ClusterMetrics} The populated <code>ClusterMetrics</code> instance.
86
92
  */
87
-
88
-
89
- _createClass(ClusterMetrics, [{
93
+ _inherits(ClusterMetrics, _ExternalizableAbstra);
94
+ return _createClass(ClusterMetrics, [{
90
95
  key: "getClusterName",
91
96
  value:
92
97
  /**
93
98
  * Returns Name of the cluster
94
- * @return {}
99
+ * @return {string}
95
100
  */
96
101
  function getClusterName() {
97
102
  return this.clusterName;
98
103
  }
104
+
99
105
  /**
100
106
  * Sets Name of the cluster
101
- * @param {} clusterName Name of the cluster
107
+ * @param {string} clusterName Name of the cluster
102
108
  */
103
-
104
109
  }, {
105
110
  key: "setClusterName",
106
111
  value: function setClusterName(clusterName) {
107
112
  this.clusterName = clusterName;
108
113
  }
114
+
109
115
  /**
110
- * @return {}
116
+ * @return {IPv4Address}
111
117
  */
112
-
113
118
  }, {
114
119
  key: "getExternalIP",
115
120
  value: function getExternalIP() {
116
121
  return this.externalIP;
117
122
  }
123
+
118
124
  /**
119
- * @param {} externalIP
125
+ * @param {IPv4Address} externalIP
120
126
  */
121
-
122
127
  }, {
123
128
  key: "setExternalIP",
124
129
  value: function setExternalIP(externalIP) {
125
130
  this.externalIP = externalIP;
126
131
  }
132
+
127
133
  /**
128
134
  * Returns CVM IPs of the nodes in the cluster
129
- * @return {}
135
+ * @return {IPv4Address[]}
130
136
  */
131
-
132
137
  }, {
133
138
  key: "getCvmIPs",
134
139
  value: function getCvmIPs() {
135
140
  return this.cvmIPs;
136
141
  }
142
+
137
143
  /**
138
144
  * Sets CVM IPs of the nodes in the cluster
139
- * @param {} cvmIPs CVM IPs of the nodes in the cluster
145
+ * @param {IPv4Address[]} cvmIPs CVM IPs of the nodes in the cluster
140
146
  */
141
-
142
147
  }, {
143
148
  key: "setCvmIPs",
144
149
  value: function setCvmIPs(cvmIPs) {
145
150
  this.cvmIPs = cvmIPs;
146
151
  }
152
+
147
153
  /**
148
154
  * Returns Total memory size in bytes in the cluster
149
- * @return {}
155
+ * @return {Number}
150
156
  */
151
-
152
157
  }, {
153
158
  key: "getTotalMemorySizeBytes",
154
159
  value: function getTotalMemorySizeBytes() {
155
160
  return this.totalMemorySizeBytes;
156
161
  }
162
+
157
163
  /**
158
164
  * Sets Total memory size in bytes in the cluster
159
- * @param {} totalMemorySizeBytes Total memory size in bytes in the cluster
165
+ * @param {Number} totalMemorySizeBytes Total memory size in bytes in the cluster
160
166
  */
161
-
162
167
  }, {
163
168
  key: "setTotalMemorySizeBytes",
164
169
  value: function setTotalMemorySizeBytes(totalMemorySizeBytes) {
165
170
  this.totalMemorySizeBytes = totalMemorySizeBytes;
166
171
  }
172
+
167
173
  /**
168
174
  * Returns Total memory size in bytes currently being used by the active VMs
169
- * @return {}
175
+ * @return {Number}
170
176
  */
171
-
172
177
  }, {
173
178
  key: "getCurrentMemoryUsageSizeBytes",
174
179
  value: function getCurrentMemoryUsageSizeBytes() {
175
180
  return this.currentMemoryUsageSizeBytes;
176
181
  }
182
+
177
183
  /**
178
184
  * Sets Total memory size in bytes currently being used by the active VMs
179
- * @param {} currentMemoryUsageSizeBytes 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
180
186
  */
181
-
182
187
  }, {
183
188
  key: "setCurrentMemoryUsageSizeBytes",
184
189
  value: function setCurrentMemoryUsageSizeBytes(currentMemoryUsageSizeBytes) {
185
190
  this.currentMemoryUsageSizeBytes = currentMemoryUsageSizeBytes;
186
191
  }
192
+
187
193
  /**
188
194
  * Returns Total memory size in bytes provisioned for all the VMs
189
- * @return {}
195
+ * @return {Number}
190
196
  */
191
-
192
197
  }, {
193
198
  key: "getProvisionedMemoryUsageBytes",
194
199
  value: function getProvisionedMemoryUsageBytes() {
195
200
  return this.provisionedMemoryUsageBytes;
196
201
  }
202
+
197
203
  /**
198
204
  * Sets Total memory size in bytes provisioned for all the VMs
199
- * @param {} provisionedMemoryUsageBytes Total memory size in bytes provisioned for all the VMs
205
+ * @param {Number} provisionedMemoryUsageBytes Total memory size in bytes provisioned for all the VMs
200
206
  */
201
-
202
207
  }, {
203
208
  key: "setProvisionedMemoryUsageBytes",
204
209
  value: function setProvisionedMemoryUsageBytes(provisionedMemoryUsageBytes) {
205
210
  this.provisionedMemoryUsageBytes = provisionedMemoryUsageBytes;
206
211
  }
212
+
207
213
  /**
208
214
  * Returns Largest possible memory size in bytes for the next VM that can be added
209
- * @return {}
215
+ * @return {Number}
210
216
  */
211
-
212
217
  }, {
213
218
  key: "getMaxVmMemorySizeBytes",
214
219
  value: function getMaxVmMemorySizeBytes() {
215
220
  return this.maxVmMemorySizeBytes;
216
221
  }
222
+
217
223
  /**
218
224
  * Sets Largest possible memory size in bytes for the next VM that can be added
219
- * @param {} maxVmMemorySizeBytes 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
220
226
  */
221
-
222
227
  }, {
223
228
  key: "setMaxVmMemorySizeBytes",
224
229
  value: function setMaxVmMemorySizeBytes(maxVmMemorySizeBytes) {
225
230
  this.maxVmMemorySizeBytes = maxVmMemorySizeBytes;
226
231
  }
232
+
227
233
  /**
228
234
  * Returns Total amount of available memory in bytes for deploying new VMs
229
- * @return {}
235
+ * @return {Number}
230
236
  */
231
-
232
237
  }, {
233
238
  key: "getAvailableMemorySizeBytes",
234
239
  value: function getAvailableMemorySizeBytes() {
235
240
  return this.availableMemorySizeBytes;
236
241
  }
242
+
237
243
  /**
238
244
  * Sets Total amount of available memory in bytes for deploying new VMs
239
- * @param {} availableMemorySizeBytes 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
240
246
  */
241
-
242
247
  }, {
243
248
  key: "setAvailableMemorySizeBytes",
244
249
  value: function setAvailableMemorySizeBytes(availableMemorySizeBytes) {
245
250
  this.availableMemorySizeBytes = availableMemorySizeBytes;
246
251
  }
252
+
247
253
  /**
248
254
  * Returns Powered OFF VM with the largest memory size
249
- * @return {}
255
+ * @return {Number}
250
256
  */
251
-
252
257
  }, {
253
258
  key: "getLargestPoweredOffVMMemory",
254
259
  value: function getLargestPoweredOffVMMemory() {
255
260
  return this.largestPoweredOffVMMemory;
256
261
  }
262
+
257
263
  /**
258
264
  * Sets Powered OFF VM with the largest memory size
259
- * @param {} largestPoweredOffVMMemory Powered OFF VM with the largest memory size
265
+ * @param {Number} largestPoweredOffVMMemory Powered OFF VM with the largest memory size
260
266
  */
261
-
262
267
  }, {
263
268
  key: "setLargestPoweredOffVMMemory",
264
269
  value: function setLargestPoweredOffVMMemory(largestPoweredOffVMMemory) {
265
270
  this.largestPoweredOffVMMemory = largestPoweredOffVMMemory;
266
271
  }
272
+
267
273
  /**
268
274
  * Returns Total number of vCPUs in the cluster
269
- * @return {}
275
+ * @return {Number}
270
276
  */
271
-
272
277
  }, {
273
278
  key: "getTotalVCpuCount",
274
279
  value: function getTotalVCpuCount() {
275
280
  return this.totalVCpuCount;
276
281
  }
282
+
277
283
  /**
278
284
  * Sets Total number of vCPUs in the cluster
279
- * @param {} totalVCpuCount Total number of vCPUs in the cluster
285
+ * @param {Number} totalVCpuCount Total number of vCPUs in the cluster
280
286
  */
281
-
282
287
  }, {
283
288
  key: "setTotalVCpuCount",
284
289
  value: function setTotalVCpuCount(totalVCpuCount) {
285
290
  this.totalVCpuCount = totalVCpuCount;
286
291
  }
292
+
287
293
  /**
288
294
  * Returns Total number of vCPUs currently being used by the active VMs
289
- * @return {}
295
+ * @return {Number}
290
296
  */
291
-
292
297
  }, {
293
298
  key: "getCurrentUsedVCpuCount",
294
299
  value: function getCurrentUsedVCpuCount() {
295
300
  return this.currentUsedVCpuCount;
296
301
  }
302
+
297
303
  /**
298
304
  * Sets Total number of vCPUs currently being used by the active VMs
299
- * @param {} currentUsedVCpuCount 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
300
306
  */
301
-
302
307
  }, {
303
308
  key: "setCurrentUsedVCpuCount",
304
309
  value: function setCurrentUsedVCpuCount(currentUsedVCpuCount) {
305
310
  this.currentUsedVCpuCount = currentUsedVCpuCount;
306
311
  }
312
+
307
313
  /**
308
314
  * Returns Total number of vCPUs provisioned for all the VMs
309
- * @return {}
315
+ * @return {Number}
310
316
  */
311
-
312
317
  }, {
313
318
  key: "getProvisionedVCpuCount",
314
319
  value: function getProvisionedVCpuCount() {
315
320
  return this.provisionedVCpuCount;
316
321
  }
322
+
317
323
  /**
318
324
  * Sets Total number of vCPUs provisioned for all the VMs
319
- * @param {} provisionedVCpuCount Total number of vCPUs provisioned for all the VMs
325
+ * @param {Number} provisionedVCpuCount Total number of vCPUs provisioned for all the VMs
320
326
  */
321
-
322
327
  }, {
323
328
  key: "setProvisionedVCpuCount",
324
329
  value: function setProvisionedVCpuCount(provisionedVCpuCount) {
325
330
  this.provisionedVCpuCount = provisionedVCpuCount;
326
331
  }
332
+
327
333
  /**
328
334
  * Returns Largest possible VM size in vCPUs for the next VM that can be added
329
- * @return {}
335
+ * @return {Number}
330
336
  */
331
-
332
337
  }, {
333
338
  key: "getMaxVmVCpuSize",
334
339
  value: function getMaxVmVCpuSize() {
335
340
  return this.maxVmVCpuSize;
336
341
  }
342
+
337
343
  /**
338
344
  * Sets Largest possible VM size in vCPUs for the next VM that can be added
339
- * @param {} maxVmVCpuSize 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
340
346
  */
341
-
342
347
  }, {
343
348
  key: "setMaxVmVCpuSize",
344
349
  value: function setMaxVmVCpuSize(maxVmVCpuSize) {
345
350
  this.maxVmVCpuSize = maxVmVCpuSize;
346
351
  }
352
+
347
353
  /**
348
354
  * Returns Total number of available VMs for deploying new VMs
349
- * @return {}
355
+ * @return {Number}
350
356
  */
351
-
352
357
  }, {
353
358
  key: "getAvailableVCpuCount",
354
359
  value: function getAvailableVCpuCount() {
355
360
  return this.availableVCpuCount;
356
361
  }
362
+
357
363
  /**
358
364
  * Sets Total number of available VMs for deploying new VMs
359
- * @param {} availableVCpuCount Total number of available VMs for deploying new VMs
365
+ * @param {Number} availableVCpuCount Total number of available VMs for deploying new VMs
360
366
  */
361
-
362
367
  }, {
363
368
  key: "setAvailableVCpuCount",
364
369
  value: function setAvailableVCpuCount(availableVCpuCount) {
365
370
  this.availableVCpuCount = availableVCpuCount;
366
371
  }
372
+
367
373
  /**
368
374
  * Returns Largest powered OFF VM in terms of vCPU count
369
- * @return {}
375
+ * @return {Number}
370
376
  */
371
-
372
377
  }, {
373
378
  key: "getLargestPoweredOffVMVCpu",
374
379
  value: function getLargestPoweredOffVMVCpu() {
375
380
  return this.largestPoweredOffVMVCpu;
376
381
  }
382
+
377
383
  /**
378
384
  * Sets Largest powered OFF VM in terms of vCPU count
379
- * @param {} largestPoweredOffVMVCpu Largest powered OFF VM in terms of vCPU count
385
+ * @param {Number} largestPoweredOffVMVCpu Largest powered OFF VM in terms of vCPU count
380
386
  */
381
-
382
387
  }, {
383
388
  key: "setLargestPoweredOffVMVCpu",
384
389
  value: function setLargestPoweredOffVMVCpu(largestPoweredOffVMVCpu) {
385
390
  this.largestPoweredOffVMVCpu = largestPoweredOffVMVCpu;
386
391
  }
392
+
387
393
  /**
388
394
  * Returns Total amount of CPU in hertz in the cluster
389
- * @return {}
395
+ * @return {Number}
390
396
  */
391
-
392
397
  }, {
393
398
  key: "getTotalCpuHz",
394
399
  value: function getTotalCpuHz() {
395
400
  return this.totalCpuHz;
396
401
  }
402
+
397
403
  /**
398
404
  * Sets Total amount of CPU in hertz in the cluster
399
- * @param {} totalCpuHz Total amount of CPU in hertz in the cluster
405
+ * @param {Number} totalCpuHz Total amount of CPU in hertz in the cluster
400
406
  */
401
-
402
407
  }, {
403
408
  key: "setTotalCpuHz",
404
409
  value: function setTotalCpuHz(totalCpuHz) {
405
410
  this.totalCpuHz = totalCpuHz;
406
411
  }
412
+
407
413
  /**
408
414
  * Returns Total amount of CPU in hertz currently being used by the active VMs
409
- * @return {}
415
+ * @return {Number}
410
416
  */
411
-
412
417
  }, {
413
418
  key: "getCurrentUsedCpuHz",
414
419
  value: function getCurrentUsedCpuHz() {
415
420
  return this.currentUsedCpuHz;
416
421
  }
422
+
417
423
  /**
418
424
  * Sets Total amount of CPU in hertz currently being used by the active VMs
419
- * @param {} currentUsedCpuHz 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
420
426
  */
421
-
422
427
  }, {
423
428
  key: "setCurrentUsedCpuHz",
424
429
  value: function setCurrentUsedCpuHz(currentUsedCpuHz) {
425
430
  this.currentUsedCpuHz = currentUsedCpuHz;
426
431
  }
432
+
427
433
  /**
428
434
  * Returns Total amount of CPU in hertz provisioned for all the VMs
429
- * @return {}
435
+ * @return {Number}
430
436
  */
431
-
432
437
  }, {
433
438
  key: "getProvisionedCpuHz",
434
439
  value: function getProvisionedCpuHz() {
435
440
  return this.provisionedCpuHz;
436
441
  }
442
+
437
443
  /**
438
444
  * Sets Total amount of CPU in hertz provisioned for all the VMs
439
- * @param {} provisionedCpuHz 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
440
446
  */
441
-
442
447
  }, {
443
448
  key: "setProvisionedCpuHz",
444
449
  value: function setProvisionedCpuHz(provisionedCpuHz) {
445
450
  this.provisionedCpuHz = provisionedCpuHz;
446
451
  }
452
+
447
453
  /**
448
454
  * Returns Total storage in bytes capacity in the cluster
449
- * @return {}
455
+ * @return {Number}
450
456
  */
451
-
452
457
  }, {
453
458
  key: "getTotalStorageCapacityRawBytes",
454
459
  value: function getTotalStorageCapacityRawBytes() {
455
460
  return this.totalStorageCapacityRawBytes;
456
461
  }
462
+
457
463
  /**
458
464
  * Sets Total storage in bytes capacity in the cluster
459
- * @param {} totalStorageCapacityRawBytes Total storage in bytes capacity in the cluster
465
+ * @param {Number} totalStorageCapacityRawBytes Total storage in bytes capacity in the cluster
460
466
  */
461
-
462
467
  }, {
463
468
  key: "setTotalStorageCapacityRawBytes",
464
469
  value: function setTotalStorageCapacityRawBytes(totalStorageCapacityRawBytes) {
465
470
  this.totalStorageCapacityRawBytes = totalStorageCapacityRawBytes;
466
471
  }
472
+
467
473
  /**
468
474
  * Returns Total logical storage in bytes capacity after considering RF
469
- * @return {}
475
+ * @return {Number}
470
476
  */
471
-
472
477
  }, {
473
478
  key: "getTotalStorageCapacityLogicalBytes",
474
479
  value: function getTotalStorageCapacityLogicalBytes() {
475
480
  return this.totalStorageCapacityLogicalBytes;
476
481
  }
482
+
477
483
  /**
478
484
  * Sets Total logical storage in bytes capacity after considering RF
479
- * @param {} totalStorageCapacityLogicalBytes Total logical storage in bytes capacity after considering RF
485
+ * @param {Number} totalStorageCapacityLogicalBytes Total logical storage in bytes capacity after considering RF
480
486
  */
481
-
482
487
  }, {
483
488
  key: "setTotalStorageCapacityLogicalBytes",
484
489
  value: function setTotalStorageCapacityLogicalBytes(totalStorageCapacityLogicalBytes) {
485
490
  this.totalStorageCapacityLogicalBytes = totalStorageCapacityLogicalBytes;
486
491
  }
492
+
487
493
  /**
488
494
  * Returns Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
489
- * @return {}
495
+ * @return {Number}
490
496
  */
491
-
492
497
  }, {
493
498
  key: "getTotalStorageCapacityLogicalWithSavingsBytes",
494
499
  value: function getTotalStorageCapacityLogicalWithSavingsBytes() {
495
500
  return this.totalStorageCapacityLogicalWithSavingsBytes;
496
501
  }
502
+
497
503
  /**
498
504
  * Sets Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
499
- * @param {} totalStorageCapacityLogicalWithSavingsBytes 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
500
506
  */
501
-
502
507
  }, {
503
508
  key: "setTotalStorageCapacityLogicalWithSavingsBytes",
504
509
  value: function setTotalStorageCapacityLogicalWithSavingsBytes(totalStorageCapacityLogicalWithSavingsBytes) {
505
510
  this.totalStorageCapacityLogicalWithSavingsBytes = totalStorageCapacityLogicalWithSavingsBytes;
506
511
  }
512
+
507
513
  /**
508
514
  * Returns Total raw storage usage by the cluster
509
- * @return {}
515
+ * @return {Number}
510
516
  */
511
-
512
517
  }, {
513
518
  key: "getTotalStorageUsageBytes",
514
519
  value: function getTotalStorageUsageBytes() {
515
520
  return this.totalStorageUsageBytes;
516
521
  }
522
+
517
523
  /**
518
524
  * Sets Total raw storage usage by the cluster
519
- * @param {} totalStorageUsageBytes Total raw storage usage by the cluster
525
+ * @param {Number} totalStorageUsageBytes Total raw storage usage by the cluster
520
526
  */
521
-
522
527
  }, {
523
528
  key: "setTotalStorageUsageBytes",
524
529
  value: function setTotalStorageUsageBytes(totalStorageUsageBytes) {
525
530
  this.totalStorageUsageBytes = totalStorageUsageBytes;
526
531
  }
532
+
527
533
  /**
528
534
  * Returns Total raw storage bytes still available in the cluster
529
- * @return {}
535
+ * @return {Number}
530
536
  */
531
-
532
537
  }, {
533
538
  key: "getTotalStorageAvailableBytes",
534
539
  value: function getTotalStorageAvailableBytes() {
535
540
  return this.totalStorageAvailableBytes;
536
541
  }
542
+
537
543
  /**
538
544
  * Sets Total raw storage bytes still available in the cluster
539
- * @param {} totalStorageAvailableBytes Total raw storage bytes still available in the cluster
545
+ * @param {Number} totalStorageAvailableBytes Total raw storage bytes still available in the cluster
540
546
  */
541
-
542
547
  }, {
543
548
  key: "setTotalStorageAvailableBytes",
544
549
  value: function setTotalStorageAvailableBytes(totalStorageAvailableBytes) {
545
550
  this.totalStorageAvailableBytes = totalStorageAvailableBytes;
546
551
  }
552
+
547
553
  /**
548
554
  * Returns Total logical storage bytes still available in the cluster
549
- * @return {}
555
+ * @return {Number}
550
556
  */
551
-
552
557
  }, {
553
558
  key: "getTotalStorageAvailableLogicalBytes",
554
559
  value: function getTotalStorageAvailableLogicalBytes() {
555
560
  return this.totalStorageAvailableLogicalBytes;
556
561
  }
562
+
557
563
  /**
558
564
  * Sets Total logical storage bytes still available in the cluster
559
- * @param {} totalStorageAvailableLogicalBytes Total logical storage bytes still available in the cluster
565
+ * @param {Number} totalStorageAvailableLogicalBytes Total logical storage bytes still available in the cluster
560
566
  */
561
-
562
567
  }, {
563
568
  key: "setTotalStorageAvailableLogicalBytes",
564
569
  value: function setTotalStorageAvailableLogicalBytes(totalStorageAvailableLogicalBytes) {
@@ -632,14 +637,13 @@ var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
632
637
  '$unknownFields': this.get$UnknownFields()
633
638
  });
634
639
  }
635
-
636
- 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({}, typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
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 ? {
637
641
  'clusterName': this.getClusterName()
638
642
  } : {}), typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
639
- 'externalIP': this.getExternalIP().toJson()
643
+ 'externalIP': this.getExternalIP().toJson(false)
640
644
  } : {}), typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
641
645
  'cvmIPs': this.getCvmIPs().map(function (item) {
642
- return item.toJson();
646
+ return item.toJson(false);
643
647
  })
644
648
  } : {}), typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
645
649
  'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
@@ -683,12 +687,6 @@ var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
683
687
  'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
684
688
  } : {}), typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
685
689
  'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
686
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
687
- 'extId': this.getExtId()
688
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
689
- 'links': this.getLinks().map(function (item) {
690
- return item.toJson();
691
- })
692
690
  } : {}), {}, {
693
691
  '$reserved': this.get$Reserved(),
694
692
  '$objectType': this.get$ObjectType(),
@@ -699,9 +697,7 @@ var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
699
697
  key: "validate",
700
698
  value: function validate(scope, properties) {
701
699
  var _this2 = this;
702
-
703
700
  var propList = [];
704
-
705
701
  if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
706
702
  //cases validate() and validate(scope)
707
703
  propList = [];
@@ -713,12 +709,10 @@ var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
713
709
  //case validate(scope, properties)
714
710
  propList = arguments[1];
715
711
  }
716
-
717
712
  var res = [];
718
713
  var err = null;
719
714
  propList.forEach(function (property) {
720
715
  err = _this2.validateProperty(property, scope);
721
-
722
716
  if (err) {
723
717
  res.push(err);
724
718
  }
@@ -739,443 +733,422 @@ var ClusterMetrics = /*#__PURE__*/function (_ExternalizableAbstra) {
739
733
  return new _ValidationError["default"]("clusterName", "undefined or null");
740
734
  }
741
735
  }
742
-
743
736
  if (property === "externalIP") {
744
737
  if (typeof this.externalIP === 'undefined' || this.externalIP === null) {
745
738
  return new _ValidationError["default"]("externalIP", "undefined or null");
746
739
  }
747
740
  }
748
-
749
741
  if (property === "cvmIPs") {
750
742
  if (typeof this.cvmIPs === 'undefined' || this.cvmIPs === null) {
751
743
  return new _ValidationError["default"]("cvmIPs", "undefined or null");
752
744
  }
753
745
  }
754
-
755
746
  if (property === "totalMemorySizeBytes") {
756
747
  if (typeof this.totalMemorySizeBytes === 'undefined' || this.totalMemorySizeBytes === null) {
757
748
  return new _ValidationError["default"]("totalMemorySizeBytes", "undefined or null");
758
749
  }
759
750
  }
760
-
761
751
  if (property === "currentMemoryUsageSizeBytes") {
762
752
  if (typeof this.currentMemoryUsageSizeBytes === 'undefined' || this.currentMemoryUsageSizeBytes === null) {
763
753
  return new _ValidationError["default"]("currentMemoryUsageSizeBytes", "undefined or null");
764
754
  }
765
755
  }
766
-
767
756
  if (property === "provisionedMemoryUsageBytes") {
768
757
  if (typeof this.provisionedMemoryUsageBytes === 'undefined' || this.provisionedMemoryUsageBytes === null) {
769
758
  return new _ValidationError["default"]("provisionedMemoryUsageBytes", "undefined or null");
770
759
  }
771
760
  }
772
-
773
761
  if (property === "maxVmMemorySizeBytes") {
774
762
  if (typeof this.maxVmMemorySizeBytes === 'undefined' || this.maxVmMemorySizeBytes === null) {
775
763
  return new _ValidationError["default"]("maxVmMemorySizeBytes", "undefined or null");
776
764
  }
777
765
  }
778
-
779
766
  if (property === "availableMemorySizeBytes") {
780
767
  if (typeof this.availableMemorySizeBytes === 'undefined' || this.availableMemorySizeBytes === null) {
781
768
  return new _ValidationError["default"]("availableMemorySizeBytes", "undefined or null");
782
769
  }
783
770
  }
784
-
785
771
  if (property === "largestPoweredOffVMMemory") {
786
772
  if (typeof this.largestPoweredOffVMMemory === 'undefined' || this.largestPoweredOffVMMemory === null) {
787
773
  return new _ValidationError["default"]("largestPoweredOffVMMemory", "undefined or null");
788
774
  }
789
775
  }
790
-
791
776
  if (property === "totalVCpuCount") {
792
777
  if (typeof this.totalVCpuCount === 'undefined' || this.totalVCpuCount === null) {
793
778
  return new _ValidationError["default"]("totalVCpuCount", "undefined or null");
794
779
  }
795
780
  }
796
-
797
781
  if (property === "currentUsedVCpuCount") {
798
782
  if (typeof this.currentUsedVCpuCount === 'undefined' || this.currentUsedVCpuCount === null) {
799
783
  return new _ValidationError["default"]("currentUsedVCpuCount", "undefined or null");
800
784
  }
801
785
  }
802
-
803
786
  if (property === "provisionedVCpuCount") {
804
787
  if (typeof this.provisionedVCpuCount === 'undefined' || this.provisionedVCpuCount === null) {
805
788
  return new _ValidationError["default"]("provisionedVCpuCount", "undefined or null");
806
789
  }
807
790
  }
808
-
809
791
  if (property === "maxVmVCpuSize") {
810
792
  if (typeof this.maxVmVCpuSize === 'undefined' || this.maxVmVCpuSize === null) {
811
793
  return new _ValidationError["default"]("maxVmVCpuSize", "undefined or null");
812
794
  }
813
795
  }
814
-
815
796
  if (property === "availableVCpuCount") {
816
797
  if (typeof this.availableVCpuCount === 'undefined' || this.availableVCpuCount === null) {
817
798
  return new _ValidationError["default"]("availableVCpuCount", "undefined or null");
818
799
  }
819
800
  }
820
-
821
801
  if (property === "largestPoweredOffVMVCpu") {
822
802
  if (typeof this.largestPoweredOffVMVCpu === 'undefined' || this.largestPoweredOffVMVCpu === null) {
823
803
  return new _ValidationError["default"]("largestPoweredOffVMVCpu", "undefined or null");
824
804
  }
825
805
  }
826
-
827
806
  if (property === "totalCpuHz") {
828
807
  if (typeof this.totalCpuHz === 'undefined' || this.totalCpuHz === null) {
829
808
  return new _ValidationError["default"]("totalCpuHz", "undefined or null");
830
809
  }
831
810
  }
832
-
833
811
  if (property === "currentUsedCpuHz") {
834
812
  if (typeof this.currentUsedCpuHz === 'undefined' || this.currentUsedCpuHz === null) {
835
813
  return new _ValidationError["default"]("currentUsedCpuHz", "undefined or null");
836
814
  }
837
815
  }
838
-
839
816
  if (property === "provisionedCpuHz") {
840
817
  if (typeof this.provisionedCpuHz === 'undefined' || this.provisionedCpuHz === null) {
841
818
  return new _ValidationError["default"]("provisionedCpuHz", "undefined or null");
842
819
  }
843
820
  }
844
-
845
821
  if (property === "totalStorageCapacityRawBytes") {
846
822
  if (typeof this.totalStorageCapacityRawBytes === 'undefined' || this.totalStorageCapacityRawBytes === null) {
847
823
  return new _ValidationError["default"]("totalStorageCapacityRawBytes", "undefined or null");
848
824
  }
849
825
  }
850
-
851
826
  if (property === "totalStorageCapacityLogicalBytes") {
852
827
  if (typeof this.totalStorageCapacityLogicalBytes === 'undefined' || this.totalStorageCapacityLogicalBytes === null) {
853
828
  return new _ValidationError["default"]("totalStorageCapacityLogicalBytes", "undefined or null");
854
829
  }
855
830
  }
856
-
857
831
  if (property === "totalStorageCapacityLogicalWithSavingsBytes") {
858
832
  if (typeof this.totalStorageCapacityLogicalWithSavingsBytes === 'undefined' || this.totalStorageCapacityLogicalWithSavingsBytes === null) {
859
833
  return new _ValidationError["default"]("totalStorageCapacityLogicalWithSavingsBytes", "undefined or null");
860
834
  }
861
835
  }
862
-
863
836
  if (property === "totalStorageUsageBytes") {
864
837
  if (typeof this.totalStorageUsageBytes === 'undefined' || this.totalStorageUsageBytes === null) {
865
838
  return new _ValidationError["default"]("totalStorageUsageBytes", "undefined or null");
866
839
  }
867
840
  }
868
-
869
841
  if (property === "totalStorageAvailableBytes") {
870
842
  if (typeof this.totalStorageAvailableBytes === 'undefined' || this.totalStorageAvailableBytes === null) {
871
843
  return new _ValidationError["default"]("totalStorageAvailableBytes", "undefined or null");
872
844
  }
873
845
  }
874
-
875
846
  if (property === "totalStorageAvailableLogicalBytes") {
876
847
  if (typeof this.totalStorageAvailableLogicalBytes === 'undefined' || this.totalStorageAvailableLogicalBytes === null) {
877
848
  return new _ValidationError["default"]("totalStorageAvailableLogicalBytes", "undefined or null");
878
849
  }
879
850
  }
880
-
881
851
  return new _ValidationError["default"](property, "no such property exists");
882
852
  }
883
853
  }], [{
884
854
  key: "constructFromObject",
885
- value: function constructFromObject(data, obj) {
855
+ value: function constructFromObject(data) {
856
+ var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
886
857
  var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
887
858
  var items, item, i, itemArr, discriminator;
888
-
889
859
  if (data) {
890
860
  obj = obj || new ClusterMetrics();
891
-
892
861
  _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
893
-
894
862
  if (data.hasOwnProperty('clusterName') && data.clusterName !== null && data.clusterName !== undefined) {
895
863
  obj.setClusterName(data['clusterName']);
896
- delete data.clusterName;
897
864
  }
898
-
899
865
  if (data.hasOwnProperty('externalIP') && data.externalIP !== null && data.externalIP !== undefined) {
900
866
  obj.setExternalIP(_IPv4Address["default"].constructFromObject(data['externalIP']));
901
- delete data.externalIP;
902
867
  }
903
-
904
868
  if (data.hasOwnProperty('cvmIPs') && data.cvmIPs !== null && data.cvmIPs !== undefined) {
905
869
  itemArr = [];
906
870
  items = data.cvmIPs;
907
-
908
871
  for (i = 0; i < items.length; i++) {
909
872
  item = _IPv4Address["default"].constructFromObject(items[i], undefined);
910
873
  itemArr.push(item);
911
874
  }
912
-
913
875
  obj.setCvmIPs(itemArr);
914
- delete data.cvmIPs;
915
876
  }
916
-
917
877
  if (data.hasOwnProperty('totalMemorySizeBytes') && data.totalMemorySizeBytes !== null && data.totalMemorySizeBytes !== undefined) {
918
878
  obj.setTotalMemorySizeBytes(data['totalMemorySizeBytes']);
919
- delete data.totalMemorySizeBytes;
920
879
  }
921
-
922
880
  if (data.hasOwnProperty('currentMemoryUsageSizeBytes') && data.currentMemoryUsageSizeBytes !== null && data.currentMemoryUsageSizeBytes !== undefined) {
923
881
  obj.setCurrentMemoryUsageSizeBytes(data['currentMemoryUsageSizeBytes']);
924
- delete data.currentMemoryUsageSizeBytes;
925
882
  }
926
-
927
883
  if (data.hasOwnProperty('provisionedMemoryUsageBytes') && data.provisionedMemoryUsageBytes !== null && data.provisionedMemoryUsageBytes !== undefined) {
928
884
  obj.setProvisionedMemoryUsageBytes(data['provisionedMemoryUsageBytes']);
929
- delete data.provisionedMemoryUsageBytes;
930
885
  }
931
-
932
886
  if (data.hasOwnProperty('maxVmMemorySizeBytes') && data.maxVmMemorySizeBytes !== null && data.maxVmMemorySizeBytes !== undefined) {
933
887
  obj.setMaxVmMemorySizeBytes(data['maxVmMemorySizeBytes']);
934
- delete data.maxVmMemorySizeBytes;
935
888
  }
936
-
937
889
  if (data.hasOwnProperty('availableMemorySizeBytes') && data.availableMemorySizeBytes !== null && data.availableMemorySizeBytes !== undefined) {
938
890
  obj.setAvailableMemorySizeBytes(data['availableMemorySizeBytes']);
939
- delete data.availableMemorySizeBytes;
940
891
  }
941
-
942
892
  if (data.hasOwnProperty('largestPoweredOffVMMemory') && data.largestPoweredOffVMMemory !== null && data.largestPoweredOffVMMemory !== undefined) {
943
893
  obj.setLargestPoweredOffVMMemory(data['largestPoweredOffVMMemory']);
944
- delete data.largestPoweredOffVMMemory;
945
894
  }
946
-
947
895
  if (data.hasOwnProperty('totalVCpuCount') && data.totalVCpuCount !== null && data.totalVCpuCount !== undefined) {
948
896
  obj.setTotalVCpuCount(data['totalVCpuCount']);
949
- delete data.totalVCpuCount;
950
897
  }
951
-
952
898
  if (data.hasOwnProperty('currentUsedVCpuCount') && data.currentUsedVCpuCount !== null && data.currentUsedVCpuCount !== undefined) {
953
899
  obj.setCurrentUsedVCpuCount(data['currentUsedVCpuCount']);
954
- delete data.currentUsedVCpuCount;
955
900
  }
956
-
957
901
  if (data.hasOwnProperty('provisionedVCpuCount') && data.provisionedVCpuCount !== null && data.provisionedVCpuCount !== undefined) {
958
902
  obj.setProvisionedVCpuCount(data['provisionedVCpuCount']);
959
- delete data.provisionedVCpuCount;
960
903
  }
961
-
962
904
  if (data.hasOwnProperty('maxVmVCpuSize') && data.maxVmVCpuSize !== null && data.maxVmVCpuSize !== undefined) {
963
905
  obj.setMaxVmVCpuSize(data['maxVmVCpuSize']);
964
- delete data.maxVmVCpuSize;
965
906
  }
966
-
967
907
  if (data.hasOwnProperty('availableVCpuCount') && data.availableVCpuCount !== null && data.availableVCpuCount !== undefined) {
968
908
  obj.setAvailableVCpuCount(data['availableVCpuCount']);
969
- delete data.availableVCpuCount;
970
909
  }
971
-
972
910
  if (data.hasOwnProperty('largestPoweredOffVMVCpu') && data.largestPoweredOffVMVCpu !== null && data.largestPoweredOffVMVCpu !== undefined) {
973
911
  obj.setLargestPoweredOffVMVCpu(data['largestPoweredOffVMVCpu']);
974
- delete data.largestPoweredOffVMVCpu;
975
912
  }
976
-
977
913
  if (data.hasOwnProperty('totalCpuHz') && data.totalCpuHz !== null && data.totalCpuHz !== undefined) {
978
914
  obj.setTotalCpuHz(data['totalCpuHz']);
979
- delete data.totalCpuHz;
980
915
  }
981
-
982
916
  if (data.hasOwnProperty('currentUsedCpuHz') && data.currentUsedCpuHz !== null && data.currentUsedCpuHz !== undefined) {
983
917
  obj.setCurrentUsedCpuHz(data['currentUsedCpuHz']);
984
- delete data.currentUsedCpuHz;
985
918
  }
986
-
987
919
  if (data.hasOwnProperty('provisionedCpuHz') && data.provisionedCpuHz !== null && data.provisionedCpuHz !== undefined) {
988
920
  obj.setProvisionedCpuHz(data['provisionedCpuHz']);
989
- delete data.provisionedCpuHz;
990
921
  }
991
-
992
922
  if (data.hasOwnProperty('totalStorageCapacityRawBytes') && data.totalStorageCapacityRawBytes !== null && data.totalStorageCapacityRawBytes !== undefined) {
993
923
  obj.setTotalStorageCapacityRawBytes(data['totalStorageCapacityRawBytes']);
994
- delete data.totalStorageCapacityRawBytes;
995
924
  }
996
-
997
925
  if (data.hasOwnProperty('totalStorageCapacityLogicalBytes') && data.totalStorageCapacityLogicalBytes !== null && data.totalStorageCapacityLogicalBytes !== undefined) {
998
926
  obj.setTotalStorageCapacityLogicalBytes(data['totalStorageCapacityLogicalBytes']);
999
- delete data.totalStorageCapacityLogicalBytes;
1000
927
  }
1001
-
1002
928
  if (data.hasOwnProperty('totalStorageCapacityLogicalWithSavingsBytes') && data.totalStorageCapacityLogicalWithSavingsBytes !== null && data.totalStorageCapacityLogicalWithSavingsBytes !== undefined) {
1003
929
  obj.setTotalStorageCapacityLogicalWithSavingsBytes(data['totalStorageCapacityLogicalWithSavingsBytes']);
1004
- delete data.totalStorageCapacityLogicalWithSavingsBytes;
1005
930
  }
1006
-
1007
931
  if (data.hasOwnProperty('totalStorageUsageBytes') && data.totalStorageUsageBytes !== null && data.totalStorageUsageBytes !== undefined) {
1008
932
  obj.setTotalStorageUsageBytes(data['totalStorageUsageBytes']);
1009
- delete data.totalStorageUsageBytes;
1010
933
  }
1011
-
1012
934
  if (data.hasOwnProperty('totalStorageAvailableBytes') && data.totalStorageAvailableBytes !== null && data.totalStorageAvailableBytes !== undefined) {
1013
935
  obj.setTotalStorageAvailableBytes(data['totalStorageAvailableBytes']);
1014
- delete data.totalStorageAvailableBytes;
1015
936
  }
1016
-
1017
937
  if (data.hasOwnProperty('totalStorageAvailableLogicalBytes') && data.totalStorageAvailableLogicalBytes !== null && data.totalStorageAvailableLogicalBytes !== undefined) {
1018
938
  obj.setTotalStorageAvailableLogicalBytes(data['totalStorageAvailableLogicalBytes']);
1019
- delete data.totalStorageAvailableLogicalBytes;
1020
939
  }
1021
-
1022
940
  if (!callFromChild) {
941
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
1023
942
  for (var property in data) {
1024
- if (data[property] != null) {
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"))) {
1025
948
  obj.$unknownFields[property] = data[property];
1026
949
  }
1027
950
  }
1028
951
  }
1029
952
  }
1030
-
1031
953
  return obj;
1032
954
  }
1033
- }]);
1034
955
 
1035
- return ClusterMetrics;
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
+ }]);
1036
969
  }(_ExternalizableAbstractModel["default"]);
1037
970
  /**
1038
971
  * Name of the cluster
1039
972
  * @memberof ClusterMetrics
1040
973
  */
1041
-
1042
-
1043
- exports["default"] = ClusterMetrics;
974
+ function _toJsonMapType(obj, forMutation) {
975
+ 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) {
984
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
985
+ }));
986
+ }
987
+ return obj;
988
+ }
989
+ /*
990
+ * toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
991
+ * @param {Object} obj Object to serialize
992
+ * @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
993
+ * @returns {Object|string} Returns serialized date object or original input object
994
+ */
995
+ function _handleDateType(obj, isDateOnly) {
996
+ if (obj instanceof Date && isDateOnly !== undefined) {
997
+ return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
998
+ }
999
+ return obj;
1000
+ }
1044
1001
  ClusterMetrics.prototype.clusterName = undefined;
1002
+
1045
1003
  /**
1046
1004
  * @memberof ClusterMetrics
1047
1005
  */
1048
-
1049
1006
  ClusterMetrics.prototype.externalIP = undefined;
1007
+
1050
1008
  /**
1051
1009
  * CVM IPs of the nodes in the cluster
1052
1010
  * @memberof ClusterMetrics
1053
1011
  */
1054
-
1055
1012
  ClusterMetrics.prototype.cvmIPs = undefined;
1013
+
1056
1014
  /**
1057
1015
  * Total memory size in bytes in the cluster
1058
1016
  * @memberof ClusterMetrics
1059
1017
  */
1060
-
1061
1018
  ClusterMetrics.prototype.totalMemorySizeBytes = undefined;
1019
+
1062
1020
  /**
1063
1021
  * Total memory size in bytes currently being used by the active VMs
1064
1022
  * @memberof ClusterMetrics
1065
1023
  */
1066
-
1067
1024
  ClusterMetrics.prototype.currentMemoryUsageSizeBytes = undefined;
1025
+
1068
1026
  /**
1069
1027
  * Total memory size in bytes provisioned for all the VMs
1070
1028
  * @memberof ClusterMetrics
1071
1029
  */
1072
-
1073
1030
  ClusterMetrics.prototype.provisionedMemoryUsageBytes = undefined;
1031
+
1074
1032
  /**
1075
1033
  * Largest possible memory size in bytes for the next VM that can be added
1076
1034
  * @memberof ClusterMetrics
1077
1035
  */
1078
-
1079
1036
  ClusterMetrics.prototype.maxVmMemorySizeBytes = undefined;
1037
+
1080
1038
  /**
1081
1039
  * Total amount of available memory in bytes for deploying new VMs
1082
1040
  * @memberof ClusterMetrics
1083
1041
  */
1084
-
1085
1042
  ClusterMetrics.prototype.availableMemorySizeBytes = undefined;
1043
+
1086
1044
  /**
1087
1045
  * Powered OFF VM with the largest memory size
1088
1046
  * @memberof ClusterMetrics
1089
1047
  */
1090
-
1091
1048
  ClusterMetrics.prototype.largestPoweredOffVMMemory = undefined;
1049
+
1092
1050
  /**
1093
1051
  * Total number of vCPUs in the cluster
1094
1052
  * @memberof ClusterMetrics
1095
1053
  */
1096
-
1097
1054
  ClusterMetrics.prototype.totalVCpuCount = undefined;
1055
+
1098
1056
  /**
1099
1057
  * Total number of vCPUs currently being used by the active VMs
1100
1058
  * @memberof ClusterMetrics
1101
1059
  */
1102
-
1103
1060
  ClusterMetrics.prototype.currentUsedVCpuCount = undefined;
1061
+
1104
1062
  /**
1105
1063
  * Total number of vCPUs provisioned for all the VMs
1106
1064
  * @memberof ClusterMetrics
1107
1065
  */
1108
-
1109
1066
  ClusterMetrics.prototype.provisionedVCpuCount = undefined;
1067
+
1110
1068
  /**
1111
1069
  * Largest possible VM size in vCPUs for the next VM that can be added
1112
1070
  * @memberof ClusterMetrics
1113
1071
  */
1114
-
1115
1072
  ClusterMetrics.prototype.maxVmVCpuSize = undefined;
1073
+
1116
1074
  /**
1117
1075
  * Total number of available VMs for deploying new VMs
1118
1076
  * @memberof ClusterMetrics
1119
1077
  */
1120
-
1121
1078
  ClusterMetrics.prototype.availableVCpuCount = undefined;
1079
+
1122
1080
  /**
1123
1081
  * Largest powered OFF VM in terms of vCPU count
1124
1082
  * @memberof ClusterMetrics
1125
1083
  */
1126
-
1127
1084
  ClusterMetrics.prototype.largestPoweredOffVMVCpu = undefined;
1085
+
1128
1086
  /**
1129
1087
  * Total amount of CPU in hertz in the cluster
1130
1088
  * @memberof ClusterMetrics
1131
1089
  */
1132
-
1133
1090
  ClusterMetrics.prototype.totalCpuHz = undefined;
1091
+
1134
1092
  /**
1135
1093
  * Total amount of CPU in hertz currently being used by the active VMs
1136
1094
  * @memberof ClusterMetrics
1137
1095
  */
1138
-
1139
1096
  ClusterMetrics.prototype.currentUsedCpuHz = undefined;
1097
+
1140
1098
  /**
1141
1099
  * Total amount of CPU in hertz provisioned for all the VMs
1142
1100
  * @memberof ClusterMetrics
1143
1101
  */
1144
-
1145
1102
  ClusterMetrics.prototype.provisionedCpuHz = undefined;
1103
+
1146
1104
  /**
1147
1105
  * Total storage in bytes capacity in the cluster
1148
1106
  * @memberof ClusterMetrics
1149
1107
  */
1150
-
1151
1108
  ClusterMetrics.prototype.totalStorageCapacityRawBytes = undefined;
1109
+
1152
1110
  /**
1153
1111
  * Total logical storage in bytes capacity after considering RF
1154
1112
  * @memberof ClusterMetrics
1155
1113
  */
1156
-
1157
1114
  ClusterMetrics.prototype.totalStorageCapacityLogicalBytes = undefined;
1115
+
1158
1116
  /**
1159
1117
  * Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
1160
1118
  * @memberof ClusterMetrics
1161
1119
  */
1162
-
1163
1120
  ClusterMetrics.prototype.totalStorageCapacityLogicalWithSavingsBytes = undefined;
1121
+
1164
1122
  /**
1165
1123
  * Total raw storage usage by the cluster
1166
1124
  * @memberof ClusterMetrics
1167
1125
  */
1168
-
1169
1126
  ClusterMetrics.prototype.totalStorageUsageBytes = undefined;
1127
+
1170
1128
  /**
1171
1129
  * Total raw storage bytes still available in the cluster
1172
1130
  * @memberof ClusterMetrics
1173
1131
  */
1174
-
1175
1132
  ClusterMetrics.prototype.totalStorageAvailableBytes = undefined;
1133
+
1176
1134
  /**
1177
1135
  * Total logical storage bytes still available in the cluster
1178
1136
  * @memberof ClusterMetrics
1179
1137
  */
1138
+ ClusterMetrics.prototype.totalStorageAvailableLogicalBytes = undefined;
1180
1139
 
1181
- ClusterMetrics.prototype.totalStorageAvailableLogicalBytes = undefined; // Implement OneOfaiops.v4.clusterMetrics.ClusterApiResponsedata interface:
1140
+ /**
1141
+ * A globally unique identifier of an instance that is suitable for external consumption.
1142
+ * @memberof ClusterMetrics
1143
+ */
1144
+ _ExternalizableAbstractModel["default"].prototype.extId = undefined;
1145
+ /**
1146
+ * 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
+ * @memberof ClusterMetrics
1148
+ */
1149
+ _ExternalizableAbstractModel["default"].prototype.links = undefined;
1150
+ /**
1151
+ * 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
+ * @memberof ClusterMetrics
1153
+ */
1154
+ _TenantAwareModel["default"].prototype.tenantId = undefined;