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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/README.md +2 -2
  2. package/dist/Ntnx-Aiops-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Aiops-js-client.js +125 -125
  4. package/dist/es/ApiClient.d.ts +1 -1
  5. package/dist/es/ApiClient.js +4 -4
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +3 -3
  8. package/dist/es/apis/scenarios-endpoints.d.ts +3 -3
  9. package/dist/es/apis/scenarios-endpoints.js +5 -5
  10. package/dist/es/apis/stats-endpoints.d.ts +5 -4
  11. package/dist/es/apis/stats-endpoints.js +7 -7
  12. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +1 -1
  13. package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +3 -3
  14. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -1
  15. package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +3 -3
  16. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -1
  17. package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +3 -3
  18. package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +1 -1
  19. package/dist/es/models/aiops/v4/clusterMetrics/Node.js +3 -3
  20. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
  21. package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +3 -3
  22. package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +1 -1
  23. package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +3 -3
  24. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
  25. package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +3 -3
  26. package/dist/es/models/aiops/v4/common/ClusterType.js +2 -2
  27. package/dist/es/models/aiops/v4/config/CapacityType.js +2 -2
  28. package/dist/es/models/aiops/v4/config/CapacityUnit.js +2 -2
  29. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +1 -1
  30. package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +3 -3
  31. package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +2 -2
  32. package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +2 -2
  33. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -1
  34. package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +3 -3
  35. package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +2 -2
  36. package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +1 -1
  37. package/dist/es/models/aiops/v4/config/ClusterConfig.js +3 -3
  38. package/dist/es/models/aiops/v4/config/ClusterType.js +2 -2
  39. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +1 -1
  40. package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +3 -3
  41. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +1 -1
  42. package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +3 -3
  43. package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +1 -1
  44. package/dist/es/models/aiops/v4/config/DataStoreConfig.js +3 -3
  45. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +1 -1
  46. package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +3 -3
  47. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +1 -1
  48. package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +3 -3
  49. package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +1 -1
  50. package/dist/es/models/aiops/v4/config/EntityDescriptor.js +3 -3
  51. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +1 -1
  52. package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +3 -3
  53. package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +1 -1
  54. package/dist/es/models/aiops/v4/config/EntityDetail.js +3 -3
  55. package/dist/es/models/aiops/v4/config/EntityType.d.ts +1 -1
  56. package/dist/es/models/aiops/v4/config/EntityType.js +3 -3
  57. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +1 -1
  58. package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +3 -3
  59. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +1 -1
  60. package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +3 -3
  61. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +1 -1
  62. package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +3 -3
  63. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +1 -1
  64. package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +3 -3
  65. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +1 -1
  66. package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +3 -3
  67. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +1 -1
  68. package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +3 -3
  69. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +1 -1
  70. package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +3 -3
  71. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +1 -1
  72. package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +3 -3
  73. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +1 -1
  74. package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +3 -3
  75. package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +1 -1
  76. package/dist/es/models/aiops/v4/config/MetricDescriptor.js +3 -3
  77. package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +2 -2
  78. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -1
  79. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +3 -3
  80. package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +2 -2
  81. package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +1 -1
  82. package/dist/es/models/aiops/v4/config/NodeConfig.js +3 -3
  83. package/dist/es/models/aiops/v4/config/NodeSource.js +2 -2
  84. package/dist/es/models/aiops/v4/config/PolicyType.js +2 -2
  85. package/dist/es/models/aiops/v4/config/ReplicationFactor.js +2 -2
  86. package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +1 -1
  87. package/dist/es/models/aiops/v4/config/ResourceCapacity.js +3 -3
  88. package/dist/es/models/aiops/v4/config/Runway.d.ts +1 -1
  89. package/dist/es/models/aiops/v4/config/Runway.js +3 -3
  90. package/dist/es/models/aiops/v4/config/Scenario.d.ts +1 -1
  91. package/dist/es/models/aiops/v4/config/Scenario.js +3 -3
  92. package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
  93. package/dist/es/models/aiops/v4/config/ScenarioProjection.js +3 -3
  94. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +1 -1
  95. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +3 -3
  96. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
  97. package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +3 -3
  98. package/dist/es/models/aiops/v4/config/Simulation.d.ts +1 -1
  99. package/dist/es/models/aiops/v4/config/Simulation.js +3 -3
  100. package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
  101. package/dist/es/models/aiops/v4/config/SimulationProjection.js +3 -3
  102. package/dist/es/models/aiops/v4/config/Source.d.ts +1 -1
  103. package/dist/es/models/aiops/v4/config/Source.js +3 -3
  104. package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +1 -1
  105. package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +3 -3
  106. package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +1 -1
  107. package/dist/es/models/aiops/v4/config/SplunkWorkload.js +3 -3
  108. package/dist/es/models/aiops/v4/config/SqlProfileType.js +2 -2
  109. package/dist/es/models/aiops/v4/config/SqlTransactionType.js +2 -2
  110. package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +1 -1
  111. package/dist/es/models/aiops/v4/config/SqlWorkload.js +3 -3
  112. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +1 -1
  113. package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +3 -3
  114. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +1 -1
  115. package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +3 -3
  116. package/dist/es/models/aiops/v4/config/ValueRange.d.ts +1 -1
  117. package/dist/es/models/aiops/v4/config/ValueRange.js +3 -3
  118. package/dist/es/models/aiops/v4/config/ValueType.js +2 -2
  119. package/dist/es/models/aiops/v4/config/VdiProvisionType.js +2 -2
  120. package/dist/es/models/aiops/v4/config/VdiUserType.js +2 -2
  121. package/dist/es/models/aiops/v4/config/VdiVendor.js +2 -2
  122. package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +1 -1
  123. package/dist/es/models/aiops/v4/config/VdiWorkload.js +3 -3
  124. package/dist/es/models/aiops/v4/config/Vendor.js +2 -2
  125. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +1 -1
  126. package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +3 -3
  127. package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +1 -1
  128. package/dist/es/models/aiops/v4/config/VmWorkload.js +3 -3
  129. package/dist/es/models/aiops/v4/config/Workload.d.ts +1 -1
  130. package/dist/es/models/aiops/v4/config/Workload.js +3 -3
  131. package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +2 -2
  132. package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +1 -1
  133. package/dist/es/models/aiops/v4/config/XenWorkload.js +3 -3
  134. package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +1 -1
  135. package/dist/es/models/aiops/v4/config/XfitPolicy.js +3 -3
  136. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +1 -1
  137. package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +3 -3
  138. package/dist/es/models/aiops/v4/error/AppMessage.d.ts +1 -1
  139. package/dist/es/models/aiops/v4/error/AppMessage.js +3 -3
  140. package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +1 -1
  141. package/dist/es/models/aiops/v4/error/ErrorResponse.js +3 -3
  142. package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +1 -1
  143. package/dist/es/models/aiops/v4/error/SchemaValidationError.js +3 -3
  144. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
  145. package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +3 -3
  146. package/dist/es/models/aiops/v4/stats/BoolList.d.ts +1 -1
  147. package/dist/es/models/aiops/v4/stats/BoolList.js +3 -3
  148. package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +1 -1
  149. package/dist/es/models/aiops/v4/stats/BoolVal.js +3 -3
  150. package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +1 -1
  151. package/dist/es/models/aiops/v4/stats/DoubleList.js +3 -3
  152. package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +1 -1
  153. package/dist/es/models/aiops/v4/stats/DoubleVal.js +3 -3
  154. package/dist/es/models/aiops/v4/stats/Entity.d.ts +1 -1
  155. package/dist/es/models/aiops/v4/stats/Entity.js +3 -3
  156. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +1 -1
  157. package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +3 -3
  158. package/dist/es/models/aiops/v4/stats/IntList.d.ts +1 -1
  159. package/dist/es/models/aiops/v4/stats/IntList.js +3 -3
  160. package/dist/es/models/aiops/v4/stats/IntVal.d.ts +1 -1
  161. package/dist/es/models/aiops/v4/stats/IntVal.js +3 -3
  162. package/dist/es/models/aiops/v4/stats/Metric.d.ts +1 -1
  163. package/dist/es/models/aiops/v4/stats/Metric.js +3 -3
  164. package/dist/es/models/aiops/v4/stats/Point.d.ts +1 -1
  165. package/dist/es/models/aiops/v4/stats/Point.js +3 -3
  166. package/dist/es/models/aiops/v4/stats/StrList.d.ts +1 -1
  167. package/dist/es/models/aiops/v4/stats/StrList.js +3 -3
  168. package/dist/es/models/aiops/v4/stats/StrVal.d.ts +1 -1
  169. package/dist/es/models/aiops/v4/stats/StrVal.js +3 -3
  170. package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +1 -1
  171. package/dist/es/models/aiops/v4/stats/TimeSeries.js +3 -3
  172. package/dist/es/models/common/v1/config/Flag.d.ts +1 -1
  173. package/dist/es/models/common/v1/config/Flag.js +3 -3
  174. package/dist/es/models/common/v1/config/IPv4Address.d.ts +1 -1
  175. package/dist/es/models/common/v1/config/IPv4Address.js +3 -3
  176. package/dist/es/models/common/v1/config/KVPair.d.ts +1 -1
  177. package/dist/es/models/common/v1/config/KVPair.js +3 -3
  178. package/dist/es/models/common/v1/config/KVStringPair.d.ts +1 -1
  179. package/dist/es/models/common/v1/config/KVStringPair.js +3 -3
  180. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
  181. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +3 -3
  182. package/dist/es/models/common/v1/config/Message.d.ts +1 -1
  183. package/dist/es/models/common/v1/config/Message.js +3 -3
  184. package/dist/es/models/common/v1/config/MessageSeverity.js +2 -2
  185. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +1 -1
  186. package/dist/es/models/common/v1/config/TenantAwareModel.js +3 -3
  187. package/dist/es/models/common/v1/response/ApiLink.d.ts +1 -1
  188. package/dist/es/models/common/v1/response/ApiLink.js +3 -3
  189. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
  190. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +3 -3
  191. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
  192. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +3 -3
  193. package/dist/es/models/common/v1/stats/DownSamplingOperator.js +2 -2
  194. package/dist/es/models/prism/v4/config/TaskReference.d.ts +1 -1
  195. package/dist/es/models/prism/v4/config/TaskReference.js +4 -4
  196. package/dist/es/models/validation/ValidationError.js +2 -2
  197. package/dist/es/utils/ValidationUtils.js +2 -2
  198. package/dist/lib/ApiClient.d.ts +1 -1
  199. package/dist/lib/ApiClient.js +4 -4
  200. package/dist/lib/Paginable.d.ts +1 -1
  201. package/dist/lib/Paginable.js +3 -3
  202. package/dist/lib/apis/scenarios-endpoints.d.ts +3 -3
  203. package/dist/lib/apis/scenarios-endpoints.js +5 -5
  204. package/dist/lib/apis/stats-endpoints.d.ts +5 -4
  205. package/dist/lib/apis/stats-endpoints.js +7 -7
  206. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +1 -1
  207. package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +3 -3
  208. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -1
  209. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +3 -3
  210. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -1
  211. package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +3 -3
  212. package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +1 -1
  213. package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +3 -3
  214. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
  215. package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +3 -3
  216. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +1 -1
  217. package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +3 -3
  218. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
  219. package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +3 -3
  220. package/dist/lib/models/aiops/v4/common/ClusterType.js +2 -2
  221. package/dist/lib/models/aiops/v4/config/CapacityType.js +2 -2
  222. package/dist/lib/models/aiops/v4/config/CapacityUnit.js +2 -2
  223. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +1 -1
  224. package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +3 -3
  225. package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +2 -2
  226. package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +2 -2
  227. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -1
  228. package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +3 -3
  229. package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +2 -2
  230. package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +1 -1
  231. package/dist/lib/models/aiops/v4/config/ClusterConfig.js +3 -3
  232. package/dist/lib/models/aiops/v4/config/ClusterType.js +2 -2
  233. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +1 -1
  234. package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +3 -3
  235. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +1 -1
  236. package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +3 -3
  237. package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +1 -1
  238. package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +3 -3
  239. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +1 -1
  240. package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +3 -3
  241. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +1 -1
  242. package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +3 -3
  243. package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +1 -1
  244. package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +3 -3
  245. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +1 -1
  246. package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +3 -3
  247. package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +1 -1
  248. package/dist/lib/models/aiops/v4/config/EntityDetail.js +3 -3
  249. package/dist/lib/models/aiops/v4/config/EntityType.d.ts +1 -1
  250. package/dist/lib/models/aiops/v4/config/EntityType.js +3 -3
  251. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +1 -1
  252. package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +3 -3
  253. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +1 -1
  254. package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +3 -3
  255. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +1 -1
  256. package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +3 -3
  257. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +1 -1
  258. package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +3 -3
  259. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +1 -1
  260. package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +3 -3
  261. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +1 -1
  262. package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +3 -3
  263. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +1 -1
  264. package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +3 -3
  265. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +1 -1
  266. package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +3 -3
  267. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +1 -1
  268. package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +3 -3
  269. package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +1 -1
  270. package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +3 -3
  271. package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +2 -2
  272. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -1
  273. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +3 -3
  274. package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +2 -2
  275. package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +1 -1
  276. package/dist/lib/models/aiops/v4/config/NodeConfig.js +3 -3
  277. package/dist/lib/models/aiops/v4/config/NodeSource.js +2 -2
  278. package/dist/lib/models/aiops/v4/config/PolicyType.js +2 -2
  279. package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +2 -2
  280. package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +1 -1
  281. package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +3 -3
  282. package/dist/lib/models/aiops/v4/config/Runway.d.ts +1 -1
  283. package/dist/lib/models/aiops/v4/config/Runway.js +3 -3
  284. package/dist/lib/models/aiops/v4/config/Scenario.d.ts +1 -1
  285. package/dist/lib/models/aiops/v4/config/Scenario.js +3 -3
  286. package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
  287. package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +3 -3
  288. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +1 -1
  289. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +3 -3
  290. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
  291. package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +3 -3
  292. package/dist/lib/models/aiops/v4/config/Simulation.d.ts +1 -1
  293. package/dist/lib/models/aiops/v4/config/Simulation.js +3 -3
  294. package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
  295. package/dist/lib/models/aiops/v4/config/SimulationProjection.js +3 -3
  296. package/dist/lib/models/aiops/v4/config/Source.d.ts +1 -1
  297. package/dist/lib/models/aiops/v4/config/Source.js +3 -3
  298. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +1 -1
  299. package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +3 -3
  300. package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +1 -1
  301. package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +3 -3
  302. package/dist/lib/models/aiops/v4/config/SqlProfileType.js +2 -2
  303. package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +2 -2
  304. package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +1 -1
  305. package/dist/lib/models/aiops/v4/config/SqlWorkload.js +3 -3
  306. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +1 -1
  307. package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +3 -3
  308. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +1 -1
  309. package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +3 -3
  310. package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +1 -1
  311. package/dist/lib/models/aiops/v4/config/ValueRange.js +3 -3
  312. package/dist/lib/models/aiops/v4/config/ValueType.js +2 -2
  313. package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +2 -2
  314. package/dist/lib/models/aiops/v4/config/VdiUserType.js +2 -2
  315. package/dist/lib/models/aiops/v4/config/VdiVendor.js +2 -2
  316. package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +1 -1
  317. package/dist/lib/models/aiops/v4/config/VdiWorkload.js +3 -3
  318. package/dist/lib/models/aiops/v4/config/Vendor.js +2 -2
  319. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +1 -1
  320. package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +3 -3
  321. package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +1 -1
  322. package/dist/lib/models/aiops/v4/config/VmWorkload.js +3 -3
  323. package/dist/lib/models/aiops/v4/config/Workload.d.ts +1 -1
  324. package/dist/lib/models/aiops/v4/config/Workload.js +3 -3
  325. package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +2 -2
  326. package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +1 -1
  327. package/dist/lib/models/aiops/v4/config/XenWorkload.js +3 -3
  328. package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +1 -1
  329. package/dist/lib/models/aiops/v4/config/XfitPolicy.js +3 -3
  330. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +1 -1
  331. package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +3 -3
  332. package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +1 -1
  333. package/dist/lib/models/aiops/v4/error/AppMessage.js +3 -3
  334. package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +1 -1
  335. package/dist/lib/models/aiops/v4/error/ErrorResponse.js +3 -3
  336. package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +1 -1
  337. package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +3 -3
  338. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +1 -1
  339. package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +3 -3
  340. package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +1 -1
  341. package/dist/lib/models/aiops/v4/stats/BoolList.js +3 -3
  342. package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +1 -1
  343. package/dist/lib/models/aiops/v4/stats/BoolVal.js +3 -3
  344. package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +1 -1
  345. package/dist/lib/models/aiops/v4/stats/DoubleList.js +3 -3
  346. package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +1 -1
  347. package/dist/lib/models/aiops/v4/stats/DoubleVal.js +3 -3
  348. package/dist/lib/models/aiops/v4/stats/Entity.d.ts +1 -1
  349. package/dist/lib/models/aiops/v4/stats/Entity.js +3 -3
  350. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +1 -1
  351. package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +3 -3
  352. package/dist/lib/models/aiops/v4/stats/IntList.d.ts +1 -1
  353. package/dist/lib/models/aiops/v4/stats/IntList.js +3 -3
  354. package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +1 -1
  355. package/dist/lib/models/aiops/v4/stats/IntVal.js +3 -3
  356. package/dist/lib/models/aiops/v4/stats/Metric.d.ts +1 -1
  357. package/dist/lib/models/aiops/v4/stats/Metric.js +3 -3
  358. package/dist/lib/models/aiops/v4/stats/Point.d.ts +1 -1
  359. package/dist/lib/models/aiops/v4/stats/Point.js +3 -3
  360. package/dist/lib/models/aiops/v4/stats/StrList.d.ts +1 -1
  361. package/dist/lib/models/aiops/v4/stats/StrList.js +3 -3
  362. package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +1 -1
  363. package/dist/lib/models/aiops/v4/stats/StrVal.js +3 -3
  364. package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +1 -1
  365. package/dist/lib/models/aiops/v4/stats/TimeSeries.js +3 -3
  366. package/dist/lib/models/common/v1/config/Flag.d.ts +1 -1
  367. package/dist/lib/models/common/v1/config/Flag.js +3 -3
  368. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +1 -1
  369. package/dist/lib/models/common/v1/config/IPv4Address.js +3 -3
  370. package/dist/lib/models/common/v1/config/KVPair.d.ts +1 -1
  371. package/dist/lib/models/common/v1/config/KVPair.js +3 -3
  372. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +1 -1
  373. package/dist/lib/models/common/v1/config/KVStringPair.js +3 -3
  374. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +1 -1
  375. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +3 -3
  376. package/dist/lib/models/common/v1/config/Message.d.ts +1 -1
  377. package/dist/lib/models/common/v1/config/Message.js +3 -3
  378. package/dist/lib/models/common/v1/config/MessageSeverity.js +2 -2
  379. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +1 -1
  380. package/dist/lib/models/common/v1/config/TenantAwareModel.js +3 -3
  381. package/dist/lib/models/common/v1/response/ApiLink.d.ts +1 -1
  382. package/dist/lib/models/common/v1/response/ApiLink.js +3 -3
  383. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +1 -1
  384. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +3 -3
  385. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -1
  386. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +3 -3
  387. package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +2 -2
  388. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +1 -1
  389. package/dist/lib/models/prism/v4/config/TaskReference.js +4 -4
  390. package/dist/lib/models/validation/ValidationError.js +2 -2
  391. package/dist/lib/utils/ValidationUtils.js +2 -2
  392. package/package.json +1 -1
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Aiops=t())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={19(e,t,n){"use strict";var i=n(897);function s(e){if(e)return function(e){for(var t in s.prototype)Object.prototype.hasOwnProperty.call(s.prototype,t)&&(e[t]=s.prototype[t]);return e}(e)}e.exports=s,s.prototype.get=function(e){return this.header[e.toLowerCase()]},s.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var n=i.params(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(this[s]=n[s]);this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},s.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340(e){e.exports=r,r.default=r,r.stable=u,r.stableStringify=u;var t="[...]",n="[Circular]",i=[],s=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function r(e,t,n,r){var a;void 0===r&&(r=o()),l(e,"",0,[],void 0,0,r);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,o){var r=Object.getOwnPropertyDescriptor(o,n);void 0!==r.get?r.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,r])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function l(e,i,s,o,r,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<o.length;h++)if(o[h]===e)return void a(n,e,i,r);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,i,r);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(t,e,i,r);if(o.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,o,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,o,e,d,u)}}o.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,r){void 0===r&&(r=o());var a,l=h(e,"",0,[],void 0,0,r)||e;try{a=0===s.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,s,o,r,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<r.length;p++)if(r[p]===e)return void a(n,e,s,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,s,l);if(void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void a(t,e,s,l);if(r.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,r,e,u,c);else{var y={},v=Object.keys(e).sort(d);for(p=0;p<v.length;p++){var g=v[p];h(e[g],g,p,r,e,u,c),y[g]=e[g]}if(void 0===l)return y;i.push([l,s,e]),l[s]=y}r.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var o=s[i];if(o[1]===t&&o[0]===n){n=o[2],s.splice(i,1);break}}return e.call(this,t,n)}}},388(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,i){if(i)return i(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,i){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const s=t.length,o=e-s;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");{const e=t[s-1];for(let n=0;n<o+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=i,this}e.exports=function(e){const i=e.Request;return i.prototype.oldRetry=i.prototype.retry,i.prototype.retry=n,i.prototype.callback=t,e}},545(){},548(){},585(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s;"undefined"!=typeof window?s=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),s=void 0):s=self;var o=n(960),r=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=$,c.getXHR=function(){if(s.XMLHttpRequest&&(!s.location||"file:"!==s.location.protocol||!s.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!l(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&v(t,n,e[n]);return t.join("&")}function v(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){v(e,t,n)});else if(l(n))for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&v(e,"".concat(t,"[").concat(i,"]"),n[i]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function g(e){for(var t,n,i={},s=e.split("&"),o=0,r=s.length;o<r;++o)-1===(n=(t=s[o]).indexOf("="))?i[decodeURIComponent(t)]="":i[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return i}function m(e){return/[/+]json($|[^-\w])/.test(e)}function w(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,i,s,o=e.split(/\r?\n/),r={},a=0,l=o.length;a<l;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(i=n.slice(0,t).toLowerCase(),s=p(n.slice(t+1)),r[i]=s);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function $(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,i=null;try{i=new w(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=i.status,n.callback(e,i)):n.callback(null,i)})}function f(e,t,n){var i=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}c.serializeObject=y,c.parseString=g,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":y,"application/json":r},c.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},d(w.prototype),w.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&m(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},w.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,i="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),s=new Error(i);return s.status=this.status,s.method=t,s.url=n,s},c.Response=w,o($.prototype),a($.prototype),$.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},$.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},$.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},$.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},$.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},$.prototype._getFormData=function(){return this._formData||(this._formData=new s.FormData),this._formData},$.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},$.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},$.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},$.prototype.ca=$.prototype.agent,$.prototype.buffer=$.prototype.ca,$.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},$.prototype.pipe=$.prototype.write,$.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},$.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},$.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},$.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var i=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var s=this._header["content-type"],o=this._serializer||c.serialize[s?s.split(";")[0]:""];!o&&m(s)&&(o=c.serialize["application/json"]),o&&(n=o(n))}for(var r in this.header)null!==this.header[r]&&Object.prototype.hasOwnProperty.call(this.header,r)&&t.setRequestHeader(r,this.header[r]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var i=new c.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var i=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.head=function(e,t,n){var i=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.options=function(e,t,n){var i=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.del=f,c.delete=f,c.patch=function(e,t,n){var i=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.post=function(e,t,n){var i=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.put=function(e,t,n){var i=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}},597(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var i;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(i=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},695(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=n(388);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==i(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var r=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&r.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var i=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){i.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),i.end(function(n,i){n?t(n):e(i)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(i("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=s(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&s(this._data))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(this._data[i]=e[i]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var i=new Error("".concat(e+t,"ms exceeded"));i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},784(e,t,n){"use strict";var i="win32"===process.platform,s=n(818);function o(e,t){for(var n=[],i=0;i<e.length;i++){var s=e[i];s&&"."!==s&&(".."===s?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(s))}return n}function r(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var i=t;i>=0&&!e[i];i--);return 0===n&&i===t?e:n>i?[]:e.slice(n,i+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),i=t[3]||"",s=l.exec(i);return[n,s[1],s[2],s[3]]}function h(e){var t=a.exec(e),n=t[1]||"",i=!!n&&":"!==n[1];return{device:n,isUnc:i,isAbsolute:i||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r;if(i>=0?r=arguments[i]:e?(r=process.env["="+e])&&r.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(r=e+"\\"):r=process.cwd(),!s.isString(r))throw new TypeError("Arguments to path.resolve must be strings");if(r){var a=h(r),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=o(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,i=t.isUnc,s=t.isAbsolute,r=t.tail,a=/[\\\/]$/.test(r);return(r=o(r.split(/[\\\/]+/),!s).join("\\"))||s||(r="."),r&&a&&(r+="\\"),i&&(n=c(n)),n+(s?"\\":"")+r},d.isAbsolute=function(e){return h(e).isAbsolute},d.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var i=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(i=i.replace(/^[\\\/]{2,}/,"\\")),d.normalize(i)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),i=t.toLowerCase(),s=r(t.split("\\")),o=r(n.split("\\")),a=r(i.split("\\")),l=Math.min(o.length,a.length),u=l,h=0;h<l;h++)if(o[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<o.length;h++)c.push("..");return(c=c.concat(s.slice(u))).join("\\")},d._makeLong=function(e){if(!s.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,i=e.base||"";return n?n[n.length-1]===d.sep?n+i:n+d.sep+i:i},d.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return p.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:process.cwd();if(!s.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[0])}return(t?"/":"")+(e=o(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=o(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),o=s,a=0;a<s;a++)if(n[a]!==i[a]){o=a;break}var l=[];for(a=o;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(o))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},y.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},y.sep="/",y.delimiter=":",e.exports=i?d:y,e.exports.posix=y,e.exports.win32=d},799(){},818(e,t,n){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(r(arguments[n]));return t.join(" ")}n=1;for(var s=arguments,o=s.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch(e){return"[Circular]"}default:return e}}),l=s[n];n<o;l=s[++n])y(l)||!$(l)?a+=" "+l:a+=" "+r(l);return a},t.deprecate=function(e,i){if(m(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===process.noDeprecation)return e;var s=!1;return function(){if(!s){if(process.throwDeprecation)throw new Error(i);process.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}};var s,o={};function r(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),d(i,e,i.depth)}function a(e,t){var n=r.styles[t];return n?"["+r.colors[n][0]+"m"+e+"["+r.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var s=n.inspect(i,e);return g(s)||(s=d(e,s,i)),s}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var r=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(r);if(e.showHidden&&(r=Object.getOwnPropertyNames(n)),b(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return u(n);if(0===r.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(f(n))return e.stylize(Date.prototype.toString.call(n),"date");if(b(n))return u(n)}var $,k="",j=!1,O=["{","}"];return c(n)&&(j=!0,O=["[","]"]),T(n)&&(k=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(k=" "+RegExp.prototype.toString.call(n)),f(n)&&(k=" "+Date.prototype.toUTCString.call(n)),b(n)&&(k=" "+u(n)),0!==r.length||j&&0!=n.length?i<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),$=j?function(e,t,n,i,s){for(var o=[],r=0,a=t.length;r<a;++r)F(t,String(r))?o.push(h(e,t,n,i,String(r),!0)):o.push("");return s.forEach(function(s){s.match(/^\d+$/)||o.push(h(e,t,n,i,s,!0))}),o}(e,n,i,a,r):r.map(function(t){return h(e,n,i,a,t,j)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}($,k,O)):O[0]+k+O[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,s,o){var r,a,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),F(i,s)||(r="["+s+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),m(r)){if(o&&s.match(/^\d+$/))return a;(r=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}function w(e){return $(e)&&"[object RegExp]"===k(e)}function $(e){return"object"==typeof e&&null!==e}function f(e){return $(e)&&"[object Date]"===k(e)}function b(e){return $(e)&&("[object Error]"===k(e)||e instanceof Error)}function T(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var n=process.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=w,t.isObject=$,t.isDate=f,t.isError=b,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[j((e=new Date).getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!$(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},897(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),i=n.shift(),s=n.shift();return i&&s&&(e[i]=s),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),i=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=i,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<i.length;s++)if((n=i[s])===t||n.fn===t){i.splice(s,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var s=(n=n.slice(0)).length;i<s;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965(){}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";n.d(i,{default:()=>no});var e,t=n(585),s=n.n(t);class o{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new o,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}o.prototype.linkFirst=null,o.prototype.linkPrev=null,o.prototype.linkNext=null,o.prototype.linkLast=null,o.prototype.apiClient=null,o.prototype.page=null,o.prototype.resultsPerPage=null,o.prototype.resultsTotal=null;var r=new Uint8Array(16);function a(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}const l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return h(i)};var p=n(540),y=n.n(p),v=n(545),g=n.n(v),m=n(799),w=n.n(m),$=n(784),f=n.n($),b=n(548);const T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const k=T;class j{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class O{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var F=new WeakSet;class C{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=F),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new C,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}C.prototype.name=void 0,C.prototype.value=!1,C.prototype.$reserved=void 0,C.prototype.$objectType=void 0,C.prototype.$unknownFields=void 0;var S=new WeakSet;class E{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=S),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new E,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("map","undefined or null")}}function D(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function R(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}E.prototype.map=void 0,E.prototype.$reserved=void 0,E.prototype.$objectType=void 0,E.prototype.$unknownFields=void 0;var U=new WeakSet;class I{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=U),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new I,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(r=[],i=e.value,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++)switch(a){case"string":case"integer":case"number":r.push(i[o]);break;case"common.v1.config.MapOfStringWrapper":s=E.constructFromObject(i[o],void 0),r.push(s);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(r)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):R(U,this,A).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):R(U,this,A).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function A(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}I.prototype.name=void 0,I.prototype.value=void 0,I.prototype.$reserved=void 0,I.prototype.$objectType=void 0,I.prototype.$unknownFields=void 0;const M={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(M).find(t=>M[t]===e);return null==t?M.$UNKNOWN:M[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case M.$UNKNOWN:case M.$REDACTED:case M.INFO:case M.WARNING:case M.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(M);const N=M;var x=new WeakSet;class V{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=x),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new V,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("severity","undefined or null"):new O("locale","undefined or null"):new O("message","undefined or null"):new O("code","undefined or null")}}V.prototype.code=void 0,V.prototype.message=void 0,V.prototype.locale="en_US",V.prototype.severity=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var L=new WeakSet;class B{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=L),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new B,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("rel","undefined or null"):new O("href","undefined or null")}}B.prototype.href=void 0,B.prototype.rel=void 0,B.prototype.$reserved=void 0,B.prototype.$objectType=void 0,B.prototype.$unknownFields=void 0;var W,z=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=z),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new J,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(r=[],i=e.flags,o=0;o<i.length;o++)s=C.constructFromObject(i[o],void 0),r.push(s);t.setFlags(r)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(r=[],i=e.messages,o=0;o<i.length;o++)s=V.constructFromObject(i[o],void 0),r.push(s);t.setMessages(r)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(r=[],i=e.extraInfo,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setExtraInfo(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new O("flags","undefined or null");if(!j.validateMaxItems(this.flags,20))return new O("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new O("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new O("messages","undefined or null");if(!j.validateMaxItems(this.messages,20))return new O("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new O("extraInfo","undefined or null");if(!j.validateMaxItems(this.extraInfo,20))return new O("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function _(e,t,n){G(e,t),t.set(e,n)}function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(e,t){return e.get(K(e,t))}function H(e,t,n){return e.set(K(e,t),n),n}function K(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}J.prototype.flags=void 0,J.prototype.links=void 0,J.prototype.totalAvailableResults=void 0,J.prototype.messages=void 0,J.prototype.extraInfo=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0,y()(s());var X=new WeakMap,Z=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,re=new WeakMap,ae=new WeakSet;class le{constructor(){var e;G(this,e=ae),e.add(this),_(this,X,void 0),_(this,Z,void 0),_(this,Y,void 0),_(this,Q,void 0),_(this,ee,void 0),_(this,te,void 0),_(this,ne,void 0),_(this,ie,void 0),_(this,se,void 0),_(this,oe,void 0),_(this,re,void 0),H(re,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",H(ie,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},H(ee,this,3e4),H(te,this,3e4),H(ne,this,108e5),this.readTimeout=q(te,this),this.connectTimeout=q(ee,this),this.cache=!0,H(Z,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(s().agent)),this.requestAgent=null,H(oe,this,null),this.allowVersionNegotiation=!0,H(se,this,!1),this.debug=!1,H(Y,this,null),this.username=null,this.password=null,H(Q,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(g().Agent)({rejectUnauthorized:e}),H(Q,this,e)}get verifySsl(){return q(Q,this)}set host(e){H(ie,this,e),H(se,this,!1),H(oe,this,null)}get host(){return q(ie,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=w().createWriteStream(e,{flags:"a"})),H(Y,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&H(Z,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==q(oe,this)&&null!==q(oe,this)&&null!==q(oe,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.2.b1"!==q(oe,this)){K(ae,this,ke).call(this,q(re,this).INFO,null,"Changing uri",e,"to negotiated version",q(oe,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,q(oe,this))}H(X,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let i="";""!==q(X,this)&&""!==this.host&&""!==this.port?i=q(X,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(i=self.origin);var s=i+e;return s.replace(/\{([\w-]+)\}/g,(e,n)=>{var i;return i=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(i)})}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let i=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=i);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=i)}return t}static getEtag(e){let t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return i?e[i]:null}return null}getNegotiatedVersion(){return q(oe,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===q(se,this)?this.callApiInternal("/api/aiops/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:i})=>{if(200===i.status&&t.hasOwnProperty("data")&&null!==t.data){const i=t.data,s="v4.2.b1";if(K(ae,this,we).call(this,K(ae,this,$e).call(this,i),K(ae,this,$e).call(this,s)))return K(ae,this,ke).call(this,q(re,this).WARN,null,"Server version",i,"is below minimum supported version",s,". Version negotiation will not be performed."),H(oe,this,null),H(se,this,!1),void n(e);H(oe,this,K(ae,this,me).call(this,"v4.2.b1",i)),H(se,this,!0),K(ae,this,ke).call(this,q(re,this).INFO,null,"Negotiated Version with server :",q(oe,this)),n(e)}else K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}).catch(t=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}):n(e)})}callApi(e,t,n,i,s,o,r,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,i,s,o,r,a,l,d,u)})}callApiInternal(e,t,i,o,r,a,l,d,u,h,p){var y=this.buildUrl(e,i);const v="undefined"!=typeof window&&void 0!==window.document;let g=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>g.includes(e))&&v&&this.downloadDestination)return new Promise((e,n)=>{const i=K(ae,this,Ce).call(this,y,t,o,r,l,d,u,h);fetch(i.url,i.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";K(ae,this,ke).call(this,q(re,this).ERROR,null,e),n(e)}const i=t.body.getReader(),s=this.downloadDestination.getWriter(),o=()=>i.read().then(({done:n,value:i})=>(n&&(s.close(),K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),s.write(i).then(o)));return o()}).catch(e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),n(e)})});var m=s()(t,y);if(m.oldCallback=m.callback,m.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},K(ae,this,pe).call(this,m,d),"GET"===t.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),m.query(K(ae,this,ce).call(this,o)),m.set(this.defaultHeaders).set(K(ae,this,ce).call(this,r)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==r["NTNX-Request-Id"]&&void 0!==r["NTNX-Request-Id"])){let e=c();m.set(K(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}v||(this.downloadDestination=".",m.set(K(ae,this,ce).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.2.1-beta.1"}))),this.requestAgent&&m.agent(this.requestAgent);var $={};$.response=K(ae,this,fe).call(this,this.connectTimeout,q(ee,this)),$.deadline=K(ae,this,fe).call(this,this.readTimeout,q(te,this)),m.timeout($);var f=r.hasOwnProperty("Content-Type")?r["Content-Type"]:K(ae,this,ue).call(this,u);if(f?"multipart/form-data"!=f&&m.type(f):m.header["Content-Type"]||m.type("application/json"),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,y),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",void 0===m.header?"":m.header),"application/x-www-form-urlencoded"===f)m.send(K(ae,this,ce).call(this,a));else if("multipart/form-data"==f){var b=K(ae,this,ce).call(this,a);for(var T in b)b.hasOwnProperty(T)&&(K(ae,this,he).call(this,b[T])?m.attach(T,b[T]):m.field(T,b[T]))}else{if("application/octet-stream"===f&&null!=l&&"function"==typeof l.pipe){if(K(ae,this,ke).call(this,q(re,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(m);else{let e;try{e=n(965)}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){m.write(e)},close(){K(ae,this,ke).call(this,q(re,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"READABLE STREAM ABORTED")}})):m.send(l)}return new Promise((t,n)=>{m.on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",i=>{K(ae,this,Fe).call(this,i,e,o,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&m.send(l)}"Blob"==typeof p?m.responseType("blob"):"String"===p&&m.responseType("string"),K(ae,this,Te).call(this,m),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",void 0===m._data?"":m._data);var k=r.hasOwnProperty("Accept")&&null!=r.Accept?r.Accept:h.join(", ");return k&&m.accept(k),new Promise((n,i)=>{m.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e)}).end((r,a)=>{if(r)K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error during the request!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,r),404===r.status&&(H(se,this,!1),H(oe,this,null)),null!==r.response&&void 0!==r.response?r.data=K(ae,this,ve).call(this,r.response,p):r.data=K(ae,this,ye).call(this,r),i(r);else{K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",a.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",a.headers);let r="";if(a.headers.hasOwnProperty("content-type")&&(r=a.headers["content-type"]),g.includes(r)){if(!v){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=w().createWriteStream(e);K(ae,this,Pe).call(this,a,t,e,n,i,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",o=this;K(ae,this,ke).call(this,q(re,this).INFO,null,"Redirecting to :",a.headers.location);var l=s()(t,a.headers.location);l.set(m.header),a.headers.hasOwnProperty("x-redirect-token")&&(K(ae,this,ke).call(this,q(re,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let r=w().createWriteStream(e);l.pipe(r),l.on("response",function(t){K(ae,o,ke).call(o,q(re,o).INFO,null,"Received response after redirection :",t.status),K(ae,o,Pe).call(o,t,r,e,n,i,p)})}else K(ae,this,Fe).call(this,a,e,o,p,n,i)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,i){let s=null;if(void 0!==t&&t.hasOwnProperty(n)&&(s=t[n]),null===s&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=e.match(new RegExp(`${t}=([0-9]+)`));i&&(s=i[1])}return null===s&&(s=i),s}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var i,s;for(var o in t)if(t.hasOwnProperty(o)){i=o,s=t[o];break}var r={};for(var o in e)if(e.hasOwnProperty(o)){var a=le.convertToType(o,i),l=le.convertToType(e[o],s);r[a]=l}return r}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n));else for(var s in e)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(K(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof b.Blob&&e instanceof b.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var i=e[n];K(ae,this,he).call(this,i)||Array.isArray(i)?t[n]=i:t[n]=this.paramToString(i)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var i={};n.apiKeyPrefix?i[n.name]=n.apiKeyPrefix+" "+n.apiKey:i[n.name]=n.apiKey,"header"===n.in?e.set(i):e.query(i)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ye(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ve(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new b.Blob([e.text],{type:e.headers["content-type"]});let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;return o.flags=s,n.metadata=o,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),W.convertToType(n,t)}function ge(e,t,n){if(!(e instanceof o))return;const i=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),s=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,i,s)}function me(e,t){if(!e||!t)return e;let n=K(ae,this,$e).call(this,e),i=K(ae,this,$e).call(this,t);return!n.family===i.family||K(ae,this,we).call(this,n,i)?e:t}function we(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),i=t.versionType.substring(0,1),s=parseInt(e.versionType.substring(1)),o="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===i?s<o:"a"===n||"released"===t.versionType}function $e(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function fe(e,t){return e<=0?e=t:e>q(ne,this)&&(e=q(ne,this)),e}function be(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}H(Z,this,t),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Retained cookie :",t)}else H(Z,this,null)}function Te(e){null!=q(Z,this)&&e.set(K(ae,this,ce).call(this,{Cookie:q(Z,this)}))}function ke(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=q(re,this).INFO),!K(ae,this,je).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let i=n.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==q(Y,this)&&null!==q(Y,this)&&"function"==typeof q(Y,this).log?q(Y,this).log(i):console.log(i)}}function je(e){return!this.debug&&e===q(re,this).DEBUG}function Oe(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Fe(e,t,n,i,s,o){try{var r=K(ae,this,ve).call(this,e,i);K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",e.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",e.headers),K(ae,this,be).call(this,e||{}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Response Body :",r),204==e.status&&null==r?s({data:r,response:e}):e.ok&&null!=r?(this.addEtagToReservedMap(e,r),K(ae,this,ge).call(this,r,t,n),s({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,r),o({...e.error,data:r}))}catch(e){K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error while processing response!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,e),e.data=K(ae,this,ye).call(this,e),o(e)}}function Ce(e,t,n,i,s,o,r,a){let l={};o.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",i="";if(t.username||t.password?(e=t.username||"",i=t.password||""):(this.username||this.password)&&(e=this.username||"",i=this.password||""),e||i){const t=btoa(`${e}:${i}`);l.Authorization=`Basic ${t}`}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=K(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...K(ae,this,ce).call(this,i),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=q(Z,this)&&(p.Cookie=K(ae,this,ce).call(this,{Cookie:q(Z,this)}));var y=i.hasOwnProperty("Content-Type")?i["Content-Type"]:K(ae,this,ue).call(this,r);p["Content-Type"]=y;var v=i.hasOwnProperty("Accept")&&null!=i.Accept?i.Accept:a.join(", ");return v&&(p.Accept=v),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,e),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",p),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",s||""),{url:h,options:{method:t,headers:p,body:s,credentials:this.withCredentials?"include":"same-origin"}}}function Pe(e,t,n,i,s,o){K(ae,this,ke).call(this,q(re,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Issue while downloading file",e)}let r=new o,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=f().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,r.data={path:f().parse(a),$objectType:"Path"};let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;o.flags=s,r.metadata=o}e.on("end",()=>{K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),0!==a.length?(K(ae,this,ke).call(this,q(re,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),w().renameSync(n,a),i({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),i({data:r,response:e}))}),e.on("error",e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),error.data=K(ae,this,ye).call(this,error),s(e)})}function Se(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}W=le,le.instance=new le;var Ee=new WeakSet;class De{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ee),t.add(e),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new De,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("argumentsMap","undefined or null"):new O("errorGroup","undefined or null"):new O("locale","undefined or null"):new O("code","undefined or null"):new O("severity","undefined or null"):new O("message","undefined or null")}}function Re(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}De.prototype.message=void 0,De.prototype.severity=void 0,De.prototype.code=void 0,De.prototype.locale="en_US",De.prototype.errorGroup=void 0,De.prototype.argumentsMap=void 0,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var Ue=new WeakSet;class Ie{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ue),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ie,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("attributePath","undefined or null"):new O("message","undefined or null"):new O("location","undefined or null")}}function Ae(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ie.prototype.location=void 0,Ie.prototype.message=void 0,Ie.prototype.attributePath=void 0,Ie.prototype.$reserved=void 0,Ie.prototype.$objectType=void 0,Ie.prototype.$unknownFields=void 0;var Me=new WeakSet;class Ne{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Me),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ne,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(r=[],i=e.validationErrorMessages,o=0;o<i.length;o++)s=Ie.constructFromObject(i[o],void 0),r.push(s);t.setValidationErrorMessages(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ae(Me,this,xe).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{},...void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{},...void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{},...void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("validationErrorMessages","undefined or null"):new O("path","undefined or null"):new O("error","undefined or null"):new O("statusCode","undefined or null"):new O("timestamp","undefined or null")}}function xe(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ve(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ne.prototype.timestamp=void 0,Ne.prototype.statusCode=void 0,Ne.prototype.error=void 0,Ne.prototype.path=void 0,Ne.prototype.validationErrorMessages=void 0,Ne.prototype.$reserved=void 0,Ne.prototype.$objectType=void 0,Ne.prototype.$unknownFields=void 0;var Le=new WeakSet;class Be{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Le),t.add(e),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new Be,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(r=[],i=e.error,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";s=De.constructFromObject(i[o],void 0),r.push(s)}t.setError(r)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"aiops.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(Ne.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ve(Le,this,We).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):Ve(Le,this,We).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("error","undefined or null")}}function We(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Be.prototype.error=void 0,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var ze=new WeakSet;class Je{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=ze),n.add(t),this.boolList=e,this.$objectType="aiops.v4.stats.BoolList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Je,e.hasOwnProperty("boolList")&&null!==e.boolList&&void 0!==e.boolList){for(o=[],i=e.boolList,s=0;s<i.length;s++)o.push(i[s]);t.setBoolList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolList(){return this.boolList}setBoolList(e){this.boolList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolList()&&null!==this.getBoolList()?{boolList:this.getBoolList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("boolList"===t){if(void 0===this.boolList||null===this.boolList)return new O("boolList","undefined or null");if(!j.validateMaxItems(this.boolList,100))return new O("boolList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Je.prototype.boolList=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var _e=new WeakSet;class Ge{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=_e),n.add(t),this.boolValue=e,this.$objectType="aiops.v4.stats.BoolVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ge,e.hasOwnProperty("boolValue")&&null!==e.boolValue&&void 0!==e.boolValue&&t.setBoolValue(e.boolValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolValue(){return this.boolValue}setBoolValue(e){this.boolValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"boolValue"!==t||void 0!==this.boolValue&&null!==this.boolValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("boolValue","undefined or null")}}Ge.prototype.boolValue=void 0,Ge.prototype.$reserved=void 0,Ge.prototype.$objectType=void 0,Ge.prototype.$unknownFields=void 0;var qe=new WeakSet;class He{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=qe),n.add(t),this.doubleList=e,this.$objectType="aiops.v4.stats.DoubleList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new He,e.hasOwnProperty("doubleList")&&null!==e.doubleList&&void 0!==e.doubleList){for(o=[],i=e.doubleList,s=0;s<i.length;s++)o.push(i[s]);t.setDoubleList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleList(){return this.doubleList}setDoubleList(e){this.doubleList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleList()&&null!==this.getDoubleList()?{doubleList:this.getDoubleList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("doubleList"===t){if(void 0===this.doubleList||null===this.doubleList)return new O("doubleList","undefined or null");if(!j.validateMaxItems(this.doubleList,100))return new O("doubleList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}He.prototype.doubleList=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Ke=new WeakSet;class Xe{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ke),n.add(t),this.doubleValue=e,this.$objectType="aiops.v4.stats.DoubleVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xe,e.hasOwnProperty("doubleValue")&&null!==e.doubleValue&&void 0!==e.doubleValue&&t.setDoubleValue(e.doubleValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleValue(){return this.doubleValue}setDoubleValue(e){this.doubleValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"doubleValue"!==t||void 0!==this.doubleValue&&null!==this.doubleValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("doubleValue","undefined or null")}}Xe.prototype.doubleValue=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var Ze=new WeakSet;class Ye{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ze),n.add(t),this.intList=e,this.$objectType="aiops.v4.stats.IntList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Ye,e.hasOwnProperty("intList")&&null!==e.intList&&void 0!==e.intList){for(o=[],i=e.intList,s=0;s<i.length;s++)o.push(i[s]);t.setIntList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntList(){return this.intList}setIntList(e){this.intList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntList()&&null!==this.getIntList()?{intList:this.getIntList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("intList"===t){if(void 0===this.intList||null===this.intList)return new O("intList","undefined or null");if(!j.validateMaxItems(this.intList,100))return new O("intList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Ye.prototype.intList=void 0,Ye.prototype.$reserved=void 0,Ye.prototype.$objectType=void 0,Ye.prototype.$unknownFields=void 0;var Qe=new WeakSet;class et{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Qe),n.add(t),this.intValue=e,this.$objectType="aiops.v4.stats.IntVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new et,e.hasOwnProperty("intValue")&&null!==e.intValue&&void 0!==e.intValue&&t.setIntValue(e.intValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntValue(){return this.intValue}setIntValue(e){this.intValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"intValue"!==t||void 0!==this.intValue&&null!==this.intValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("intValue","undefined or null")}}et.prototype.intValue=void 0,et.prototype.$reserved=void 0,et.prototype.$objectType=void 0,et.prototype.$unknownFields=void 0;var tt=new WeakSet;class nt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=tt),n.add(t),this.strList=e,this.$objectType="aiops.v4.stats.StrList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new nt,e.hasOwnProperty("strList")&&null!==e.strList&&void 0!==e.strList){for(o=[],i=e.strList,s=0;s<i.length;s++)o.push(i[s]);t.setStrList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrList(){return this.strList}setStrList(e){this.strList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrList()&&null!==this.getStrList()?{strList:this.getStrList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("strList"===t){if(void 0===this.strList||null===this.strList)return new O("strList","undefined or null");if(!j.validateMaxItems(this.strList,100))return new O("strList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}nt.prototype.strList=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var it=new WeakSet;class st{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=it),n.add(t),this.strValue=e,this.$objectType="aiops.v4.stats.StrVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new st,e.hasOwnProperty("strValue")&&null!==e.strValue&&void 0!==e.strValue&&t.setStrValue(e.strValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrValue(){return this.strValue}setStrValue(e){this.strValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrValue()&&null!==this.getStrValue()?{strValue:this.getStrValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"strValue"!==t||void 0!==this.strValue&&null!==this.strValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("strValue","undefined or null")}}function ot(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}st.prototype.strValue=void 0,st.prototype.$reserved=void 0,st.prototype.$objectType=void 0,st.prototype.$unknownFields=void 0;var rt=new WeakSet;class at{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=rt),t.add(e),this.$objectType="aiops.v4.stats.Point",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new at,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)switch(i=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,i){case"aiops.v4.stats.StrVal":t.setValue(st.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolVal":t.setValue(Ge.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntVal":t.setValue(et.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleVal":t.setValue(Xe.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.StrList":t.setValue(nt.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolList":t.setValue(Je.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntList":t.setValue(Ye.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleList":t.setValue(He.constructFromObject(e.value,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):ot(rt,this,lt).call(this,this.getValue(),!1)}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):ot(rt,this,lt).call(this,this.getValue())}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timestamp","undefined or null"):new O("value","undefined or null")}}function lt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function dt(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}at.prototype.value=void 0,at.prototype.timestamp=void 0,at.prototype.$reserved=void 0,at.prototype.$objectType=void 0,at.prototype.$unknownFields=void 0;var ut=new WeakSet;class ht{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ut),t.add(e),this.$objectType="aiops.v4.stats.TimeSeries",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new ht,e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("values")&&null!==e.values&&void 0!==e.values){for(r=[],i=e.values,o=0;o<i.length;o++)s=at.constructFromObject(i[o],void 0),r.push(s);t.setValues(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getValues(){return this.values}setValues(e){this.values=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("values"===t){if(void 0===this.values||null===this.values)return new O("values","undefined or null");if(!j.validateMaxItems(this.values,2880))return new O("values","does not satisfy required maxItems constraint: 2880")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ht.prototype.samplingIntervalSecs=void 0,ht.prototype.values=void 0,ht.prototype.$reserved=void 0,ht.prototype.$objectType=void 0,ht.prototype.$unknownFields=void 0;var ct=new WeakSet;class pt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ct),t.add(e),this.$objectType="aiops.v4.stats.Metric",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new pt,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("timeSeries")&&null!==e.timeSeries&&void 0!==e.timeSeries&&t.setTimeSeries(ht.constructFromObject(e.timeSeries)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getTimeSeries(){return this.timeSeries}setTimeSeries(e){this.timeSeries=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getTimeSeries()&&null!==this.getTimeSeries()?{timeSeries:this.getTimeSeries().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}return"timeSeries"!==t||void 0!==this.timeSeries&&null!==this.timeSeries?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timeSeries","undefined or null")}}pt.prototype.name=void 0,pt.prototype.timeSeries=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var yt=new WeakSet;class vt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=yt),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vt,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new O("tenantId","undefined or null");if(!j.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vt.prototype.tenantId=void 0,vt.prototype.$reserved=void 0,vt.prototype.$objectType=void 0,vt.prototype.$unknownFields=void 0;var gt=new WeakSet;class mt extends vt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=gt),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new mt,vt.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(null==e){if(!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===k.update&&!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}return new O(t,"no such property exists")}}mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var wt=new WeakSet;class $t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=wt),t.add(e),this.$objectType="aiops.v4.stats.Entity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new $t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=$t.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=pt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function ft(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$t.prototype.entityType=void 0,$t.prototype.source=void 0,$t.prototype.parents=void 0,$t.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var bt=new WeakSet;class Tt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bt),t.add(e),this.$objectType="aiops.v4.stats.EntityListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Tt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.stats.Entity"!==l)throw"Unknown list of type "+l+" in data";s=$t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ft(bt,this,kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ft(bt,this,kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Tt.prototype.metadata=void 0,Tt.prototype.data=void 0,Tt.prototype.$reserved=void 0,Tt.prototype.$objectType=void 0,Tt.prototype.$unknownFields=void 0;var jt=new WeakSet;class Ot{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=jt),t.add(e),this.$objectType="aiops.v4.config.ValueRange",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ot,e.hasOwnProperty("min")&&null!==e.min&&void 0!==e.min&&t.setMin(e.min),e.hasOwnProperty("max")&&null!==e.max&&void 0!==e.max&&t.setMax(e.max),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMin(){return this.min}setMin(e){this.min=e}getMax(){return this.max}setMax(e){this.max=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMin()&&null!==this.getMin()?{min:this.getMin()}:{},...void 0!==this.getMax()&&null!==this.getMax()?{max:this.getMax()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"min"!==t||void 0!==this.min&&null!==this.min?"max"!==t||void 0!==this.max&&null!==this.max?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("max","undefined or null"):new O("min","undefined or null")}}Ot.prototype.min=void 0,Ot.prototype.max=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;const Ft={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BOOL:"BOOL",INT:"INT",DOUBLE:"DOUBLE",STRING:"STRING",BOOL_LIST:"BOOL_LIST",INT_LIST:"INT_LIST",DOUBLE_LIST:"DOUBLE_LIST",STRING_LIST:"STRING_LIST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ft).find(t=>Ft[t]===e);return null==t?Ft.$UNKNOWN:Ft[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ft.$UNKNOWN:case Ft.$REDACTED:case Ft.BOOL:case Ft.INT:case Ft.DOUBLE:case Ft.STRING:case Ft.BOOL_LIST:case Ft.INT_LIST:case Ft.DOUBLE_LIST:case Ft.STRING_LIST:return;default:throw new Error("Invalid : must be ValueType.{ $UNKNOWN|$REDACTED|BOOL|INT|DOUBLE|STRING|BOOL_LIST|INT_LIST|DOUBLE_LIST|STRING_LIST }")}}};Object.freeze(Ft);const Ct=Ft,Pt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Pt).find(t=>Pt[t]===e);return null==t?Pt.$UNKNOWN:Pt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pt.$UNKNOWN:case Pt.$REDACTED:case Pt.SUM:case Pt.MIN:case Pt.MAX:case Pt.AVG:case Pt.COUNT:case Pt.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Pt);const St=Pt;var Et=new WeakSet;class Dt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Et),t.add(e),this.$objectType="aiops.v4.config.MetricDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Dt,e.hasOwnProperty("isAttribute")&&null!==e.isAttribute&&void 0!==e.isAttribute&&t.setIsAttribute(e.isAttribute),e.hasOwnProperty("isAttributePersistedAsTimeSeries")&&null!==e.isAttributePersistedAsTimeSeries&&void 0!==e.isAttributePersistedAsTimeSeries&&t.setIsAttributePersistedAsTimeSeries(e.isAttributePersistedAsTimeSeries),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("valueType")&&null!==e.valueType&&void 0!==e.valueType&&t.setValueType(Ct.constructFromObject(e.valueType)),e.hasOwnProperty("valueRange")&&null!==e.valueRange&&void 0!==e.valueRange&&t.setValueRange(Ot.constructFromObject(e.valueRange)),e.hasOwnProperty("defaultValue")&&null!==e.defaultValue&&void 0!==e.defaultValue&&t.setDefaultValue(e.defaultValue),e.hasOwnProperty("unit")&&null!==e.unit&&void 0!==e.unit&&t.setUnit(e.unit),e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("downsamplingOperator")&&null!==e.downsamplingOperator&&void 0!==e.downsamplingOperator&&t.setDownsamplingOperator(St.constructFromObject(e.downsamplingOperator)),e.hasOwnProperty("additionalProperties")&&null!==e.additionalProperties&&void 0!==e.additionalProperties){for(r=[],i=e.additionalProperties,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setAdditionalProperties(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsAttribute(){return this.isAttribute}setIsAttribute(e){this.isAttribute=e}getIsAttributePersistedAsTimeSeries(){return this.isAttributePersistedAsTimeSeries}setIsAttributePersistedAsTimeSeries(e){this.isAttributePersistedAsTimeSeries=e}getName(){return this.name}setName(e){this.name=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getValueType(){return this.valueType}setValueType(e){this.valueType=e}getValueRange(){return this.valueRange}setValueRange(e){this.valueRange=e}getDefaultValue(){return this.defaultValue}setDefaultValue(e){this.defaultValue=e}getUnit(){return this.unit}setUnit(e){this.unit=e}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getDownsamplingOperator(){return this.downsamplingOperator}setDownsamplingOperator(e){this.downsamplingOperator=e}getAdditionalProperties(){return this.additionalProperties}setAdditionalProperties(e){this.additionalProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIsAttribute()&&null!==this.getIsAttribute()?{isAttribute:this.getIsAttribute()}:{},...void 0!==this.getIsAttributePersistedAsTimeSeries()&&null!==this.getIsAttributePersistedAsTimeSeries()?{isAttributePersistedAsTimeSeries:this.getIsAttributePersistedAsTimeSeries()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getValueType()&&null!==this.getValueType()?{valueType:this.getValueType()}:{},...void 0!==this.getValueRange()&&null!==this.getValueRange()?{valueRange:this.getValueRange().toJson(!1)}:{},...void 0!==this.getDefaultValue()&&null!==this.getDefaultValue()?{defaultValue:this.getDefaultValue()}:{},...void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{},...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getDownsamplingOperator()&&null!==this.getDownsamplingOperator()?{downsamplingOperator:this.getDownsamplingOperator()}:{},...void 0!==this.getAdditionalProperties()&&null!==this.getAdditionalProperties()?{additionalProperties:this.getAdditionalProperties().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("isAttribute"===t&&(void 0===this.isAttribute||null===this.isAttribute))return new O("isAttribute","undefined or null");if("isAttributePersistedAsTimeSeries"===t&&(void 0===this.isAttributePersistedAsTimeSeries||null===this.isAttributePersistedAsTimeSeries))return new O("isAttributePersistedAsTimeSeries","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("valueType"===t&&(void 0===this.valueType||null===this.valueType))return new O("valueType","undefined or null");if("valueRange"===t&&(void 0===this.valueRange||null===this.valueRange))return new O("valueRange","undefined or null");if("defaultValue"===t&&(void 0===this.defaultValue||null===this.defaultValue))return new O("defaultValue","undefined or null");if("unit"===t&&(void 0===this.unit||null===this.unit))return new O("unit","undefined or null");if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("downsamplingOperator"===t&&(void 0===this.downsamplingOperator||null===this.downsamplingOperator))return new O("downsamplingOperator","undefined or null");if("additionalProperties"===t){if(void 0===this.additionalProperties||null===this.additionalProperties)return new O("additionalProperties","undefined or null");if(!j.validateMaxItems(this.additionalProperties,100))return new O("additionalProperties","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Dt.prototype.isAttribute=void 0,Dt.prototype.isAttributePersistedAsTimeSeries=void 0,Dt.prototype.name=void 0,Dt.prototype.displayName=void 0,Dt.prototype.valueType=void 0,Dt.prototype.valueRange=void 0,Dt.prototype.defaultValue=void 0,Dt.prototype.unit=void 0,Dt.prototype.samplingIntervalSecs=void 0,Dt.prototype.downsamplingOperator=void 0,Dt.prototype.additionalProperties=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Rt=new WeakSet;class Ut extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Rt),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ut,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=Ut.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=Dt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function It(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ut.prototype.entityType=void 0,Ut.prototype.source=void 0,Ut.prototype.displayName=void 0,Ut.prototype.parents=void 0,Ut.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var At=new WeakSet;class Mt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=At),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptorListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Mt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityDescriptor"!==l)throw"Unknown list of type "+l+" in data";s=Ut.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):It(At,this,Nt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):It(At,this,Nt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Nt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mt.prototype.metadata=void 0,Mt.prototype.data=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var xt=new WeakSet;class Vt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=xt),t.add(e),this.$objectType="aiops.v4.config.Source",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("sourceName")&&null!==e.sourceName&&void 0!==e.sourceName&&t.setSourceName(e.sourceName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}toJson(e){return!1===e?{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("sourceName"===t){if(void 0===this.sourceName||null===this.sourceName)return new O("sourceName","undefined or null");if(!j.validateMaxLength(this.sourceName,50))return new O("sourceName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Lt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vt.prototype.sourceName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Bt=new WeakSet;class Wt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bt),t.add(e),this.$objectType="aiops.v4.config.SourceListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Wt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.Source"!==l)throw"Unknown list of type "+l+" in data";s=Vt.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Lt(Bt,this,zt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Lt(Bt,this,zt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Wt.prototype.metadata=void 0,Wt.prototype.data=void 0,Wt.prototype.$reserved=void 0,Wt.prototype.$objectType=void 0,Wt.prototype.$unknownFields=void 0;var Jt=new WeakSet;class _t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Jt),t.add(e),this.$objectType="aiops.v4.config.EntityType",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityTypeName")&&null!==e.entityTypeName&&void 0!==e.entityTypeName&&t.setEntityTypeName(e.entityTypeName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityTypeName(){return this.entityTypeName}setEntityTypeName(e){this.entityTypeName=e}toJson(e){return!1===e?{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityTypeName"===t){if(void 0===this.entityTypeName||null===this.entityTypeName)return new O("entityTypeName","undefined or null");if(!j.validateMaxLength(this.entityTypeName,50))return new O("entityTypeName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Gt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_t.prototype.entityTypeName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var qt=new WeakSet;class Ht extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=qt),t.add(e),this.$objectType="aiops.v4.config.EntityTypeListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ht,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityType"!==l)throw"Unknown list of type "+l+" in data";s=_t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Gt(qt,this,Kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Gt(qt,this,Kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ht.prototype.metadata=void 0,Ht.prototype.data=void 0,Ht.prototype.$reserved=void 0,Ht.prototype.$objectType=void 0,Ht.prototype.$unknownFields=void 0;var Xt=new WeakSet;class Zt{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=Xt),s.add(i),this.vcpuCount=e,this.ramGb=t,this.hddGb=n,this.$objectType="aiops.v4.config.SimulatedVmResourceSpec",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Zt,e.hasOwnProperty("vcpuCount")&&null!==e.vcpuCount&&void 0!==e.vcpuCount&&t.setVcpuCount(e.vcpuCount),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVcpuCount(){return this.vcpuCount}setVcpuCount(e){this.vcpuCount=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVcpuCount()&&null!==this.getVcpuCount()?{vcpuCount:this.getVcpuCount()}:{},...void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{},...void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{},...void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vcpuCount"!==t||void 0!==this.vcpuCount&&null!==this.vcpuCount?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("vcpuCount","undefined or null")}}Zt.prototype.vcpuCount=void 0,Zt.prototype.ramGb=void 0,Zt.prototype.hddGb=void 0,Zt.prototype.ssdGb=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var Yt=new WeakSet;class Qt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Yt),t.add(e),this.$objectType="aiops.v4.config.Simulation",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("simulationSpec")&&null!==e.simulationSpec&&void 0!==e.simulationSpec&&t.setSimulationSpec(Zt.constructFromObject(e.simulationSpec)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getSimulationSpec(){return this.simulationSpec}setSimulationSpec(e){this.simulationSpec=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"simulationSpec"!==t||void 0!==this.simulationSpec&&null!==this.simulationSpec?new O(t,"no such property exists"):new O("simulationSpec","undefined or null")}}function en(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Qt.prototype.name=void 0,Qt.prototype.simulationSpec=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var tn=new WeakSet;class nn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=tn),t.add(e),this.$objectType="aiops.v4.config.CreateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new nn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):en(tn,this,sn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):en(tn,this,sn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function sn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}nn.prototype.metadata=void 0,nn.prototype.data=void 0,nn.prototype.$reserved=void 0,nn.prototype.$objectType=void 0,nn.prototype.$unknownFields=void 0;class on extends Qt{constructor(){super(),this.$objectType="aiops.v4.config.SimulationProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new on,Qt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function rn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var an=new WeakSet;class ln extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=an),t.add(e),this.$objectType="aiops.v4.config.ListSimulationsApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new ln,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Simulation":s=Qt.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.SimulationProjection":s=on.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rn(an,this,dn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rn(an,this,dn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function dn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function un(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ln.prototype.metadata=void 0,ln.prototype.data=void 0,ln.prototype.$reserved=void 0,ln.prototype.$objectType=void 0,ln.prototype.$unknownFields=void 0;var hn=new WeakSet;class cn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hn),t.add(e),this.$objectType="aiops.v4.config.UpdateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new cn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.error.AppMessage"!==l)throw"Unknown list of type "+l+" in data";s=De.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):un(hn,this,pn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):un(hn,this,pn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function pn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}cn.prototype.metadata=void 0,cn.prototype.data=void 0,cn.prototype.$reserved=void 0,cn.prototype.$objectType=void 0,cn.prototype.$unknownFields=void 0;const yn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RF_2:"RF_2",RF_3:"RF_3",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(yn).find(t=>yn[t]===e);return null==t?yn.$UNKNOWN:yn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yn.$UNKNOWN:case yn.$REDACTED:case yn.RF_2:case yn.RF_3:return;default:throw new Error("Invalid : must be ReplicationFactor.{ $UNKNOWN|$REDACTED|RF_2|RF_3 }")}}};Object.freeze(yn);const vn=yn;var gn=new WeakSet;class mn{constructor(e,t,n,i,s,o,r,a,l,d){var u,h;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u=this,h=gn),h.add(u),this.replicationFactor=e,this.compressionSavingPercent=t,this.dedupSavingPercent=n,this.erasureCodingSavingPercent=i,this.overallSavingPercent=s,this.cpuOverCommitRatio=o,this.ramOverCommitRatio=r,this.cpuReservationPercentage=a,this.ramReservationPercentage=l,this.storageReservationPercentage=d,this.$objectType="aiops.v4.config.DataStoreConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mn,e.hasOwnProperty("replicationFactor")&&null!==e.replicationFactor&&void 0!==e.replicationFactor&&t.setReplicationFactor(vn.constructFromObject(e.replicationFactor)),e.hasOwnProperty("compressionSavingPercent")&&null!==e.compressionSavingPercent&&void 0!==e.compressionSavingPercent&&t.setCompressionSavingPercent(e.compressionSavingPercent),e.hasOwnProperty("dedupSavingPercent")&&null!==e.dedupSavingPercent&&void 0!==e.dedupSavingPercent&&t.setDedupSavingPercent(e.dedupSavingPercent),e.hasOwnProperty("erasureCodingSavingPercent")&&null!==e.erasureCodingSavingPercent&&void 0!==e.erasureCodingSavingPercent&&t.setErasureCodingSavingPercent(e.erasureCodingSavingPercent),e.hasOwnProperty("overallSavingPercent")&&null!==e.overallSavingPercent&&void 0!==e.overallSavingPercent&&t.setOverallSavingPercent(e.overallSavingPercent),e.hasOwnProperty("cpuOverCommitRatio")&&null!==e.cpuOverCommitRatio&&void 0!==e.cpuOverCommitRatio&&t.setCpuOverCommitRatio(e.cpuOverCommitRatio),e.hasOwnProperty("ramOverCommitRatio")&&null!==e.ramOverCommitRatio&&void 0!==e.ramOverCommitRatio&&t.setRamOverCommitRatio(e.ramOverCommitRatio),e.hasOwnProperty("cpuReservationPercentage")&&null!==e.cpuReservationPercentage&&void 0!==e.cpuReservationPercentage&&t.setCpuReservationPercentage(e.cpuReservationPercentage),e.hasOwnProperty("ramReservationPercentage")&&null!==e.ramReservationPercentage&&void 0!==e.ramReservationPercentage&&t.setRamReservationPercentage(e.ramReservationPercentage),e.hasOwnProperty("storageReservationPercentage")&&null!==e.storageReservationPercentage&&void 0!==e.storageReservationPercentage&&t.setStorageReservationPercentage(e.storageReservationPercentage),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getReplicationFactor(){return this.replicationFactor}setReplicationFactor(e){this.replicationFactor=e}getCompressionSavingPercent(){return this.compressionSavingPercent}setCompressionSavingPercent(e){this.compressionSavingPercent=e}getDedupSavingPercent(){return this.dedupSavingPercent}setDedupSavingPercent(e){this.dedupSavingPercent=e}getErasureCodingSavingPercent(){return this.erasureCodingSavingPercent}setErasureCodingSavingPercent(e){this.erasureCodingSavingPercent=e}getOverallSavingPercent(){return this.overallSavingPercent}setOverallSavingPercent(e){this.overallSavingPercent=e}getCpuOverCommitRatio(){return this.cpuOverCommitRatio}setCpuOverCommitRatio(e){this.cpuOverCommitRatio=e}getRamOverCommitRatio(){return this.ramOverCommitRatio}setRamOverCommitRatio(e){this.ramOverCommitRatio=e}getCpuReservationPercentage(){return this.cpuReservationPercentage}setCpuReservationPercentage(e){this.cpuReservationPercentage=e}getRamReservationPercentage(){return this.ramReservationPercentage}setRamReservationPercentage(e){this.ramReservationPercentage=e}getStorageReservationPercentage(){return this.storageReservationPercentage}setStorageReservationPercentage(e){this.storageReservationPercentage=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getReplicationFactor()&&null!==this.getReplicationFactor()?{replicationFactor:this.getReplicationFactor()}:{},...void 0!==this.getCompressionSavingPercent()&&null!==this.getCompressionSavingPercent()?{compressionSavingPercent:this.getCompressionSavingPercent()}:{},...void 0!==this.getDedupSavingPercent()&&null!==this.getDedupSavingPercent()?{dedupSavingPercent:this.getDedupSavingPercent()}:{},...void 0!==this.getErasureCodingSavingPercent()&&null!==this.getErasureCodingSavingPercent()?{erasureCodingSavingPercent:this.getErasureCodingSavingPercent()}:{},...void 0!==this.getOverallSavingPercent()&&null!==this.getOverallSavingPercent()?{overallSavingPercent:this.getOverallSavingPercent()}:{},...void 0!==this.getCpuOverCommitRatio()&&null!==this.getCpuOverCommitRatio()?{cpuOverCommitRatio:this.getCpuOverCommitRatio()}:{},...void 0!==this.getRamOverCommitRatio()&&null!==this.getRamOverCommitRatio()?{ramOverCommitRatio:this.getRamOverCommitRatio()}:{},...void 0!==this.getCpuReservationPercentage()&&null!==this.getCpuReservationPercentage()?{cpuReservationPercentage:this.getCpuReservationPercentage()}:{},...void 0!==this.getRamReservationPercentage()&&null!==this.getRamReservationPercentage()?{ramReservationPercentage:this.getRamReservationPercentage()}:{},...void 0!==this.getStorageReservationPercentage()&&null!==this.getStorageReservationPercentage()?{storageReservationPercentage:this.getStorageReservationPercentage()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["replicationFactor","compressionSavingPercent","dedupSavingPercent","erasureCodingSavingPercent","overallSavingPercent","cpuOverCommitRatio","ramOverCommitRatio","cpuReservationPercentage","ramReservationPercentage","storageReservationPercentage"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"replicationFactor"!==t||void 0!==this.replicationFactor&&null!==this.replicationFactor?"compressionSavingPercent"!==t||void 0!==this.compressionSavingPercent&&null!==this.compressionSavingPercent?"dedupSavingPercent"!==t||void 0!==this.dedupSavingPercent&&null!==this.dedupSavingPercent?"erasureCodingSavingPercent"!==t||void 0!==this.erasureCodingSavingPercent&&null!==this.erasureCodingSavingPercent?"overallSavingPercent"!==t||void 0!==this.overallSavingPercent&&null!==this.overallSavingPercent?"cpuOverCommitRatio"!==t||void 0!==this.cpuOverCommitRatio&&null!==this.cpuOverCommitRatio?"ramOverCommitRatio"!==t||void 0!==this.ramOverCommitRatio&&null!==this.ramOverCommitRatio?"cpuReservationPercentage"!==t||void 0!==this.cpuReservationPercentage&&null!==this.cpuReservationPercentage?"ramReservationPercentage"!==t||void 0!==this.ramReservationPercentage&&null!==this.ramReservationPercentage?"storageReservationPercentage"!==t||void 0!==this.storageReservationPercentage&&null!==this.storageReservationPercentage?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("storageReservationPercentage","undefined or null"):new O("ramReservationPercentage","undefined or null"):new O("cpuReservationPercentage","undefined or null"):new O("ramOverCommitRatio","undefined or null"):new O("cpuOverCommitRatio","undefined or null"):new O("overallSavingPercent","undefined or null"):new O("erasureCodingSavingPercent","undefined or null"):new O("dedupSavingPercent","undefined or null"):new O("compressionSavingPercent","undefined or null"):new O("replicationFactor","undefined or null")}}mn.prototype.replicationFactor=void 0,mn.prototype.compressionSavingPercent=25.81037,mn.prototype.dedupSavingPercent=35.864,mn.prototype.erasureCodingSavingPercent=15.16939,mn.prototype.overallSavingPercent=59.64,mn.prototype.cpuOverCommitRatio=1,mn.prototype.ramOverCommitRatio=1,mn.prototype.cpuReservationPercentage=0,mn.prototype.ramReservationPercentage=0,mn.prototype.storageReservationPercentage=0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;const wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EXISTING:"EXISTING",USER_ADDED:"USER_ADDED",RECOMMENDED:"RECOMMENDED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(wn).find(t=>wn[t]===e);return null==t?wn.$UNKNOWN:wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wn.$UNKNOWN:case wn.$REDACTED:case wn.EXISTING:case wn.USER_ADDED:case wn.RECOMMENDED:return;default:throw new Error("Invalid : must be NodeSource.{ $UNKNOWN|$REDACTED|EXISTING|USER_ADDED|RECOMMENDED }")}}};Object.freeze(wn);const $n=wn;var fn=new WeakSet;class bn{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=fn),r.add(o),this.cpuGhz=e,this.ramGb=t,this.hddGb=n,this.ssdGb=i,this.nvmeGb=s,this.$objectType="aiops.v4.config.ResourceCapacity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new bn,e.hasOwnProperty("cpuGhz")&&null!==e.cpuGhz&&void 0!==e.cpuGhz&&t.setCpuGhz(e.cpuGhz),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("nvmeGb")&&null!==e.nvmeGb&&void 0!==e.nvmeGb&&t.setNvmeGb(e.nvmeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCpuGhz(){return this.cpuGhz}setCpuGhz(e){this.cpuGhz=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}getNvmeGb(){return this.nvmeGb}setNvmeGb(e){this.nvmeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCpuGhz()&&null!==this.getCpuGhz()?{cpuGhz:this.getCpuGhz()}:{},...void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{},...void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{},...void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{},...void 0!==this.getNvmeGb()&&null!==this.getNvmeGb()?{nvmeGb:this.getNvmeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["cpuGhz","ramGb","hddGb","ssdGb","nvmeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"cpuGhz"!==t||void 0!==this.cpuGhz&&null!==this.cpuGhz?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"nvmeGb"!==t||void 0!==this.nvmeGb&&null!==this.nvmeGb?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nvmeGb","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("cpuGhz","undefined or null")}}function Tn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}bn.prototype.cpuGhz=void 0,bn.prototype.ramGb=void 0,bn.prototype.hddGb=void 0,bn.prototype.ssdGb=void 0,bn.prototype.nvmeGb=void 0,bn.prototype.$reserved=void 0,bn.prototype.$objectType=void 0,bn.prototype.$unknownFields=void 0;var kn=new WeakSet;class jn{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=kn),o.add(s),this.model=e,this.nodeCount=t,this.isEnabled=n,this.nodeSource=i,this.$objectType="aiops.v4.config.NodeConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new jn,e.hasOwnProperty("model")&&null!==e.model&&void 0!==e.model&&t.setModel(e.model),e.hasOwnProperty("nodeCount")&&null!==e.nodeCount&&void 0!==e.nodeCount&&t.setNodeCount(e.nodeCount),e.hasOwnProperty("targetOnlineTime")&&null!==e.targetOnlineTime&&void 0!==e.targetOnlineTime&&t.setTargetOnlineTime(e.targetOnlineTime),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("isDisregarded")&&null!==e.isDisregarded&&void 0!==e.isDisregarded&&t.setIsDisregarded(e.isDisregarded),e.hasOwnProperty("nodeSource")&&null!==e.nodeSource&&void 0!==e.nodeSource&&t.setNodeSource($n.constructFromObject(e.nodeSource)),e.hasOwnProperty("nodeResourceCapacity")&&null!==e.nodeResourceCapacity&&void 0!==e.nodeResourceCapacity&&t.setNodeResourceCapacity(bn.constructFromObject(e.nodeResourceCapacity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getModel(){return this.model}setModel(e){this.model=e}getNodeCount(){return this.nodeCount}setNodeCount(e){this.nodeCount=e}getTargetOnlineTime(){return this.targetOnlineTime}setTargetOnlineTime(e){this.targetOnlineTime=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getIsDisregarded(){return this.isDisregarded}setIsDisregarded(e){this.isDisregarded=e}getNodeSource(){return this.nodeSource}setNodeSource(e){this.nodeSource=e}getNodeResourceCapacity(){return this.nodeResourceCapacity}setNodeResourceCapacity(e){this.nodeResourceCapacity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getModel()&&null!==this.getModel()?{model:this.getModel()}:{},...void 0!==this.getNodeCount()&&null!==this.getNodeCount()?{nodeCount:this.getNodeCount()}:{},...void 0!==this.getTargetOnlineTime()&&null!==this.getTargetOnlineTime()?{targetOnlineTime:Tn(kn,this,On).call(this,this.getTargetOnlineTime(),!1)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getIsDisregarded()&&null!==this.getIsDisregarded()?{isDisregarded:this.getIsDisregarded()}:{},...void 0!==this.getNodeSource()&&null!==this.getNodeSource()?{nodeSource:this.getNodeSource()}:{},...void 0!==this.getNodeResourceCapacity()&&null!==this.getNodeResourceCapacity()?{nodeResourceCapacity:this.getNodeResourceCapacity().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["model","nodeCount","isEnabled","nodeSource"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("model"===t&&(void 0===this.model||null===this.model))return new O("model","undefined or null");if("nodeCount"===t){if(void 0===this.nodeCount||null===this.nodeCount)return new O("nodeCount","undefined or null");if(!j.validateMaximum(this.nodeCount,500))return new O("nodeCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.nodeCount,1))return new O("nodeCount","does not satisfy required minimum constraint: 1")}return"targetOnlineTime"!==t||void 0!==this.targetOnlineTime&&null!==this.targetOnlineTime?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"isDisregarded"!==t||void 0!==this.isDisregarded&&null!==this.isDisregarded?"nodeSource"!==t||void 0!==this.nodeSource&&null!==this.nodeSource?"nodeResourceCapacity"!==t||void 0!==this.nodeResourceCapacity&&null!==this.nodeResourceCapacity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nodeResourceCapacity","undefined or null"):new O("nodeSource","undefined or null"):new O("isDisregarded","undefined or null"):new O("isEnabled","undefined or null"):new O("targetOnlineTime","undefined or null")}}function On(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}jn.prototype.model=void 0,jn.prototype.nodeCount=void 0,jn.prototype.targetOnlineTime=void 0,jn.prototype.isEnabled=!1,jn.prototype.isDisregarded=!1,jn.prototype.nodeSource=void 0,jn.prototype.nodeResourceCapacity=void 0,jn.prototype.$reserved=void 0,jn.prototype.$objectType=void 0,jn.prototype.$unknownFields=void 0;var Fn=new WeakSet;class Cn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Fn),t.add(e),this.$objectType="aiops.v4.config.ClusterConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cn,e.hasOwnProperty("dataStoreConfig")&&null!==e.dataStoreConfig&&void 0!==e.dataStoreConfig&&t.setDataStoreConfig(mn.constructFromObject(e.dataStoreConfig)),e.hasOwnProperty("nodeConfigs")&&null!==e.nodeConfigs&&void 0!==e.nodeConfigs){for(r=[],i=e.nodeConfigs,o=0;o<i.length;o++)s=jn.constructFromObject(i[o],void 0),r.push(s);t.setNodeConfigs(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDataStoreConfig(){return this.dataStoreConfig}setDataStoreConfig(e){this.dataStoreConfig=e}getNodeConfigs(){return this.nodeConfigs}setNodeConfigs(e){this.nodeConfigs=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDataStoreConfig()&&null!==this.getDataStoreConfig()?{dataStoreConfig:this.getDataStoreConfig().toJson(!1)}:{},...void 0!==this.getNodeConfigs()&&null!==this.getNodeConfigs()?{nodeConfigs:this.getNodeConfigs().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dataStoreConfig"===t&&(void 0===this.dataStoreConfig||null===this.dataStoreConfig))return new O("dataStoreConfig","undefined or null");if("nodeConfigs"===t){if(void 0===this.nodeConfigs||null===this.nodeConfigs)return new O("nodeConfigs","undefined or null");if(!j.validateMaxItems(this.nodeConfigs,50))return new O("nodeConfigs","does not satisfy required maxItems constraint: 50")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Pn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Cn.prototype.dataStoreConfig=void 0,Cn.prototype.nodeConfigs=void 0,Cn.prototype.$reserved=void 0,Cn.prototype.$objectType=void 0,Cn.prototype.$unknownFields=void 0;var Sn=new WeakSet;class En{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=Sn),r.add(o),this.minimumRunwayDays=e,this.cpuRunwayDays=t,this.memoryRunwayDays=n,this.storageRunwayDays=i,this.runwayStartTime=s,this.$objectType="aiops.v4.config.Runway",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new En,e.hasOwnProperty("minimumRunwayDays")&&null!==e.minimumRunwayDays&&void 0!==e.minimumRunwayDays&&t.setMinimumRunwayDays(e.minimumRunwayDays),e.hasOwnProperty("cpuRunwayDays")&&null!==e.cpuRunwayDays&&void 0!==e.cpuRunwayDays&&t.setCpuRunwayDays(e.cpuRunwayDays),e.hasOwnProperty("memoryRunwayDays")&&null!==e.memoryRunwayDays&&void 0!==e.memoryRunwayDays&&t.setMemoryRunwayDays(e.memoryRunwayDays),e.hasOwnProperty("storageRunwayDays")&&null!==e.storageRunwayDays&&void 0!==e.storageRunwayDays&&t.setStorageRunwayDays(e.storageRunwayDays),e.hasOwnProperty("runwayStartTime")&&null!==e.runwayStartTime&&void 0!==e.runwayStartTime&&t.setRunwayStartTime(e.runwayStartTime),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMinimumRunwayDays(){return this.minimumRunwayDays}setMinimumRunwayDays(e){this.minimumRunwayDays=e}getCpuRunwayDays(){return this.cpuRunwayDays}setCpuRunwayDays(e){this.cpuRunwayDays=e}getMemoryRunwayDays(){return this.memoryRunwayDays}setMemoryRunwayDays(e){this.memoryRunwayDays=e}getStorageRunwayDays(){return this.storageRunwayDays}setStorageRunwayDays(e){this.storageRunwayDays=e}getRunwayStartTime(){return this.runwayStartTime}setRunwayStartTime(e){this.runwayStartTime=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMinimumRunwayDays()&&null!==this.getMinimumRunwayDays()?{minimumRunwayDays:this.getMinimumRunwayDays()}:{},...void 0!==this.getCpuRunwayDays()&&null!==this.getCpuRunwayDays()?{cpuRunwayDays:this.getCpuRunwayDays()}:{},...void 0!==this.getMemoryRunwayDays()&&null!==this.getMemoryRunwayDays()?{memoryRunwayDays:this.getMemoryRunwayDays()}:{},...void 0!==this.getStorageRunwayDays()&&null!==this.getStorageRunwayDays()?{storageRunwayDays:this.getStorageRunwayDays()}:{},...void 0!==this.getRunwayStartTime()&&null!==this.getRunwayStartTime()?{runwayStartTime:Pn(Sn,this,Dn).call(this,this.getRunwayStartTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["minimumRunwayDays","cpuRunwayDays","memoryRunwayDays","storageRunwayDays","runwayStartTime"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("minimumRunwayDays"===t){if(void 0===this.minimumRunwayDays||null===this.minimumRunwayDays)return new O("minimumRunwayDays","undefined or null");if(!j.validateMaximum(this.minimumRunwayDays,366))return new O("minimumRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.minimumRunwayDays,-1))return new O("minimumRunwayDays","does not satisfy required minimum constraint: -1")}if("cpuRunwayDays"===t){if(void 0===this.cpuRunwayDays||null===this.cpuRunwayDays)return new O("cpuRunwayDays","undefined or null");if(!j.validateMaximum(this.cpuRunwayDays,366))return new O("cpuRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.cpuRunwayDays,-1))return new O("cpuRunwayDays","does not satisfy required minimum constraint: -1")}if("memoryRunwayDays"===t){if(void 0===this.memoryRunwayDays||null===this.memoryRunwayDays)return new O("memoryRunwayDays","undefined or null");if(!j.validateMaximum(this.memoryRunwayDays,366))return new O("memoryRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.memoryRunwayDays,-1))return new O("memoryRunwayDays","does not satisfy required minimum constraint: -1")}if("storageRunwayDays"===t){if(void 0===this.storageRunwayDays||null===this.storageRunwayDays)return new O("storageRunwayDays","undefined or null");if(!j.validateMaximum(this.storageRunwayDays,366))return new O("storageRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.storageRunwayDays,-1))return new O("storageRunwayDays","does not satisfy required minimum constraint: -1")}return"runwayStartTime"!==t||void 0!==this.runwayStartTime&&null!==this.runwayStartTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("runwayStartTime","undefined or null")}}function Dn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}En.prototype.minimumRunwayDays=void 0,En.prototype.cpuRunwayDays=void 0,En.prototype.memoryRunwayDays=void 0,En.prototype.storageRunwayDays=void 0,En.prototype.runwayStartTime=void 0,En.prototype.$reserved=void 0,En.prototype.$objectType=void 0,En.prototype.$unknownFields=void 0;const Rn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",DELL:"DELL",LENOVO:"LENOVO",CISCO:"CISCO",IBM:"IBM",HPE_DX:"HPE_DX",AWS:"AWS",FUJITSU:"FUJITSU",AZURE:"AZURE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Rn).find(t=>Rn[t]===e);return null==t?Rn.$UNKNOWN:Rn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Rn.$UNKNOWN:case Rn.$REDACTED:case Rn.NUTANIX:case Rn.DELL:case Rn.LENOVO:case Rn.CISCO:case Rn.IBM:case Rn.HPE_DX:case Rn.AWS:case Rn.FUJITSU:case Rn.AZURE:return;default:throw new Error("Invalid : must be Vendor.{ $UNKNOWN|$REDACTED|NUTANIX|DELL|LENOVO|CISCO|IBM|HPE_DX|AWS|FUJITSU|AZURE }")}}};Object.freeze(Rn);const Un=Rn,In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCREASE:"INCREASE",DECREASE:"DECREASE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(In).find(t=>In[t]===e);return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.INCREASE:case In.DECREASE:return;default:throw new Error("Invalid : must be CapacityUpdateType.{ $UNKNOWN|$REDACTED|INCREASE|DECREASE }")}}};Object.freeze(In);const An=In;var Mn=new WeakSet;class Nn{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Mn),i.add(n),this.percentageChange=e,this.changeType=t,this.$objectType="aiops.v4.config.CapacityUpdateConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Nn,e.hasOwnProperty("percentageChange")&&null!==e.percentageChange&&void 0!==e.percentageChange&&t.setPercentageChange(e.percentageChange),e.hasOwnProperty("changeType")&&null!==e.changeType&&void 0!==e.changeType&&t.setChangeType(An.constructFromObject(e.changeType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPercentageChange(){return this.percentageChange}setPercentageChange(e){this.percentageChange=e}getChangeType(){return this.changeType}setChangeType(e){this.changeType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getPercentageChange()&&null!==this.getPercentageChange()?{percentageChange:this.getPercentageChange()}:{},...void 0!==this.getChangeType()&&null!==this.getChangeType()?{changeType:this.getChangeType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["percentageChange","changeType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"percentageChange"!==t||void 0!==this.percentageChange&&null!==this.percentageChange?"changeType"!==t||void 0!==this.changeType&&null!==this.changeType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("changeType","undefined or null"):new O("percentageChange","undefined or null")}}Nn.prototype.percentageChange=void 0,Nn.prototype.changeType=void 0,Nn.prototype.$reserved=void 0,Nn.prototype.$objectType=void 0,Nn.prototype.$unknownFields=void 0;const xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PVS:"PVS",MCS:"MCS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xn).find(t=>xn[t]===e);return null==t?xn.$UNKNOWN:xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xn.$UNKNOWN:case xn.$REDACTED:case xn.PVS:case xn.MCS:return;default:throw new Error("Invalid : must be CitrixXenProvisionType.{ $UNKNOWN|$REDACTED|PVS|MCS }")}}};Object.freeze(xn);const Vn=xn,Ln={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",XEN_APP:"XEN_APP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ln).find(t=>Ln[t]===e);return null==t?Ln.$UNKNOWN:Ln[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ln.$UNKNOWN:case Ln.$REDACTED:case Ln.XEN_APP:return;default:throw new Error("Invalid : must be CitrixXenWorkloadVendor.{ $UNKNOWN|$REDACTED|XEN_APP }")}}};Object.freeze(Ln);const Bn=Ln,Wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WINDOWS_2012R2:"WINDOWS_2012R2",WINDOWS_2008R2:"WINDOWS_2008R2",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Wn).find(t=>Wn[t]===e);return null==t?Wn.$UNKNOWN:Wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wn.$UNKNOWN:case Wn.$REDACTED:case Wn.WINDOWS_2012R2:case Wn.WINDOWS_2008R2:return;default:throw new Error("Invalid : must be XenOperatingSystem.{ $UNKNOWN|$REDACTED|WINDOWS_2012R2|WINDOWS_2008R2 }")}}};Object.freeze(Wn);const zn=Wn;var Jn=new WeakSet;class _n{constructor(e,t,n,i,s,o){var r,a;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,a=Jn),a.add(r),this.operatingSystem=e,this.systemDataGb=t,this.userCount=n,this.mcsDiffSizeGb=i,this.userProfileDataMb=s,this.pvsWriteCacheSizeGb=o,this.$objectType="aiops.v4.config.XenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _n,e.hasOwnProperty("operatingSystem")&&null!==e.operatingSystem&&void 0!==e.operatingSystem&&t.setOperatingSystem(zn.constructFromObject(e.operatingSystem)),e.hasOwnProperty("systemDataGb")&&null!==e.systemDataGb&&void 0!==e.systemDataGb&&t.setSystemDataGb(e.systemDataGb),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("mcsDiffSizeGb")&&null!==e.mcsDiffSizeGb&&void 0!==e.mcsDiffSizeGb&&t.setMcsDiffSizeGb(e.mcsDiffSizeGb),e.hasOwnProperty("userProfileDataMb")&&null!==e.userProfileDataMb&&void 0!==e.userProfileDataMb&&t.setUserProfileDataMb(e.userProfileDataMb),e.hasOwnProperty("pvsWriteCacheSizeGb")&&null!==e.pvsWriteCacheSizeGb&&void 0!==e.pvsWriteCacheSizeGb&&t.setPvsWriteCacheSizeGb(e.pvsWriteCacheSizeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getOperatingSystem(){return this.operatingSystem}setOperatingSystem(e){this.operatingSystem=e}getSystemDataGb(){return this.systemDataGb}setSystemDataGb(e){this.systemDataGb=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}getMcsDiffSizeGb(){return this.mcsDiffSizeGb}setMcsDiffSizeGb(e){this.mcsDiffSizeGb=e}getUserProfileDataMb(){return this.userProfileDataMb}setUserProfileDataMb(e){this.userProfileDataMb=e}getPvsWriteCacheSizeGb(){return this.pvsWriteCacheSizeGb}setPvsWriteCacheSizeGb(e){this.pvsWriteCacheSizeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("operatingSystem"===t&&(void 0===this.operatingSystem||null===this.operatingSystem))return new O("operatingSystem","undefined or null");if("systemDataGb"===t){if(void 0===this.systemDataGb||null===this.systemDataGb)return new O("systemDataGb","undefined or null");if(!j.validateMaximum(this.systemDataGb,62e3))return new O("systemDataGb","does not satisfy required maximum constraint: 62000");if(!j.validateMinimum(this.systemDataGb,20))return new O("systemDataGb","does not satisfy required minimum constraint: 20")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e5))return new O("userCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}if("mcsDiffSizeGb"===t){if(void 0===this.mcsDiffSizeGb||null===this.mcsDiffSizeGb)return new O("mcsDiffSizeGb","undefined or null");if(!j.validateMaximum(this.mcsDiffSizeGb,50))return new O("mcsDiffSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.mcsDiffSizeGb,10))return new O("mcsDiffSizeGb","does not satisfy required minimum constraint: 10")}if("userProfileDataMb"===t){if(void 0===this.userProfileDataMb||null===this.userProfileDataMb)return new O("userProfileDataMb","undefined or null");if(!j.validateMaximum(this.userProfileDataMb,100))return new O("userProfileDataMb","does not satisfy required maximum constraint: 100");if(!j.validateMinimum(this.userProfileDataMb,20))return new O("userProfileDataMb","does not satisfy required minimum constraint: 20")}if("pvsWriteCacheSizeGb"===t){if(void 0===this.pvsWriteCacheSizeGb||null===this.pvsWriteCacheSizeGb)return new O("pvsWriteCacheSizeGb","undefined or null");if(!j.validateMaximum(this.pvsWriteCacheSizeGb,50))return new O("pvsWriteCacheSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.pvsWriteCacheSizeGb,10))return new O("pvsWriteCacheSizeGb","does not satisfy required minimum constraint: 10")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0,_n.prototype.$reserved=void 0,_n.prototype.$objectType=void 0,_n.prototype.$unknownFields=void 0;var Gn=new WeakSet;class qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Gn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.CitrixXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Bn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Vn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}qn.prototype.vendor=void 0,qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;const Hn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_CLONE:"VM_CLONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Hn).find(t=>Hn[t]===e);return null==t?Hn.$UNKNOWN:Hn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hn.$UNKNOWN:case Hn.$REDACTED:case Hn.VM_CLONE:return;default:throw new Error("Invalid : must be MicrosoftXenProvisionType.{ $UNKNOWN|$REDACTED|VM_CLONE }")}}};Object.freeze(Hn);const Kn=Hn,Xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MICROSOFT_RDSH:"MICROSOFT_RDSH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Xn).find(t=>Xn[t]===e);return null==t?Xn.$UNKNOWN:Xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xn.$UNKNOWN:case Xn.$REDACTED:case Xn.MICROSOFT_RDSH:return;default:throw new Error("Invalid : must be MicrosoftXenWorkloadVendor.{ $UNKNOWN|$REDACTED|MICROSOFT_RDSH }")}}};Object.freeze(Xn);const Zn=Xn;var Yn=new WeakSet;class Qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Yn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.MicrosoftXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Zn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Kn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}Qn.prototype.vendor=void 0,Qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;var ei=new WeakSet;class ti{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ei),o.add(s),this.dailyAverageIndexingRateGb=e,this.hotRetentionDays=t,this.coldRetentionDays=n,this.userCount=i,this.$objectType="aiops.v4.config.SplunkWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ti,e.hasOwnProperty("dailyAverageIndexingRateGb")&&null!==e.dailyAverageIndexingRateGb&&void 0!==e.dailyAverageIndexingRateGb&&t.setDailyAverageIndexingRateGb(e.dailyAverageIndexingRateGb),e.hasOwnProperty("hotRetentionDays")&&null!==e.hotRetentionDays&&void 0!==e.hotRetentionDays&&t.setHotRetentionDays(e.hotRetentionDays),e.hasOwnProperty("coldRetentionDays")&&null!==e.coldRetentionDays&&void 0!==e.coldRetentionDays&&t.setColdRetentionDays(e.coldRetentionDays),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDailyAverageIndexingRateGb(){return this.dailyAverageIndexingRateGb}setDailyAverageIndexingRateGb(e){this.dailyAverageIndexingRateGb=e}getHotRetentionDays(){return this.hotRetentionDays}setHotRetentionDays(e){this.hotRetentionDays=e}getColdRetentionDays(){return this.coldRetentionDays}setColdRetentionDays(e){this.coldRetentionDays=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDailyAverageIndexingRateGb()&&null!==this.getDailyAverageIndexingRateGb()?{dailyAverageIndexingRateGb:this.getDailyAverageIndexingRateGb()}:{},...void 0!==this.getHotRetentionDays()&&null!==this.getHotRetentionDays()?{hotRetentionDays:this.getHotRetentionDays()}:{},...void 0!==this.getColdRetentionDays()&&null!==this.getColdRetentionDays()?{coldRetentionDays:this.getColdRetentionDays()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dailyAverageIndexingRateGb","hotRetentionDays","coldRetentionDays","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dailyAverageIndexingRateGb"===t){if(void 0===this.dailyAverageIndexingRateGb||null===this.dailyAverageIndexingRateGb)return new O("dailyAverageIndexingRateGb","undefined or null");if(!j.validateMaximum(this.dailyAverageIndexingRateGb,2e4))return new O("dailyAverageIndexingRateGb","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.dailyAverageIndexingRateGb,1))return new O("dailyAverageIndexingRateGb","does not satisfy required minimum constraint: 1")}if("hotRetentionDays"===t){if(void 0===this.hotRetentionDays||null===this.hotRetentionDays)return new O("hotRetentionDays","undefined or null");if(!j.validateMaximum(this.hotRetentionDays,2e4))return new O("hotRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.hotRetentionDays,1))return new O("hotRetentionDays","does not satisfy required minimum constraint: 1")}if("coldRetentionDays"===t){if(void 0===this.coldRetentionDays||null===this.coldRetentionDays)return new O("coldRetentionDays","undefined or null");if(!j.validateMaximum(this.coldRetentionDays,2e4))return new O("coldRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.coldRetentionDays,0))return new O("coldRetentionDays","does not satisfy required minimum constraint: 0")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,500))return new O("userCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.userCount,0))return new O("userCount","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ti.prototype.dailyAverageIndexingRateGb=500,ti.prototype.hotRetentionDays=7,ti.prototype.coldRetentionDays=60,ti.prototype.userCount=5,ti.prototype.$reserved=void 0,ti.prototype.$objectType=void 0,ti.prototype.$unknownFields=void 0;const ni={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ni).find(t=>ni[t]===e);return null==t?ni.$UNKNOWN:ni[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ni.$UNKNOWN:case ni.$REDACTED:case ni.SMALL:case ni.MEDIUM:case ni.LARGE:return;default:throw new Error("Invalid : must be SqlProfileType.{ $UNKNOWN|$REDACTED|SMALL|MEDIUM|LARGE }")}}};Object.freeze(ni);const ii=ni,si={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OLAP:"OLAP",OLTP:"OLTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(si).find(t=>si[t]===e);return null==t?si.$UNKNOWN:si[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case si.$UNKNOWN:case si.$REDACTED:case si.OLAP:case si.OLTP:return;default:throw new Error("Invalid : must be SqlTransactionType.{ $UNKNOWN|$REDACTED|OLAP|OLTP }")}}};Object.freeze(si);const oi=si;var ri=new WeakSet;class ai{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ri),o.add(s),this.dbCount=e,this.profileType=t,this.transactionType=n,this.isBusinessCritical=i,this.$objectType="aiops.v4.config.SqlWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ai,e.hasOwnProperty("dbCount")&&null!==e.dbCount&&void 0!==e.dbCount&&t.setDbCount(e.dbCount),e.hasOwnProperty("profileType")&&null!==e.profileType&&void 0!==e.profileType&&t.setProfileType(ii.constructFromObject(e.profileType)),e.hasOwnProperty("transactionType")&&null!==e.transactionType&&void 0!==e.transactionType&&t.setTransactionType(oi.constructFromObject(e.transactionType)),e.hasOwnProperty("isBusinessCritical")&&null!==e.isBusinessCritical&&void 0!==e.isBusinessCritical&&t.setIsBusinessCritical(e.isBusinessCritical),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDbCount(){return this.dbCount}setDbCount(e){this.dbCount=e}getProfileType(){return this.profileType}setProfileType(e){this.profileType=e}getTransactionType(){return this.transactionType}setTransactionType(e){this.transactionType=e}getIsBusinessCritical(){return this.isBusinessCritical}setIsBusinessCritical(e){this.isBusinessCritical=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDbCount()&&null!==this.getDbCount()?{dbCount:this.getDbCount()}:{},...void 0!==this.getProfileType()&&null!==this.getProfileType()?{profileType:this.getProfileType()}:{},...void 0!==this.getTransactionType()&&null!==this.getTransactionType()?{transactionType:this.getTransactionType()}:{},...void 0!==this.getIsBusinessCritical()&&null!==this.getIsBusinessCritical()?{isBusinessCritical:this.getIsBusinessCritical()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dbCount","profileType","transactionType","isBusinessCritical"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dbCount"===t){if(void 0===this.dbCount||null===this.dbCount)return new O("dbCount","undefined or null");if(!j.validateMaximum(this.dbCount,1e5))return new O("dbCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.dbCount,1))return new O("dbCount","does not satisfy required minimum constraint: 1")}return"profileType"!==t||void 0!==this.profileType&&null!==this.profileType?"transactionType"!==t||void 0!==this.transactionType&&null!==this.transactionType?"isBusinessCritical"!==t||void 0!==this.isBusinessCritical&&null!==this.isBusinessCritical?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("isBusinessCritical","undefined or null"):new O("transactionType","undefined or null"):new O("profileType","undefined or null")}}ai.prototype.dbCount=void 0,ai.prototype.profileType=void 0,ai.prototype.transactionType=void 0,ai.prototype.isBusinessCritical=!1,ai.prototype.$reserved=void 0,ai.prototype.$objectType=void 0,ai.prototype.$unknownFields=void 0;const li={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",FULL_CLONES:"FULL_CLONES",V2V_P2V:"V2V_P2V",PROVISIONING_SERVICES:"PROVISIONING_SERVICES",MACHINE_CREATION_SERVICES:"MACHINE_CREATION_SERVICES",LINKED_CLONES:"LINKED_CLONES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(li).find(t=>li[t]===e);return null==t?li.$UNKNOWN:li[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case li.$UNKNOWN:case li.$REDACTED:case li.FULL_CLONES:case li.V2V_P2V:case li.PROVISIONING_SERVICES:case li.MACHINE_CREATION_SERVICES:case li.LINKED_CLONES:return;default:throw new Error("Invalid : must be VdiProvisionType.{ $UNKNOWN|$REDACTED|FULL_CLONES|V2V_P2V|PROVISIONING_SERVICES|MACHINE_CREATION_SERVICES|LINKED_CLONES }")}}};Object.freeze(li);const di=li,ui={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",TASK_WORKER:"TASK_WORKER",KNOWLEDGE_WORKER:"KNOWLEDGE_WORKER",POWER_USER:"POWER_USER",DEVELOPER:"DEVELOPER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ui).find(t=>ui[t]===e);return null==t?ui.$UNKNOWN:ui[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ui.$UNKNOWN:case ui.$REDACTED:case ui.TASK_WORKER:case ui.KNOWLEDGE_WORKER:case ui.POWER_USER:case ui.DEVELOPER:return;default:throw new Error("Invalid : must be VdiUserType.{ $UNKNOWN|$REDACTED|TASK_WORKER|KNOWLEDGE_WORKER|POWER_USER|DEVELOPER }")}}};Object.freeze(ui);const hi=ui,ci={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VIEW:"VIEW",XEN_DESKTOP:"XEN_DESKTOP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ci).find(t=>ci[t]===e);return null==t?ci.$UNKNOWN:ci[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ci.$UNKNOWN:case ci.$REDACTED:case ci.VIEW:case ci.XEN_DESKTOP:return;default:throw new Error("Invalid : must be VdiVendor.{ $UNKNOWN|$REDACTED|VIEW|XEN_DESKTOP }")}}};Object.freeze(ci);const pi=ci;var yi=new WeakSet;class vi{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=yi),o.add(s),this.vendor=e,this.userType=t,this.provisionType=n,this.userCount=i,this.$objectType="aiops.v4.config.VdiWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vi,e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(pi.constructFromObject(e.vendor)),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&t.setUserType(hi.constructFromObject(e.userType)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(di.constructFromObject(e.provisionType)),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getUserType(){return this.userType}setUserType(e){this.userType=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vendor","userType","provisionType","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new O("vendor","undefined or null");if("userType"===t&&(void 0===this.userType||null===this.userType))return new O("userType","undefined or null");if("provisionType"===t&&(void 0===this.provisionType||null===this.provisionType))return new O("provisionType","undefined or null");if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e3))return new O("userCount","does not satisfy required maximum constraint: 1000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vi.prototype.vendor=void 0,vi.prototype.userType=void 0,vi.prototype.provisionType=void 0,vi.prototype.userCount=void 0,vi.prototype.$reserved=void 0,vi.prototype.$objectType=void 0,vi.prototype.$unknownFields=void 0;var gi=new WeakSet;class mi{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=gi),n.add(t),this.categoryExtId=e,this.$objectType="aiops.v4.config.VmCategoryWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mi,e.hasOwnProperty("categoryExtId")&&null!==e.categoryExtId&&void 0!==e.categoryExtId&&t.setCategoryExtId(e.categoryExtId),e.hasOwnProperty("currentVmCount")&&null!==e.currentVmCount&&void 0!==e.currentVmCount&&t.setCurrentVmCount(e.currentVmCount),e.hasOwnProperty("targetVmCount")&&null!==e.targetVmCount&&void 0!==e.targetVmCount&&t.setTargetVmCount(e.targetVmCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCategoryExtId(){return this.categoryExtId}setCategoryExtId(e){this.categoryExtId=e}getCurrentVmCount(){return this.currentVmCount}setCurrentVmCount(e){this.currentVmCount=e}getTargetVmCount(){return this.targetVmCount}setTargetVmCount(e){this.targetVmCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},...void 0!==this.getCurrentVmCount()&&null!==this.getCurrentVmCount()?{currentVmCount:this.getCurrentVmCount()}:{},...void 0!==this.getTargetVmCount()&&null!==this.getTargetVmCount()?{targetVmCount:this.getTargetVmCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["categoryExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("categoryExtId"===t){if(void 0===this.categoryExtId||null===this.categoryExtId)return new O("categoryExtId","undefined or null");if(!j.validatePattern(this.categoryExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("categoryExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"currentVmCount"!==t||void 0!==this.currentVmCount&&null!==this.currentVmCount?"targetVmCount"!==t||void 0!==this.targetVmCount&&null!==this.targetVmCount?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("targetVmCount","undefined or null"):new O("currentVmCount","undefined or null")}}mi.prototype.categoryExtId=void 0,mi.prototype.currentVmCount=void 0,mi.prototype.targetVmCount=void 0,mi.prototype.$reserved=void 0,mi.prototype.$objectType=void 0,mi.prototype.$unknownFields=void 0;var wi=new WeakSet;class $i{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=wi),i.add(n),this.vmCount=e,this.simulationExtId=t,this.$objectType="aiops.v4.config.VmWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $i,e.hasOwnProperty("vmCount")&&null!==e.vmCount&&void 0!==e.vmCount&&t.setVmCount(e.vmCount),e.hasOwnProperty("simulationExtId")&&null!==e.simulationExtId&&void 0!==e.simulationExtId&&t.setSimulationExtId(e.simulationExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmCount(){return this.vmCount}setVmCount(e){this.vmCount=e}getSimulationExtId(){return this.simulationExtId}setSimulationExtId(e){this.simulationExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmCount()&&null!==this.getVmCount()?{vmCount:this.getVmCount()}:{},...void 0!==this.getSimulationExtId()&&null!==this.getSimulationExtId()?{simulationExtId:this.getSimulationExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vmCount","simulationExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmCount"===t){if(void 0===this.vmCount||null===this.vmCount)return new O("vmCount","undefined or null");if(!j.validateMaximum(this.vmCount,2e4))return new O("vmCount","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.vmCount,1))return new O("vmCount","does not satisfy required minimum constraint: 1")}if("simulationExtId"===t){if(void 0===this.simulationExtId||null===this.simulationExtId)return new O("simulationExtId","undefined or null");if(!j.validatePattern(this.simulationExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("simulationExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function fi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$i.prototype.vmCount=void 0,$i.prototype.simulationExtId=void 0,$i.prototype.$reserved=void 0,$i.prototype.$objectType=void 0,$i.prototype.$unknownFields=void 0;var bi=new WeakSet;class Ti{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=bi),s.add(i),this.scheduleDate=e,this.isEnabled=t,this.workloadProperties=n,this.$objectType="aiops.v4.config.Workload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Ti,e.hasOwnProperty("scheduleDate")&&null!==e.scheduleDate&&void 0!==e.scheduleDate&&t.setScheduleDate(e.scheduleDate),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("projectedResourceRequirement")&&null!==e.projectedResourceRequirement&&void 0!==e.projectedResourceRequirement&&t.setProjectedResourceRequirement(bn.constructFromObject(e.projectedResourceRequirement)),e.hasOwnProperty("workloadProperties")&&null!==e.workloadProperties&&void 0!==e.workloadProperties)switch(i=e.workloadProperties.hasOwnProperty("$objectType")?e.workloadProperties.$objectType:typeof e.workloadProperties,i){case"aiops.v4.config.SqlWorkload":t.setWorkloadProperties(ai.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmWorkload":t.setWorkloadProperties($i.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VdiWorkload":t.setWorkloadProperties(vi.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.SplunkWorkload":t.setWorkloadProperties(ti.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CitrixXenWorkload":t.setWorkloadProperties(qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.MicrosoftXenWorkload":t.setWorkloadProperties(Qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CapacityUpdateConfig":t.setWorkloadProperties(Nn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmCategoryWorkload":t.setWorkloadProperties(mi.constructFromObject(e.workloadProperties,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getScheduleDate(){return this.scheduleDate}setScheduleDate(e){this.scheduleDate=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getProjectedResourceRequirement(){return this.projectedResourceRequirement}setProjectedResourceRequirement(e){this.projectedResourceRequirement=e}getWorkloadProperties(){return this.workloadProperties}setWorkloadProperties(e){this.workloadProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).call(this,this.getScheduleDate(),!0)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson(!1):Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson(!1):e):fi(bi,this,ki).call(this,this.getWorkloadProperties(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).call(this,this.getScheduleDate(),!0)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson():Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson():e):fi(bi,this,ki).call(this,this.getWorkloadProperties())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["scheduleDate","isEnabled","workloadProperties"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"scheduleDate"!==t||void 0!==this.scheduleDate&&null!==this.scheduleDate?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"projectedResourceRequirement"!==t||void 0!==this.projectedResourceRequirement&&null!==this.projectedResourceRequirement?"workloadProperties"!==t||void 0!==this.workloadProperties&&null!==this.workloadProperties?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("workloadProperties","undefined or null"):new O("projectedResourceRequirement","undefined or null"):new O("isEnabled","undefined or null"):new O("scheduleDate","undefined or null")}}function ki(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ji(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Oi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ti.prototype.scheduleDate=void 0,Ti.prototype.isEnabled=!1,Ti.prototype.projectedResourceRequirement=void 0,Ti.prototype.workloadProperties=void 0,Ti.prototype.$reserved=void 0,Ti.prototype.$objectType=void 0,Ti.prototype.$unknownFields=void 0;var Fi=new WeakSet;class Ci extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fi),t.add(e),this.$objectType="aiops.v4.config.Scenario",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ci,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("vendors")&&null!==e.vendors&&void 0!==e.vendors){for(r=[],i=e.vendors,o=0;o<i.length;o++)s=Un.constructFromObject(i[o],void 0),r.push(s);t.setVendors(r)}if(e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("targetRunwayDays")&&null!==e.targetRunwayDays&&void 0!==e.targetRunwayDays&&t.setTargetRunwayDays(e.targetRunwayDays),e.hasOwnProperty("runway")&&null!==e.runway&&void 0!==e.runway&&t.setRunway(En.constructFromObject(e.runway)),e.hasOwnProperty("workloads")&&null!==e.workloads&&void 0!==e.workloads){for(r=[],i=e.workloads,o=0;o<i.length;o++)s=Ti.constructFromObject(i[o],void 0),r.push(s);t.setWorkloads(r)}if(e.hasOwnProperty("clusterConfig")&&null!==e.clusterConfig&&void 0!==e.clusterConfig&&t.setClusterConfig(Cn.constructFromObject(e.clusterConfig)),e.hasOwnProperty("accountId")&&null!==e.accountId&&void 0!==e.accountId&&t.setAccountId(e.accountId),e.hasOwnProperty("domainId")&&null!==e.domainId&&void 0!==e.domainId&&t.setDomainId(e.domainId),e.hasOwnProperty("providerId")&&null!==e.providerId&&void 0!==e.providerId&&t.setProviderId(e.providerId),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getVendors(){return this.vendors}setVendors(e){this.vendors=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getTargetRunwayDays(){return this.targetRunwayDays}setTargetRunwayDays(e){this.targetRunwayDays=e}getRunway(){return this.runway}setRunway(e){this.runway=e}getWorkloads(){return this.workloads}setWorkloads(e){this.workloads=e}getClusterConfig(){return this.clusterConfig}setClusterConfig(e){this.clusterConfig=e}getAccountId(){return this.accountId}setAccountId(e){this.accountId=e}getDomainId(){return this.domainId}setDomainId(e){this.domainId=e}getProviderId(){return this.providerId}setProviderId(e){this.providerId=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{},...void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:Oi(Fi,this,Pi).call(this,this.getUpdatedTime(),!1)}:{},...void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{},...void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{},...void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},...void 0!==this.getAccountId()&&null!==this.getAccountId()?{accountId:this.getAccountId()}:{},...void 0!==this.getDomainId()&&null!==this.getDomainId()?{domainId:this.getDomainId()}:{},...void 0!==this.getProviderId()&&null!==this.getProviderId()?{providerId:this.getProviderId()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{},...void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{},...void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{},...void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new O("clusterExtId","undefined or null");if(!j.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vendors"===t){if(void 0===this.vendors||null===this.vendors)return new O("vendors","undefined or null");if(!j.validateMaxItems(this.vendors,10))return new O("vendors","does not satisfy required maxItems constraint: 10");if(!j.validateMinItems(this.vendors,1))return new O("vendors","does not satisfy required minItems constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("targetRunwayDays"===t){if(void 0===this.targetRunwayDays||null===this.targetRunwayDays)return new O("targetRunwayDays","undefined or null");if(!j.validateMaximum(this.targetRunwayDays,360))return new O("targetRunwayDays","does not satisfy required maximum constraint: 360");if(!j.validateMinimum(this.targetRunwayDays,30))return new O("targetRunwayDays","does not satisfy required minimum constraint: 30")}if("runway"===t&&(void 0===this.runway||null===this.runway))return new O("runway","undefined or null");if("workloads"===t){if(void 0===this.workloads||null===this.workloads)return new O("workloads","undefined or null");if(!j.validateMaxItems(this.workloads,250))return new O("workloads","does not satisfy required maxItems constraint: 250")}if("clusterConfig"===t&&(void 0===this.clusterConfig||null===this.clusterConfig))return new O("clusterConfig","undefined or null");if("accountId"===t){if(void 0===this.accountId||null===this.accountId)return new O("accountId","undefined or null");if(!j.validatePattern(this.accountId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("accountId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("domainId"===t){if(void 0===this.domainId||null===this.domainId)return new O("domainId","undefined or null");if(!j.validatePattern(this.domainId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("domainId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("providerId"===t){if(void 0===this.providerId||null===this.providerId)return new O("providerId","undefined or null");if(!j.validatePattern(this.providerId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("providerId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new O(t,"no such property exists")}}function Pi(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Ci.prototype.name=void 0,Ci.prototype.clusterExtId=void 0,Ci.prototype.vendors=void 0,Ci.prototype.updatedTime=void 0,Ci.prototype.targetRunwayDays=void 0,Ci.prototype.runway=void 0,Ci.prototype.workloads=void 0,Ci.prototype.clusterConfig=void 0,Ci.prototype.accountId=void 0,Ci.prototype.domainId=void 0,Ci.prototype.providerId=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class Si extends Ci{constructor(){super(),this.$objectType="aiops.v4.config.ScenarioProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Si,Ci.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function Ei(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Di=new WeakSet;class Ri extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Di),t.add(e),this.$objectType="aiops.v4.config.ListScenariosApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ri,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Scenario":s=Ci.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.ScenarioProjection":s=Si.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ei(Di,this,Ui).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ei(Di,this,Ui).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ui(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ii(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ri.prototype.metadata=void 0,Ri.prototype.data=void 0,Ri.prototype.$reserved=void 0,Ri.prototype.$objectType=void 0,Ri.prototype.$unknownFields=void 0;var Ai=new WeakSet;class Mi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ai),t.add(e),this.$objectType="aiops.v4.config.GetScenarioReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Mi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"Map":t.setData(e.data);break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ii(Ai,this,Ni).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ii(Ai,this,Ni).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ni(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mi.prototype.metadata=void 0,Mi.prototype.data=void 0,Mi.prototype.$reserved=void 0,Mi.prototype.$objectType=void 0,Mi.prototype.$unknownFields=void 0;var xi=new WeakSet;class Vi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=xi),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vi,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(!j.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new O("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Li(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vi.prototype.extId=void 0,Vi.prototype.$reserved=void 0,Vi.prototype.$objectType=void 0,Vi.prototype.$unknownFields=void 0;var Bi=new WeakSet;class Wi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bi),t.add(e),this.$objectType="aiops.v4.config.CreateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Wi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Li(Bi,this,zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Li(Bi,this,zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ji(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Wi.prototype.metadata=void 0,Wi.prototype.data=void 0,Wi.prototype.$reserved=void 0,Wi.prototype.$objectType=void 0,Wi.prototype.$unknownFields=void 0;var _i=new WeakSet;class Gi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=_i),t.add(e),this.$objectType="aiops.v4.config.DeleteSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Gi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ji(_i,this,qi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ji(_i,this,qi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function qi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Hi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Gi.prototype.metadata=void 0,Gi.prototype.data=void 0,Gi.prototype.$reserved=void 0,Gi.prototype.$objectType=void 0,Gi.prototype.$unknownFields=void 0;var Ki=new WeakSet;class Xi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ki),t.add(e),this.$objectType="aiops.v4.config.DeleteScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Xi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Hi(Ki,this,Zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Hi(Ki,this,Zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Yi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xi.prototype.metadata=void 0,Xi.prototype.data=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;var Qi=new WeakSet;class es extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Qi),t.add(e),this.$objectType="aiops.v4.config.GenerateRecommendationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new es,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Yi(Qi,this,ts).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Yi(Qi,this,ts).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ts(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ns(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}es.prototype.metadata=void 0,es.prototype.data=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var is=new WeakSet;class ss extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=is),t.add(e),this.$objectType="aiops.v4.config.GenerateReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ss,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ns(is,this,os).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ns(is,this,os).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function os(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function rs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ss.prototype.metadata=void 0,ss.prototype.data=void 0,ss.prototype.$reserved=void 0,ss.prototype.$objectType=void 0,ss.prototype.$unknownFields=void 0;var as=new WeakSet;class ls extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=as),t.add(e),this.$objectType="aiops.v4.config.GetSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ls,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rs(as,this,ds).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rs(as,this,ds).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ds(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function us(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ls.prototype.metadata=void 0,ls.prototype.data=void 0,ls.prototype.$reserved=void 0,ls.prototype.$objectType=void 0,ls.prototype.$unknownFields=void 0;var hs=new WeakSet;class cs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hs),t.add(e),this.$objectType="aiops.v4.config.GetScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new cs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Scenario":t.setData(Ci.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):us(hs,this,ps).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):us(hs,this,ps).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ps(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ys(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}cs.prototype.metadata=void 0,cs.prototype.data=void 0,cs.prototype.$reserved=void 0,cs.prototype.$objectType=void 0,cs.prototype.$unknownFields=void 0;var vs=new WeakSet;class gs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=vs),t.add(e),this.$objectType="aiops.v4.config.UpdateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new gs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ys(vs,this,ms).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ys(vs,this,ms).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ms(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ws(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}gs.prototype.metadata=void 0,gs.prototype.data=void 0,gs.prototype.$reserved=void 0,gs.prototype.$objectType=void 0,gs.prototype.$unknownFields=void 0;var $s=new WeakSet;class fs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$s),t.add(e),this.$objectType="aiops.v4.config.GenerateRunwayApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new fs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ws($s,this,bs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ws($s,this,bs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function bs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}fs.prototype.metadata=void 0,fs.prototype.data=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var Ts=new WeakSet;class ks{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ts),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ks,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("uuid")&&null!==e.uuid&&void 0!==e.uuid&&t.setUuid(e.uuid),e.hasOwnProperty("externalIpAddress")&&null!==e.externalIpAddress&&void 0!==e.externalIpAddress&&t.setExternalIpAddress(e.externalIpAddress),e.hasOwnProperty("memoryCapacityBytes")&&null!==e.memoryCapacityBytes&&void 0!==e.memoryCapacityBytes&&t.setMemoryCapacityBytes(e.memoryCapacityBytes),e.hasOwnProperty("numCpus")&&null!==e.numCpus&&void 0!==e.numCpus&&t.setNumCpus(e.numCpus),e.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==e.hypervisorMemoryUsagePpm&&void 0!==e.hypervisorMemoryUsagePpm&&t.setHypervisorMemoryUsagePpm(e.hypervisorMemoryUsagePpm),e.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==e.hypervisorCpuUsagePpm&&void 0!==e.hypervisorCpuUsagePpm&&t.setHypervisorCpuUsagePpm(e.hypervisorCpuUsagePpm),e.hasOwnProperty("rf")&&null!==e.rf&&void 0!==e.rf&&t.setRf(e.rf),e.hasOwnProperty("capacityBytes")&&null!==e.capacityBytes&&void 0!==e.capacityBytes&&t.setCapacityBytes(e.capacityBytes),e.hasOwnProperty("freeBytes")&&null!==e.freeBytes&&void 0!==e.freeBytes&&t.setFreeBytes(e.freeBytes),e.hasOwnProperty("usageBytes")&&null!==e.usageBytes&&void 0!==e.usageBytes&&t.setUsageBytes(e.usageBytes),e.hasOwnProperty("savedBytes")&&null!==e.savedBytes&&void 0!==e.savedBytes&&t.setSavedBytes(e.savedBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getUuid(){return this.uuid}setUuid(e){this.uuid=e}getExternalIpAddress(){return this.externalIpAddress}setExternalIpAddress(e){this.externalIpAddress=e}getMemoryCapacityBytes(){return this.memoryCapacityBytes}setMemoryCapacityBytes(e){this.memoryCapacityBytes=e}getNumCpus(){return this.numCpus}setNumCpus(e){this.numCpus=e}getHypervisorMemoryUsagePpm(){return this.hypervisorMemoryUsagePpm}setHypervisorMemoryUsagePpm(e){this.hypervisorMemoryUsagePpm=e}getHypervisorCpuUsagePpm(){return this.hypervisorCpuUsagePpm}setHypervisorCpuUsagePpm(e){this.hypervisorCpuUsagePpm=e}getRf(){return this.rf}setRf(e){this.rf=e}getCapacityBytes(){return this.capacityBytes}setCapacityBytes(e){this.capacityBytes=e}getFreeBytes(){return this.freeBytes}setFreeBytes(e){this.freeBytes=e}getUsageBytes(){return this.usageBytes}setUsageBytes(e){this.usageBytes=e}getSavedBytes(){return this.savedBytes}setSavedBytes(e){this.savedBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new O("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new O("uuid","undefined or null");if(!j.validatePattern(this.uuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("uuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"externalIpAddress"!==t||void 0!==this.externalIpAddress&&null!==this.externalIpAddress?"memoryCapacityBytes"!==t||void 0!==this.memoryCapacityBytes&&null!==this.memoryCapacityBytes?"numCpus"!==t||void 0!==this.numCpus&&null!==this.numCpus?"hypervisorMemoryUsagePpm"!==t||void 0!==this.hypervisorMemoryUsagePpm&&null!==this.hypervisorMemoryUsagePpm?"hypervisorCpuUsagePpm"!==t||void 0!==this.hypervisorCpuUsagePpm&&null!==this.hypervisorCpuUsagePpm?"rf"!==t||void 0!==this.rf&&null!==this.rf?"capacityBytes"!==t||void 0!==this.capacityBytes&&null!==this.capacityBytes?"freeBytes"!==t||void 0!==this.freeBytes&&null!==this.freeBytes?"usageBytes"!==t||void 0!==this.usageBytes&&null!==this.usageBytes?"savedBytes"!==t||void 0!==this.savedBytes&&null!==this.savedBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("savedBytes","undefined or null"):new O("usageBytes","undefined or null"):new O("freeBytes","undefined or null"):new O("capacityBytes","undefined or null"):new O("rf","undefined or null"):new O("hypervisorCpuUsagePpm","undefined or null"):new O("hypervisorMemoryUsagePpm","undefined or null"):new O("numCpus","undefined or null"):new O("memoryCapacityBytes","undefined or null"):new O("externalIpAddress","undefined or null")}}ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0,ks.prototype.$reserved=void 0,ks.prototype.$objectType=void 0,ks.prototype.$unknownFields=void 0;var js=new WeakSet;class Os{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=js),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Os,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new O("value","undefined or null");if(!j.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new O("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new O("prefixLength","undefined or null");if(!j.validateMaximum(this.prefixLength,32))return new O("prefixLength","does not satisfy required maximum constraint: 32");if(!j.validateMinimum(this.prefixLength,0))return new O("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Os.prototype.value=void 0,Os.prototype.prefixLength=32,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var Fs=new WeakSet;class Cs extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fs),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterMetrics",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&t.setClusterName(e.clusterName),e.hasOwnProperty("externalIP")&&null!==e.externalIP&&void 0!==e.externalIP&&t.setExternalIP(Os.constructFromObject(e.externalIP)),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(r=[],i=e.cvmIPs,o=0;o<i.length;o++)s=Os.constructFromObject(i[o],void 0),r.push(s);t.setCvmIPs(r)}if(e.hasOwnProperty("totalMemorySizeBytes")&&null!==e.totalMemorySizeBytes&&void 0!==e.totalMemorySizeBytes&&t.setTotalMemorySizeBytes(e.totalMemorySizeBytes),e.hasOwnProperty("currentMemoryUsageSizeBytes")&&null!==e.currentMemoryUsageSizeBytes&&void 0!==e.currentMemoryUsageSizeBytes&&t.setCurrentMemoryUsageSizeBytes(e.currentMemoryUsageSizeBytes),e.hasOwnProperty("provisionedMemoryUsageBytes")&&null!==e.provisionedMemoryUsageBytes&&void 0!==e.provisionedMemoryUsageBytes&&t.setProvisionedMemoryUsageBytes(e.provisionedMemoryUsageBytes),e.hasOwnProperty("maxVmMemorySizeBytes")&&null!==e.maxVmMemorySizeBytes&&void 0!==e.maxVmMemorySizeBytes&&t.setMaxVmMemorySizeBytes(e.maxVmMemorySizeBytes),e.hasOwnProperty("availableMemorySizeBytes")&&null!==e.availableMemorySizeBytes&&void 0!==e.availableMemorySizeBytes&&t.setAvailableMemorySizeBytes(e.availableMemorySizeBytes),e.hasOwnProperty("largestPoweredOffVMMemory")&&null!==e.largestPoweredOffVMMemory&&void 0!==e.largestPoweredOffVMMemory&&t.setLargestPoweredOffVMMemory(e.largestPoweredOffVMMemory),e.hasOwnProperty("totalVCpuCount")&&null!==e.totalVCpuCount&&void 0!==e.totalVCpuCount&&t.setTotalVCpuCount(e.totalVCpuCount),e.hasOwnProperty("currentUsedVCpuCount")&&null!==e.currentUsedVCpuCount&&void 0!==e.currentUsedVCpuCount&&t.setCurrentUsedVCpuCount(e.currentUsedVCpuCount),e.hasOwnProperty("provisionedVCpuCount")&&null!==e.provisionedVCpuCount&&void 0!==e.provisionedVCpuCount&&t.setProvisionedVCpuCount(e.provisionedVCpuCount),e.hasOwnProperty("maxVmVCpuSize")&&null!==e.maxVmVCpuSize&&void 0!==e.maxVmVCpuSize&&t.setMaxVmVCpuSize(e.maxVmVCpuSize),e.hasOwnProperty("availableVCpuCount")&&null!==e.availableVCpuCount&&void 0!==e.availableVCpuCount&&t.setAvailableVCpuCount(e.availableVCpuCount),e.hasOwnProperty("largestPoweredOffVMVCpu")&&null!==e.largestPoweredOffVMVCpu&&void 0!==e.largestPoweredOffVMVCpu&&t.setLargestPoweredOffVMVCpu(e.largestPoweredOffVMVCpu),e.hasOwnProperty("totalCpuHz")&&null!==e.totalCpuHz&&void 0!==e.totalCpuHz&&t.setTotalCpuHz(e.totalCpuHz),e.hasOwnProperty("currentUsedCpuHz")&&null!==e.currentUsedCpuHz&&void 0!==e.currentUsedCpuHz&&t.setCurrentUsedCpuHz(e.currentUsedCpuHz),e.hasOwnProperty("provisionedCpuHz")&&null!==e.provisionedCpuHz&&void 0!==e.provisionedCpuHz&&t.setProvisionedCpuHz(e.provisionedCpuHz),e.hasOwnProperty("totalStorageCapacityRawBytes")&&null!==e.totalStorageCapacityRawBytes&&void 0!==e.totalStorageCapacityRawBytes&&t.setTotalStorageCapacityRawBytes(e.totalStorageCapacityRawBytes),e.hasOwnProperty("totalStorageCapacityLogicalBytes")&&null!==e.totalStorageCapacityLogicalBytes&&void 0!==e.totalStorageCapacityLogicalBytes&&t.setTotalStorageCapacityLogicalBytes(e.totalStorageCapacityLogicalBytes),e.hasOwnProperty("totalStorageCapacityLogicalWithSavingsBytes")&&null!==e.totalStorageCapacityLogicalWithSavingsBytes&&void 0!==e.totalStorageCapacityLogicalWithSavingsBytes&&t.setTotalStorageCapacityLogicalWithSavingsBytes(e.totalStorageCapacityLogicalWithSavingsBytes),e.hasOwnProperty("totalStorageUsageBytes")&&null!==e.totalStorageUsageBytes&&void 0!==e.totalStorageUsageBytes&&t.setTotalStorageUsageBytes(e.totalStorageUsageBytes),e.hasOwnProperty("totalStorageAvailableBytes")&&null!==e.totalStorageAvailableBytes&&void 0!==e.totalStorageAvailableBytes&&t.setTotalStorageAvailableBytes(e.totalStorageAvailableBytes),e.hasOwnProperty("totalStorageAvailableLogicalBytes")&&null!==e.totalStorageAvailableLogicalBytes&&void 0!==e.totalStorageAvailableLogicalBytes&&t.setTotalStorageAvailableLogicalBytes(e.totalStorageAvailableLogicalBytes),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}getExternalIP(){return this.externalIP}setExternalIP(e){this.externalIP=e}getCvmIPs(){return this.cvmIPs}setCvmIPs(e){this.cvmIPs=e}getTotalMemorySizeBytes(){return this.totalMemorySizeBytes}setTotalMemorySizeBytes(e){this.totalMemorySizeBytes=e}getCurrentMemoryUsageSizeBytes(){return this.currentMemoryUsageSizeBytes}setCurrentMemoryUsageSizeBytes(e){this.currentMemoryUsageSizeBytes=e}getProvisionedMemoryUsageBytes(){return this.provisionedMemoryUsageBytes}setProvisionedMemoryUsageBytes(e){this.provisionedMemoryUsageBytes=e}getMaxVmMemorySizeBytes(){return this.maxVmMemorySizeBytes}setMaxVmMemorySizeBytes(e){this.maxVmMemorySizeBytes=e}getAvailableMemorySizeBytes(){return this.availableMemorySizeBytes}setAvailableMemorySizeBytes(e){this.availableMemorySizeBytes=e}getLargestPoweredOffVMMemory(){return this.largestPoweredOffVMMemory}setLargestPoweredOffVMMemory(e){this.largestPoweredOffVMMemory=e}getTotalVCpuCount(){return this.totalVCpuCount}setTotalVCpuCount(e){this.totalVCpuCount=e}getCurrentUsedVCpuCount(){return this.currentUsedVCpuCount}setCurrentUsedVCpuCount(e){this.currentUsedVCpuCount=e}getProvisionedVCpuCount(){return this.provisionedVCpuCount}setProvisionedVCpuCount(e){this.provisionedVCpuCount=e}getMaxVmVCpuSize(){return this.maxVmVCpuSize}setMaxVmVCpuSize(e){this.maxVmVCpuSize=e}getAvailableVCpuCount(){return this.availableVCpuCount}setAvailableVCpuCount(e){this.availableVCpuCount=e}getLargestPoweredOffVMVCpu(){return this.largestPoweredOffVMVCpu}setLargestPoweredOffVMVCpu(e){this.largestPoweredOffVMVCpu=e}getTotalCpuHz(){return this.totalCpuHz}setTotalCpuHz(e){this.totalCpuHz=e}getCurrentUsedCpuHz(){return this.currentUsedCpuHz}setCurrentUsedCpuHz(e){this.currentUsedCpuHz=e}getProvisionedCpuHz(){return this.provisionedCpuHz}setProvisionedCpuHz(e){this.provisionedCpuHz=e}getTotalStorageCapacityRawBytes(){return this.totalStorageCapacityRawBytes}setTotalStorageCapacityRawBytes(e){this.totalStorageCapacityRawBytes=e}getTotalStorageCapacityLogicalBytes(){return this.totalStorageCapacityLogicalBytes}setTotalStorageCapacityLogicalBytes(e){this.totalStorageCapacityLogicalBytes=e}getTotalStorageCapacityLogicalWithSavingsBytes(){return this.totalStorageCapacityLogicalWithSavingsBytes}setTotalStorageCapacityLogicalWithSavingsBytes(e){this.totalStorageCapacityLogicalWithSavingsBytes=e}getTotalStorageUsageBytes(){return this.totalStorageUsageBytes}setTotalStorageUsageBytes(e){this.totalStorageUsageBytes=e}getTotalStorageAvailableBytes(){return this.totalStorageAvailableBytes}setTotalStorageAvailableBytes(e){this.totalStorageAvailableBytes=e}getTotalStorageAvailableLogicalBytes(){return this.totalStorageAvailableLogicalBytes}setTotalStorageAvailableLogicalBytes(e){this.totalStorageAvailableLogicalBytes=e}toJson(e){return!1===e?{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"clusterName"!==t||void 0!==this.clusterName&&null!==this.clusterName?"externalIP"!==t||void 0!==this.externalIP&&null!==this.externalIP?"cvmIPs"!==t||void 0!==this.cvmIPs&&null!==this.cvmIPs?"totalMemorySizeBytes"!==t||void 0!==this.totalMemorySizeBytes&&null!==this.totalMemorySizeBytes?"currentMemoryUsageSizeBytes"!==t||void 0!==this.currentMemoryUsageSizeBytes&&null!==this.currentMemoryUsageSizeBytes?"provisionedMemoryUsageBytes"!==t||void 0!==this.provisionedMemoryUsageBytes&&null!==this.provisionedMemoryUsageBytes?"maxVmMemorySizeBytes"!==t||void 0!==this.maxVmMemorySizeBytes&&null!==this.maxVmMemorySizeBytes?"availableMemorySizeBytes"!==t||void 0!==this.availableMemorySizeBytes&&null!==this.availableMemorySizeBytes?"largestPoweredOffVMMemory"!==t||void 0!==this.largestPoweredOffVMMemory&&null!==this.largestPoweredOffVMMemory?"totalVCpuCount"!==t||void 0!==this.totalVCpuCount&&null!==this.totalVCpuCount?"currentUsedVCpuCount"!==t||void 0!==this.currentUsedVCpuCount&&null!==this.currentUsedVCpuCount?"provisionedVCpuCount"!==t||void 0!==this.provisionedVCpuCount&&null!==this.provisionedVCpuCount?"maxVmVCpuSize"!==t||void 0!==this.maxVmVCpuSize&&null!==this.maxVmVCpuSize?"availableVCpuCount"!==t||void 0!==this.availableVCpuCount&&null!==this.availableVCpuCount?"largestPoweredOffVMVCpu"!==t||void 0!==this.largestPoweredOffVMVCpu&&null!==this.largestPoweredOffVMVCpu?"totalCpuHz"!==t||void 0!==this.totalCpuHz&&null!==this.totalCpuHz?"currentUsedCpuHz"!==t||void 0!==this.currentUsedCpuHz&&null!==this.currentUsedCpuHz?"provisionedCpuHz"!==t||void 0!==this.provisionedCpuHz&&null!==this.provisionedCpuHz?"totalStorageCapacityRawBytes"!==t||void 0!==this.totalStorageCapacityRawBytes&&null!==this.totalStorageCapacityRawBytes?"totalStorageCapacityLogicalBytes"!==t||void 0!==this.totalStorageCapacityLogicalBytes&&null!==this.totalStorageCapacityLogicalBytes?"totalStorageCapacityLogicalWithSavingsBytes"!==t||void 0!==this.totalStorageCapacityLogicalWithSavingsBytes&&null!==this.totalStorageCapacityLogicalWithSavingsBytes?"totalStorageUsageBytes"!==t||void 0!==this.totalStorageUsageBytes&&null!==this.totalStorageUsageBytes?"totalStorageAvailableBytes"!==t||void 0!==this.totalStorageAvailableBytes&&null!==this.totalStorageAvailableBytes?"totalStorageAvailableLogicalBytes"!==t||void 0!==this.totalStorageAvailableLogicalBytes&&null!==this.totalStorageAvailableLogicalBytes?new O(t,"no such property exists"):new O("totalStorageAvailableLogicalBytes","undefined or null"):new O("totalStorageAvailableBytes","undefined or null"):new O("totalStorageUsageBytes","undefined or null"):new O("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new O("totalStorageCapacityLogicalBytes","undefined or null"):new O("totalStorageCapacityRawBytes","undefined or null"):new O("provisionedCpuHz","undefined or null"):new O("currentUsedCpuHz","undefined or null"):new O("totalCpuHz","undefined or null"):new O("largestPoweredOffVMVCpu","undefined or null"):new O("availableVCpuCount","undefined or null"):new O("maxVmVCpuSize","undefined or null"):new O("provisionedVCpuCount","undefined or null"):new O("currentUsedVCpuCount","undefined or null"):new O("totalVCpuCount","undefined or null"):new O("largestPoweredOffVMMemory","undefined or null"):new O("availableMemorySizeBytes","undefined or null"):new O("maxVmMemorySizeBytes","undefined or null"):new O("provisionedMemoryUsageBytes","undefined or null"):new O("currentMemoryUsageSizeBytes","undefined or null"):new O("totalMemorySizeBytes","undefined or null"):new O("cvmIPs","undefined or null"):new O("externalIP","undefined or null"):new O("clusterName","undefined or null")}}Cs.prototype.clusterName=void 0,Cs.prototype.externalIP=void 0,Cs.prototype.cvmIPs=void 0,Cs.prototype.totalMemorySizeBytes=void 0,Cs.prototype.currentMemoryUsageSizeBytes=void 0,Cs.prototype.provisionedMemoryUsageBytes=void 0,Cs.prototype.maxVmMemorySizeBytes=void 0,Cs.prototype.availableMemorySizeBytes=void 0,Cs.prototype.largestPoweredOffVMMemory=void 0,Cs.prototype.totalVCpuCount=void 0,Cs.prototype.currentUsedVCpuCount=void 0,Cs.prototype.provisionedVCpuCount=void 0,Cs.prototype.maxVmVCpuSize=void 0,Cs.prototype.availableVCpuCount=void 0,Cs.prototype.largestPoweredOffVMVCpu=void 0,Cs.prototype.totalCpuHz=void 0,Cs.prototype.currentUsedCpuHz=void 0,Cs.prototype.provisionedCpuHz=void 0,Cs.prototype.totalStorageCapacityRawBytes=void 0,Cs.prototype.totalStorageCapacityLogicalBytes=void 0,Cs.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,Cs.prototype.totalStorageUsageBytes=void 0,Cs.prototype.totalStorageAvailableBytes=void 0,Cs.prototype.totalStorageAvailableLogicalBytes=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Ps=new WeakSet;class Ss{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ps),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ss,e.hasOwnProperty("nodeUuid")&&null!==e.nodeUuid&&void 0!==e.nodeUuid&&t.setNodeUuid(e.nodeUuid),e.hasOwnProperty("haMemoryReservedBytes")&&null!==e.haMemoryReservedBytes&&void 0!==e.haMemoryReservedBytes&&t.setHaMemoryReservedBytes(e.haMemoryReservedBytes),e.hasOwnProperty("numCpuThreads")&&null!==e.numCpuThreads&&void 0!==e.numCpuThreads&&t.setNumCpuThreads(e.numCpuThreads),e.hasOwnProperty("capacityHz")&&null!==e.capacityHz&&void 0!==e.capacityHz&&t.setCapacityHz(e.capacityHz),e.hasOwnProperty("memorySizeBytes")&&null!==e.memorySizeBytes&&void 0!==e.memorySizeBytes&&t.setMemorySizeBytes(e.memorySizeBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNodeUuid(){return this.nodeUuid}setNodeUuid(e){this.nodeUuid=e}getHaMemoryReservedBytes(){return this.haMemoryReservedBytes}setHaMemoryReservedBytes(e){this.haMemoryReservedBytes=e}getNumCpuThreads(){return this.numCpuThreads}setNumCpuThreads(e){this.numCpuThreads=e}getCapacityHz(){return this.capacityHz}setCapacityHz(e){this.capacityHz=e}getMemorySizeBytes(){return this.memorySizeBytes}setMemorySizeBytes(e){this.memorySizeBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getNodeUuid()&&null!==this.getNodeUuid()?{nodeUuid:this.getNodeUuid()}:{},...void 0!==this.getHaMemoryReservedBytes()&&null!==this.getHaMemoryReservedBytes()?{haMemoryReservedBytes:this.getHaMemoryReservedBytes()}:{},...void 0!==this.getNumCpuThreads()&&null!==this.getNumCpuThreads()?{numCpuThreads:this.getNumCpuThreads()}:{},...void 0!==this.getCapacityHz()&&null!==this.getCapacityHz()?{capacityHz:this.getCapacityHz()}:{},...void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new O("nodeUuid","undefined or null");if(!j.validatePattern(this.nodeUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("nodeUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"haMemoryReservedBytes"!==t||void 0!==this.haMemoryReservedBytes&&null!==this.haMemoryReservedBytes?"numCpuThreads"!==t||void 0!==this.numCpuThreads&&null!==this.numCpuThreads?"capacityHz"!==t||void 0!==this.capacityHz&&null!==this.capacityHz?"memorySizeBytes"!==t||void 0!==this.memorySizeBytes&&null!==this.memorySizeBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("memorySizeBytes","undefined or null"):new O("capacityHz","undefined or null"):new O("numCpuThreads","undefined or null"):new O("haMemoryReservedBytes","undefined or null")}}Ss.prototype.nodeUuid=void 0,Ss.prototype.haMemoryReservedBytes=void 0,Ss.prototype.numCpuThreads=void 0,Ss.prototype.capacityHz=void 0,Ss.prototype.memorySizeBytes=void 0,Ss.prototype.$reserved=void 0,Ss.prototype.$objectType=void 0,Ss.prototype.$unknownFields=void 0;class Es extends Ss{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.NodeProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Es,Ss.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ds=new WeakSet;class Rs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ds),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Vm",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Rs,e.hasOwnProperty("vmUuid")&&null!==e.vmUuid&&void 0!==e.vmUuid&&t.setVmUuid(e.vmUuid),e.hasOwnProperty("vmMemory")&&null!==e.vmMemory&&void 0!==e.vmMemory&&t.setVmMemory(e.vmMemory),e.hasOwnProperty("numVcpus")&&null!==e.numVcpus&&void 0!==e.numVcpus&&t.setNumVcpus(e.numVcpus),e.hasOwnProperty("powerState")&&null!==e.powerState&&void 0!==e.powerState&&t.setPowerState(e.powerState),e.hasOwnProperty("node")&&null!==e.node&&void 0!==e.node&&t.setNode(e.node),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmUuid(){return this.vmUuid}setVmUuid(e){this.vmUuid=e}getVmMemory(){return this.vmMemory}setVmMemory(e){this.vmMemory=e}getNumVcpus(){return this.numVcpus}setNumVcpus(e){this.numVcpus=e}getPowerState(){return this.powerState}setPowerState(e){this.powerState=e}getNode(){return this.node}setNode(e){this.node=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{},...void 0!==this.getVmMemory()&&null!==this.getVmMemory()?{vmMemory:this.getVmMemory()}:{},...void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{},...void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{},...void 0!==this.getNode()&&null!==this.getNode()?{node:this.getNode()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new O("vmUuid","undefined or null");if(!j.validatePattern(this.vmUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("vmUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"vmMemory"!==t||void 0!==this.vmMemory&&null!==this.vmMemory?"numVcpus"!==t||void 0!==this.numVcpus&&null!==this.numVcpus?"powerState"!==t||void 0!==this.powerState&&null!==this.powerState?"node"!==t||void 0!==this.node&&null!==this.node?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("node","undefined or null"):new O("powerState","undefined or null"):new O("numVcpus","undefined or null"):new O("vmMemory","undefined or null")}}Rs.prototype.vmUuid=void 0,Rs.prototype.vmMemory=void 0,Rs.prototype.numVcpus=void 0,Rs.prototype.powerState=void 0,Rs.prototype.node=void 0,Rs.prototype.$reserved=void 0,Rs.prototype.$objectType=void 0,Rs.prototype.$unknownFields=void 0;class Us extends Rs{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.VmProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Us,Rs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Is=new WeakSet;class As extends ks{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Is),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new As,ks.constructFromObject(e,t,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection){for(r=[],i=e.vmProjection,o=0;o<i.length;o++)s=Us.constructFromObject(i[o],void 0),r.push(s);t.setVmProjection(r)}if(e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection){for(r=[],i=e.nodeProjection,o=0;o<i.length;o++)s=Es.constructFromObject(i[o],void 0),r.push(s);t.setNodeProjection(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmProjection(){return this.vmProjection}setVmProjection(e){this.vmProjection=e}getNodeProjection(){return this.nodeProjection}setNodeProjection(e){this.nodeProjection=e}toJson(e){return{...void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vmProjection"!==t||void 0!==this.vmProjection&&null!==this.vmProjection?"nodeProjection"!==t||void 0!==this.nodeProjection&&null!==this.nodeProjection?new O(t,"no such property exists"):new O("nodeProjection","undefined or null"):new O("vmProjection","undefined or null")}}As.prototype.vmProjection=void 0,As.prototype.nodeProjection=void 0,ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0;const Ms={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IGNORE_RUNWAY_NUTANIX:"IGNORE_RUNWAY_NUTANIX",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ms).find(t=>Ms[t]===e);return null==t?Ms.$UNKNOWN:Ms[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ms.$UNKNOWN:case Ms.$REDACTED:case Ms.IGNORE_RUNWAY_NUTANIX:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|IGNORE_RUNWAY_NUTANIX }")}}};Object.freeze(Ms);const Ns=Ms,xs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ORIGINAL:"ORIGINAL",ONE_NODE_FAILURE:"ONE_NODE_FAILURE",BLOCK_AWARENESS:"BLOCK_AWARENESS",AUTO_DETECT:"AUTO_DETECT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xs).find(t=>xs[t]===e);return null==t?xs.$UNKNOWN:xs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xs.$UNKNOWN:case xs.$REDACTED:case xs.ORIGINAL:case xs.ONE_NODE_FAILURE:case xs.BLOCK_AWARENESS:case xs.AUTO_DETECT:return;default:throw new Error("Invalid : must be CapacityType.{ $UNKNOWN|$REDACTED|ORIGINAL|ONE_NODE_FAILURE|BLOCK_AWARENESS|AUTO_DETECT }")}}};Object.freeze(xs);const Vs=xs,Ls={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ls).find(t=>Ls[t]===e);return null==t?Ls.$UNKNOWN:Ls[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ls.$UNKNOWN:case Ls.$REDACTED:case Ls.GHZ:case Ls.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze(Ls);const Bs=Ls,Ws={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",NUTANIX_VCENTER_CLUSTER:"NUTANIX_VCENTER_CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ws).find(t=>Ws[t]===e);return null==t?Ws.$UNKNOWN:Ws[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ws.$UNKNOWN:case Ws.$REDACTED:case Ws.CLUSTER:case Ws.NUTANIX_VCENTER_CLUSTER:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|CLUSTER|NUTANIX_VCENTER_CLUSTER }")}}};Object.freeze(Ws);const zs=Ws;var Js=new WeakSet;class _s extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Js),t.add(e),this.$objectType="aiops.v4.config.EntityDetail",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _s,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("isDefaultAIOpsPolicyEntity")&&null!==e.isDefaultAIOpsPolicyEntity&&void 0!==e.isDefaultAIOpsPolicyEntity&&t.setIsDefaultAIOpsPolicyEntity(e.isDefaultAIOpsPolicyEntity),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getIsDefaultAIOpsPolicyEntity(){return this.isDefaultAIOpsPolicyEntity}setIsDefaultAIOpsPolicyEntity(e){this.isDefaultAIOpsPolicyEntity=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"isDefaultAIOpsPolicyEntity"!==t||void 0!==this.isDefaultAIOpsPolicyEntity&&null!==this.isDefaultAIOpsPolicyEntity?new O(t,"no such property exists"):new O("isDefaultAIOpsPolicyEntity","undefined or null"):new O("name","undefined or null")}}_s.prototype.name=void 0,_s.prototype.isDefaultAIOpsPolicyEntity=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;const Gs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INEFFICIENCY_EXCLUSION:"INEFFICIENCY_EXCLUSION",ANOMALY_EXCLUSION:"ANOMALY_EXCLUSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Gs).find(t=>Gs[t]===e);return null==t?Gs.$UNKNOWN:Gs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Gs.$UNKNOWN:case Gs.$REDACTED:case Gs.INEFFICIENCY_EXCLUSION:case Gs.ANOMALY_EXCLUSION:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|INEFFICIENCY_EXCLUSION|ANOMALY_EXCLUSION }")}}};Object.freeze(Gs);const qs=Gs;class Hs extends Zt{constructor(e,t,n){super(e,t,n),this.$objectType="aiops.v4.config.SimulatedVmResourceSpecProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Hs,Zt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ks=new WeakSet;class Xs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ks),t.add(e),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xs,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function Zs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xs.prototype.name=void 0,Xs.prototype.value="",Xs.prototype.$reserved=void 0,Xs.prototype.$objectType=void 0,Xs.prototype.$unknownFields=void 0;var Ys=new WeakSet;class Qs extends mt{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=Ys),i.add(n),this.isEnabled=e,this.entities=t,this.$objectType="aiops.v4.config.XfitPolicy",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Qs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&t.setPolicyType(qs.constructFromObject(e.policyType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&t.setIsDefault(e.isDefault),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("toRemove")&&null!==e.toRemove&&void 0!==e.toRemove&&t.setToRemove(e.toRemove),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(r=[],i=e.parameters,o=0;o<i.length;o++)s=Xs.constructFromObject(i[o],void 0),r.push(s);t.setParameters(r)}if(e.hasOwnProperty("entities")&&null!==e.entities&&void 0!==e.entities){for(r=[],i=e.entities,o=0;o<i.length;o++)s=_s.constructFromObject(i[o],void 0),r.push(s);t.setEntities(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPolicyType(){return this.policyType}setPolicyType(e){this.policyType=e}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getIsDefault(){return this.isDefault}setIsDefault(e){this.isDefault=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getToRemove(){return this.toRemove}setToRemove(e){this.toRemove=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}getEntities(){return this.entities}setEntities(e){this.entities=e}toJson(e){return!1===e?{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:Zs(Ys,this,eo).call(this,this.getUpdatedTime(),!1)}:{},...void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("policyType"===t&&(void 0===this.policyType||null===this.policyType))return new O("policyType","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!j.validateMaxLength(this.description,512))return new O("description","does not satisfy required maxLength constraint: 512");if(!j.validateMinLength(this.description,1))return new O("description","does not satisfy required minLength constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("isDefault"===t&&(void 0===this.isDefault||null===this.isDefault))return new O("isDefault","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new O("isEnabled","undefined or null");if("toRemove"===t&&(void 0===this.toRemove||null===this.toRemove))return new O("toRemove","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new O("parameters","undefined or null");if(!j.validateMaxItems(this.parameters,50))return new O("parameters","does not satisfy required maxItems constraint: 50")}return"entities"!==t||void 0!==this.entities&&null!==this.entities?new O(t,"no such property exists"):new O("entities","undefined or null")}}function eo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Qs.prototype.policyType=void 0,Qs.prototype.name=void 0,Qs.prototype.description=void 0,Qs.prototype.updatedTime=void 0,Qs.prototype.isDefault=!1,Qs.prototype.isEnabled=!0,Qs.prototype.toRemove=!1,Qs.prototype.parameters=void 0,Qs.prototype.entities=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class to extends Qs{constructor(e,t){super(e,t),this.$objectType="aiops.v4.config.XfitPolicyProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new to,Qs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}const no={ApiClient:le,StatsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getEntityDescriptorsV4(e,t,...n){let i=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityDescriptorsV4");const s={sourceExtId:e},o={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r},l=Mt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-descriptors","GET",s,o,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}getEntityMetricsV4(e,t,n,i,s,...o){let r=o.length>0?o[0]:{};if(s=s||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityMetricsV4");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getEntityMetricsV4");if(null==n)throw new Error("Missing the required parameter '$startTime' when calling getEntityMetricsV4");if(null==i)throw new Error("Missing the required parameter '$endTime' when calling getEntityMetricsV4");const a={sourceExtId:e,extId:t},l={...s.hasOwnProperty("$page")?{$page:s.$page}:{},...s.hasOwnProperty("$limit")?{$limit:s.$limit}:{},$startTime:n,$endTime:i,...s.hasOwnProperty("$samplingInterval")?{$samplingInterval:s.$samplingInterval}:{},...s.hasOwnProperty("$statType")?{$statType:s.$statType}:{},...s.hasOwnProperty("$filter")?{$filter:s.$filter}:{},...s.hasOwnProperty("$orderby")?{$orderby:s.$orderby}:{}};let d={};Object.keys(r).forEach(e=>{this.#e.has(e.toLowerCase())||(d[e]=r[e])});const u={...d},h=Tt;return this.apiClient.callApi("/api/aiops/v4.2.b1/stats/sources/{sourceExtId}/entities/{extId}","GET",a,l,u,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],h)}getEntityTypesV4(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityTypesV4");const i={sourceExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ht;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-types","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getSourcesV4(...e){let t=e.length>0?e[0]:{},n={};Object.keys(t).forEach(e=>{this.#e.has(e.toLowerCase())||(n[e]=t[e])});const i={...n},s=Wt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources","GET",{},{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},ScenariosApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createScenario(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Ci&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createScenario");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=Wi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}createSimulation(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Qt&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createSimulation");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=nn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}deleteScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Xi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}deleteSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Gi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRecommendation(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=es;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-recommendation","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateReport");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ss;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-report","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRunway(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRunway");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=fs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-runway","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=cs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");const i={scenarioExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Mi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{scenarioExtId}/reports","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],r)}getSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ls;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listScenarios(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ri;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listSimulations(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ln;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}updateScenarioById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Ci&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");if(null==s)throw new Error("Invalid body when calling updateScenarioById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=gs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}updateSimulationById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Qt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");if(null==s)throw new Error("Invalid body when calling updateSimulationById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=cn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},Cluster:ks,ClusterMetrics:Cs,ClusterProjection:As,Node:Ss,NodeProjection:Es,Vm:Rs,VmProjection:Us,CommonClusterType:Ns,CapacityType:Vs,CapacityUnit:Bs,CapacityUpdateConfig:Nn,CapacityUpdateType:An,CitrixXenProvisionType:Vn,CitrixXenWorkload:qn,CitrixXenWorkloadVendor:Bn,ClusterConfig:Cn,ConfigClusterType:zs,CreateScenarioApiResponse:Wi,CreateSimulationApiResponse:nn,DataStoreConfig:mn,DeleteScenarioApiResponse:Xi,DeleteSimulationApiResponse:Gi,EntityDescriptor:Ut,EntityDescriptorListApiResponse:Mt,EntityDetail:_s,EntityType:_t,EntityTypeListApiResponse:Ht,GenerateRecommendationApiResponse:es,GenerateReportApiResponse:ss,GenerateRunwayApiResponse:fs,GetScenarioApiResponse:cs,GetScenarioReportApiResponse:Mi,GetSimulationApiResponse:ls,ListScenariosApiResponse:Ri,ListSimulationsApiResponse:ln,MetricDescriptor:Dt,MicrosoftXenProvisionType:Kn,MicrosoftXenWorkload:Qn,MicrosoftXenWorkloadVendor:Zn,NodeConfig:jn,NodeSource:$n,PolicyType:qs,ReplicationFactor:vn,ResourceCapacity:bn,Runway:En,Scenario:Ci,ScenarioProjection:Si,SimulatedVmResourceSpec:Zt,SimulatedVmResourceSpecProjection:Hs,Simulation:Qt,SimulationProjection:on,Source:Vt,SourceListApiResponse:Wt,SplunkWorkload:ti,SqlProfileType:ii,SqlTransactionType:oi,SqlWorkload:ai,UpdateScenarioApiResponse:gs,UpdateSimulationApiResponse:cn,ValueRange:Ot,ValueType:Ct,VdiProvisionType:di,VdiUserType:hi,VdiVendor:pi,VdiWorkload:vi,Vendor:Un,VmCategoryWorkload:mi,VmWorkload:$i,Workload:Ti,XenOperatingSystem:zn,XenWorkload:_n,XfitPolicy:Qs,XfitPolicyProjection:to,AppMessage:De,ErrorResponse:Be,SchemaValidationError:Ne,SchemaValidationErrorMessage:Ie,BoolList:Je,BoolVal:Ge,DoubleList:He,DoubleVal:Xe,Entity:$t,EntityListApiResponse:Tt,IntList:Ye,IntVal:et,Metric:pt,Point:at,StrList:nt,StrVal:st,TimeSeries:ht,Flag:C,IPv4Address:Os,KVPair:I,KVStringPair:Xs,MapOfStringWrapper:E,Message:V,MessageSeverity:N,TenantAwareModel:vt,ApiLink:B,ApiResponseMetadata:J,ExternalizableAbstractModel:mt,DownSamplingOperator:St,TaskReference:Vi}})(),i.default})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Aiops=t())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={960(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<i.length;s++)if((n=i[s])===t||n.fn===t){i.splice(s,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var s=(n=n.slice(0)).length;i<s;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340(e){e.exports=r,r.default=r,r.stable=u,r.stableStringify=u;var t="[...]",n="[Circular]",i=[],s=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function r(e,t,n,r){var a;void 0===r&&(r=o()),l(e,"",0,[],void 0,0,r);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,o){var r=Object.getOwnPropertyDescriptor(o,n);void 0!==r.get?r.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,r])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function l(e,i,s,o,r,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<o.length;h++)if(o[h]===e)return void a(n,e,i,r);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,i,r);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(t,e,i,r);if(o.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,o,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,o,e,d,u)}}o.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,r){void 0===r&&(r=o());var a,l=h(e,"",0,[],void 0,0,r)||e;try{a=0===s.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,s,o,r,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<r.length;p++)if(r[p]===e)return void a(n,e,s,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,s,l);if(void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void a(t,e,s,l);if(r.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,r,e,u,c);else{var y={},v=Object.keys(e).sort(d);for(p=0;p<v.length;p++){var g=v[p];h(e[g],g,p,r,e,u,c),y[g]=e[g]}if(void 0===l)return y;i.push([l,s,e]),l[s]=y}r.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var o=s[i];if(o[1]===t&&o[0]===n){n=o[2],s.splice(i,1);break}}return e.call(this,t,n)}}},784(e,t,n){"use strict";var i="win32"===process.platform,s=n(818);function o(e,t){for(var n=[],i=0;i<e.length;i++){var s=e[i];s&&"."!==s&&(".."===s?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(s))}return n}function r(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var i=t;i>=0&&!e[i];i--);return 0===n&&i===t?e:n>i?[]:e.slice(n,i+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),i=t[3]||"",s=l.exec(i);return[n,s[1],s[2],s[3]]}function h(e){var t=a.exec(e),n=t[1]||"",i=!!n&&":"!==n[1];return{device:n,isUnc:i,isAbsolute:i||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r;if(i>=0?r=arguments[i]:e?(r=process.env["="+e])&&r.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(r=e+"\\"):r=process.cwd(),!s.isString(r))throw new TypeError("Arguments to path.resolve must be strings");if(r){var a=h(r),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=o(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,i=t.isUnc,s=t.isAbsolute,r=t.tail,a=/[\\\/]$/.test(r);return(r=o(r.split(/[\\\/]+/),!s).join("\\"))||s||(r="."),r&&a&&(r+="\\"),i&&(n=c(n)),n+(s?"\\":"")+r},d.isAbsolute=function(e){return h(e).isAbsolute},d.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var i=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(i=i.replace(/^[\\\/]{2,}/,"\\")),d.normalize(i)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),i=t.toLowerCase(),s=r(t.split("\\")),o=r(n.split("\\")),a=r(i.split("\\")),l=Math.min(o.length,a.length),u=l,h=0;h<l;h++)if(o[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<o.length;h++)c.push("..");return(c=c.concat(s.slice(u))).join("\\")},d._makeLong=function(e){if(!s.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,i=e.base||"";return n?n[n.length-1]===d.sep?n+i:n+d.sep+i:i},d.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return p.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:process.cwd();if(!s.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[0])}return(t?"/":"")+(e=o(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=o(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),o=s,a=0;a<s;a++)if(n[a]!==i[a]){o=a;break}var l=[];for(a=o;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(o))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},y.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},y.sep="/",y.delimiter=":",e.exports=i?d:y,e.exports.posix=y,e.exports.win32=d},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,i){if(i)return i(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,i){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const s=t.length,o=e-s;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");{const e=t[s-1];for(let n=0;n<o+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=i,this}e.exports=function(e){const i=e.Request;return i.prototype.oldRetry=i.prototype.retry,i.prototype.retry=n,i.prototype.callback=t,e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var i;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(i=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},585(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s;"undefined"!=typeof window?s=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),s=void 0):s=self;var o=n(960),r=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=$,c.getXHR=function(){if(s.XMLHttpRequest&&(!s.location||"file:"!==s.location.protocol||!s.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!l(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&v(t,n,e[n]);return t.join("&")}function v(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){v(e,t,n)});else if(l(n))for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&v(e,"".concat(t,"[").concat(i,"]"),n[i]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function g(e){for(var t,n,i={},s=e.split("&"),o=0,r=s.length;o<r;++o)-1===(n=(t=s[o]).indexOf("="))?i[decodeURIComponent(t)]="":i[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return i}function m(e){return/[/+]json($|[^-\w])/.test(e)}function w(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,i,s,o=e.split(/\r?\n/),r={},a=0,l=o.length;a<l;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(i=n.slice(0,t).toLowerCase(),s=p(n.slice(t+1)),r[i]=s);return r}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function $(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,i=null;try{i=new w(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=i.status,n.callback(e,i)):n.callback(null,i)})}function f(e,t,n){var i=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}c.serializeObject=y,c.parseString=g,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":y,"application/json":r},c.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},d(w.prototype),w.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&m(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},w.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,i="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),s=new Error(i);return s.status=this.status,s.method=t,s.url=n,s},c.Response=w,o($.prototype),a($.prototype),$.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},$.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},$.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},$.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},$.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},$.prototype._getFormData=function(){return this._formData||(this._formData=new s.FormData),this._formData},$.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},$.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},$.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},$.prototype.ca=$.prototype.agent,$.prototype.buffer=$.prototype.ca,$.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},$.prototype.pipe=$.prototype.write,$.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},$.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},$.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},$.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var i=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var s=this._header["content-type"],o=this._serializer||c.serialize[s?s.split(";")[0]:""];!o&&m(s)&&(o=c.serialize["application/json"]),o&&(n=o(n))}for(var r in this.header)null!==this.header[r]&&Object.prototype.hasOwnProperty.call(this.header,r)&&t.setRequestHeader(r,this.header[r]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var i=new c.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var i=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.head=function(e,t,n){var i=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.options=function(e,t,n){var i=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.del=f,c.delete=f,c.patch=function(e,t,n){var i=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.post=function(e,t,n){var i=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.put=function(e,t,n){var i=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}},388(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},695(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=n(388);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==i(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var r=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&r.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var i=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){i.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),i.end(function(n,i){n?t(n):e(i)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(i("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=s(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&s(this._data))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(this._data[i]=e[i]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var i=new Error("".concat(e+t,"ms exceeded"));i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},19(e,t,n){"use strict";var i=n(897);function s(e){if(e)return function(e){for(var t in s.prototype)Object.prototype.hasOwnProperty.call(s.prototype,t)&&(e[t]=s.prototype[t]);return e}(e)}e.exports=s,s.prototype.get=function(e){return this.header[e.toLowerCase()]},s.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var n=i.params(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(this[s]=n[s]);this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},s.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),i=n.shift(),s=n.shift();return i&&s&&(e[i]=s),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),i=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=i,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},597(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818(e,t,n){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(r(arguments[n]));return t.join(" ")}n=1;for(var s=arguments,o=s.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch(e){return"[Circular]"}default:return e}}),l=s[n];n<o;l=s[++n])y(l)||!$(l)?a+=" "+l:a+=" "+r(l);return a},t.deprecate=function(e,i){if(m(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===process.noDeprecation)return e;var s=!1;return function(){if(!s){if(process.throwDeprecation)throw new Error(i);process.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}};var s,o={};function r(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),d(i,e,i.depth)}function a(e,t){var n=r.styles[t];return n?"["+r.colors[n][0]+"m"+e+"["+r.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var s=n.inspect(i,e);return g(s)||(s=d(e,s,i)),s}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var r=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(r);if(e.showHidden&&(r=Object.getOwnPropertyNames(n)),b(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return u(n);if(0===r.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(f(n))return e.stylize(Date.prototype.toString.call(n),"date");if(b(n))return u(n)}var $,k="",j=!1,O=["{","}"];return c(n)&&(j=!0,O=["[","]"]),T(n)&&(k=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(k=" "+RegExp.prototype.toString.call(n)),f(n)&&(k=" "+Date.prototype.toUTCString.call(n)),b(n)&&(k=" "+u(n)),0!==r.length||j&&0!=n.length?i<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),$=j?function(e,t,n,i,s){for(var o=[],r=0,a=t.length;r<a;++r)F(t,String(r))?o.push(h(e,t,n,i,String(r),!0)):o.push("");return s.forEach(function(s){s.match(/^\d+$/)||o.push(h(e,t,n,i,s,!0))}),o}(e,n,i,a,r):r.map(function(t){return h(e,n,i,a,t,j)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}($,k,O)):O[0]+k+O[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,s,o){var r,a,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),F(i,s)||(r="["+s+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),m(r)){if(o&&s.match(/^\d+$/))return a;(r=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}function w(e){return $(e)&&"[object RegExp]"===k(e)}function $(e){return"object"==typeof e&&null!==e}function f(e){return $(e)&&"[object Date]"===k(e)}function b(e){return $(e)&&("[object Error]"===k(e)||e instanceof Error)}function T(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var n=process.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=w,t.isObject=$,t.isDate=f,t.isError=b,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[j((e=new Date).getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!$(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},548(){},799(){},545(){},965(){}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";n.d(i,{default:()=>no});var e,t=n(585),s=n.n(t);class o{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new o,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}o.prototype.linkFirst=null,o.prototype.linkPrev=null,o.prototype.linkNext=null,o.prototype.linkLast=null,o.prototype.apiClient=null,o.prototype.page=null,o.prototype.resultsPerPage=null,o.prototype.resultsTotal=null;var r=new Uint8Array(16);function a(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}const l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return h(i)};var p=n(540),y=n.n(p),v=n(545),g=n.n(v),m=n(799),w=n.n(m),$=n(784),f=n.n($),b=n(548);const T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const k=T;class j{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class O{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var F=new WeakSet;class C{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=F),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new C,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}C.prototype.name=void 0,C.prototype.value=!1,C.prototype.$reserved=void 0,C.prototype.$objectType=void 0,C.prototype.$unknownFields=void 0;var S=new WeakSet;class E{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=S),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new E,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("map","undefined or null")}}function D(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function R(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}E.prototype.map=void 0,E.prototype.$reserved=void 0,E.prototype.$objectType=void 0,E.prototype.$unknownFields=void 0;var U=new WeakSet;class I{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=U),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new I,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(r=[],i=e.value,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++)switch(a){case"string":case"integer":case"number":r.push(i[o]);break;case"common.v1.config.MapOfStringWrapper":s=E.constructFromObject(i[o],void 0),r.push(s);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(r)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):R(U,this,A).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):R(U,this,A).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function A(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}I.prototype.name=void 0,I.prototype.value=void 0,I.prototype.$reserved=void 0,I.prototype.$objectType=void 0,I.prototype.$unknownFields=void 0;const M={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(M).find(t=>M[t]===e);return null==t?M.$UNKNOWN:M[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case M.$UNKNOWN:case M.$REDACTED:case M.INFO:case M.WARNING:case M.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(M);const N=M;var x=new WeakSet;class V{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=x),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new V,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("severity","undefined or null"):new O("locale","undefined or null"):new O("message","undefined or null"):new O("code","undefined or null")}}V.prototype.code=void 0,V.prototype.message=void 0,V.prototype.locale="en_US",V.prototype.severity=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var L=new WeakSet;class B{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=L),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new B,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("rel","undefined or null"):new O("href","undefined or null")}}B.prototype.href=void 0,B.prototype.rel=void 0,B.prototype.$reserved=void 0,B.prototype.$objectType=void 0,B.prototype.$unknownFields=void 0;var W,z=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=z),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new J,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(r=[],i=e.flags,o=0;o<i.length;o++)s=C.constructFromObject(i[o],void 0),r.push(s);t.setFlags(r)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(r=[],i=e.messages,o=0;o<i.length;o++)s=V.constructFromObject(i[o],void 0),r.push(s);t.setMessages(r)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(r=[],i=e.extraInfo,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setExtraInfo(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new O("flags","undefined or null");if(!j.validateMaxItems(this.flags,20))return new O("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new O("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new O("messages","undefined or null");if(!j.validateMaxItems(this.messages,20))return new O("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new O("extraInfo","undefined or null");if(!j.validateMaxItems(this.extraInfo,20))return new O("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function _(e,t,n){G(e,t),t.set(e,n)}function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(e,t){return e.get(K(e,t))}function H(e,t,n){return e.set(K(e,t),n),n}function K(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}J.prototype.flags=void 0,J.prototype.links=void 0,J.prototype.totalAvailableResults=void 0,J.prototype.messages=void 0,J.prototype.extraInfo=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0,y()(s());var X=new WeakMap,Z=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,re=new WeakMap,ae=new WeakSet;class le{constructor(){var e;G(this,e=ae),e.add(this),_(this,X,void 0),_(this,Z,void 0),_(this,Y,void 0),_(this,Q,void 0),_(this,ee,void 0),_(this,te,void 0),_(this,ne,void 0),_(this,ie,void 0),_(this,se,void 0),_(this,oe,void 0),_(this,re,void 0),H(re,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",H(ie,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},H(ee,this,3e4),H(te,this,3e4),H(ne,this,108e5),this.readTimeout=q(te,this),this.connectTimeout=q(ee,this),this.cache=!0,H(Z,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(s().agent)),this.requestAgent=null,H(oe,this,null),this.allowVersionNegotiation=!0,H(se,this,!1),this.debug=!1,H(Y,this,null),this.username=null,this.password=null,H(Q,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(g().Agent)({rejectUnauthorized:e}),H(Q,this,e)}get verifySsl(){return q(Q,this)}set host(e){H(ie,this,e),H(se,this,!1),H(oe,this,null)}get host(){return q(ie,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=w().createWriteStream(e,{flags:"a"})),H(Y,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&H(Z,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==q(oe,this)&&null!==q(oe,this)&&null!==q(oe,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.2.b1"!==q(oe,this)){K(ae,this,ke).call(this,q(re,this).INFO,null,"Changing uri",e,"to negotiated version",q(oe,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,q(oe,this))}H(X,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let i="";""!==q(X,this)&&""!==this.host&&""!==this.port?i=q(X,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(i=self.origin);var s=i+e;return s.replace(/\{([\w-]+)\}/g,(e,n)=>{var i;return i=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(i)})}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let i=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=i);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=i)}return t}static getEtag(e){let t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return i?e[i]:null}return null}getNegotiatedVersion(){return q(oe,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===q(se,this)?this.callApiInternal("/api/aiops/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:i})=>{if(200===i.status&&t.hasOwnProperty("data")&&null!==t.data){const i=t.data,s="v4.2.b1";if(K(ae,this,we).call(this,K(ae,this,$e).call(this,i),K(ae,this,$e).call(this,s)))return K(ae,this,ke).call(this,q(re,this).WARN,null,"Server version",i,"is below minimum supported version",s,". Version negotiation will not be performed."),H(oe,this,null),H(se,this,!1),void n(e);H(oe,this,K(ae,this,me).call(this,"v4.2.b1",i)),H(se,this,!0),K(ae,this,ke).call(this,q(re,this).INFO,null,"Negotiated Version with server :",q(oe,this)),n(e)}else K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}).catch(t=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}):n(e)})}callApi(e,t,n,i,s,o,r,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,i,s,o,r,a,l,d,u)})}callApiInternal(e,t,i,o,r,a,l,d,u,h,p){var y=this.buildUrl(e,i);const v="undefined"!=typeof window&&void 0!==window.document;let g=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>g.includes(e))&&v&&this.downloadDestination)return new Promise((e,n)=>{const i=K(ae,this,Ce).call(this,y,t,o,r,l,d,u,h);fetch(i.url,i.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";K(ae,this,ke).call(this,q(re,this).ERROR,null,e),n(e)}const i=t.body.getReader(),s=this.downloadDestination.getWriter(),o=()=>i.read().then(({done:n,value:i})=>(n&&(s.close(),K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),s.write(i).then(o)));return o()}).catch(e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),n(e)})});var m=s()(t,y);if(m.oldCallback=m.callback,m.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},K(ae,this,pe).call(this,m,d),"GET"===t.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),m.query(K(ae,this,ce).call(this,o)),m.set(this.defaultHeaders).set(K(ae,this,ce).call(this,r)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==r["NTNX-Request-Id"]&&void 0!==r["NTNX-Request-Id"])){let e=c();m.set(K(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}v||(this.downloadDestination=".",m.set(K(ae,this,ce).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.2.2-beta.1"}))),this.requestAgent&&m.agent(this.requestAgent);var $={};$.response=K(ae,this,fe).call(this,this.connectTimeout,q(ee,this)),$.deadline=K(ae,this,fe).call(this,this.readTimeout,q(te,this)),m.timeout($);var f=r.hasOwnProperty("Content-Type")?r["Content-Type"]:K(ae,this,ue).call(this,u);if(f?"multipart/form-data"!=f&&m.type(f):m.header["Content-Type"]||m.type("application/json"),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,y),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",void 0===m.header?"":m.header),"application/x-www-form-urlencoded"===f)m.send(K(ae,this,ce).call(this,a));else if("multipart/form-data"==f){var b=K(ae,this,ce).call(this,a);for(var T in b)b.hasOwnProperty(T)&&(K(ae,this,he).call(this,b[T])?m.attach(T,b[T]):m.field(T,b[T]))}else{if("application/octet-stream"===f&&null!=l&&"function"==typeof l.pipe){if(K(ae,this,ke).call(this,q(re,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(m);else{let e;try{e=n(965)}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){m.write(e)},close(){K(ae,this,ke).call(this,q(re,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"READABLE STREAM ABORTED")}})):m.send(l)}return new Promise((t,n)=>{m.on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",i=>{K(ae,this,Fe).call(this,i,e,o,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&m.send(l)}"Blob"==typeof p?m.responseType("blob"):"String"===p&&m.responseType("string"),K(ae,this,Te).call(this,m),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",void 0===m._data?"":m._data);var k=r.hasOwnProperty("Accept")&&null!=r.Accept?r.Accept:h.join(", ");return k&&m.accept(k),new Promise((n,i)=>{m.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e)}).end((r,a)=>{if(r)K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error during the request!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,r),404===r.status&&(H(se,this,!1),H(oe,this,null)),null!==r.response&&void 0!==r.response?r.data=K(ae,this,ve).call(this,r.response,p):r.data=K(ae,this,ye).call(this,r),i(r);else{K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",a.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",a.headers);let r="";if(a.headers.hasOwnProperty("content-type")&&(r=a.headers["content-type"]),g.includes(r)){if(!v){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=w().createWriteStream(e);K(ae,this,Pe).call(this,a,t,e,n,i,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",o=this;K(ae,this,ke).call(this,q(re,this).INFO,null,"Redirecting to :",a.headers.location);var l=s()(t,a.headers.location);l.set(m.header),a.headers.hasOwnProperty("x-redirect-token")&&(K(ae,this,ke).call(this,q(re,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let r=w().createWriteStream(e);l.pipe(r),l.on("response",function(t){K(ae,o,ke).call(o,q(re,o).INFO,null,"Received response after redirection :",t.status),K(ae,o,Pe).call(o,t,r,e,n,i,p)})}else K(ae,this,Fe).call(this,a,e,o,p,n,i)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,i){let s=null;if(void 0!==t&&t.hasOwnProperty(n)&&(s=t[n]),null===s&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=e.match(new RegExp(`${t}=([0-9]+)`));i&&(s=i[1])}return null===s&&(s=i),s}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var i,s;for(var o in t)if(t.hasOwnProperty(o)){i=o,s=t[o];break}var r={};for(var o in e)if(e.hasOwnProperty(o)){var a=le.convertToType(o,i),l=le.convertToType(e[o],s);r[a]=l}return r}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n));else for(var s in e)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(K(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof b.Blob&&e instanceof b.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var i=e[n];K(ae,this,he).call(this,i)||Array.isArray(i)?t[n]=i:t[n]=this.paramToString(i)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var i={};n.apiKeyPrefix?i[n.name]=n.apiKeyPrefix+" "+n.apiKey:i[n.name]=n.apiKey,"header"===n.in?e.set(i):e.query(i)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ye(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ve(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new b.Blob([e.text],{type:e.headers["content-type"]});let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;return o.flags=s,n.metadata=o,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),W.convertToType(n,t)}function ge(e,t,n){if(!(e instanceof o))return;const i=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),s=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,i,s)}function me(e,t){if(!e||!t)return e;let n=K(ae,this,$e).call(this,e),i=K(ae,this,$e).call(this,t);return!n.family===i.family||K(ae,this,we).call(this,n,i)?e:t}function we(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),i=t.versionType.substring(0,1),s=parseInt(e.versionType.substring(1)),o="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===i?s<o:"a"===n||"released"===t.versionType}function $e(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function fe(e,t){return e<=0?e=t:e>q(ne,this)&&(e=q(ne,this)),e}function be(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}H(Z,this,t),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Retained cookie :",t)}else H(Z,this,null)}function Te(e){null!=q(Z,this)&&e.set(K(ae,this,ce).call(this,{Cookie:q(Z,this)}))}function ke(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=q(re,this).INFO),!K(ae,this,je).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let i=n.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==q(Y,this)&&null!==q(Y,this)&&"function"==typeof q(Y,this).log?q(Y,this).log(i):console.log(i)}}function je(e){return!this.debug&&e===q(re,this).DEBUG}function Oe(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Fe(e,t,n,i,s,o){try{var r=K(ae,this,ve).call(this,e,i);K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",e.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",e.headers),K(ae,this,be).call(this,e||{}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Response Body :",r),204==e.status&&null==r?s({data:r,response:e}):e.ok&&null!=r?(this.addEtagToReservedMap(e,r),K(ae,this,ge).call(this,r,t,n),s({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,r),o({...e.error,data:r}))}catch(e){K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error while processing response!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,e),e.data=K(ae,this,ye).call(this,e),o(e)}}function Ce(e,t,n,i,s,o,r,a){let l={};o.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",i="";if(t.username||t.password?(e=t.username||"",i=t.password||""):(this.username||this.password)&&(e=this.username||"",i=this.password||""),e||i){const t=btoa(`${e}:${i}`);l.Authorization=`Basic ${t}`}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=K(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...K(ae,this,ce).call(this,i),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=q(Z,this)&&(p.Cookie=K(ae,this,ce).call(this,{Cookie:q(Z,this)}));var y=i.hasOwnProperty("Content-Type")?i["Content-Type"]:K(ae,this,ue).call(this,r);p["Content-Type"]=y;var v=i.hasOwnProperty("Accept")&&null!=i.Accept?i.Accept:a.join(", ");return v&&(p.Accept=v),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,e),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",p),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",s||""),{url:h,options:{method:t,headers:p,body:s,credentials:this.withCredentials?"include":"same-origin"}}}function Pe(e,t,n,i,s,o){K(ae,this,ke).call(this,q(re,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Issue while downloading file",e)}let r=new o,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=f().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,r.data={path:f().parse(a),$objectType:"Path"};let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;o.flags=s,r.metadata=o}e.on("end",()=>{K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),0!==a.length?(K(ae,this,ke).call(this,q(re,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),w().renameSync(n,a),i({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),i({data:r,response:e}))}),e.on("error",e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),error.data=K(ae,this,ye).call(this,error),s(e)})}function Se(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}W=le,le.instance=new le;var Ee=new WeakSet;class De{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ee),t.add(e),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new De,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("argumentsMap","undefined or null"):new O("errorGroup","undefined or null"):new O("locale","undefined or null"):new O("code","undefined or null"):new O("severity","undefined or null"):new O("message","undefined or null")}}function Re(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}De.prototype.message=void 0,De.prototype.severity=void 0,De.prototype.code=void 0,De.prototype.locale="en_US",De.prototype.errorGroup=void 0,De.prototype.argumentsMap=void 0,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var Ue=new WeakSet;class Ie{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ue),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ie,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("attributePath","undefined or null"):new O("message","undefined or null"):new O("location","undefined or null")}}function Ae(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ie.prototype.location=void 0,Ie.prototype.message=void 0,Ie.prototype.attributePath=void 0,Ie.prototype.$reserved=void 0,Ie.prototype.$objectType=void 0,Ie.prototype.$unknownFields=void 0;var Me=new WeakSet;class Ne{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Me),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ne,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(r=[],i=e.validationErrorMessages,o=0;o<i.length;o++)s=Ie.constructFromObject(i[o],void 0),r.push(s);t.setValidationErrorMessages(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ae(Me,this,xe).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{},...void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{},...void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{},...void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("validationErrorMessages","undefined or null"):new O("path","undefined or null"):new O("error","undefined or null"):new O("statusCode","undefined or null"):new O("timestamp","undefined or null")}}function xe(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ve(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ne.prototype.timestamp=void 0,Ne.prototype.statusCode=void 0,Ne.prototype.error=void 0,Ne.prototype.path=void 0,Ne.prototype.validationErrorMessages=void 0,Ne.prototype.$reserved=void 0,Ne.prototype.$objectType=void 0,Ne.prototype.$unknownFields=void 0;var Le=new WeakSet;class Be{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Le),t.add(e),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new Be,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(r=[],i=e.error,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";s=De.constructFromObject(i[o],void 0),r.push(s)}t.setError(r)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"aiops.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(Ne.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ve(Le,this,We).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):Ve(Le,this,We).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("error","undefined or null")}}function We(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Be.prototype.error=void 0,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var ze=new WeakSet;class Je{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=ze),n.add(t),this.boolList=e,this.$objectType="aiops.v4.stats.BoolList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Je,e.hasOwnProperty("boolList")&&null!==e.boolList&&void 0!==e.boolList){for(o=[],i=e.boolList,s=0;s<i.length;s++)o.push(i[s]);t.setBoolList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolList(){return this.boolList}setBoolList(e){this.boolList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolList()&&null!==this.getBoolList()?{boolList:this.getBoolList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("boolList"===t){if(void 0===this.boolList||null===this.boolList)return new O("boolList","undefined or null");if(!j.validateMaxItems(this.boolList,100))return new O("boolList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Je.prototype.boolList=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var _e=new WeakSet;class Ge{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=_e),n.add(t),this.boolValue=e,this.$objectType="aiops.v4.stats.BoolVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ge,e.hasOwnProperty("boolValue")&&null!==e.boolValue&&void 0!==e.boolValue&&t.setBoolValue(e.boolValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolValue(){return this.boolValue}setBoolValue(e){this.boolValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"boolValue"!==t||void 0!==this.boolValue&&null!==this.boolValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("boolValue","undefined or null")}}Ge.prototype.boolValue=void 0,Ge.prototype.$reserved=void 0,Ge.prototype.$objectType=void 0,Ge.prototype.$unknownFields=void 0;var qe=new WeakSet;class He{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=qe),n.add(t),this.doubleList=e,this.$objectType="aiops.v4.stats.DoubleList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new He,e.hasOwnProperty("doubleList")&&null!==e.doubleList&&void 0!==e.doubleList){for(o=[],i=e.doubleList,s=0;s<i.length;s++)o.push(i[s]);t.setDoubleList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleList(){return this.doubleList}setDoubleList(e){this.doubleList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleList()&&null!==this.getDoubleList()?{doubleList:this.getDoubleList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("doubleList"===t){if(void 0===this.doubleList||null===this.doubleList)return new O("doubleList","undefined or null");if(!j.validateMaxItems(this.doubleList,100))return new O("doubleList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}He.prototype.doubleList=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Ke=new WeakSet;class Xe{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ke),n.add(t),this.doubleValue=e,this.$objectType="aiops.v4.stats.DoubleVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xe,e.hasOwnProperty("doubleValue")&&null!==e.doubleValue&&void 0!==e.doubleValue&&t.setDoubleValue(e.doubleValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleValue(){return this.doubleValue}setDoubleValue(e){this.doubleValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"doubleValue"!==t||void 0!==this.doubleValue&&null!==this.doubleValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("doubleValue","undefined or null")}}Xe.prototype.doubleValue=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var Ze=new WeakSet;class Ye{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ze),n.add(t),this.intList=e,this.$objectType="aiops.v4.stats.IntList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Ye,e.hasOwnProperty("intList")&&null!==e.intList&&void 0!==e.intList){for(o=[],i=e.intList,s=0;s<i.length;s++)o.push(i[s]);t.setIntList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntList(){return this.intList}setIntList(e){this.intList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntList()&&null!==this.getIntList()?{intList:this.getIntList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("intList"===t){if(void 0===this.intList||null===this.intList)return new O("intList","undefined or null");if(!j.validateMaxItems(this.intList,100))return new O("intList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Ye.prototype.intList=void 0,Ye.prototype.$reserved=void 0,Ye.prototype.$objectType=void 0,Ye.prototype.$unknownFields=void 0;var Qe=new WeakSet;class et{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Qe),n.add(t),this.intValue=e,this.$objectType="aiops.v4.stats.IntVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new et,e.hasOwnProperty("intValue")&&null!==e.intValue&&void 0!==e.intValue&&t.setIntValue(e.intValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntValue(){return this.intValue}setIntValue(e){this.intValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"intValue"!==t||void 0!==this.intValue&&null!==this.intValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("intValue","undefined or null")}}et.prototype.intValue=void 0,et.prototype.$reserved=void 0,et.prototype.$objectType=void 0,et.prototype.$unknownFields=void 0;var tt=new WeakSet;class nt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=tt),n.add(t),this.strList=e,this.$objectType="aiops.v4.stats.StrList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new nt,e.hasOwnProperty("strList")&&null!==e.strList&&void 0!==e.strList){for(o=[],i=e.strList,s=0;s<i.length;s++)o.push(i[s]);t.setStrList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrList(){return this.strList}setStrList(e){this.strList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrList()&&null!==this.getStrList()?{strList:this.getStrList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("strList"===t){if(void 0===this.strList||null===this.strList)return new O("strList","undefined or null");if(!j.validateMaxItems(this.strList,100))return new O("strList","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}nt.prototype.strList=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var it=new WeakSet;class st{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=it),n.add(t),this.strValue=e,this.$objectType="aiops.v4.stats.StrVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new st,e.hasOwnProperty("strValue")&&null!==e.strValue&&void 0!==e.strValue&&t.setStrValue(e.strValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrValue(){return this.strValue}setStrValue(e){this.strValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrValue()&&null!==this.getStrValue()?{strValue:this.getStrValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"strValue"!==t||void 0!==this.strValue&&null!==this.strValue?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("strValue","undefined or null")}}function ot(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}st.prototype.strValue=void 0,st.prototype.$reserved=void 0,st.prototype.$objectType=void 0,st.prototype.$unknownFields=void 0;var rt=new WeakSet;class at{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=rt),t.add(e),this.$objectType="aiops.v4.stats.Point",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new at,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)switch(i=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,i){case"aiops.v4.stats.StrVal":t.setValue(st.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolVal":t.setValue(Ge.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntVal":t.setValue(et.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleVal":t.setValue(Xe.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.StrList":t.setValue(nt.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolList":t.setValue(Je.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntList":t.setValue(Ye.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleList":t.setValue(He.constructFromObject(e.value,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):ot(rt,this,lt).call(this,this.getValue(),!1)}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):ot(rt,this,lt).call(this,this.getValue())}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timestamp","undefined or null"):new O("value","undefined or null")}}function lt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function dt(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}at.prototype.value=void 0,at.prototype.timestamp=void 0,at.prototype.$reserved=void 0,at.prototype.$objectType=void 0,at.prototype.$unknownFields=void 0;var ut=new WeakSet;class ht{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ut),t.add(e),this.$objectType="aiops.v4.stats.TimeSeries",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new ht,e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("values")&&null!==e.values&&void 0!==e.values){for(r=[],i=e.values,o=0;o<i.length;o++)s=at.constructFromObject(i[o],void 0),r.push(s);t.setValues(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getValues(){return this.values}setValues(e){this.values=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("values"===t){if(void 0===this.values||null===this.values)return new O("values","undefined or null");if(!j.validateMaxItems(this.values,2880))return new O("values","does not satisfy required maxItems constraint: 2880")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ht.prototype.samplingIntervalSecs=void 0,ht.prototype.values=void 0,ht.prototype.$reserved=void 0,ht.prototype.$objectType=void 0,ht.prototype.$unknownFields=void 0;var ct=new WeakSet;class pt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ct),t.add(e),this.$objectType="aiops.v4.stats.Metric",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new pt,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("timeSeries")&&null!==e.timeSeries&&void 0!==e.timeSeries&&t.setTimeSeries(ht.constructFromObject(e.timeSeries)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getTimeSeries(){return this.timeSeries}setTimeSeries(e){this.timeSeries=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getTimeSeries()&&null!==this.getTimeSeries()?{timeSeries:this.getTimeSeries().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}return"timeSeries"!==t||void 0!==this.timeSeries&&null!==this.timeSeries?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timeSeries","undefined or null")}}pt.prototype.name=void 0,pt.prototype.timeSeries=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var yt=new WeakSet;class vt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=yt),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vt,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new O("tenantId","undefined or null");if(!j.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vt.prototype.tenantId=void 0,vt.prototype.$reserved=void 0,vt.prototype.$objectType=void 0,vt.prototype.$unknownFields=void 0;var gt=new WeakSet;class mt extends vt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=gt),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new mt,vt.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(null==e){if(!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===k.update&&!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}return new O(t,"no such property exists")}}mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var wt=new WeakSet;class $t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=wt),t.add(e),this.$objectType="aiops.v4.stats.Entity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new $t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=$t.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=pt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function ft(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$t.prototype.entityType=void 0,$t.prototype.source=void 0,$t.prototype.parents=void 0,$t.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var bt=new WeakSet;class Tt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bt),t.add(e),this.$objectType="aiops.v4.stats.EntityListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Tt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.stats.Entity"!==l)throw"Unknown list of type "+l+" in data";s=$t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ft(bt,this,kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ft(bt,this,kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Tt.prototype.metadata=void 0,Tt.prototype.data=void 0,Tt.prototype.$reserved=void 0,Tt.prototype.$objectType=void 0,Tt.prototype.$unknownFields=void 0;var jt=new WeakSet;class Ot{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=jt),t.add(e),this.$objectType="aiops.v4.config.ValueRange",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ot,e.hasOwnProperty("min")&&null!==e.min&&void 0!==e.min&&t.setMin(e.min),e.hasOwnProperty("max")&&null!==e.max&&void 0!==e.max&&t.setMax(e.max),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMin(){return this.min}setMin(e){this.min=e}getMax(){return this.max}setMax(e){this.max=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMin()&&null!==this.getMin()?{min:this.getMin()}:{},...void 0!==this.getMax()&&null!==this.getMax()?{max:this.getMax()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"min"!==t||void 0!==this.min&&null!==this.min?"max"!==t||void 0!==this.max&&null!==this.max?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("max","undefined or null"):new O("min","undefined or null")}}Ot.prototype.min=void 0,Ot.prototype.max=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;const Ft={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BOOL:"BOOL",INT:"INT",DOUBLE:"DOUBLE",STRING:"STRING",BOOL_LIST:"BOOL_LIST",INT_LIST:"INT_LIST",DOUBLE_LIST:"DOUBLE_LIST",STRING_LIST:"STRING_LIST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ft).find(t=>Ft[t]===e);return null==t?Ft.$UNKNOWN:Ft[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ft.$UNKNOWN:case Ft.$REDACTED:case Ft.BOOL:case Ft.INT:case Ft.DOUBLE:case Ft.STRING:case Ft.BOOL_LIST:case Ft.INT_LIST:case Ft.DOUBLE_LIST:case Ft.STRING_LIST:return;default:throw new Error("Invalid : must be ValueType.{ $UNKNOWN|$REDACTED|BOOL|INT|DOUBLE|STRING|BOOL_LIST|INT_LIST|DOUBLE_LIST|STRING_LIST }")}}};Object.freeze(Ft);const Ct=Ft,Pt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Pt).find(t=>Pt[t]===e);return null==t?Pt.$UNKNOWN:Pt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pt.$UNKNOWN:case Pt.$REDACTED:case Pt.SUM:case Pt.MIN:case Pt.MAX:case Pt.AVG:case Pt.COUNT:case Pt.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Pt);const St=Pt;var Et=new WeakSet;class Dt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Et),t.add(e),this.$objectType="aiops.v4.config.MetricDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Dt,e.hasOwnProperty("isAttribute")&&null!==e.isAttribute&&void 0!==e.isAttribute&&t.setIsAttribute(e.isAttribute),e.hasOwnProperty("isAttributePersistedAsTimeSeries")&&null!==e.isAttributePersistedAsTimeSeries&&void 0!==e.isAttributePersistedAsTimeSeries&&t.setIsAttributePersistedAsTimeSeries(e.isAttributePersistedAsTimeSeries),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("valueType")&&null!==e.valueType&&void 0!==e.valueType&&t.setValueType(Ct.constructFromObject(e.valueType)),e.hasOwnProperty("valueRange")&&null!==e.valueRange&&void 0!==e.valueRange&&t.setValueRange(Ot.constructFromObject(e.valueRange)),e.hasOwnProperty("defaultValue")&&null!==e.defaultValue&&void 0!==e.defaultValue&&t.setDefaultValue(e.defaultValue),e.hasOwnProperty("unit")&&null!==e.unit&&void 0!==e.unit&&t.setUnit(e.unit),e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("downsamplingOperator")&&null!==e.downsamplingOperator&&void 0!==e.downsamplingOperator&&t.setDownsamplingOperator(St.constructFromObject(e.downsamplingOperator)),e.hasOwnProperty("additionalProperties")&&null!==e.additionalProperties&&void 0!==e.additionalProperties){for(r=[],i=e.additionalProperties,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setAdditionalProperties(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsAttribute(){return this.isAttribute}setIsAttribute(e){this.isAttribute=e}getIsAttributePersistedAsTimeSeries(){return this.isAttributePersistedAsTimeSeries}setIsAttributePersistedAsTimeSeries(e){this.isAttributePersistedAsTimeSeries=e}getName(){return this.name}setName(e){this.name=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getValueType(){return this.valueType}setValueType(e){this.valueType=e}getValueRange(){return this.valueRange}setValueRange(e){this.valueRange=e}getDefaultValue(){return this.defaultValue}setDefaultValue(e){this.defaultValue=e}getUnit(){return this.unit}setUnit(e){this.unit=e}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getDownsamplingOperator(){return this.downsamplingOperator}setDownsamplingOperator(e){this.downsamplingOperator=e}getAdditionalProperties(){return this.additionalProperties}setAdditionalProperties(e){this.additionalProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIsAttribute()&&null!==this.getIsAttribute()?{isAttribute:this.getIsAttribute()}:{},...void 0!==this.getIsAttributePersistedAsTimeSeries()&&null!==this.getIsAttributePersistedAsTimeSeries()?{isAttributePersistedAsTimeSeries:this.getIsAttributePersistedAsTimeSeries()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getValueType()&&null!==this.getValueType()?{valueType:this.getValueType()}:{},...void 0!==this.getValueRange()&&null!==this.getValueRange()?{valueRange:this.getValueRange().toJson(!1)}:{},...void 0!==this.getDefaultValue()&&null!==this.getDefaultValue()?{defaultValue:this.getDefaultValue()}:{},...void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{},...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getDownsamplingOperator()&&null!==this.getDownsamplingOperator()?{downsamplingOperator:this.getDownsamplingOperator()}:{},...void 0!==this.getAdditionalProperties()&&null!==this.getAdditionalProperties()?{additionalProperties:this.getAdditionalProperties().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("isAttribute"===t&&(void 0===this.isAttribute||null===this.isAttribute))return new O("isAttribute","undefined or null");if("isAttributePersistedAsTimeSeries"===t&&(void 0===this.isAttributePersistedAsTimeSeries||null===this.isAttributePersistedAsTimeSeries))return new O("isAttributePersistedAsTimeSeries","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("valueType"===t&&(void 0===this.valueType||null===this.valueType))return new O("valueType","undefined or null");if("valueRange"===t&&(void 0===this.valueRange||null===this.valueRange))return new O("valueRange","undefined or null");if("defaultValue"===t&&(void 0===this.defaultValue||null===this.defaultValue))return new O("defaultValue","undefined or null");if("unit"===t&&(void 0===this.unit||null===this.unit))return new O("unit","undefined or null");if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("downsamplingOperator"===t&&(void 0===this.downsamplingOperator||null===this.downsamplingOperator))return new O("downsamplingOperator","undefined or null");if("additionalProperties"===t){if(void 0===this.additionalProperties||null===this.additionalProperties)return new O("additionalProperties","undefined or null");if(!j.validateMaxItems(this.additionalProperties,100))return new O("additionalProperties","does not satisfy required maxItems constraint: 100")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Dt.prototype.isAttribute=void 0,Dt.prototype.isAttributePersistedAsTimeSeries=void 0,Dt.prototype.name=void 0,Dt.prototype.displayName=void 0,Dt.prototype.valueType=void 0,Dt.prototype.valueRange=void 0,Dt.prototype.defaultValue=void 0,Dt.prototype.unit=void 0,Dt.prototype.samplingIntervalSecs=void 0,Dt.prototype.downsamplingOperator=void 0,Dt.prototype.additionalProperties=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Rt=new WeakSet;class Ut extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Rt),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ut,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=Ut.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=Dt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{},...void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{},...void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function It(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ut.prototype.entityType=void 0,Ut.prototype.source=void 0,Ut.prototype.displayName=void 0,Ut.prototype.parents=void 0,Ut.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var At=new WeakSet;class Mt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=At),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptorListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Mt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityDescriptor"!==l)throw"Unknown list of type "+l+" in data";s=Ut.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):It(At,this,Nt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):It(At,this,Nt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Nt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mt.prototype.metadata=void 0,Mt.prototype.data=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var xt=new WeakSet;class Vt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=xt),t.add(e),this.$objectType="aiops.v4.config.Source",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("sourceName")&&null!==e.sourceName&&void 0!==e.sourceName&&t.setSourceName(e.sourceName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}toJson(e){return!1===e?{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("sourceName"===t){if(void 0===this.sourceName||null===this.sourceName)return new O("sourceName","undefined or null");if(!j.validateMaxLength(this.sourceName,50))return new O("sourceName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Lt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vt.prototype.sourceName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Bt=new WeakSet;class Wt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bt),t.add(e),this.$objectType="aiops.v4.config.SourceListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Wt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.Source"!==l)throw"Unknown list of type "+l+" in data";s=Vt.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Lt(Bt,this,zt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Lt(Bt,this,zt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Wt.prototype.metadata=void 0,Wt.prototype.data=void 0,Wt.prototype.$reserved=void 0,Wt.prototype.$objectType=void 0,Wt.prototype.$unknownFields=void 0;var Jt=new WeakSet;class _t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Jt),t.add(e),this.$objectType="aiops.v4.config.EntityType",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityTypeName")&&null!==e.entityTypeName&&void 0!==e.entityTypeName&&t.setEntityTypeName(e.entityTypeName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityTypeName(){return this.entityTypeName}setEntityTypeName(e){this.entityTypeName=e}toJson(e){return!1===e?{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityTypeName"===t){if(void 0===this.entityTypeName||null===this.entityTypeName)return new O("entityTypeName","undefined or null");if(!j.validateMaxLength(this.entityTypeName,50))return new O("entityTypeName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Gt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_t.prototype.entityTypeName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var qt=new WeakSet;class Ht extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=qt),t.add(e),this.$objectType="aiops.v4.config.EntityTypeListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ht,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityType"!==l)throw"Unknown list of type "+l+" in data";s=_t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Gt(qt,this,Kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Gt(qt,this,Kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ht.prototype.metadata=void 0,Ht.prototype.data=void 0,Ht.prototype.$reserved=void 0,Ht.prototype.$objectType=void 0,Ht.prototype.$unknownFields=void 0;var Xt=new WeakSet;class Zt{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=Xt),s.add(i),this.vcpuCount=e,this.ramGb=t,this.hddGb=n,this.$objectType="aiops.v4.config.SimulatedVmResourceSpec",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Zt,e.hasOwnProperty("vcpuCount")&&null!==e.vcpuCount&&void 0!==e.vcpuCount&&t.setVcpuCount(e.vcpuCount),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVcpuCount(){return this.vcpuCount}setVcpuCount(e){this.vcpuCount=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVcpuCount()&&null!==this.getVcpuCount()?{vcpuCount:this.getVcpuCount()}:{},...void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{},...void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{},...void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vcpuCount"!==t||void 0!==this.vcpuCount&&null!==this.vcpuCount?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("vcpuCount","undefined or null")}}Zt.prototype.vcpuCount=void 0,Zt.prototype.ramGb=void 0,Zt.prototype.hddGb=void 0,Zt.prototype.ssdGb=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var Yt=new WeakSet;class Qt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Yt),t.add(e),this.$objectType="aiops.v4.config.Simulation",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("simulationSpec")&&null!==e.simulationSpec&&void 0!==e.simulationSpec&&t.setSimulationSpec(Zt.constructFromObject(e.simulationSpec)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getSimulationSpec(){return this.simulationSpec}setSimulationSpec(e){this.simulationSpec=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"simulationSpec"!==t||void 0!==this.simulationSpec&&null!==this.simulationSpec?new O(t,"no such property exists"):new O("simulationSpec","undefined or null")}}function en(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Qt.prototype.name=void 0,Qt.prototype.simulationSpec=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var tn=new WeakSet;class nn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=tn),t.add(e),this.$objectType="aiops.v4.config.CreateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new nn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):en(tn,this,sn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):en(tn,this,sn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function sn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}nn.prototype.metadata=void 0,nn.prototype.data=void 0,nn.prototype.$reserved=void 0,nn.prototype.$objectType=void 0,nn.prototype.$unknownFields=void 0;class on extends Qt{constructor(){super(),this.$objectType="aiops.v4.config.SimulationProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new on,Qt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function rn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var an=new WeakSet;class ln extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=an),t.add(e),this.$objectType="aiops.v4.config.ListSimulationsApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new ln,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Simulation":s=Qt.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.SimulationProjection":s=on.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rn(an,this,dn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rn(an,this,dn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function dn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function un(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ln.prototype.metadata=void 0,ln.prototype.data=void 0,ln.prototype.$reserved=void 0,ln.prototype.$objectType=void 0,ln.prototype.$unknownFields=void 0;var hn=new WeakSet;class cn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hn),t.add(e),this.$objectType="aiops.v4.config.UpdateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new cn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.error.AppMessage"!==l)throw"Unknown list of type "+l+" in data";s=De.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):un(hn,this,pn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):un(hn,this,pn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function pn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}cn.prototype.metadata=void 0,cn.prototype.data=void 0,cn.prototype.$reserved=void 0,cn.prototype.$objectType=void 0,cn.prototype.$unknownFields=void 0;const yn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RF_2:"RF_2",RF_3:"RF_3",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(yn).find(t=>yn[t]===e);return null==t?yn.$UNKNOWN:yn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yn.$UNKNOWN:case yn.$REDACTED:case yn.RF_2:case yn.RF_3:return;default:throw new Error("Invalid : must be ReplicationFactor.{ $UNKNOWN|$REDACTED|RF_2|RF_3 }")}}};Object.freeze(yn);const vn=yn;var gn=new WeakSet;class mn{constructor(e,t,n,i,s,o,r,a,l,d){var u,h;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u=this,h=gn),h.add(u),this.replicationFactor=e,this.compressionSavingPercent=t,this.dedupSavingPercent=n,this.erasureCodingSavingPercent=i,this.overallSavingPercent=s,this.cpuOverCommitRatio=o,this.ramOverCommitRatio=r,this.cpuReservationPercentage=a,this.ramReservationPercentage=l,this.storageReservationPercentage=d,this.$objectType="aiops.v4.config.DataStoreConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mn,e.hasOwnProperty("replicationFactor")&&null!==e.replicationFactor&&void 0!==e.replicationFactor&&t.setReplicationFactor(vn.constructFromObject(e.replicationFactor)),e.hasOwnProperty("compressionSavingPercent")&&null!==e.compressionSavingPercent&&void 0!==e.compressionSavingPercent&&t.setCompressionSavingPercent(e.compressionSavingPercent),e.hasOwnProperty("dedupSavingPercent")&&null!==e.dedupSavingPercent&&void 0!==e.dedupSavingPercent&&t.setDedupSavingPercent(e.dedupSavingPercent),e.hasOwnProperty("erasureCodingSavingPercent")&&null!==e.erasureCodingSavingPercent&&void 0!==e.erasureCodingSavingPercent&&t.setErasureCodingSavingPercent(e.erasureCodingSavingPercent),e.hasOwnProperty("overallSavingPercent")&&null!==e.overallSavingPercent&&void 0!==e.overallSavingPercent&&t.setOverallSavingPercent(e.overallSavingPercent),e.hasOwnProperty("cpuOverCommitRatio")&&null!==e.cpuOverCommitRatio&&void 0!==e.cpuOverCommitRatio&&t.setCpuOverCommitRatio(e.cpuOverCommitRatio),e.hasOwnProperty("ramOverCommitRatio")&&null!==e.ramOverCommitRatio&&void 0!==e.ramOverCommitRatio&&t.setRamOverCommitRatio(e.ramOverCommitRatio),e.hasOwnProperty("cpuReservationPercentage")&&null!==e.cpuReservationPercentage&&void 0!==e.cpuReservationPercentage&&t.setCpuReservationPercentage(e.cpuReservationPercentage),e.hasOwnProperty("ramReservationPercentage")&&null!==e.ramReservationPercentage&&void 0!==e.ramReservationPercentage&&t.setRamReservationPercentage(e.ramReservationPercentage),e.hasOwnProperty("storageReservationPercentage")&&null!==e.storageReservationPercentage&&void 0!==e.storageReservationPercentage&&t.setStorageReservationPercentage(e.storageReservationPercentage),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getReplicationFactor(){return this.replicationFactor}setReplicationFactor(e){this.replicationFactor=e}getCompressionSavingPercent(){return this.compressionSavingPercent}setCompressionSavingPercent(e){this.compressionSavingPercent=e}getDedupSavingPercent(){return this.dedupSavingPercent}setDedupSavingPercent(e){this.dedupSavingPercent=e}getErasureCodingSavingPercent(){return this.erasureCodingSavingPercent}setErasureCodingSavingPercent(e){this.erasureCodingSavingPercent=e}getOverallSavingPercent(){return this.overallSavingPercent}setOverallSavingPercent(e){this.overallSavingPercent=e}getCpuOverCommitRatio(){return this.cpuOverCommitRatio}setCpuOverCommitRatio(e){this.cpuOverCommitRatio=e}getRamOverCommitRatio(){return this.ramOverCommitRatio}setRamOverCommitRatio(e){this.ramOverCommitRatio=e}getCpuReservationPercentage(){return this.cpuReservationPercentage}setCpuReservationPercentage(e){this.cpuReservationPercentage=e}getRamReservationPercentage(){return this.ramReservationPercentage}setRamReservationPercentage(e){this.ramReservationPercentage=e}getStorageReservationPercentage(){return this.storageReservationPercentage}setStorageReservationPercentage(e){this.storageReservationPercentage=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getReplicationFactor()&&null!==this.getReplicationFactor()?{replicationFactor:this.getReplicationFactor()}:{},...void 0!==this.getCompressionSavingPercent()&&null!==this.getCompressionSavingPercent()?{compressionSavingPercent:this.getCompressionSavingPercent()}:{},...void 0!==this.getDedupSavingPercent()&&null!==this.getDedupSavingPercent()?{dedupSavingPercent:this.getDedupSavingPercent()}:{},...void 0!==this.getErasureCodingSavingPercent()&&null!==this.getErasureCodingSavingPercent()?{erasureCodingSavingPercent:this.getErasureCodingSavingPercent()}:{},...void 0!==this.getOverallSavingPercent()&&null!==this.getOverallSavingPercent()?{overallSavingPercent:this.getOverallSavingPercent()}:{},...void 0!==this.getCpuOverCommitRatio()&&null!==this.getCpuOverCommitRatio()?{cpuOverCommitRatio:this.getCpuOverCommitRatio()}:{},...void 0!==this.getRamOverCommitRatio()&&null!==this.getRamOverCommitRatio()?{ramOverCommitRatio:this.getRamOverCommitRatio()}:{},...void 0!==this.getCpuReservationPercentage()&&null!==this.getCpuReservationPercentage()?{cpuReservationPercentage:this.getCpuReservationPercentage()}:{},...void 0!==this.getRamReservationPercentage()&&null!==this.getRamReservationPercentage()?{ramReservationPercentage:this.getRamReservationPercentage()}:{},...void 0!==this.getStorageReservationPercentage()&&null!==this.getStorageReservationPercentage()?{storageReservationPercentage:this.getStorageReservationPercentage()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["replicationFactor","compressionSavingPercent","dedupSavingPercent","erasureCodingSavingPercent","overallSavingPercent","cpuOverCommitRatio","ramOverCommitRatio","cpuReservationPercentage","ramReservationPercentage","storageReservationPercentage"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"replicationFactor"!==t||void 0!==this.replicationFactor&&null!==this.replicationFactor?"compressionSavingPercent"!==t||void 0!==this.compressionSavingPercent&&null!==this.compressionSavingPercent?"dedupSavingPercent"!==t||void 0!==this.dedupSavingPercent&&null!==this.dedupSavingPercent?"erasureCodingSavingPercent"!==t||void 0!==this.erasureCodingSavingPercent&&null!==this.erasureCodingSavingPercent?"overallSavingPercent"!==t||void 0!==this.overallSavingPercent&&null!==this.overallSavingPercent?"cpuOverCommitRatio"!==t||void 0!==this.cpuOverCommitRatio&&null!==this.cpuOverCommitRatio?"ramOverCommitRatio"!==t||void 0!==this.ramOverCommitRatio&&null!==this.ramOverCommitRatio?"cpuReservationPercentage"!==t||void 0!==this.cpuReservationPercentage&&null!==this.cpuReservationPercentage?"ramReservationPercentage"!==t||void 0!==this.ramReservationPercentage&&null!==this.ramReservationPercentage?"storageReservationPercentage"!==t||void 0!==this.storageReservationPercentage&&null!==this.storageReservationPercentage?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("storageReservationPercentage","undefined or null"):new O("ramReservationPercentage","undefined or null"):new O("cpuReservationPercentage","undefined or null"):new O("ramOverCommitRatio","undefined or null"):new O("cpuOverCommitRatio","undefined or null"):new O("overallSavingPercent","undefined or null"):new O("erasureCodingSavingPercent","undefined or null"):new O("dedupSavingPercent","undefined or null"):new O("compressionSavingPercent","undefined or null"):new O("replicationFactor","undefined or null")}}mn.prototype.replicationFactor=void 0,mn.prototype.compressionSavingPercent=25.81037,mn.prototype.dedupSavingPercent=35.864,mn.prototype.erasureCodingSavingPercent=15.16939,mn.prototype.overallSavingPercent=59.64,mn.prototype.cpuOverCommitRatio=1,mn.prototype.ramOverCommitRatio=1,mn.prototype.cpuReservationPercentage=0,mn.prototype.ramReservationPercentage=0,mn.prototype.storageReservationPercentage=0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;const wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EXISTING:"EXISTING",USER_ADDED:"USER_ADDED",RECOMMENDED:"RECOMMENDED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(wn).find(t=>wn[t]===e);return null==t?wn.$UNKNOWN:wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wn.$UNKNOWN:case wn.$REDACTED:case wn.EXISTING:case wn.USER_ADDED:case wn.RECOMMENDED:return;default:throw new Error("Invalid : must be NodeSource.{ $UNKNOWN|$REDACTED|EXISTING|USER_ADDED|RECOMMENDED }")}}};Object.freeze(wn);const $n=wn;var fn=new WeakSet;class bn{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=fn),r.add(o),this.cpuGhz=e,this.ramGb=t,this.hddGb=n,this.ssdGb=i,this.nvmeGb=s,this.$objectType="aiops.v4.config.ResourceCapacity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new bn,e.hasOwnProperty("cpuGhz")&&null!==e.cpuGhz&&void 0!==e.cpuGhz&&t.setCpuGhz(e.cpuGhz),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("nvmeGb")&&null!==e.nvmeGb&&void 0!==e.nvmeGb&&t.setNvmeGb(e.nvmeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCpuGhz(){return this.cpuGhz}setCpuGhz(e){this.cpuGhz=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}getNvmeGb(){return this.nvmeGb}setNvmeGb(e){this.nvmeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCpuGhz()&&null!==this.getCpuGhz()?{cpuGhz:this.getCpuGhz()}:{},...void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{},...void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{},...void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{},...void 0!==this.getNvmeGb()&&null!==this.getNvmeGb()?{nvmeGb:this.getNvmeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["cpuGhz","ramGb","hddGb","ssdGb","nvmeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"cpuGhz"!==t||void 0!==this.cpuGhz&&null!==this.cpuGhz?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"nvmeGb"!==t||void 0!==this.nvmeGb&&null!==this.nvmeGb?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nvmeGb","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("cpuGhz","undefined or null")}}function Tn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}bn.prototype.cpuGhz=void 0,bn.prototype.ramGb=void 0,bn.prototype.hddGb=void 0,bn.prototype.ssdGb=void 0,bn.prototype.nvmeGb=void 0,bn.prototype.$reserved=void 0,bn.prototype.$objectType=void 0,bn.prototype.$unknownFields=void 0;var kn=new WeakSet;class jn{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=kn),o.add(s),this.model=e,this.nodeCount=t,this.isEnabled=n,this.nodeSource=i,this.$objectType="aiops.v4.config.NodeConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new jn,e.hasOwnProperty("model")&&null!==e.model&&void 0!==e.model&&t.setModel(e.model),e.hasOwnProperty("nodeCount")&&null!==e.nodeCount&&void 0!==e.nodeCount&&t.setNodeCount(e.nodeCount),e.hasOwnProperty("targetOnlineTime")&&null!==e.targetOnlineTime&&void 0!==e.targetOnlineTime&&t.setTargetOnlineTime(e.targetOnlineTime),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("isDisregarded")&&null!==e.isDisregarded&&void 0!==e.isDisregarded&&t.setIsDisregarded(e.isDisregarded),e.hasOwnProperty("nodeSource")&&null!==e.nodeSource&&void 0!==e.nodeSource&&t.setNodeSource($n.constructFromObject(e.nodeSource)),e.hasOwnProperty("nodeResourceCapacity")&&null!==e.nodeResourceCapacity&&void 0!==e.nodeResourceCapacity&&t.setNodeResourceCapacity(bn.constructFromObject(e.nodeResourceCapacity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getModel(){return this.model}setModel(e){this.model=e}getNodeCount(){return this.nodeCount}setNodeCount(e){this.nodeCount=e}getTargetOnlineTime(){return this.targetOnlineTime}setTargetOnlineTime(e){this.targetOnlineTime=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getIsDisregarded(){return this.isDisregarded}setIsDisregarded(e){this.isDisregarded=e}getNodeSource(){return this.nodeSource}setNodeSource(e){this.nodeSource=e}getNodeResourceCapacity(){return this.nodeResourceCapacity}setNodeResourceCapacity(e){this.nodeResourceCapacity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getModel()&&null!==this.getModel()?{model:this.getModel()}:{},...void 0!==this.getNodeCount()&&null!==this.getNodeCount()?{nodeCount:this.getNodeCount()}:{},...void 0!==this.getTargetOnlineTime()&&null!==this.getTargetOnlineTime()?{targetOnlineTime:Tn(kn,this,On).call(this,this.getTargetOnlineTime(),!1)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getIsDisregarded()&&null!==this.getIsDisregarded()?{isDisregarded:this.getIsDisregarded()}:{},...void 0!==this.getNodeSource()&&null!==this.getNodeSource()?{nodeSource:this.getNodeSource()}:{},...void 0!==this.getNodeResourceCapacity()&&null!==this.getNodeResourceCapacity()?{nodeResourceCapacity:this.getNodeResourceCapacity().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["model","nodeCount","isEnabled","nodeSource"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("model"===t&&(void 0===this.model||null===this.model))return new O("model","undefined or null");if("nodeCount"===t){if(void 0===this.nodeCount||null===this.nodeCount)return new O("nodeCount","undefined or null");if(!j.validateMaximum(this.nodeCount,500))return new O("nodeCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.nodeCount,1))return new O("nodeCount","does not satisfy required minimum constraint: 1")}return"targetOnlineTime"!==t||void 0!==this.targetOnlineTime&&null!==this.targetOnlineTime?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"isDisregarded"!==t||void 0!==this.isDisregarded&&null!==this.isDisregarded?"nodeSource"!==t||void 0!==this.nodeSource&&null!==this.nodeSource?"nodeResourceCapacity"!==t||void 0!==this.nodeResourceCapacity&&null!==this.nodeResourceCapacity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nodeResourceCapacity","undefined or null"):new O("nodeSource","undefined or null"):new O("isDisregarded","undefined or null"):new O("isEnabled","undefined or null"):new O("targetOnlineTime","undefined or null")}}function On(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}jn.prototype.model=void 0,jn.prototype.nodeCount=void 0,jn.prototype.targetOnlineTime=void 0,jn.prototype.isEnabled=!1,jn.prototype.isDisregarded=!1,jn.prototype.nodeSource=void 0,jn.prototype.nodeResourceCapacity=void 0,jn.prototype.$reserved=void 0,jn.prototype.$objectType=void 0,jn.prototype.$unknownFields=void 0;var Fn=new WeakSet;class Cn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Fn),t.add(e),this.$objectType="aiops.v4.config.ClusterConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cn,e.hasOwnProperty("dataStoreConfig")&&null!==e.dataStoreConfig&&void 0!==e.dataStoreConfig&&t.setDataStoreConfig(mn.constructFromObject(e.dataStoreConfig)),e.hasOwnProperty("nodeConfigs")&&null!==e.nodeConfigs&&void 0!==e.nodeConfigs){for(r=[],i=e.nodeConfigs,o=0;o<i.length;o++)s=jn.constructFromObject(i[o],void 0),r.push(s);t.setNodeConfigs(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDataStoreConfig(){return this.dataStoreConfig}setDataStoreConfig(e){this.dataStoreConfig=e}getNodeConfigs(){return this.nodeConfigs}setNodeConfigs(e){this.nodeConfigs=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDataStoreConfig()&&null!==this.getDataStoreConfig()?{dataStoreConfig:this.getDataStoreConfig().toJson(!1)}:{},...void 0!==this.getNodeConfigs()&&null!==this.getNodeConfigs()?{nodeConfigs:this.getNodeConfigs().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dataStoreConfig"===t&&(void 0===this.dataStoreConfig||null===this.dataStoreConfig))return new O("dataStoreConfig","undefined or null");if("nodeConfigs"===t){if(void 0===this.nodeConfigs||null===this.nodeConfigs)return new O("nodeConfigs","undefined or null");if(!j.validateMaxItems(this.nodeConfigs,50))return new O("nodeConfigs","does not satisfy required maxItems constraint: 50")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Pn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Cn.prototype.dataStoreConfig=void 0,Cn.prototype.nodeConfigs=void 0,Cn.prototype.$reserved=void 0,Cn.prototype.$objectType=void 0,Cn.prototype.$unknownFields=void 0;var Sn=new WeakSet;class En{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=Sn),r.add(o),this.minimumRunwayDays=e,this.cpuRunwayDays=t,this.memoryRunwayDays=n,this.storageRunwayDays=i,this.runwayStartTime=s,this.$objectType="aiops.v4.config.Runway",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new En,e.hasOwnProperty("minimumRunwayDays")&&null!==e.minimumRunwayDays&&void 0!==e.minimumRunwayDays&&t.setMinimumRunwayDays(e.minimumRunwayDays),e.hasOwnProperty("cpuRunwayDays")&&null!==e.cpuRunwayDays&&void 0!==e.cpuRunwayDays&&t.setCpuRunwayDays(e.cpuRunwayDays),e.hasOwnProperty("memoryRunwayDays")&&null!==e.memoryRunwayDays&&void 0!==e.memoryRunwayDays&&t.setMemoryRunwayDays(e.memoryRunwayDays),e.hasOwnProperty("storageRunwayDays")&&null!==e.storageRunwayDays&&void 0!==e.storageRunwayDays&&t.setStorageRunwayDays(e.storageRunwayDays),e.hasOwnProperty("runwayStartTime")&&null!==e.runwayStartTime&&void 0!==e.runwayStartTime&&t.setRunwayStartTime(e.runwayStartTime),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMinimumRunwayDays(){return this.minimumRunwayDays}setMinimumRunwayDays(e){this.minimumRunwayDays=e}getCpuRunwayDays(){return this.cpuRunwayDays}setCpuRunwayDays(e){this.cpuRunwayDays=e}getMemoryRunwayDays(){return this.memoryRunwayDays}setMemoryRunwayDays(e){this.memoryRunwayDays=e}getStorageRunwayDays(){return this.storageRunwayDays}setStorageRunwayDays(e){this.storageRunwayDays=e}getRunwayStartTime(){return this.runwayStartTime}setRunwayStartTime(e){this.runwayStartTime=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMinimumRunwayDays()&&null!==this.getMinimumRunwayDays()?{minimumRunwayDays:this.getMinimumRunwayDays()}:{},...void 0!==this.getCpuRunwayDays()&&null!==this.getCpuRunwayDays()?{cpuRunwayDays:this.getCpuRunwayDays()}:{},...void 0!==this.getMemoryRunwayDays()&&null!==this.getMemoryRunwayDays()?{memoryRunwayDays:this.getMemoryRunwayDays()}:{},...void 0!==this.getStorageRunwayDays()&&null!==this.getStorageRunwayDays()?{storageRunwayDays:this.getStorageRunwayDays()}:{},...void 0!==this.getRunwayStartTime()&&null!==this.getRunwayStartTime()?{runwayStartTime:Pn(Sn,this,Dn).call(this,this.getRunwayStartTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["minimumRunwayDays","cpuRunwayDays","memoryRunwayDays","storageRunwayDays","runwayStartTime"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("minimumRunwayDays"===t){if(void 0===this.minimumRunwayDays||null===this.minimumRunwayDays)return new O("minimumRunwayDays","undefined or null");if(!j.validateMaximum(this.minimumRunwayDays,366))return new O("minimumRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.minimumRunwayDays,-1))return new O("minimumRunwayDays","does not satisfy required minimum constraint: -1")}if("cpuRunwayDays"===t){if(void 0===this.cpuRunwayDays||null===this.cpuRunwayDays)return new O("cpuRunwayDays","undefined or null");if(!j.validateMaximum(this.cpuRunwayDays,366))return new O("cpuRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.cpuRunwayDays,-1))return new O("cpuRunwayDays","does not satisfy required minimum constraint: -1")}if("memoryRunwayDays"===t){if(void 0===this.memoryRunwayDays||null===this.memoryRunwayDays)return new O("memoryRunwayDays","undefined or null");if(!j.validateMaximum(this.memoryRunwayDays,366))return new O("memoryRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.memoryRunwayDays,-1))return new O("memoryRunwayDays","does not satisfy required minimum constraint: -1")}if("storageRunwayDays"===t){if(void 0===this.storageRunwayDays||null===this.storageRunwayDays)return new O("storageRunwayDays","undefined or null");if(!j.validateMaximum(this.storageRunwayDays,366))return new O("storageRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.storageRunwayDays,-1))return new O("storageRunwayDays","does not satisfy required minimum constraint: -1")}return"runwayStartTime"!==t||void 0!==this.runwayStartTime&&null!==this.runwayStartTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("runwayStartTime","undefined or null")}}function Dn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}En.prototype.minimumRunwayDays=void 0,En.prototype.cpuRunwayDays=void 0,En.prototype.memoryRunwayDays=void 0,En.prototype.storageRunwayDays=void 0,En.prototype.runwayStartTime=void 0,En.prototype.$reserved=void 0,En.prototype.$objectType=void 0,En.prototype.$unknownFields=void 0;const Rn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",DELL:"DELL",LENOVO:"LENOVO",CISCO:"CISCO",IBM:"IBM",HPE_DX:"HPE_DX",AWS:"AWS",FUJITSU:"FUJITSU",AZURE:"AZURE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Rn).find(t=>Rn[t]===e);return null==t?Rn.$UNKNOWN:Rn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Rn.$UNKNOWN:case Rn.$REDACTED:case Rn.NUTANIX:case Rn.DELL:case Rn.LENOVO:case Rn.CISCO:case Rn.IBM:case Rn.HPE_DX:case Rn.AWS:case Rn.FUJITSU:case Rn.AZURE:return;default:throw new Error("Invalid : must be Vendor.{ $UNKNOWN|$REDACTED|NUTANIX|DELL|LENOVO|CISCO|IBM|HPE_DX|AWS|FUJITSU|AZURE }")}}};Object.freeze(Rn);const Un=Rn,In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCREASE:"INCREASE",DECREASE:"DECREASE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(In).find(t=>In[t]===e);return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.INCREASE:case In.DECREASE:return;default:throw new Error("Invalid : must be CapacityUpdateType.{ $UNKNOWN|$REDACTED|INCREASE|DECREASE }")}}};Object.freeze(In);const An=In;var Mn=new WeakSet;class Nn{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Mn),i.add(n),this.percentageChange=e,this.changeType=t,this.$objectType="aiops.v4.config.CapacityUpdateConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Nn,e.hasOwnProperty("percentageChange")&&null!==e.percentageChange&&void 0!==e.percentageChange&&t.setPercentageChange(e.percentageChange),e.hasOwnProperty("changeType")&&null!==e.changeType&&void 0!==e.changeType&&t.setChangeType(An.constructFromObject(e.changeType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPercentageChange(){return this.percentageChange}setPercentageChange(e){this.percentageChange=e}getChangeType(){return this.changeType}setChangeType(e){this.changeType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getPercentageChange()&&null!==this.getPercentageChange()?{percentageChange:this.getPercentageChange()}:{},...void 0!==this.getChangeType()&&null!==this.getChangeType()?{changeType:this.getChangeType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["percentageChange","changeType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"percentageChange"!==t||void 0!==this.percentageChange&&null!==this.percentageChange?"changeType"!==t||void 0!==this.changeType&&null!==this.changeType?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("changeType","undefined or null"):new O("percentageChange","undefined or null")}}Nn.prototype.percentageChange=void 0,Nn.prototype.changeType=void 0,Nn.prototype.$reserved=void 0,Nn.prototype.$objectType=void 0,Nn.prototype.$unknownFields=void 0;const xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PVS:"PVS",MCS:"MCS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xn).find(t=>xn[t]===e);return null==t?xn.$UNKNOWN:xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xn.$UNKNOWN:case xn.$REDACTED:case xn.PVS:case xn.MCS:return;default:throw new Error("Invalid : must be CitrixXenProvisionType.{ $UNKNOWN|$REDACTED|PVS|MCS }")}}};Object.freeze(xn);const Vn=xn,Ln={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",XEN_APP:"XEN_APP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ln).find(t=>Ln[t]===e);return null==t?Ln.$UNKNOWN:Ln[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ln.$UNKNOWN:case Ln.$REDACTED:case Ln.XEN_APP:return;default:throw new Error("Invalid : must be CitrixXenWorkloadVendor.{ $UNKNOWN|$REDACTED|XEN_APP }")}}};Object.freeze(Ln);const Bn=Ln,Wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WINDOWS_2012R2:"WINDOWS_2012R2",WINDOWS_2008R2:"WINDOWS_2008R2",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Wn).find(t=>Wn[t]===e);return null==t?Wn.$UNKNOWN:Wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wn.$UNKNOWN:case Wn.$REDACTED:case Wn.WINDOWS_2012R2:case Wn.WINDOWS_2008R2:return;default:throw new Error("Invalid : must be XenOperatingSystem.{ $UNKNOWN|$REDACTED|WINDOWS_2012R2|WINDOWS_2008R2 }")}}};Object.freeze(Wn);const zn=Wn;var Jn=new WeakSet;class _n{constructor(e,t,n,i,s,o){var r,a;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,a=Jn),a.add(r),this.operatingSystem=e,this.systemDataGb=t,this.userCount=n,this.mcsDiffSizeGb=i,this.userProfileDataMb=s,this.pvsWriteCacheSizeGb=o,this.$objectType="aiops.v4.config.XenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _n,e.hasOwnProperty("operatingSystem")&&null!==e.operatingSystem&&void 0!==e.operatingSystem&&t.setOperatingSystem(zn.constructFromObject(e.operatingSystem)),e.hasOwnProperty("systemDataGb")&&null!==e.systemDataGb&&void 0!==e.systemDataGb&&t.setSystemDataGb(e.systemDataGb),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("mcsDiffSizeGb")&&null!==e.mcsDiffSizeGb&&void 0!==e.mcsDiffSizeGb&&t.setMcsDiffSizeGb(e.mcsDiffSizeGb),e.hasOwnProperty("userProfileDataMb")&&null!==e.userProfileDataMb&&void 0!==e.userProfileDataMb&&t.setUserProfileDataMb(e.userProfileDataMb),e.hasOwnProperty("pvsWriteCacheSizeGb")&&null!==e.pvsWriteCacheSizeGb&&void 0!==e.pvsWriteCacheSizeGb&&t.setPvsWriteCacheSizeGb(e.pvsWriteCacheSizeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getOperatingSystem(){return this.operatingSystem}setOperatingSystem(e){this.operatingSystem=e}getSystemDataGb(){return this.systemDataGb}setSystemDataGb(e){this.systemDataGb=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}getMcsDiffSizeGb(){return this.mcsDiffSizeGb}setMcsDiffSizeGb(e){this.mcsDiffSizeGb=e}getUserProfileDataMb(){return this.userProfileDataMb}setUserProfileDataMb(e){this.userProfileDataMb=e}getPvsWriteCacheSizeGb(){return this.pvsWriteCacheSizeGb}setPvsWriteCacheSizeGb(e){this.pvsWriteCacheSizeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("operatingSystem"===t&&(void 0===this.operatingSystem||null===this.operatingSystem))return new O("operatingSystem","undefined or null");if("systemDataGb"===t){if(void 0===this.systemDataGb||null===this.systemDataGb)return new O("systemDataGb","undefined or null");if(!j.validateMaximum(this.systemDataGb,62e3))return new O("systemDataGb","does not satisfy required maximum constraint: 62000");if(!j.validateMinimum(this.systemDataGb,20))return new O("systemDataGb","does not satisfy required minimum constraint: 20")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e5))return new O("userCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}if("mcsDiffSizeGb"===t){if(void 0===this.mcsDiffSizeGb||null===this.mcsDiffSizeGb)return new O("mcsDiffSizeGb","undefined or null");if(!j.validateMaximum(this.mcsDiffSizeGb,50))return new O("mcsDiffSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.mcsDiffSizeGb,10))return new O("mcsDiffSizeGb","does not satisfy required minimum constraint: 10")}if("userProfileDataMb"===t){if(void 0===this.userProfileDataMb||null===this.userProfileDataMb)return new O("userProfileDataMb","undefined or null");if(!j.validateMaximum(this.userProfileDataMb,100))return new O("userProfileDataMb","does not satisfy required maximum constraint: 100");if(!j.validateMinimum(this.userProfileDataMb,20))return new O("userProfileDataMb","does not satisfy required minimum constraint: 20")}if("pvsWriteCacheSizeGb"===t){if(void 0===this.pvsWriteCacheSizeGb||null===this.pvsWriteCacheSizeGb)return new O("pvsWriteCacheSizeGb","undefined or null");if(!j.validateMaximum(this.pvsWriteCacheSizeGb,50))return new O("pvsWriteCacheSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.pvsWriteCacheSizeGb,10))return new O("pvsWriteCacheSizeGb","does not satisfy required minimum constraint: 10")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0,_n.prototype.$reserved=void 0,_n.prototype.$objectType=void 0,_n.prototype.$unknownFields=void 0;var Gn=new WeakSet;class qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Gn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.CitrixXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Bn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Vn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}qn.prototype.vendor=void 0,qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;const Hn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_CLONE:"VM_CLONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Hn).find(t=>Hn[t]===e);return null==t?Hn.$UNKNOWN:Hn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hn.$UNKNOWN:case Hn.$REDACTED:case Hn.VM_CLONE:return;default:throw new Error("Invalid : must be MicrosoftXenProvisionType.{ $UNKNOWN|$REDACTED|VM_CLONE }")}}};Object.freeze(Hn);const Kn=Hn,Xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MICROSOFT_RDSH:"MICROSOFT_RDSH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Xn).find(t=>Xn[t]===e);return null==t?Xn.$UNKNOWN:Xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xn.$UNKNOWN:case Xn.$REDACTED:case Xn.MICROSOFT_RDSH:return;default:throw new Error("Invalid : must be MicrosoftXenWorkloadVendor.{ $UNKNOWN|$REDACTED|MICROSOFT_RDSH }")}}};Object.freeze(Xn);const Zn=Xn;var Yn=new WeakSet;class Qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Yn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.MicrosoftXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Zn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Kn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{},...void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},...void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{},...void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{},...void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}Qn.prototype.vendor=void 0,Qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;var ei=new WeakSet;class ti{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ei),o.add(s),this.dailyAverageIndexingRateGb=e,this.hotRetentionDays=t,this.coldRetentionDays=n,this.userCount=i,this.$objectType="aiops.v4.config.SplunkWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ti,e.hasOwnProperty("dailyAverageIndexingRateGb")&&null!==e.dailyAverageIndexingRateGb&&void 0!==e.dailyAverageIndexingRateGb&&t.setDailyAverageIndexingRateGb(e.dailyAverageIndexingRateGb),e.hasOwnProperty("hotRetentionDays")&&null!==e.hotRetentionDays&&void 0!==e.hotRetentionDays&&t.setHotRetentionDays(e.hotRetentionDays),e.hasOwnProperty("coldRetentionDays")&&null!==e.coldRetentionDays&&void 0!==e.coldRetentionDays&&t.setColdRetentionDays(e.coldRetentionDays),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDailyAverageIndexingRateGb(){return this.dailyAverageIndexingRateGb}setDailyAverageIndexingRateGb(e){this.dailyAverageIndexingRateGb=e}getHotRetentionDays(){return this.hotRetentionDays}setHotRetentionDays(e){this.hotRetentionDays=e}getColdRetentionDays(){return this.coldRetentionDays}setColdRetentionDays(e){this.coldRetentionDays=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDailyAverageIndexingRateGb()&&null!==this.getDailyAverageIndexingRateGb()?{dailyAverageIndexingRateGb:this.getDailyAverageIndexingRateGb()}:{},...void 0!==this.getHotRetentionDays()&&null!==this.getHotRetentionDays()?{hotRetentionDays:this.getHotRetentionDays()}:{},...void 0!==this.getColdRetentionDays()&&null!==this.getColdRetentionDays()?{coldRetentionDays:this.getColdRetentionDays()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dailyAverageIndexingRateGb","hotRetentionDays","coldRetentionDays","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dailyAverageIndexingRateGb"===t){if(void 0===this.dailyAverageIndexingRateGb||null===this.dailyAverageIndexingRateGb)return new O("dailyAverageIndexingRateGb","undefined or null");if(!j.validateMaximum(this.dailyAverageIndexingRateGb,2e4))return new O("dailyAverageIndexingRateGb","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.dailyAverageIndexingRateGb,1))return new O("dailyAverageIndexingRateGb","does not satisfy required minimum constraint: 1")}if("hotRetentionDays"===t){if(void 0===this.hotRetentionDays||null===this.hotRetentionDays)return new O("hotRetentionDays","undefined or null");if(!j.validateMaximum(this.hotRetentionDays,2e4))return new O("hotRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.hotRetentionDays,1))return new O("hotRetentionDays","does not satisfy required minimum constraint: 1")}if("coldRetentionDays"===t){if(void 0===this.coldRetentionDays||null===this.coldRetentionDays)return new O("coldRetentionDays","undefined or null");if(!j.validateMaximum(this.coldRetentionDays,2e4))return new O("coldRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.coldRetentionDays,0))return new O("coldRetentionDays","does not satisfy required minimum constraint: 0")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,500))return new O("userCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.userCount,0))return new O("userCount","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ti.prototype.dailyAverageIndexingRateGb=500,ti.prototype.hotRetentionDays=7,ti.prototype.coldRetentionDays=60,ti.prototype.userCount=5,ti.prototype.$reserved=void 0,ti.prototype.$objectType=void 0,ti.prototype.$unknownFields=void 0;const ni={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ni).find(t=>ni[t]===e);return null==t?ni.$UNKNOWN:ni[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ni.$UNKNOWN:case ni.$REDACTED:case ni.SMALL:case ni.MEDIUM:case ni.LARGE:return;default:throw new Error("Invalid : must be SqlProfileType.{ $UNKNOWN|$REDACTED|SMALL|MEDIUM|LARGE }")}}};Object.freeze(ni);const ii=ni,si={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OLAP:"OLAP",OLTP:"OLTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(si).find(t=>si[t]===e);return null==t?si.$UNKNOWN:si[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case si.$UNKNOWN:case si.$REDACTED:case si.OLAP:case si.OLTP:return;default:throw new Error("Invalid : must be SqlTransactionType.{ $UNKNOWN|$REDACTED|OLAP|OLTP }")}}};Object.freeze(si);const oi=si;var ri=new WeakSet;class ai{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ri),o.add(s),this.dbCount=e,this.profileType=t,this.transactionType=n,this.isBusinessCritical=i,this.$objectType="aiops.v4.config.SqlWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ai,e.hasOwnProperty("dbCount")&&null!==e.dbCount&&void 0!==e.dbCount&&t.setDbCount(e.dbCount),e.hasOwnProperty("profileType")&&null!==e.profileType&&void 0!==e.profileType&&t.setProfileType(ii.constructFromObject(e.profileType)),e.hasOwnProperty("transactionType")&&null!==e.transactionType&&void 0!==e.transactionType&&t.setTransactionType(oi.constructFromObject(e.transactionType)),e.hasOwnProperty("isBusinessCritical")&&null!==e.isBusinessCritical&&void 0!==e.isBusinessCritical&&t.setIsBusinessCritical(e.isBusinessCritical),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDbCount(){return this.dbCount}setDbCount(e){this.dbCount=e}getProfileType(){return this.profileType}setProfileType(e){this.profileType=e}getTransactionType(){return this.transactionType}setTransactionType(e){this.transactionType=e}getIsBusinessCritical(){return this.isBusinessCritical}setIsBusinessCritical(e){this.isBusinessCritical=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDbCount()&&null!==this.getDbCount()?{dbCount:this.getDbCount()}:{},...void 0!==this.getProfileType()&&null!==this.getProfileType()?{profileType:this.getProfileType()}:{},...void 0!==this.getTransactionType()&&null!==this.getTransactionType()?{transactionType:this.getTransactionType()}:{},...void 0!==this.getIsBusinessCritical()&&null!==this.getIsBusinessCritical()?{isBusinessCritical:this.getIsBusinessCritical()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dbCount","profileType","transactionType","isBusinessCritical"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dbCount"===t){if(void 0===this.dbCount||null===this.dbCount)return new O("dbCount","undefined or null");if(!j.validateMaximum(this.dbCount,1e5))return new O("dbCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.dbCount,1))return new O("dbCount","does not satisfy required minimum constraint: 1")}return"profileType"!==t||void 0!==this.profileType&&null!==this.profileType?"transactionType"!==t||void 0!==this.transactionType&&null!==this.transactionType?"isBusinessCritical"!==t||void 0!==this.isBusinessCritical&&null!==this.isBusinessCritical?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("isBusinessCritical","undefined or null"):new O("transactionType","undefined or null"):new O("profileType","undefined or null")}}ai.prototype.dbCount=void 0,ai.prototype.profileType=void 0,ai.prototype.transactionType=void 0,ai.prototype.isBusinessCritical=!1,ai.prototype.$reserved=void 0,ai.prototype.$objectType=void 0,ai.prototype.$unknownFields=void 0;const li={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",FULL_CLONES:"FULL_CLONES",V2V_P2V:"V2V_P2V",PROVISIONING_SERVICES:"PROVISIONING_SERVICES",MACHINE_CREATION_SERVICES:"MACHINE_CREATION_SERVICES",LINKED_CLONES:"LINKED_CLONES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(li).find(t=>li[t]===e);return null==t?li.$UNKNOWN:li[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case li.$UNKNOWN:case li.$REDACTED:case li.FULL_CLONES:case li.V2V_P2V:case li.PROVISIONING_SERVICES:case li.MACHINE_CREATION_SERVICES:case li.LINKED_CLONES:return;default:throw new Error("Invalid : must be VdiProvisionType.{ $UNKNOWN|$REDACTED|FULL_CLONES|V2V_P2V|PROVISIONING_SERVICES|MACHINE_CREATION_SERVICES|LINKED_CLONES }")}}};Object.freeze(li);const di=li,ui={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",TASK_WORKER:"TASK_WORKER",KNOWLEDGE_WORKER:"KNOWLEDGE_WORKER",POWER_USER:"POWER_USER",DEVELOPER:"DEVELOPER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ui).find(t=>ui[t]===e);return null==t?ui.$UNKNOWN:ui[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ui.$UNKNOWN:case ui.$REDACTED:case ui.TASK_WORKER:case ui.KNOWLEDGE_WORKER:case ui.POWER_USER:case ui.DEVELOPER:return;default:throw new Error("Invalid : must be VdiUserType.{ $UNKNOWN|$REDACTED|TASK_WORKER|KNOWLEDGE_WORKER|POWER_USER|DEVELOPER }")}}};Object.freeze(ui);const hi=ui,ci={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VIEW:"VIEW",XEN_DESKTOP:"XEN_DESKTOP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ci).find(t=>ci[t]===e);return null==t?ci.$UNKNOWN:ci[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ci.$UNKNOWN:case ci.$REDACTED:case ci.VIEW:case ci.XEN_DESKTOP:return;default:throw new Error("Invalid : must be VdiVendor.{ $UNKNOWN|$REDACTED|VIEW|XEN_DESKTOP }")}}};Object.freeze(ci);const pi=ci;var yi=new WeakSet;class vi{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=yi),o.add(s),this.vendor=e,this.userType=t,this.provisionType=n,this.userCount=i,this.$objectType="aiops.v4.config.VdiWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vi,e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(pi.constructFromObject(e.vendor)),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&t.setUserType(hi.constructFromObject(e.userType)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(di.constructFromObject(e.provisionType)),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getUserType(){return this.userType}setUserType(e){this.userType=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{},...void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{},...void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{},...void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vendor","userType","provisionType","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new O("vendor","undefined or null");if("userType"===t&&(void 0===this.userType||null===this.userType))return new O("userType","undefined or null");if("provisionType"===t&&(void 0===this.provisionType||null===this.provisionType))return new O("provisionType","undefined or null");if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e3))return new O("userCount","does not satisfy required maximum constraint: 1000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vi.prototype.vendor=void 0,vi.prototype.userType=void 0,vi.prototype.provisionType=void 0,vi.prototype.userCount=void 0,vi.prototype.$reserved=void 0,vi.prototype.$objectType=void 0,vi.prototype.$unknownFields=void 0;var gi=new WeakSet;class mi{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=gi),n.add(t),this.categoryExtId=e,this.$objectType="aiops.v4.config.VmCategoryWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mi,e.hasOwnProperty("categoryExtId")&&null!==e.categoryExtId&&void 0!==e.categoryExtId&&t.setCategoryExtId(e.categoryExtId),e.hasOwnProperty("currentVmCount")&&null!==e.currentVmCount&&void 0!==e.currentVmCount&&t.setCurrentVmCount(e.currentVmCount),e.hasOwnProperty("targetVmCount")&&null!==e.targetVmCount&&void 0!==e.targetVmCount&&t.setTargetVmCount(e.targetVmCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCategoryExtId(){return this.categoryExtId}setCategoryExtId(e){this.categoryExtId=e}getCurrentVmCount(){return this.currentVmCount}setCurrentVmCount(e){this.currentVmCount=e}getTargetVmCount(){return this.targetVmCount}setTargetVmCount(e){this.targetVmCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},...void 0!==this.getCurrentVmCount()&&null!==this.getCurrentVmCount()?{currentVmCount:this.getCurrentVmCount()}:{},...void 0!==this.getTargetVmCount()&&null!==this.getTargetVmCount()?{targetVmCount:this.getTargetVmCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["categoryExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("categoryExtId"===t){if(void 0===this.categoryExtId||null===this.categoryExtId)return new O("categoryExtId","undefined or null");if(!j.validatePattern(this.categoryExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("categoryExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"currentVmCount"!==t||void 0!==this.currentVmCount&&null!==this.currentVmCount?"targetVmCount"!==t||void 0!==this.targetVmCount&&null!==this.targetVmCount?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("targetVmCount","undefined or null"):new O("currentVmCount","undefined or null")}}mi.prototype.categoryExtId=void 0,mi.prototype.currentVmCount=void 0,mi.prototype.targetVmCount=void 0,mi.prototype.$reserved=void 0,mi.prototype.$objectType=void 0,mi.prototype.$unknownFields=void 0;var wi=new WeakSet;class $i{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=wi),i.add(n),this.vmCount=e,this.simulationExtId=t,this.$objectType="aiops.v4.config.VmWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $i,e.hasOwnProperty("vmCount")&&null!==e.vmCount&&void 0!==e.vmCount&&t.setVmCount(e.vmCount),e.hasOwnProperty("simulationExtId")&&null!==e.simulationExtId&&void 0!==e.simulationExtId&&t.setSimulationExtId(e.simulationExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmCount(){return this.vmCount}setVmCount(e){this.vmCount=e}getSimulationExtId(){return this.simulationExtId}setSimulationExtId(e){this.simulationExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmCount()&&null!==this.getVmCount()?{vmCount:this.getVmCount()}:{},...void 0!==this.getSimulationExtId()&&null!==this.getSimulationExtId()?{simulationExtId:this.getSimulationExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vmCount","simulationExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmCount"===t){if(void 0===this.vmCount||null===this.vmCount)return new O("vmCount","undefined or null");if(!j.validateMaximum(this.vmCount,2e4))return new O("vmCount","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.vmCount,1))return new O("vmCount","does not satisfy required minimum constraint: 1")}if("simulationExtId"===t){if(void 0===this.simulationExtId||null===this.simulationExtId)return new O("simulationExtId","undefined or null");if(!j.validatePattern(this.simulationExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("simulationExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function fi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$i.prototype.vmCount=void 0,$i.prototype.simulationExtId=void 0,$i.prototype.$reserved=void 0,$i.prototype.$objectType=void 0,$i.prototype.$unknownFields=void 0;var bi=new WeakSet;class Ti{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=bi),s.add(i),this.scheduleDate=e,this.isEnabled=t,this.workloadProperties=n,this.$objectType="aiops.v4.config.Workload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Ti,e.hasOwnProperty("scheduleDate")&&null!==e.scheduleDate&&void 0!==e.scheduleDate&&t.setScheduleDate(e.scheduleDate),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("projectedResourceRequirement")&&null!==e.projectedResourceRequirement&&void 0!==e.projectedResourceRequirement&&t.setProjectedResourceRequirement(bn.constructFromObject(e.projectedResourceRequirement)),e.hasOwnProperty("workloadProperties")&&null!==e.workloadProperties&&void 0!==e.workloadProperties)switch(i=e.workloadProperties.hasOwnProperty("$objectType")?e.workloadProperties.$objectType:typeof e.workloadProperties,i){case"aiops.v4.config.SqlWorkload":t.setWorkloadProperties(ai.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmWorkload":t.setWorkloadProperties($i.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VdiWorkload":t.setWorkloadProperties(vi.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.SplunkWorkload":t.setWorkloadProperties(ti.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CitrixXenWorkload":t.setWorkloadProperties(qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.MicrosoftXenWorkload":t.setWorkloadProperties(Qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CapacityUpdateConfig":t.setWorkloadProperties(Nn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmCategoryWorkload":t.setWorkloadProperties(mi.constructFromObject(e.workloadProperties,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getScheduleDate(){return this.scheduleDate}setScheduleDate(e){this.scheduleDate=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getProjectedResourceRequirement(){return this.projectedResourceRequirement}setProjectedResourceRequirement(e){this.projectedResourceRequirement=e}getWorkloadProperties(){return this.workloadProperties}setWorkloadProperties(e){this.workloadProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).call(this,this.getScheduleDate(),!0)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson(!1):Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson(!1):e):fi(bi,this,ki).call(this,this.getWorkloadProperties(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).call(this,this.getScheduleDate(),!0)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson():Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson():e):fi(bi,this,ki).call(this,this.getWorkloadProperties())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["scheduleDate","isEnabled","workloadProperties"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"scheduleDate"!==t||void 0!==this.scheduleDate&&null!==this.scheduleDate?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"projectedResourceRequirement"!==t||void 0!==this.projectedResourceRequirement&&null!==this.projectedResourceRequirement?"workloadProperties"!==t||void 0!==this.workloadProperties&&null!==this.workloadProperties?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("workloadProperties","undefined or null"):new O("projectedResourceRequirement","undefined or null"):new O("isEnabled","undefined or null"):new O("scheduleDate","undefined or null")}}function ki(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ji(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Oi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ti.prototype.scheduleDate=void 0,Ti.prototype.isEnabled=!1,Ti.prototype.projectedResourceRequirement=void 0,Ti.prototype.workloadProperties=void 0,Ti.prototype.$reserved=void 0,Ti.prototype.$objectType=void 0,Ti.prototype.$unknownFields=void 0;var Fi=new WeakSet;class Ci extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fi),t.add(e),this.$objectType="aiops.v4.config.Scenario",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ci,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("vendors")&&null!==e.vendors&&void 0!==e.vendors){for(r=[],i=e.vendors,o=0;o<i.length;o++)s=Un.constructFromObject(i[o],void 0),r.push(s);t.setVendors(r)}if(e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("targetRunwayDays")&&null!==e.targetRunwayDays&&void 0!==e.targetRunwayDays&&t.setTargetRunwayDays(e.targetRunwayDays),e.hasOwnProperty("runway")&&null!==e.runway&&void 0!==e.runway&&t.setRunway(En.constructFromObject(e.runway)),e.hasOwnProperty("workloads")&&null!==e.workloads&&void 0!==e.workloads){for(r=[],i=e.workloads,o=0;o<i.length;o++)s=Ti.constructFromObject(i[o],void 0),r.push(s);t.setWorkloads(r)}if(e.hasOwnProperty("clusterConfig")&&null!==e.clusterConfig&&void 0!==e.clusterConfig&&t.setClusterConfig(Cn.constructFromObject(e.clusterConfig)),e.hasOwnProperty("accountId")&&null!==e.accountId&&void 0!==e.accountId&&t.setAccountId(e.accountId),e.hasOwnProperty("domainId")&&null!==e.domainId&&void 0!==e.domainId&&t.setDomainId(e.domainId),e.hasOwnProperty("providerId")&&null!==e.providerId&&void 0!==e.providerId&&t.setProviderId(e.providerId),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getVendors(){return this.vendors}setVendors(e){this.vendors=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getTargetRunwayDays(){return this.targetRunwayDays}setTargetRunwayDays(e){this.targetRunwayDays=e}getRunway(){return this.runway}setRunway(e){this.runway=e}getWorkloads(){return this.workloads}setWorkloads(e){this.workloads=e}getClusterConfig(){return this.clusterConfig}setClusterConfig(e){this.clusterConfig=e}getAccountId(){return this.accountId}setAccountId(e){this.accountId=e}getDomainId(){return this.domainId}setDomainId(e){this.domainId=e}getProviderId(){return this.providerId}setProviderId(e){this.providerId=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{},...void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:Oi(Fi,this,Pi).call(this,this.getUpdatedTime(),!1)}:{},...void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{},...void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{},...void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},...void 0!==this.getAccountId()&&null!==this.getAccountId()?{accountId:this.getAccountId()}:{},...void 0!==this.getDomainId()&&null!==this.getDomainId()?{domainId:this.getDomainId()}:{},...void 0!==this.getProviderId()&&null!==this.getProviderId()?{providerId:this.getProviderId()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{},...void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{},...void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{},...void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{},...void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new O("clusterExtId","undefined or null");if(!j.validatePattern(this.clusterExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("clusterExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("vendors"===t){if(void 0===this.vendors||null===this.vendors)return new O("vendors","undefined or null");if(!j.validateMaxItems(this.vendors,10))return new O("vendors","does not satisfy required maxItems constraint: 10");if(!j.validateMinItems(this.vendors,1))return new O("vendors","does not satisfy required minItems constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("targetRunwayDays"===t){if(void 0===this.targetRunwayDays||null===this.targetRunwayDays)return new O("targetRunwayDays","undefined or null");if(!j.validateMaximum(this.targetRunwayDays,360))return new O("targetRunwayDays","does not satisfy required maximum constraint: 360");if(!j.validateMinimum(this.targetRunwayDays,30))return new O("targetRunwayDays","does not satisfy required minimum constraint: 30")}if("runway"===t&&(void 0===this.runway||null===this.runway))return new O("runway","undefined or null");if("workloads"===t){if(void 0===this.workloads||null===this.workloads)return new O("workloads","undefined or null");if(!j.validateMaxItems(this.workloads,250))return new O("workloads","does not satisfy required maxItems constraint: 250")}if("clusterConfig"===t&&(void 0===this.clusterConfig||null===this.clusterConfig))return new O("clusterConfig","undefined or null");if("accountId"===t){if(void 0===this.accountId||null===this.accountId)return new O("accountId","undefined or null");if(!j.validatePattern(this.accountId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("accountId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("domainId"===t){if(void 0===this.domainId||null===this.domainId)return new O("domainId","undefined or null");if(!j.validatePattern(this.domainId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("domainId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("providerId"===t){if(void 0===this.providerId||null===this.providerId)return new O("providerId","undefined or null");if(!j.validatePattern(this.providerId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("providerId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return new O(t,"no such property exists")}}function Pi(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Ci.prototype.name=void 0,Ci.prototype.clusterExtId=void 0,Ci.prototype.vendors=void 0,Ci.prototype.updatedTime=void 0,Ci.prototype.targetRunwayDays=void 0,Ci.prototype.runway=void 0,Ci.prototype.workloads=void 0,Ci.prototype.clusterConfig=void 0,Ci.prototype.accountId=void 0,Ci.prototype.domainId=void 0,Ci.prototype.providerId=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class Si extends Ci{constructor(){super(),this.$objectType="aiops.v4.config.ScenarioProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Si,Ci.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function Ei(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var Di=new WeakSet;class Ri extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Di),t.add(e),this.$objectType="aiops.v4.config.ListScenariosApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ri,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Scenario":s=Ci.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.ScenarioProjection":s=Si.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ei(Di,this,Ui).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ei(Di,this,Ui).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ui(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ii(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ri.prototype.metadata=void 0,Ri.prototype.data=void 0,Ri.prototype.$reserved=void 0,Ri.prototype.$objectType=void 0,Ri.prototype.$unknownFields=void 0;var Ai=new WeakSet;class Mi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ai),t.add(e),this.$objectType="aiops.v4.config.GetScenarioReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Mi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"Map":t.setData(e.data);break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ii(Ai,this,Ni).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ii(Ai,this,Ni).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ni(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mi.prototype.metadata=void 0,Mi.prototype.data=void 0,Mi.prototype.$reserved=void 0,Mi.prototype.$objectType=void 0,Mi.prototype.$unknownFields=void 0;var xi=new WeakSet;class Vi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=xi),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r3"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vi,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(!j.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new O("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Li(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vi.prototype.extId=void 0,Vi.prototype.$reserved=void 0,Vi.prototype.$objectType=void 0,Vi.prototype.$unknownFields=void 0;var Bi=new WeakSet;class Wi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bi),t.add(e),this.$objectType="aiops.v4.config.CreateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Wi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Li(Bi,this,zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Li(Bi,this,zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ji(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Wi.prototype.metadata=void 0,Wi.prototype.data=void 0,Wi.prototype.$reserved=void 0,Wi.prototype.$objectType=void 0,Wi.prototype.$unknownFields=void 0;var _i=new WeakSet;class Gi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=_i),t.add(e),this.$objectType="aiops.v4.config.DeleteSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Gi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ji(_i,this,qi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ji(_i,this,qi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function qi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Hi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Gi.prototype.metadata=void 0,Gi.prototype.data=void 0,Gi.prototype.$reserved=void 0,Gi.prototype.$objectType=void 0,Gi.prototype.$unknownFields=void 0;var Ki=new WeakSet;class Xi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ki),t.add(e),this.$objectType="aiops.v4.config.DeleteScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Xi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Hi(Ki,this,Zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Hi(Ki,this,Zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Yi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xi.prototype.metadata=void 0,Xi.prototype.data=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;var Qi=new WeakSet;class es extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Qi),t.add(e),this.$objectType="aiops.v4.config.GenerateRecommendationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new es,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Yi(Qi,this,ts).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Yi(Qi,this,ts).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ts(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ns(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}es.prototype.metadata=void 0,es.prototype.data=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var is=new WeakSet;class ss extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=is),t.add(e),this.$objectType="aiops.v4.config.GenerateReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ss,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ns(is,this,os).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ns(is,this,os).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function os(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function rs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ss.prototype.metadata=void 0,ss.prototype.data=void 0,ss.prototype.$reserved=void 0,ss.prototype.$objectType=void 0,ss.prototype.$unknownFields=void 0;var as=new WeakSet;class ls extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=as),t.add(e),this.$objectType="aiops.v4.config.GetSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ls,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rs(as,this,ds).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rs(as,this,ds).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ds(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function us(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ls.prototype.metadata=void 0,ls.prototype.data=void 0,ls.prototype.$reserved=void 0,ls.prototype.$objectType=void 0,ls.prototype.$unknownFields=void 0;var hs=new WeakSet;class cs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hs),t.add(e),this.$objectType="aiops.v4.config.GetScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new cs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Scenario":t.setData(Ci.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):us(hs,this,ps).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):us(hs,this,ps).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ps(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ys(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}cs.prototype.metadata=void 0,cs.prototype.data=void 0,cs.prototype.$reserved=void 0,cs.prototype.$objectType=void 0,cs.prototype.$unknownFields=void 0;var vs=new WeakSet;class gs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=vs),t.add(e),this.$objectType="aiops.v4.config.UpdateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new gs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ys(vs,this,ms).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ys(vs,this,ms).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ms(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ws(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}gs.prototype.metadata=void 0,gs.prototype.data=void 0,gs.prototype.$reserved=void 0,gs.prototype.$objectType=void 0,gs.prototype.$unknownFields=void 0;var $s=new WeakSet;class fs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$s),t.add(e),this.$objectType="aiops.v4.config.GenerateRunwayApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new fs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ws($s,this,bs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ws($s,this,bs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function bs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}fs.prototype.metadata=void 0,fs.prototype.data=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var Ts=new WeakSet;class ks{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ts),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ks,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("uuid")&&null!==e.uuid&&void 0!==e.uuid&&t.setUuid(e.uuid),e.hasOwnProperty("externalIpAddress")&&null!==e.externalIpAddress&&void 0!==e.externalIpAddress&&t.setExternalIpAddress(e.externalIpAddress),e.hasOwnProperty("memoryCapacityBytes")&&null!==e.memoryCapacityBytes&&void 0!==e.memoryCapacityBytes&&t.setMemoryCapacityBytes(e.memoryCapacityBytes),e.hasOwnProperty("numCpus")&&null!==e.numCpus&&void 0!==e.numCpus&&t.setNumCpus(e.numCpus),e.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==e.hypervisorMemoryUsagePpm&&void 0!==e.hypervisorMemoryUsagePpm&&t.setHypervisorMemoryUsagePpm(e.hypervisorMemoryUsagePpm),e.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==e.hypervisorCpuUsagePpm&&void 0!==e.hypervisorCpuUsagePpm&&t.setHypervisorCpuUsagePpm(e.hypervisorCpuUsagePpm),e.hasOwnProperty("rf")&&null!==e.rf&&void 0!==e.rf&&t.setRf(e.rf),e.hasOwnProperty("capacityBytes")&&null!==e.capacityBytes&&void 0!==e.capacityBytes&&t.setCapacityBytes(e.capacityBytes),e.hasOwnProperty("freeBytes")&&null!==e.freeBytes&&void 0!==e.freeBytes&&t.setFreeBytes(e.freeBytes),e.hasOwnProperty("usageBytes")&&null!==e.usageBytes&&void 0!==e.usageBytes&&t.setUsageBytes(e.usageBytes),e.hasOwnProperty("savedBytes")&&null!==e.savedBytes&&void 0!==e.savedBytes&&t.setSavedBytes(e.savedBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getUuid(){return this.uuid}setUuid(e){this.uuid=e}getExternalIpAddress(){return this.externalIpAddress}setExternalIpAddress(e){this.externalIpAddress=e}getMemoryCapacityBytes(){return this.memoryCapacityBytes}setMemoryCapacityBytes(e){this.memoryCapacityBytes=e}getNumCpus(){return this.numCpus}setNumCpus(e){this.numCpus=e}getHypervisorMemoryUsagePpm(){return this.hypervisorMemoryUsagePpm}setHypervisorMemoryUsagePpm(e){this.hypervisorMemoryUsagePpm=e}getHypervisorCpuUsagePpm(){return this.hypervisorCpuUsagePpm}setHypervisorCpuUsagePpm(e){this.hypervisorCpuUsagePpm=e}getRf(){return this.rf}setRf(e){this.rf=e}getCapacityBytes(){return this.capacityBytes}setCapacityBytes(e){this.capacityBytes=e}getFreeBytes(){return this.freeBytes}setFreeBytes(e){this.freeBytes=e}getUsageBytes(){return this.usageBytes}setUsageBytes(e){this.usageBytes=e}getSavedBytes(){return this.savedBytes}setSavedBytes(e){this.savedBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new O("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new O("uuid","undefined or null");if(!j.validatePattern(this.uuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("uuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"externalIpAddress"!==t||void 0!==this.externalIpAddress&&null!==this.externalIpAddress?"memoryCapacityBytes"!==t||void 0!==this.memoryCapacityBytes&&null!==this.memoryCapacityBytes?"numCpus"!==t||void 0!==this.numCpus&&null!==this.numCpus?"hypervisorMemoryUsagePpm"!==t||void 0!==this.hypervisorMemoryUsagePpm&&null!==this.hypervisorMemoryUsagePpm?"hypervisorCpuUsagePpm"!==t||void 0!==this.hypervisorCpuUsagePpm&&null!==this.hypervisorCpuUsagePpm?"rf"!==t||void 0!==this.rf&&null!==this.rf?"capacityBytes"!==t||void 0!==this.capacityBytes&&null!==this.capacityBytes?"freeBytes"!==t||void 0!==this.freeBytes&&null!==this.freeBytes?"usageBytes"!==t||void 0!==this.usageBytes&&null!==this.usageBytes?"savedBytes"!==t||void 0!==this.savedBytes&&null!==this.savedBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("savedBytes","undefined or null"):new O("usageBytes","undefined or null"):new O("freeBytes","undefined or null"):new O("capacityBytes","undefined or null"):new O("rf","undefined or null"):new O("hypervisorCpuUsagePpm","undefined or null"):new O("hypervisorMemoryUsagePpm","undefined or null"):new O("numCpus","undefined or null"):new O("memoryCapacityBytes","undefined or null"):new O("externalIpAddress","undefined or null")}}ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0,ks.prototype.$reserved=void 0,ks.prototype.$objectType=void 0,ks.prototype.$unknownFields=void 0;var js=new WeakSet;class Os{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=js),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Os,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new O("value","undefined or null");if(!j.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new O("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new O("prefixLength","undefined or null");if(!j.validateMaximum(this.prefixLength,32))return new O("prefixLength","does not satisfy required maximum constraint: 32");if(!j.validateMinimum(this.prefixLength,0))return new O("prefixLength","does not satisfy required minimum constraint: 0")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Os.prototype.value=void 0,Os.prototype.prefixLength=32,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var Fs=new WeakSet;class Cs extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fs),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterMetrics",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&t.setClusterName(e.clusterName),e.hasOwnProperty("externalIP")&&null!==e.externalIP&&void 0!==e.externalIP&&t.setExternalIP(Os.constructFromObject(e.externalIP)),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(r=[],i=e.cvmIPs,o=0;o<i.length;o++)s=Os.constructFromObject(i[o],void 0),r.push(s);t.setCvmIPs(r)}if(e.hasOwnProperty("totalMemorySizeBytes")&&null!==e.totalMemorySizeBytes&&void 0!==e.totalMemorySizeBytes&&t.setTotalMemorySizeBytes(e.totalMemorySizeBytes),e.hasOwnProperty("currentMemoryUsageSizeBytes")&&null!==e.currentMemoryUsageSizeBytes&&void 0!==e.currentMemoryUsageSizeBytes&&t.setCurrentMemoryUsageSizeBytes(e.currentMemoryUsageSizeBytes),e.hasOwnProperty("provisionedMemoryUsageBytes")&&null!==e.provisionedMemoryUsageBytes&&void 0!==e.provisionedMemoryUsageBytes&&t.setProvisionedMemoryUsageBytes(e.provisionedMemoryUsageBytes),e.hasOwnProperty("maxVmMemorySizeBytes")&&null!==e.maxVmMemorySizeBytes&&void 0!==e.maxVmMemorySizeBytes&&t.setMaxVmMemorySizeBytes(e.maxVmMemorySizeBytes),e.hasOwnProperty("availableMemorySizeBytes")&&null!==e.availableMemorySizeBytes&&void 0!==e.availableMemorySizeBytes&&t.setAvailableMemorySizeBytes(e.availableMemorySizeBytes),e.hasOwnProperty("largestPoweredOffVMMemory")&&null!==e.largestPoweredOffVMMemory&&void 0!==e.largestPoweredOffVMMemory&&t.setLargestPoweredOffVMMemory(e.largestPoweredOffVMMemory),e.hasOwnProperty("totalVCpuCount")&&null!==e.totalVCpuCount&&void 0!==e.totalVCpuCount&&t.setTotalVCpuCount(e.totalVCpuCount),e.hasOwnProperty("currentUsedVCpuCount")&&null!==e.currentUsedVCpuCount&&void 0!==e.currentUsedVCpuCount&&t.setCurrentUsedVCpuCount(e.currentUsedVCpuCount),e.hasOwnProperty("provisionedVCpuCount")&&null!==e.provisionedVCpuCount&&void 0!==e.provisionedVCpuCount&&t.setProvisionedVCpuCount(e.provisionedVCpuCount),e.hasOwnProperty("maxVmVCpuSize")&&null!==e.maxVmVCpuSize&&void 0!==e.maxVmVCpuSize&&t.setMaxVmVCpuSize(e.maxVmVCpuSize),e.hasOwnProperty("availableVCpuCount")&&null!==e.availableVCpuCount&&void 0!==e.availableVCpuCount&&t.setAvailableVCpuCount(e.availableVCpuCount),e.hasOwnProperty("largestPoweredOffVMVCpu")&&null!==e.largestPoweredOffVMVCpu&&void 0!==e.largestPoweredOffVMVCpu&&t.setLargestPoweredOffVMVCpu(e.largestPoweredOffVMVCpu),e.hasOwnProperty("totalCpuHz")&&null!==e.totalCpuHz&&void 0!==e.totalCpuHz&&t.setTotalCpuHz(e.totalCpuHz),e.hasOwnProperty("currentUsedCpuHz")&&null!==e.currentUsedCpuHz&&void 0!==e.currentUsedCpuHz&&t.setCurrentUsedCpuHz(e.currentUsedCpuHz),e.hasOwnProperty("provisionedCpuHz")&&null!==e.provisionedCpuHz&&void 0!==e.provisionedCpuHz&&t.setProvisionedCpuHz(e.provisionedCpuHz),e.hasOwnProperty("totalStorageCapacityRawBytes")&&null!==e.totalStorageCapacityRawBytes&&void 0!==e.totalStorageCapacityRawBytes&&t.setTotalStorageCapacityRawBytes(e.totalStorageCapacityRawBytes),e.hasOwnProperty("totalStorageCapacityLogicalBytes")&&null!==e.totalStorageCapacityLogicalBytes&&void 0!==e.totalStorageCapacityLogicalBytes&&t.setTotalStorageCapacityLogicalBytes(e.totalStorageCapacityLogicalBytes),e.hasOwnProperty("totalStorageCapacityLogicalWithSavingsBytes")&&null!==e.totalStorageCapacityLogicalWithSavingsBytes&&void 0!==e.totalStorageCapacityLogicalWithSavingsBytes&&t.setTotalStorageCapacityLogicalWithSavingsBytes(e.totalStorageCapacityLogicalWithSavingsBytes),e.hasOwnProperty("totalStorageUsageBytes")&&null!==e.totalStorageUsageBytes&&void 0!==e.totalStorageUsageBytes&&t.setTotalStorageUsageBytes(e.totalStorageUsageBytes),e.hasOwnProperty("totalStorageAvailableBytes")&&null!==e.totalStorageAvailableBytes&&void 0!==e.totalStorageAvailableBytes&&t.setTotalStorageAvailableBytes(e.totalStorageAvailableBytes),e.hasOwnProperty("totalStorageAvailableLogicalBytes")&&null!==e.totalStorageAvailableLogicalBytes&&void 0!==e.totalStorageAvailableLogicalBytes&&t.setTotalStorageAvailableLogicalBytes(e.totalStorageAvailableLogicalBytes),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}getExternalIP(){return this.externalIP}setExternalIP(e){this.externalIP=e}getCvmIPs(){return this.cvmIPs}setCvmIPs(e){this.cvmIPs=e}getTotalMemorySizeBytes(){return this.totalMemorySizeBytes}setTotalMemorySizeBytes(e){this.totalMemorySizeBytes=e}getCurrentMemoryUsageSizeBytes(){return this.currentMemoryUsageSizeBytes}setCurrentMemoryUsageSizeBytes(e){this.currentMemoryUsageSizeBytes=e}getProvisionedMemoryUsageBytes(){return this.provisionedMemoryUsageBytes}setProvisionedMemoryUsageBytes(e){this.provisionedMemoryUsageBytes=e}getMaxVmMemorySizeBytes(){return this.maxVmMemorySizeBytes}setMaxVmMemorySizeBytes(e){this.maxVmMemorySizeBytes=e}getAvailableMemorySizeBytes(){return this.availableMemorySizeBytes}setAvailableMemorySizeBytes(e){this.availableMemorySizeBytes=e}getLargestPoweredOffVMMemory(){return this.largestPoweredOffVMMemory}setLargestPoweredOffVMMemory(e){this.largestPoweredOffVMMemory=e}getTotalVCpuCount(){return this.totalVCpuCount}setTotalVCpuCount(e){this.totalVCpuCount=e}getCurrentUsedVCpuCount(){return this.currentUsedVCpuCount}setCurrentUsedVCpuCount(e){this.currentUsedVCpuCount=e}getProvisionedVCpuCount(){return this.provisionedVCpuCount}setProvisionedVCpuCount(e){this.provisionedVCpuCount=e}getMaxVmVCpuSize(){return this.maxVmVCpuSize}setMaxVmVCpuSize(e){this.maxVmVCpuSize=e}getAvailableVCpuCount(){return this.availableVCpuCount}setAvailableVCpuCount(e){this.availableVCpuCount=e}getLargestPoweredOffVMVCpu(){return this.largestPoweredOffVMVCpu}setLargestPoweredOffVMVCpu(e){this.largestPoweredOffVMVCpu=e}getTotalCpuHz(){return this.totalCpuHz}setTotalCpuHz(e){this.totalCpuHz=e}getCurrentUsedCpuHz(){return this.currentUsedCpuHz}setCurrentUsedCpuHz(e){this.currentUsedCpuHz=e}getProvisionedCpuHz(){return this.provisionedCpuHz}setProvisionedCpuHz(e){this.provisionedCpuHz=e}getTotalStorageCapacityRawBytes(){return this.totalStorageCapacityRawBytes}setTotalStorageCapacityRawBytes(e){this.totalStorageCapacityRawBytes=e}getTotalStorageCapacityLogicalBytes(){return this.totalStorageCapacityLogicalBytes}setTotalStorageCapacityLogicalBytes(e){this.totalStorageCapacityLogicalBytes=e}getTotalStorageCapacityLogicalWithSavingsBytes(){return this.totalStorageCapacityLogicalWithSavingsBytes}setTotalStorageCapacityLogicalWithSavingsBytes(e){this.totalStorageCapacityLogicalWithSavingsBytes=e}getTotalStorageUsageBytes(){return this.totalStorageUsageBytes}setTotalStorageUsageBytes(e){this.totalStorageUsageBytes=e}getTotalStorageAvailableBytes(){return this.totalStorageAvailableBytes}setTotalStorageAvailableBytes(e){this.totalStorageAvailableBytes=e}getTotalStorageAvailableLogicalBytes(){return this.totalStorageAvailableLogicalBytes}setTotalStorageAvailableLogicalBytes(e){this.totalStorageAvailableLogicalBytes=e}toJson(e){return!1===e?{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"clusterName"!==t||void 0!==this.clusterName&&null!==this.clusterName?"externalIP"!==t||void 0!==this.externalIP&&null!==this.externalIP?"cvmIPs"!==t||void 0!==this.cvmIPs&&null!==this.cvmIPs?"totalMemorySizeBytes"!==t||void 0!==this.totalMemorySizeBytes&&null!==this.totalMemorySizeBytes?"currentMemoryUsageSizeBytes"!==t||void 0!==this.currentMemoryUsageSizeBytes&&null!==this.currentMemoryUsageSizeBytes?"provisionedMemoryUsageBytes"!==t||void 0!==this.provisionedMemoryUsageBytes&&null!==this.provisionedMemoryUsageBytes?"maxVmMemorySizeBytes"!==t||void 0!==this.maxVmMemorySizeBytes&&null!==this.maxVmMemorySizeBytes?"availableMemorySizeBytes"!==t||void 0!==this.availableMemorySizeBytes&&null!==this.availableMemorySizeBytes?"largestPoweredOffVMMemory"!==t||void 0!==this.largestPoweredOffVMMemory&&null!==this.largestPoweredOffVMMemory?"totalVCpuCount"!==t||void 0!==this.totalVCpuCount&&null!==this.totalVCpuCount?"currentUsedVCpuCount"!==t||void 0!==this.currentUsedVCpuCount&&null!==this.currentUsedVCpuCount?"provisionedVCpuCount"!==t||void 0!==this.provisionedVCpuCount&&null!==this.provisionedVCpuCount?"maxVmVCpuSize"!==t||void 0!==this.maxVmVCpuSize&&null!==this.maxVmVCpuSize?"availableVCpuCount"!==t||void 0!==this.availableVCpuCount&&null!==this.availableVCpuCount?"largestPoweredOffVMVCpu"!==t||void 0!==this.largestPoweredOffVMVCpu&&null!==this.largestPoweredOffVMVCpu?"totalCpuHz"!==t||void 0!==this.totalCpuHz&&null!==this.totalCpuHz?"currentUsedCpuHz"!==t||void 0!==this.currentUsedCpuHz&&null!==this.currentUsedCpuHz?"provisionedCpuHz"!==t||void 0!==this.provisionedCpuHz&&null!==this.provisionedCpuHz?"totalStorageCapacityRawBytes"!==t||void 0!==this.totalStorageCapacityRawBytes&&null!==this.totalStorageCapacityRawBytes?"totalStorageCapacityLogicalBytes"!==t||void 0!==this.totalStorageCapacityLogicalBytes&&null!==this.totalStorageCapacityLogicalBytes?"totalStorageCapacityLogicalWithSavingsBytes"!==t||void 0!==this.totalStorageCapacityLogicalWithSavingsBytes&&null!==this.totalStorageCapacityLogicalWithSavingsBytes?"totalStorageUsageBytes"!==t||void 0!==this.totalStorageUsageBytes&&null!==this.totalStorageUsageBytes?"totalStorageAvailableBytes"!==t||void 0!==this.totalStorageAvailableBytes&&null!==this.totalStorageAvailableBytes?"totalStorageAvailableLogicalBytes"!==t||void 0!==this.totalStorageAvailableLogicalBytes&&null!==this.totalStorageAvailableLogicalBytes?new O(t,"no such property exists"):new O("totalStorageAvailableLogicalBytes","undefined or null"):new O("totalStorageAvailableBytes","undefined or null"):new O("totalStorageUsageBytes","undefined or null"):new O("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new O("totalStorageCapacityLogicalBytes","undefined or null"):new O("totalStorageCapacityRawBytes","undefined or null"):new O("provisionedCpuHz","undefined or null"):new O("currentUsedCpuHz","undefined or null"):new O("totalCpuHz","undefined or null"):new O("largestPoweredOffVMVCpu","undefined or null"):new O("availableVCpuCount","undefined or null"):new O("maxVmVCpuSize","undefined or null"):new O("provisionedVCpuCount","undefined or null"):new O("currentUsedVCpuCount","undefined or null"):new O("totalVCpuCount","undefined or null"):new O("largestPoweredOffVMMemory","undefined or null"):new O("availableMemorySizeBytes","undefined or null"):new O("maxVmMemorySizeBytes","undefined or null"):new O("provisionedMemoryUsageBytes","undefined or null"):new O("currentMemoryUsageSizeBytes","undefined or null"):new O("totalMemorySizeBytes","undefined or null"):new O("cvmIPs","undefined or null"):new O("externalIP","undefined or null"):new O("clusterName","undefined or null")}}Cs.prototype.clusterName=void 0,Cs.prototype.externalIP=void 0,Cs.prototype.cvmIPs=void 0,Cs.prototype.totalMemorySizeBytes=void 0,Cs.prototype.currentMemoryUsageSizeBytes=void 0,Cs.prototype.provisionedMemoryUsageBytes=void 0,Cs.prototype.maxVmMemorySizeBytes=void 0,Cs.prototype.availableMemorySizeBytes=void 0,Cs.prototype.largestPoweredOffVMMemory=void 0,Cs.prototype.totalVCpuCount=void 0,Cs.prototype.currentUsedVCpuCount=void 0,Cs.prototype.provisionedVCpuCount=void 0,Cs.prototype.maxVmVCpuSize=void 0,Cs.prototype.availableVCpuCount=void 0,Cs.prototype.largestPoweredOffVMVCpu=void 0,Cs.prototype.totalCpuHz=void 0,Cs.prototype.currentUsedCpuHz=void 0,Cs.prototype.provisionedCpuHz=void 0,Cs.prototype.totalStorageCapacityRawBytes=void 0,Cs.prototype.totalStorageCapacityLogicalBytes=void 0,Cs.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,Cs.prototype.totalStorageUsageBytes=void 0,Cs.prototype.totalStorageAvailableBytes=void 0,Cs.prototype.totalStorageAvailableLogicalBytes=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Ps=new WeakSet;class Ss{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ps),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ss,e.hasOwnProperty("nodeUuid")&&null!==e.nodeUuid&&void 0!==e.nodeUuid&&t.setNodeUuid(e.nodeUuid),e.hasOwnProperty("haMemoryReservedBytes")&&null!==e.haMemoryReservedBytes&&void 0!==e.haMemoryReservedBytes&&t.setHaMemoryReservedBytes(e.haMemoryReservedBytes),e.hasOwnProperty("numCpuThreads")&&null!==e.numCpuThreads&&void 0!==e.numCpuThreads&&t.setNumCpuThreads(e.numCpuThreads),e.hasOwnProperty("capacityHz")&&null!==e.capacityHz&&void 0!==e.capacityHz&&t.setCapacityHz(e.capacityHz),e.hasOwnProperty("memorySizeBytes")&&null!==e.memorySizeBytes&&void 0!==e.memorySizeBytes&&t.setMemorySizeBytes(e.memorySizeBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNodeUuid(){return this.nodeUuid}setNodeUuid(e){this.nodeUuid=e}getHaMemoryReservedBytes(){return this.haMemoryReservedBytes}setHaMemoryReservedBytes(e){this.haMemoryReservedBytes=e}getNumCpuThreads(){return this.numCpuThreads}setNumCpuThreads(e){this.numCpuThreads=e}getCapacityHz(){return this.capacityHz}setCapacityHz(e){this.capacityHz=e}getMemorySizeBytes(){return this.memorySizeBytes}setMemorySizeBytes(e){this.memorySizeBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getNodeUuid()&&null!==this.getNodeUuid()?{nodeUuid:this.getNodeUuid()}:{},...void 0!==this.getHaMemoryReservedBytes()&&null!==this.getHaMemoryReservedBytes()?{haMemoryReservedBytes:this.getHaMemoryReservedBytes()}:{},...void 0!==this.getNumCpuThreads()&&null!==this.getNumCpuThreads()?{numCpuThreads:this.getNumCpuThreads()}:{},...void 0!==this.getCapacityHz()&&null!==this.getCapacityHz()?{capacityHz:this.getCapacityHz()}:{},...void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new O("nodeUuid","undefined or null");if(!j.validatePattern(this.nodeUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("nodeUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"haMemoryReservedBytes"!==t||void 0!==this.haMemoryReservedBytes&&null!==this.haMemoryReservedBytes?"numCpuThreads"!==t||void 0!==this.numCpuThreads&&null!==this.numCpuThreads?"capacityHz"!==t||void 0!==this.capacityHz&&null!==this.capacityHz?"memorySizeBytes"!==t||void 0!==this.memorySizeBytes&&null!==this.memorySizeBytes?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("memorySizeBytes","undefined or null"):new O("capacityHz","undefined or null"):new O("numCpuThreads","undefined or null"):new O("haMemoryReservedBytes","undefined or null")}}Ss.prototype.nodeUuid=void 0,Ss.prototype.haMemoryReservedBytes=void 0,Ss.prototype.numCpuThreads=void 0,Ss.prototype.capacityHz=void 0,Ss.prototype.memorySizeBytes=void 0,Ss.prototype.$reserved=void 0,Ss.prototype.$objectType=void 0,Ss.prototype.$unknownFields=void 0;class Es extends Ss{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.NodeProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Es,Ss.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ds=new WeakSet;class Rs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ds),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Vm",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Rs,e.hasOwnProperty("vmUuid")&&null!==e.vmUuid&&void 0!==e.vmUuid&&t.setVmUuid(e.vmUuid),e.hasOwnProperty("vmMemory")&&null!==e.vmMemory&&void 0!==e.vmMemory&&t.setVmMemory(e.vmMemory),e.hasOwnProperty("numVcpus")&&null!==e.numVcpus&&void 0!==e.numVcpus&&t.setNumVcpus(e.numVcpus),e.hasOwnProperty("powerState")&&null!==e.powerState&&void 0!==e.powerState&&t.setPowerState(e.powerState),e.hasOwnProperty("node")&&null!==e.node&&void 0!==e.node&&t.setNode(e.node),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmUuid(){return this.vmUuid}setVmUuid(e){this.vmUuid=e}getVmMemory(){return this.vmMemory}setVmMemory(e){this.vmMemory=e}getNumVcpus(){return this.numVcpus}setNumVcpus(e){this.numVcpus=e}getPowerState(){return this.powerState}setPowerState(e){this.powerState=e}getNode(){return this.node}setNode(e){this.node=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{},...void 0!==this.getVmMemory()&&null!==this.getVmMemory()?{vmMemory:this.getVmMemory()}:{},...void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{},...void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{},...void 0!==this.getNode()&&null!==this.getNode()?{node:this.getNode()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new O("vmUuid","undefined or null");if(!j.validatePattern(this.vmUuid,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("vmUuid","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"vmMemory"!==t||void 0!==this.vmMemory&&null!==this.vmMemory?"numVcpus"!==t||void 0!==this.numVcpus&&null!==this.numVcpus?"powerState"!==t||void 0!==this.powerState&&null!==this.powerState?"node"!==t||void 0!==this.node&&null!==this.node?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("node","undefined or null"):new O("powerState","undefined or null"):new O("numVcpus","undefined or null"):new O("vmMemory","undefined or null")}}Rs.prototype.vmUuid=void 0,Rs.prototype.vmMemory=void 0,Rs.prototype.numVcpus=void 0,Rs.prototype.powerState=void 0,Rs.prototype.node=void 0,Rs.prototype.$reserved=void 0,Rs.prototype.$objectType=void 0,Rs.prototype.$unknownFields=void 0;class Us extends Rs{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.VmProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Us,Rs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Is=new WeakSet;class As extends ks{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Is),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new As,ks.constructFromObject(e,t,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection){for(r=[],i=e.vmProjection,o=0;o<i.length;o++)s=Us.constructFromObject(i[o],void 0),r.push(s);t.setVmProjection(r)}if(e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection){for(r=[],i=e.nodeProjection,o=0;o<i.length;o++)s=Es.constructFromObject(i[o],void 0),r.push(s);t.setNodeProjection(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmProjection(){return this.vmProjection}setVmProjection(e){this.vmProjection=e}getNodeProjection(){return this.nodeProjection}setNodeProjection(e){this.nodeProjection=e}toJson(e){return{...void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vmProjection"!==t||void 0!==this.vmProjection&&null!==this.vmProjection?"nodeProjection"!==t||void 0!==this.nodeProjection&&null!==this.nodeProjection?new O(t,"no such property exists"):new O("nodeProjection","undefined or null"):new O("vmProjection","undefined or null")}}As.prototype.vmProjection=void 0,As.prototype.nodeProjection=void 0,ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0;const Ms={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IGNORE_RUNWAY_NUTANIX:"IGNORE_RUNWAY_NUTANIX",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ms).find(t=>Ms[t]===e);return null==t?Ms.$UNKNOWN:Ms[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ms.$UNKNOWN:case Ms.$REDACTED:case Ms.IGNORE_RUNWAY_NUTANIX:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|IGNORE_RUNWAY_NUTANIX }")}}};Object.freeze(Ms);const Ns=Ms,xs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ORIGINAL:"ORIGINAL",ONE_NODE_FAILURE:"ONE_NODE_FAILURE",BLOCK_AWARENESS:"BLOCK_AWARENESS",AUTO_DETECT:"AUTO_DETECT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xs).find(t=>xs[t]===e);return null==t?xs.$UNKNOWN:xs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xs.$UNKNOWN:case xs.$REDACTED:case xs.ORIGINAL:case xs.ONE_NODE_FAILURE:case xs.BLOCK_AWARENESS:case xs.AUTO_DETECT:return;default:throw new Error("Invalid : must be CapacityType.{ $UNKNOWN|$REDACTED|ORIGINAL|ONE_NODE_FAILURE|BLOCK_AWARENESS|AUTO_DETECT }")}}};Object.freeze(xs);const Vs=xs,Ls={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ls).find(t=>Ls[t]===e);return null==t?Ls.$UNKNOWN:Ls[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ls.$UNKNOWN:case Ls.$REDACTED:case Ls.GHZ:case Ls.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze(Ls);const Bs=Ls,Ws={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",NUTANIX_VCENTER_CLUSTER:"NUTANIX_VCENTER_CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ws).find(t=>Ws[t]===e);return null==t?Ws.$UNKNOWN:Ws[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ws.$UNKNOWN:case Ws.$REDACTED:case Ws.CLUSTER:case Ws.NUTANIX_VCENTER_CLUSTER:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|CLUSTER|NUTANIX_VCENTER_CLUSTER }")}}};Object.freeze(Ws);const zs=Ws;var Js=new WeakSet;class _s extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Js),t.add(e),this.$objectType="aiops.v4.config.EntityDetail",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _s,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("isDefaultAIOpsPolicyEntity")&&null!==e.isDefaultAIOpsPolicyEntity&&void 0!==e.isDefaultAIOpsPolicyEntity&&t.setIsDefaultAIOpsPolicyEntity(e.isDefaultAIOpsPolicyEntity),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getIsDefaultAIOpsPolicyEntity(){return this.isDefaultAIOpsPolicyEntity}setIsDefaultAIOpsPolicyEntity(e){this.isDefaultAIOpsPolicyEntity=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"isDefaultAIOpsPolicyEntity"!==t||void 0!==this.isDefaultAIOpsPolicyEntity&&null!==this.isDefaultAIOpsPolicyEntity?new O(t,"no such property exists"):new O("isDefaultAIOpsPolicyEntity","undefined or null"):new O("name","undefined or null")}}_s.prototype.name=void 0,_s.prototype.isDefaultAIOpsPolicyEntity=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;const Gs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INEFFICIENCY_EXCLUSION:"INEFFICIENCY_EXCLUSION",ANOMALY_EXCLUSION:"ANOMALY_EXCLUSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Gs).find(t=>Gs[t]===e);return null==t?Gs.$UNKNOWN:Gs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Gs.$UNKNOWN:case Gs.$REDACTED:case Gs.INEFFICIENCY_EXCLUSION:case Gs.ANOMALY_EXCLUSION:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|INEFFICIENCY_EXCLUSION|ANOMALY_EXCLUSION }")}}};Object.freeze(Gs);const qs=Gs;class Hs extends Zt{constructor(e,t,n){super(e,t,n),this.$objectType="aiops.v4.config.SimulatedVmResourceSpecProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Hs,Zt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ks=new WeakSet;class Xs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ks),t.add(e),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xs,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function Zs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xs.prototype.name=void 0,Xs.prototype.value="",Xs.prototype.$reserved=void 0,Xs.prototype.$objectType=void 0,Xs.prototype.$unknownFields=void 0;var Ys=new WeakSet;class Qs extends mt{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=Ys),i.add(n),this.isEnabled=e,this.entities=t,this.$objectType="aiops.v4.config.XfitPolicy",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Qs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&t.setPolicyType(qs.constructFromObject(e.policyType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&t.setIsDefault(e.isDefault),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("toRemove")&&null!==e.toRemove&&void 0!==e.toRemove&&t.setToRemove(e.toRemove),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(r=[],i=e.parameters,o=0;o<i.length;o++)s=Xs.constructFromObject(i[o],void 0),r.push(s);t.setParameters(r)}if(e.hasOwnProperty("entities")&&null!==e.entities&&void 0!==e.entities){for(r=[],i=e.entities,o=0;o<i.length;o++)s=_s.constructFromObject(i[o],void 0),r.push(s);t.setEntities(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPolicyType(){return this.policyType}setPolicyType(e){this.policyType=e}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getIsDefault(){return this.isDefault}setIsDefault(e){this.isDefault=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getToRemove(){return this.toRemove}setToRemove(e){this.toRemove=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}getEntities(){return this.entities}setEntities(e){this.entities=e}toJson(e){return!1===e?{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:Zs(Ys,this,eo).call(this,this.getUpdatedTime(),!1)}:{},...void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("policyType"===t&&(void 0===this.policyType||null===this.policyType))return new O("policyType","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!j.validateMaxLength(this.description,512))return new O("description","does not satisfy required maxLength constraint: 512");if(!j.validateMinLength(this.description,1))return new O("description","does not satisfy required minLength constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("isDefault"===t&&(void 0===this.isDefault||null===this.isDefault))return new O("isDefault","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new O("isEnabled","undefined or null");if("toRemove"===t&&(void 0===this.toRemove||null===this.toRemove))return new O("toRemove","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new O("parameters","undefined or null");if(!j.validateMaxItems(this.parameters,50))return new O("parameters","does not satisfy required maxItems constraint: 50")}return"entities"!==t||void 0!==this.entities&&null!==this.entities?new O(t,"no such property exists"):new O("entities","undefined or null")}}function eo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Qs.prototype.policyType=void 0,Qs.prototype.name=void 0,Qs.prototype.description=void 0,Qs.prototype.updatedTime=void 0,Qs.prototype.isDefault=!1,Qs.prototype.isEnabled=!0,Qs.prototype.toRemove=!1,Qs.prototype.parameters=void 0,Qs.prototype.entities=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class to extends Qs{constructor(e,t){super(e,t),this.$objectType="aiops.v4.config.XfitPolicyProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new to,Qs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}const no={ApiClient:le,StatsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getEntityDescriptorsV4(e,t,...n){let i=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityDescriptorsV4");const s={sourceExtId:e},o={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r},l=Mt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-descriptors","GET",s,o,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}getEntityMetricsV4(e,t,n,i,s,...o){let r=o.length>0?o[0]:{};if(s=s||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityMetricsV4");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getEntityMetricsV4");if(null==n)throw new Error("Missing the required parameter '$startTime' when calling getEntityMetricsV4");if(null==i)throw new Error("Missing the required parameter '$endTime' when calling getEntityMetricsV4");const a={sourceExtId:e,extId:t},l={...s.hasOwnProperty("$page")?{$page:s.$page}:{},...s.hasOwnProperty("$limit")?{$limit:s.$limit}:{},$startTime:n,$endTime:i,...s.hasOwnProperty("$samplingInterval")?{$samplingInterval:s.$samplingInterval}:{},...s.hasOwnProperty("$statType")?{$statType:s.$statType}:{},...s.hasOwnProperty("$filter")?{$filter:s.$filter}:{},...s.hasOwnProperty("$orderby")?{$orderby:s.$orderby}:{}};let d={};Object.keys(r).forEach(e=>{this.#e.has(e.toLowerCase())||(d[e]=r[e])});const u={...d},h=Tt;return this.apiClient.callApi("/api/aiops/v4.2.b1/stats/sources/{sourceExtId}/entities/{extId}","GET",a,l,u,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],h)}getEntityTypesV4(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityTypesV4");const i={sourceExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ht;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-types","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getSourcesV4(...e){let t=e.length>0?e[0]:{},n={};Object.keys(t).forEach(e=>{this.#e.has(e.toLowerCase())||(n[e]=t[e])});const i={...n},s=Wt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources","GET",{},{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},ScenariosApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createScenario(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Ci&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createScenario");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=Wi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}createSimulation(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Qt&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createSimulation");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=nn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}deleteScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Xi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}deleteSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Gi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRecommendation(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=es;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-recommendation","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateReport");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ss;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-report","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRunway(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRunway");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=fs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-runway","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=cs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");const i={scenarioExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Mi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{scenarioExtId}/reports","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],r)}getSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ls;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listScenarios(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ri;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listSimulations(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ln;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}updateScenarioById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Ci&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");if(null==s)throw new Error("Invalid body when calling updateScenarioById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=gs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}updateSimulationById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Qt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");if(null==s)throw new Error("Invalid body when calling updateSimulationById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=cn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},Cluster:ks,ClusterMetrics:Cs,ClusterProjection:As,Node:Ss,NodeProjection:Es,Vm:Rs,VmProjection:Us,CommonClusterType:Ns,CapacityType:Vs,CapacityUnit:Bs,CapacityUpdateConfig:Nn,CapacityUpdateType:An,CitrixXenProvisionType:Vn,CitrixXenWorkload:qn,CitrixXenWorkloadVendor:Bn,ClusterConfig:Cn,ConfigClusterType:zs,CreateScenarioApiResponse:Wi,CreateSimulationApiResponse:nn,DataStoreConfig:mn,DeleteScenarioApiResponse:Xi,DeleteSimulationApiResponse:Gi,EntityDescriptor:Ut,EntityDescriptorListApiResponse:Mt,EntityDetail:_s,EntityType:_t,EntityTypeListApiResponse:Ht,GenerateRecommendationApiResponse:es,GenerateReportApiResponse:ss,GenerateRunwayApiResponse:fs,GetScenarioApiResponse:cs,GetScenarioReportApiResponse:Mi,GetSimulationApiResponse:ls,ListScenariosApiResponse:Ri,ListSimulationsApiResponse:ln,MetricDescriptor:Dt,MicrosoftXenProvisionType:Kn,MicrosoftXenWorkload:Qn,MicrosoftXenWorkloadVendor:Zn,NodeConfig:jn,NodeSource:$n,PolicyType:qs,ReplicationFactor:vn,ResourceCapacity:bn,Runway:En,Scenario:Ci,ScenarioProjection:Si,SimulatedVmResourceSpec:Zt,SimulatedVmResourceSpecProjection:Hs,Simulation:Qt,SimulationProjection:on,Source:Vt,SourceListApiResponse:Wt,SplunkWorkload:ti,SqlProfileType:ii,SqlTransactionType:oi,SqlWorkload:ai,UpdateScenarioApiResponse:gs,UpdateSimulationApiResponse:cn,ValueRange:Ot,ValueType:Ct,VdiProvisionType:di,VdiUserType:hi,VdiVendor:pi,VdiWorkload:vi,Vendor:Un,VmCategoryWorkload:mi,VmWorkload:$i,Workload:Ti,XenOperatingSystem:zn,XenWorkload:_n,XfitPolicy:Qs,XfitPolicyProjection:to,AppMessage:De,ErrorResponse:Be,SchemaValidationError:Ne,SchemaValidationErrorMessage:Ie,BoolList:Je,BoolVal:Ge,DoubleList:He,DoubleVal:Xe,Entity:$t,EntityListApiResponse:Tt,IntList:Ye,IntVal:et,Metric:pt,Point:at,StrList:nt,StrVal:st,TimeSeries:ht,Flag:C,IPv4Address:Os,KVPair:I,KVStringPair:Xs,MapOfStringWrapper:E,Message:V,MessageSeverity:N,TenantAwareModel:vt,ApiLink:B,ApiResponseMetadata:J,ExternalizableAbstractModel:mt,DownSamplingOperator:St,TaskReference:Vi}})(),i.default})());