@nutanix-scratch/monitoring-js-client 4.0.1-beta.1 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (521) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +50 -34
  3. package/dist/Ntnx-Monitoring-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Monitoring-js-client.js +458 -161
  5. package/dist/es/ApiClient.d.ts +8 -1
  6. package/dist/es/ApiClient.js +249 -189
  7. package/dist/es/Paginable.d.ts +1 -1
  8. package/dist/es/Paginable.js +10 -10
  9. package/dist/es/apis/alertemailconfiguration-endpoints.d.ts +5 -5
  10. package/dist/es/apis/alertemailconfiguration-endpoints.js +19 -19
  11. package/dist/es/apis/alerts-endpoints.d.ts +5 -5
  12. package/dist/es/apis/alerts-endpoints.js +19 -19
  13. package/dist/es/apis/audits-endpoints.d.ts +5 -5
  14. package/dist/es/apis/audits-endpoints.js +19 -19
  15. package/dist/es/apis/clusterlogs-endpoints.d.ts +68 -0
  16. package/dist/es/apis/clusterlogs-endpoints.js +182 -0
  17. package/dist/es/apis/events-endpoints.d.ts +5 -5
  18. package/dist/es/apis/events-endpoints.js +19 -19
  19. package/dist/es/apis/managealerts-endpoints.d.ts +3 -3
  20. package/dist/es/apis/managealerts-endpoints.js +15 -15
  21. package/dist/es/apis/systemdefinedpolicies-endpoints.d.ts +144 -0
  22. package/dist/es/apis/systemdefinedpolicies-endpoints.js +348 -0
  23. package/dist/es/apis/userdefinedpolicies-endpoints.d.ts +12 -12
  24. package/dist/es/apis/userdefinedpolicies-endpoints.js +34 -34
  25. package/dist/es/index.d.ts +77 -23
  26. package/dist/es/index.js +283 -67
  27. package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
  28. package/dist/es/models/common/v1/config/FQDN.js +57 -22
  29. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  30. package/dist/es/models/common/v1/config/Flag.js +66 -22
  31. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
  32. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +56 -24
  33. package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
  34. package/dist/es/models/common/v1/config/IPv4Address.js +65 -24
  35. package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
  36. package/dist/es/models/common/v1/config/IPv6Address.js +65 -24
  37. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  38. package/dist/es/models/common/v1/config/KVPair.js +71 -25
  39. package/dist/es/models/common/v1/config/KVStringPair.d.ts +28 -26
  40. package/dist/es/models/common/v1/config/KVStringPair.js +60 -22
  41. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  42. package/dist/{lib/models/monitoring/v4/serviceability/SeverityThresholdInfo.js → es/models/common/v1/config/MapOfStringWrapper.js} +93 -96
  43. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  44. package/dist/es/models/common/v1/config/Message.js +58 -26
  45. package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
  46. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  47. package/dist/es/models/common/v1/config/TenantAwareModel.js +52 -20
  48. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  49. package/dist/es/models/common/v1/response/ApiLink.js +54 -22
  50. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  51. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
  52. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  53. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
  54. package/dist/es/models/monitoring/v4/common/AlertEntityReference.d.ts +36 -34
  55. package/dist/es/models/monitoring/v4/common/AlertEntityReference.js +63 -27
  56. package/dist/es/models/monitoring/v4/common/BoolValue.d.ts +26 -21
  57. package/dist/es/models/monitoring/v4/common/BoolValue.js +58 -22
  58. package/dist/es/models/monitoring/v4/common/CauseAndResolution.d.ts +28 -26
  59. package/dist/es/models/monitoring/v4/common/CauseAndResolution.js +60 -22
  60. package/dist/es/models/monitoring/v4/common/ComparisonOperator.js +13 -13
  61. package/dist/es/models/monitoring/v4/common/ConditionType.js +9 -9
  62. package/dist/es/models/monitoring/v4/common/DataType.js +12 -12
  63. package/dist/es/models/monitoring/v4/common/DoubleValue.d.ts +26 -21
  64. package/dist/es/models/monitoring/v4/common/DoubleValue.js +58 -22
  65. package/dist/es/models/monitoring/v4/common/EntityReference.d.ts +36 -34
  66. package/dist/es/models/monitoring/v4/common/EntityReference.js +62 -27
  67. package/dist/es/models/monitoring/v4/common/FloatValue.d.ts +62 -0
  68. package/dist/es/models/monitoring/v4/common/FloatValue.js +279 -0
  69. package/dist/es/models/monitoring/v4/common/ImpactType.js +14 -14
  70. package/dist/es/models/monitoring/v4/common/IntValue.d.ts +26 -21
  71. package/dist/es/models/monitoring/v4/common/IntValue.js +58 -22
  72. package/dist/es/models/monitoring/v4/common/MetricDetail.d.ts +96 -87
  73. package/dist/es/models/monitoring/v4/common/MetricDetail.js +111 -73
  74. package/dist/es/models/monitoring/v4/common/OperationType.js +47 -23
  75. package/dist/es/models/monitoring/v4/common/Parameter.d.ts +30 -25
  76. package/dist/es/models/monitoring/v4/common/Parameter.js +57 -22
  77. package/dist/es/models/monitoring/v4/common/Severity.js +11 -11
  78. package/dist/es/models/monitoring/v4/common/StringValue.d.ts +26 -21
  79. package/dist/es/models/monitoring/v4/common/StringValue.js +58 -22
  80. package/dist/es/models/monitoring/v4/error/AppMessage.d.ts +57 -48
  81. package/dist/es/models/monitoring/v4/error/AppMessage.js +62 -30
  82. package/dist/es/models/monitoring/v4/error/ErrorResponse.d.ts +23 -19
  83. package/dist/es/models/monitoring/v4/error/ErrorResponse.js +60 -23
  84. package/dist/es/models/monitoring/v4/error/SchemaValidationError.d.ts +53 -43
  85. package/dist/es/models/monitoring/v4/error/SchemaValidationError.js +63 -30
  86. package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  87. package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.js +56 -24
  88. package/dist/es/models/monitoring/v4/serviceability/ActionType.js +8 -8
  89. package/dist/es/models/monitoring/v4/serviceability/Alert.d.ts +231 -170
  90. package/dist/es/models/monitoring/v4/serviceability/Alert.js +165 -108
  91. package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +23 -21
  92. package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.js +53 -21
  93. package/dist/es/models/monitoring/v4/serviceability/AlertConfig.d.ts +124 -0
  94. package/dist/es/models/monitoring/v4/serviceability/AlertConfig.js +378 -0
  95. package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +204 -89
  96. package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +111 -65
  97. package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +106 -0
  98. package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +434 -0
  99. package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +78 -0
  100. package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.js +350 -0
  101. package/dist/es/models/monitoring/v4/serviceability/Audit.d.ts +134 -87
  102. package/dist/es/models/monitoring/v4/serviceability/Audit.js +115 -64
  103. package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +36 -34
  104. package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.js +63 -27
  105. package/dist/es/models/monitoring/v4/serviceability/AutoResolveState.d.ts +19 -0
  106. package/dist/{lib/models/monitoring/v4/serviceability/AutoResolve.js → es/models/monitoring/v4/serviceability/AutoResolveState.js} +28 -28
  107. package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +74 -0
  108. package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +317 -0
  109. package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.d.ts +155 -0
  110. package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.js +473 -0
  111. package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +10 -0
  112. package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.js +154 -0
  113. package/dist/es/models/monitoring/v4/serviceability/{AutoResolve.d.ts → ClusterType.d.ts} +6 -6
  114. package/dist/es/models/monitoring/v4/serviceability/ClusterType.js +85 -0
  115. package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +99 -0
  116. package/dist/{lib/models/monitoring/v4/serviceability/ManageAlertsApiResponse.js → es/models/monitoring/v4/serviceability/CollectLogsApiResponse.js} +87 -55
  117. package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +57 -41
  118. package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.js +68 -35
  119. package/dist/es/models/monitoring/v4/serviceability/Condition.d.ts +36 -33
  120. package/dist/es/models/monitoring/v4/serviceability/Condition.js +62 -29
  121. package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +78 -0
  122. package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +353 -0
  123. package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +25 -23
  124. package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.js +57 -25
  125. package/dist/es/models/monitoring/v4/serviceability/ConnectionStatus.js +10 -10
  126. package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +65 -25
  127. package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +60 -28
  128. package/dist/es/models/monitoring/v4/serviceability/Credential.d.ts +86 -0
  129. package/dist/es/models/monitoring/v4/serviceability/Credential.js +364 -0
  130. package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +146 -0
  131. package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.js +440 -0
  132. package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +66 -25
  133. package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +60 -28
  134. package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +66 -60
  135. package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.js +74 -39
  136. package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.d.ts +28 -26
  137. package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.js +54 -22
  138. package/dist/es/models/monitoring/v4/serviceability/EntityFilter.d.ts +26 -24
  139. package/dist/es/models/monitoring/v4/serviceability/EntityFilter.js +58 -26
  140. package/dist/es/models/monitoring/v4/serviceability/EntityType.d.ts +19 -0
  141. package/dist/es/models/monitoring/v4/serviceability/EntityType.js +253 -0
  142. package/dist/es/models/monitoring/v4/serviceability/Event.d.ts +121 -77
  143. package/dist/es/models/monitoring/v4/serviceability/Event.js +107 -56
  144. package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.d.ts +36 -34
  145. package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.js +63 -27
  146. package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +65 -25
  147. package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +60 -28
  148. package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +93 -0
  149. package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +365 -0
  150. package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +65 -25
  151. package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.js +60 -28
  152. package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +65 -25
  153. package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +60 -28
  154. package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +65 -25
  155. package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.js +60 -28
  156. package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +99 -0
  157. package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +343 -0
  158. package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +65 -25
  159. package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.js +60 -28
  160. package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +99 -0
  161. package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +343 -0
  162. package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +65 -25
  163. package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +60 -28
  164. package/dist/es/models/monitoring/v4/serviceability/GroupEntityType.js +8 -8
  165. package/dist/es/models/monitoring/v4/serviceability/GroupFilter.d.ts +29 -27
  166. package/dist/es/models/monitoring/v4/serviceability/GroupFilter.js +56 -24
  167. package/dist/es/models/monitoring/v4/serviceability/HttpProxy.d.ts +84 -52
  168. package/dist/es/models/monitoring/v4/serviceability/HttpProxy.js +75 -34
  169. package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +93 -0
  170. package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +365 -0
  171. package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +65 -25
  172. package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +60 -28
  173. package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +65 -25
  174. package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +60 -28
  175. package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +100 -0
  176. package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +370 -0
  177. package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +65 -25
  178. package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.js +60 -28
  179. package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +99 -0
  180. package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +365 -0
  181. package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +99 -0
  182. package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.js +365 -0
  183. package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +65 -25
  184. package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +60 -28
  185. package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +52 -0
  186. package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.js +280 -0
  187. package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +178 -0
  188. package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.js +625 -0
  189. package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +65 -25
  190. package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +60 -28
  191. package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +74 -0
  192. package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +321 -0
  193. package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +39 -26
  194. package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.js +63 -22
  195. package/dist/es/models/monitoring/v4/serviceability/PolicySeverityLevel.js +10 -10
  196. package/dist/es/models/monitoring/v4/serviceability/PropertyState.d.ts +19 -0
  197. package/dist/es/models/monitoring/v4/serviceability/PropertyState.js +91 -0
  198. package/dist/es/models/monitoring/v4/serviceability/ProxyType.js +8 -8
  199. package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +36 -34
  200. package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.js +67 -32
  201. package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +127 -38
  202. package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +58 -26
  203. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +48 -28
  204. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.js +109 -60
  205. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +2 -1
  206. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +38 -17
  207. package/dist/es/models/monitoring/v4/serviceability/Scope.d.ts +19 -0
  208. package/dist/es/models/monitoring/v4/serviceability/Scope.js +85 -0
  209. package/dist/es/models/monitoring/v4/serviceability/SdaSubType.d.ts +19 -0
  210. package/dist/es/models/monitoring/v4/serviceability/SdaSubType.js +91 -0
  211. package/dist/es/models/monitoring/v4/serviceability/SdaType.d.ts +19 -0
  212. package/dist/es/models/monitoring/v4/serviceability/SdaType.js +85 -0
  213. package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.d.ts +19 -0
  214. package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.js +85 -0
  215. package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.d.ts +40 -38
  216. package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.js +64 -26
  217. package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.d.ts +72 -0
  218. package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.js +324 -0
  219. package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.d.ts +28 -25
  220. package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.js +57 -24
  221. package/dist/es/models/monitoring/v4/serviceability/Status.js +11 -11
  222. package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +113 -0
  223. package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +400 -0
  224. package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +74 -0
  225. package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +317 -0
  226. package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +304 -0
  227. package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +904 -0
  228. package/dist/es/models/monitoring/v4/serviceability/Tag.d.ts +49 -0
  229. package/dist/es/models/monitoring/v4/serviceability/Tag.js +317 -0
  230. package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.d.ts +39 -30
  231. package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.js +56 -24
  232. package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +65 -25
  233. package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +96 -42
  234. package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +99 -0
  235. package/dist/{lib/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.js → es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js} +87 -55
  236. package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +65 -25
  237. package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +96 -42
  238. package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +132 -103
  239. package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.js +120 -74
  240. package/dist/es/models/monitoring/v4/serviceability/UserReference.d.ts +34 -32
  241. package/dist/es/models/monitoring/v4/serviceability/UserReference.js +59 -24
  242. package/dist/es/models/prism/v4/config/TaskReference.d.ts +22 -20
  243. package/dist/es/models/prism/v4/config/TaskReference.js +54 -22
  244. package/dist/es/models/validation/ValidationError.js +6 -6
  245. package/dist/es/utils/ValidationUtils.js +6 -6
  246. package/dist/lib/ApiClient.d.ts +8 -1
  247. package/dist/lib/ApiClient.js +249 -189
  248. package/dist/lib/Paginable.d.ts +1 -1
  249. package/dist/lib/Paginable.js +10 -10
  250. package/dist/lib/apis/alertemailconfiguration-endpoints.d.ts +5 -5
  251. package/dist/lib/apis/alertemailconfiguration-endpoints.js +19 -19
  252. package/dist/lib/apis/alerts-endpoints.d.ts +5 -5
  253. package/dist/lib/apis/alerts-endpoints.js +19 -19
  254. package/dist/lib/apis/audits-endpoints.d.ts +5 -5
  255. package/dist/lib/apis/audits-endpoints.js +19 -19
  256. package/dist/lib/apis/clusterlogs-endpoints.d.ts +68 -0
  257. package/dist/lib/apis/clusterlogs-endpoints.js +182 -0
  258. package/dist/lib/apis/events-endpoints.d.ts +5 -5
  259. package/dist/lib/apis/events-endpoints.js +19 -19
  260. package/dist/lib/apis/managealerts-endpoints.d.ts +3 -3
  261. package/dist/lib/apis/managealerts-endpoints.js +15 -15
  262. package/dist/lib/apis/systemdefinedpolicies-endpoints.d.ts +144 -0
  263. package/dist/lib/apis/systemdefinedpolicies-endpoints.js +348 -0
  264. package/dist/lib/apis/userdefinedpolicies-endpoints.d.ts +12 -12
  265. package/dist/lib/apis/userdefinedpolicies-endpoints.js +34 -34
  266. package/dist/lib/index.d.ts +77 -23
  267. package/dist/lib/index.js +283 -67
  268. package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
  269. package/dist/lib/models/common/v1/config/FQDN.js +57 -22
  270. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  271. package/dist/lib/models/common/v1/config/Flag.js +66 -22
  272. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
  273. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +56 -24
  274. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
  275. package/dist/lib/models/common/v1/config/IPv4Address.js +65 -24
  276. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
  277. package/dist/lib/models/common/v1/config/IPv6Address.js +65 -24
  278. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  279. package/dist/lib/models/common/v1/config/KVPair.js +71 -25
  280. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +28 -26
  281. package/dist/lib/models/common/v1/config/KVStringPair.js +60 -22
  282. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  283. package/dist/{es/models/monitoring/v4/serviceability/SeverityThresholdInfo.js → lib/models/common/v1/config/MapOfStringWrapper.js} +93 -96
  284. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  285. package/dist/lib/models/common/v1/config/Message.js +58 -26
  286. package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
  287. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +22 -20
  288. package/dist/lib/models/common/v1/config/TenantAwareModel.js +52 -20
  289. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  290. package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
  291. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  292. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
  293. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  294. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
  295. package/dist/lib/models/monitoring/v4/common/AlertEntityReference.d.ts +36 -34
  296. package/dist/lib/models/monitoring/v4/common/AlertEntityReference.js +63 -27
  297. package/dist/lib/models/monitoring/v4/common/BoolValue.d.ts +26 -21
  298. package/dist/lib/models/monitoring/v4/common/BoolValue.js +58 -22
  299. package/dist/lib/models/monitoring/v4/common/CauseAndResolution.d.ts +28 -26
  300. package/dist/lib/models/monitoring/v4/common/CauseAndResolution.js +60 -22
  301. package/dist/lib/models/monitoring/v4/common/ComparisonOperator.js +13 -13
  302. package/dist/lib/models/monitoring/v4/common/ConditionType.js +9 -9
  303. package/dist/lib/models/monitoring/v4/common/DataType.js +12 -12
  304. package/dist/lib/models/monitoring/v4/common/DoubleValue.d.ts +26 -21
  305. package/dist/lib/models/monitoring/v4/common/DoubleValue.js +58 -22
  306. package/dist/lib/models/monitoring/v4/common/EntityReference.d.ts +36 -34
  307. package/dist/lib/models/monitoring/v4/common/EntityReference.js +62 -27
  308. package/dist/lib/models/monitoring/v4/common/FloatValue.d.ts +62 -0
  309. package/dist/lib/models/monitoring/v4/common/FloatValue.js +279 -0
  310. package/dist/lib/models/monitoring/v4/common/ImpactType.js +14 -14
  311. package/dist/lib/models/monitoring/v4/common/IntValue.d.ts +26 -21
  312. package/dist/lib/models/monitoring/v4/common/IntValue.js +58 -22
  313. package/dist/lib/models/monitoring/v4/common/MetricDetail.d.ts +96 -87
  314. package/dist/lib/models/monitoring/v4/common/MetricDetail.js +111 -73
  315. package/dist/lib/models/monitoring/v4/common/OperationType.js +47 -23
  316. package/dist/lib/models/monitoring/v4/common/Parameter.d.ts +30 -25
  317. package/dist/lib/models/monitoring/v4/common/Parameter.js +57 -22
  318. package/dist/lib/models/monitoring/v4/common/Severity.js +11 -11
  319. package/dist/lib/models/monitoring/v4/common/StringValue.d.ts +26 -21
  320. package/dist/lib/models/monitoring/v4/common/StringValue.js +58 -22
  321. package/dist/lib/models/monitoring/v4/error/AppMessage.d.ts +57 -48
  322. package/dist/lib/models/monitoring/v4/error/AppMessage.js +62 -30
  323. package/dist/lib/models/monitoring/v4/error/ErrorResponse.d.ts +23 -19
  324. package/dist/lib/models/monitoring/v4/error/ErrorResponse.js +60 -23
  325. package/dist/lib/models/monitoring/v4/error/SchemaValidationError.d.ts +53 -43
  326. package/dist/lib/models/monitoring/v4/error/SchemaValidationError.js +63 -30
  327. package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  328. package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.js +56 -24
  329. package/dist/lib/models/monitoring/v4/serviceability/ActionType.js +8 -8
  330. package/dist/lib/models/monitoring/v4/serviceability/Alert.d.ts +231 -170
  331. package/dist/lib/models/monitoring/v4/serviceability/Alert.js +165 -108
  332. package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +23 -21
  333. package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.js +53 -21
  334. package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.d.ts +124 -0
  335. package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.js +378 -0
  336. package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +204 -89
  337. package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +111 -65
  338. package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +106 -0
  339. package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +434 -0
  340. package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +78 -0
  341. package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.js +350 -0
  342. package/dist/lib/models/monitoring/v4/serviceability/Audit.d.ts +134 -87
  343. package/dist/lib/models/monitoring/v4/serviceability/Audit.js +115 -64
  344. package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +36 -34
  345. package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.js +63 -27
  346. package/dist/lib/models/monitoring/v4/serviceability/AutoResolveState.d.ts +19 -0
  347. package/dist/{es/models/monitoring/v4/serviceability/AutoResolve.js → lib/models/monitoring/v4/serviceability/AutoResolveState.js} +28 -28
  348. package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +74 -0
  349. package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +317 -0
  350. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.d.ts +155 -0
  351. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.js +473 -0
  352. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +10 -0
  353. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.js +154 -0
  354. package/dist/lib/models/monitoring/v4/serviceability/{AutoResolve.d.ts → ClusterType.d.ts} +6 -6
  355. package/dist/lib/models/monitoring/v4/serviceability/ClusterType.js +85 -0
  356. package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +99 -0
  357. package/dist/{es/models/monitoring/v4/serviceability/ManageAlertsApiResponse.js → lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.js} +87 -55
  358. package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +57 -41
  359. package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.js +68 -35
  360. package/dist/lib/models/monitoring/v4/serviceability/Condition.d.ts +36 -33
  361. package/dist/lib/models/monitoring/v4/serviceability/Condition.js +62 -29
  362. package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +78 -0
  363. package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +353 -0
  364. package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +25 -23
  365. package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.js +57 -25
  366. package/dist/lib/models/monitoring/v4/serviceability/ConnectionStatus.js +10 -10
  367. package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +65 -25
  368. package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +60 -28
  369. package/dist/lib/models/monitoring/v4/serviceability/Credential.d.ts +86 -0
  370. package/dist/lib/models/monitoring/v4/serviceability/Credential.js +364 -0
  371. package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +146 -0
  372. package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.js +440 -0
  373. package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +66 -25
  374. package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +60 -28
  375. package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +66 -60
  376. package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.js +74 -39
  377. package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.d.ts +28 -26
  378. package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.js +54 -22
  379. package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.d.ts +26 -24
  380. package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.js +58 -26
  381. package/dist/lib/models/monitoring/v4/serviceability/EntityType.d.ts +19 -0
  382. package/dist/lib/models/monitoring/v4/serviceability/EntityType.js +253 -0
  383. package/dist/lib/models/monitoring/v4/serviceability/Event.d.ts +121 -77
  384. package/dist/lib/models/monitoring/v4/serviceability/Event.js +107 -56
  385. package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.d.ts +36 -34
  386. package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.js +63 -27
  387. package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +65 -25
  388. package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +60 -28
  389. package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +93 -0
  390. package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +365 -0
  391. package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +65 -25
  392. package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.js +60 -28
  393. package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +65 -25
  394. package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +60 -28
  395. package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +65 -25
  396. package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.js +60 -28
  397. package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +99 -0
  398. package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +343 -0
  399. package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +65 -25
  400. package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.js +60 -28
  401. package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +99 -0
  402. package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +343 -0
  403. package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +65 -25
  404. package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +60 -28
  405. package/dist/lib/models/monitoring/v4/serviceability/GroupEntityType.js +8 -8
  406. package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.d.ts +29 -27
  407. package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.js +56 -24
  408. package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.d.ts +84 -52
  409. package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.js +75 -34
  410. package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +93 -0
  411. package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +365 -0
  412. package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +65 -25
  413. package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +60 -28
  414. package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +65 -25
  415. package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +60 -28
  416. package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +100 -0
  417. package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +370 -0
  418. package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +65 -25
  419. package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.js +60 -28
  420. package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +99 -0
  421. package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +365 -0
  422. package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +99 -0
  423. package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.js +365 -0
  424. package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +65 -25
  425. package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +60 -28
  426. package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +52 -0
  427. package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.js +280 -0
  428. package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +178 -0
  429. package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.js +625 -0
  430. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +65 -25
  431. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +60 -28
  432. package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +74 -0
  433. package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +321 -0
  434. package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +39 -26
  435. package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.js +63 -22
  436. package/dist/lib/models/monitoring/v4/serviceability/PolicySeverityLevel.js +10 -10
  437. package/dist/lib/models/monitoring/v4/serviceability/PropertyState.d.ts +19 -0
  438. package/dist/lib/models/monitoring/v4/serviceability/PropertyState.js +91 -0
  439. package/dist/lib/models/monitoring/v4/serviceability/ProxyType.js +8 -8
  440. package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +36 -34
  441. package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.js +67 -32
  442. package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +127 -38
  443. package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +58 -26
  444. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +48 -28
  445. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.js +109 -60
  446. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +2 -1
  447. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +38 -17
  448. package/dist/lib/models/monitoring/v4/serviceability/Scope.d.ts +19 -0
  449. package/dist/lib/models/monitoring/v4/serviceability/Scope.js +85 -0
  450. package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.d.ts +19 -0
  451. package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.js +91 -0
  452. package/dist/lib/models/monitoring/v4/serviceability/SdaType.d.ts +19 -0
  453. package/dist/lib/models/monitoring/v4/serviceability/SdaType.js +85 -0
  454. package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.d.ts +19 -0
  455. package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.js +85 -0
  456. package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.d.ts +40 -38
  457. package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.js +64 -26
  458. package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.d.ts +72 -0
  459. package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.js +324 -0
  460. package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.d.ts +28 -25
  461. package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.js +57 -24
  462. package/dist/lib/models/monitoring/v4/serviceability/Status.js +11 -11
  463. package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +113 -0
  464. package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +400 -0
  465. package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +74 -0
  466. package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +317 -0
  467. package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +304 -0
  468. package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +904 -0
  469. package/dist/lib/models/monitoring/v4/serviceability/Tag.d.ts +49 -0
  470. package/dist/lib/models/monitoring/v4/serviceability/Tag.js +317 -0
  471. package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.d.ts +39 -30
  472. package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.js +56 -24
  473. package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +65 -25
  474. package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +96 -42
  475. package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +99 -0
  476. package/dist/{es/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.js → lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js} +87 -55
  477. package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +65 -25
  478. package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +96 -42
  479. package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +132 -103
  480. package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.js +120 -74
  481. package/dist/lib/models/monitoring/v4/serviceability/UserReference.d.ts +34 -32
  482. package/dist/lib/models/monitoring/v4/serviceability/UserReference.js +59 -24
  483. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +22 -20
  484. package/dist/lib/models/prism/v4/config/TaskReference.js +54 -22
  485. package/dist/lib/models/validation/ValidationError.js +6 -6
  486. package/dist/lib/utils/ValidationUtils.js +6 -6
  487. package/package.json +3 -3
  488. package/dist/es/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.d.ts +0 -72
  489. package/dist/es/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.js +0 -337
  490. package/dist/es/models/monitoring/v4/serviceability/AlertDb.d.ts +0 -210
  491. package/dist/es/models/monitoring/v4/serviceability/AlertDb.js +0 -882
  492. package/dist/es/models/monitoring/v4/serviceability/AlertDbProjection.d.ts +0 -49
  493. package/dist/es/models/monitoring/v4/serviceability/AlertDbProjection.js +0 -300
  494. package/dist/es/models/monitoring/v4/serviceability/AuditDb.d.ts +0 -148
  495. package/dist/es/models/monitoring/v4/serviceability/AuditDb.js +0 -598
  496. package/dist/es/models/monitoring/v4/serviceability/AuditDbProjection.d.ts +0 -9
  497. package/dist/es/models/monitoring/v4/serviceability/AuditDbProjection.js +0 -133
  498. package/dist/es/models/monitoring/v4/serviceability/EventDb.d.ts +0 -108
  499. package/dist/es/models/monitoring/v4/serviceability/EventDb.js +0 -463
  500. package/dist/es/models/monitoring/v4/serviceability/EventDbProjection.d.ts +0 -9
  501. package/dist/es/models/monitoring/v4/serviceability/EventDbProjection.js +0 -130
  502. package/dist/es/models/monitoring/v4/serviceability/ManageAlertsApiResponse.d.ts +0 -59
  503. package/dist/es/models/monitoring/v4/serviceability/SeverityThresholdInfo.d.ts +0 -60
  504. package/dist/es/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.d.ts +0 -59
  505. package/dist/lib/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.d.ts +0 -72
  506. package/dist/lib/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.js +0 -337
  507. package/dist/lib/models/monitoring/v4/serviceability/AlertDb.d.ts +0 -210
  508. package/dist/lib/models/monitoring/v4/serviceability/AlertDb.js +0 -882
  509. package/dist/lib/models/monitoring/v4/serviceability/AlertDbProjection.d.ts +0 -49
  510. package/dist/lib/models/monitoring/v4/serviceability/AlertDbProjection.js +0 -300
  511. package/dist/lib/models/monitoring/v4/serviceability/AuditDb.d.ts +0 -148
  512. package/dist/lib/models/monitoring/v4/serviceability/AuditDb.js +0 -598
  513. package/dist/lib/models/monitoring/v4/serviceability/AuditDbProjection.d.ts +0 -9
  514. package/dist/lib/models/monitoring/v4/serviceability/AuditDbProjection.js +0 -133
  515. package/dist/lib/models/monitoring/v4/serviceability/EventDb.d.ts +0 -108
  516. package/dist/lib/models/monitoring/v4/serviceability/EventDb.js +0 -463
  517. package/dist/lib/models/monitoring/v4/serviceability/EventDbProjection.d.ts +0 -9
  518. package/dist/lib/models/monitoring/v4/serviceability/EventDbProjection.js +0 -130
  519. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertsApiResponse.d.ts +0 -59
  520. package/dist/lib/models/monitoring/v4/serviceability/SeverityThresholdInfo.d.ts +0 -60
  521. package/dist/lib/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.d.ts +0 -59
@@ -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.Monitoring=t())}("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,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.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],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].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=>{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=a,a.default=a,a.stable=d,a.stableStringify=d;var n="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===o.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,s])):o.push([t,n,e]):(r[n]=e,i.push([r,n,t]))}function l(e,i,o,s,a,c,d){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void u(r,e,i,a);if(void 0!==d.depthLimit&&c>d.depthLimit)return void u(n,e,i,a);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void u(n,e,i,a);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,s,e,c,d);else{var p=Object.keys(e);for(f=0;f<p.length;f++){var y=p[f];l(e[y],y,f,s,e,c,d)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var a,u=f(e,"",0,[],void 0,0,r)||e;try{a=0===o.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function f(e,o,s,a,l,d,p){var y;if(d+=1,"object"===t(e)&&null!==e){for(y=0;y<a.length;y++)if(a[y]===e)return void u(r,e,o,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void u(n,e,o,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,o,l);if(a.push(e),Array.isArray(e))for(y=0;y<e.length;y++)f(e[y],y,y,a,e,d,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];f(e[b],b,y,a,e,d,p),h[b]=e[b]}if(void 0===l)return h;i.push([l,o,e]),l[o]=h}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var i="win32"===process.platform,o=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function a(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=l.exec(r);return[n,i[1],i[2],i[3]]}function f(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var i;if(r>=0?i=arguments[r]:e?(i=process.env["="+e])&&i.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(i=e+"\\"):i=process.cwd(),!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");if(i){var a=f(i),u=a.device,l=a.isUnc,c=a.isAbsolute,d=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=d+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=s(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&a&&(o+="\\"),r&&(n=p(n)),n+(i?"\\":"")+o},c.isAbsolute=function(e){return f(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!o.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),i=a(t.split("\\")),o=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(o.length,s.length),l=u,d=0;d<u;d++)if(o[d]!==s[d]){l=d;break}if(0==l)return t;var f=[];for(d=l;d<o.length;d++)f.push("..");return(f=f.concat(i.slice(l))).join("\\")},c._makeLong=function(e){if(!o.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=d(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return d(e)[3]},c.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,i=e.base||"";return n?n[n.length-1]===c.sep?n+i:n+c.sep+i:i},c.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=d(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)}},c.sep="\\",c.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function v(e){return y.exec(e).slice(1)}h.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!o.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},h.isAbsolute=function(e){return"/"===e.charAt(0)},h.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!o.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return h.normalize(e)},h.relative=function(e,t){e=h.resolve(e).substr(1),t=h.resolve(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,s=0;s<i;s++)if(n[s]!==r[s]){o=s;break}var u=[];for(s=o;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(o))).join("/")},h._makeLong=function(e){return e},h.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},h.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},h.extname=function(e){return v(e)[3]},h.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+h.sep:"")+(e.base||"")},h.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(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)}},h.sep="/",h.delimiter=":",e.exports=i?c:h,e.exports.posix=h,e.exports.win32=c},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var i=t.status;if(i>=500)return!0;if((i>=400||i<200)&&-1===n.indexOf(i))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var i=t.length,o=e-i;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var s=t[i-1],a=0;a<o+1;a++)t.push(s)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},0:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||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 r(e){return r="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},r(e)}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(0);function d(){}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 f=t=e.exports;t.Request=g,f.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.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(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){h(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},i=e.split("&"),o=0,s=i.length;o<s;++o)-1===(n=(t=i[o]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(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,r,i,o=e.split(/\r?\n/),s={},a=0,u=o.length;a<u;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=p(n.slice(t+1)),s[r]=i);return s}(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 g(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,r=null;try{r=new m(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",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=y,f.parseString=v,f.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"},f.serialize={"application/x-www-form-urlencoded":y,"application/json":s},f.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},f.Response=m,o(g.prototype),a(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",f.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(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")}))},g.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},g.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},g.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},g.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)},g.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)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.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||d,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.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=f.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 r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=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",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.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 i=this._header["content-type"],o=this._serializer||f.serialize[i?i.split(";")[0]:""];!o&&b(i)&&(o=f.serialize["application/json"]),o&&(n=o(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},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 r(e){return r="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},r(e)}var i=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"!==r(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 s=["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&&s.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 r=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){r.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)}})),r.end((function(n,r){n?t(n):e(r)}))}))}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(i(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(i(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 r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);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,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".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=i(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&&i(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);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 r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},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 r=n(897);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.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(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(e[r]=i),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,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=>{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 e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="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},r(e)}var i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(e,r){if(m(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o,s={};function a(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&$(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return b(i)||(i=c(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if($(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return d(n)}var l,w="",T=!1,k=["{","}"];return p(n)&&(T=!0,k=["[","]"]),$(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+d(n)),0!==s.length||T&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=T?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return f(e,n,r,a,t,T)})),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]}(l,w,k)):k[0]+w+k[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.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(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===T(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===T(e)}function j(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function $(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(o)&&(o=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=m,t.isRegExp=g,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=$,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{"use strict";n.d(r,{default:()=>yh});var e=n(585),t=n.n(e);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)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(i.s();!(r=i.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){i.e(e)}finally{i.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(n=[{key:"getFirstPage",value:function(){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)}},{key:"getPrevPage",value:function(){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)}},{key:"getNextPage",value:function(){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)}},{key:"getLastPage",value:function(){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)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=Y.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function d(){if(!u&&!(u="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 u(c)}const f=/^(?:[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 p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return h(r)};var b,m=n(540),g=n.n(m),w=n(545),O=n.n(w),j=n(799),$=n.n(j),T=n(784),k=n.n(T),P=n(548);function E(e){return E="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},E(e)}function S(){S=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),F(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=E(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},S.apply(this,arguments)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=U(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U(r.key),r)}}function U(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function x(e,t,n){N(e,t),t.set(e,n)}function N(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t){return e.get(L(e,t))}function _(e,t,n){return e.set(L(e,t),n),n}function L(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")}g()(t());var J=new WeakMap,V=new WeakMap,W=new WeakMap,B=new WeakMap,z=new WeakMap,G=new WeakMap,q=new WeakMap,H=new WeakMap,K=new WeakSet,Y=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),N(this,n=K),n.add(this),x(this,J,void 0),x(this,V,void 0),x(this,W,void 0),x(this,B,void 0),x(this,z,void 0),x(this,G,void 0),x(this,q,void 0),x(this,H,void 0),_(H,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",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},_(z,this,3e4),_(G,this,3e4),_(q,this,18e5),this.readTimeout=M(G,this),this.connectTimeout=M(z,this),this.cache=!0,_(V,this,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,_(W,this,null),this.username=null,this.password=null,_(B,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"getEtag",value:function(e){var 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}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var i=null;if(void 0!==t&&t.hasOwnProperty(n)&&(i=t[n]),null===i&&("string"==typeof e||e instanceof String)){var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(o,"=([0-9]+)")));s&&(i=s[1])}return null===i&&(i=r),i}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===E(n)){var i,o;for(var s in n)if(n.hasOwnProperty(s)){i=s,o=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,i),l=e.convertToType(t[s],o);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var i=0;i<t.length;i++)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r));else for(var o in t)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r))}}],(i=[{key:"verifySsl",get:function(){return M(B,this)},set:function(e){this.requestAgent=e?null:new(O().Agent)({rejectUnauthorized:!1}),_(B,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=$().createWriteStream(e,{flags:"a"})),_(W,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&_(V,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),_(J,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==M(J,this)&&""!==this.host&&""!==this.port?r=M(J,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var i=r+e;return i.replace(/\{([\w-]+)\}/g,(function(e,r){var i;return i=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(i)}))}},{key:"buildCollectionParam",value:function(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)}}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,i=I(t.getData());try{for(i.s();!(r=i.n()).done;){var o=r.value;o.hasOwnProperty("$reserved")&&void 0!==o.get$Reserved()&&(o.get$Reserved().ETag=n)}}catch(e){i.e(e)}finally{i.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,i,o,s,a,u,l,c,d,f){var p=this,y=this.buildUrl(e,i),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},L(K,this,te).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),h.query(L(K,this,ee).call(this,o)),h.set(this.defaultHeaders).set(L(K,this,ee).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();h.set(L(K,this,ee).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||h.set(L(K,this,ee).call(this,{"User-Agent":"Nutanix-monitoring-js-client/4.0.1-beta.1"})),this.requestAgent&&h.agent(this.requestAgent);var g={};g.response=L(K,this,oe).call(this,this.connectTimeout,M(z,this)),g.deadline=L(K,this,oe).call(this,this.readTimeout,M(G,this)),h.timeout(g);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:L(K,this,X).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),L(K,this,ue).call(this,M(H,this).INFO,null,"Request URL :",r,y),L(K,this,ue).call(this,M(H,this).DEBUG,L(K,this,de),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(L(K,this,ee).call(this,a));else if("multipart/form-data"==w){var O=L(K,this,ee).call(this,a);for(var j in O)O.hasOwnProperty(j)&&(L(K,this,Z).call(this,O[j])?h.attach(j,O[j]):h.field(j,O[j]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(L(K,this,ue).call(this,M(H,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var T;try{T=n(965)}catch(e){L(K,this,ue).call(this,M(H,this).ERROR,null,"Error fetching steam/web")}u instanceof T.ReadableStream?u.pipeTo(new T.WritableStream({write:function(e){h.write(e)},close:function(){L(K,this,ue).call(this,M(H,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){L(K,this,ue).call(this,M(H,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise((function(t,n){h.on("error",(function(e){L(K,p,ue).call(p,M(H,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){L(K,p,fe).call(p,r,e,o,f,t,n)}))}))}u&&h.send(u)}"Blob"==typeof f?h.responseType("blob"):"String"===f&&h.responseType("string"),L(K,this,ae).call(this,h),L(K,this,ue).call(this,M(H,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=s.hasOwnProperty("Accept")?s.Accept:L(K,this,X).call(this,d);return s.hasOwnProperty("Accept")&&"application/octet-stream"===s.Accept||1==d.length&&"application/octet-stream"===d[0]?(h.accept("application/octet-stream"),h.buffer(!1),new Promise((function(e,t){var r=null;if(m){var i;try{i=n(965)}catch(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof i.WritableStream){var o=p.downloadDestination.getWriter();try{h.on("data",(function(e){o.write(e)}))}catch(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Issue while downloading file",e)}h.on("response",(function(t){L(K,p,ue).call(p,M(H,p).INFO,null,"Response Status :",t.status),L(K,p,ue).call(p,M(H,p).DEBUG,L(K,p,de),"Response Headers :",t.headers);var n=L(K,p,re).call(p,t,f);e({data:n,response:t})})).on("error",(function(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Caught the following error :",e),t(e)}))}else{var s="Incompatible downloadDestination for Browser Environment, must be WritableStream";L(K,p,ue).call(p,M(H,p).ERROR,null,s),t(s)}}else{null!==p.downloadDestination&&void 0!==p.downloadDestination&&"string"==typeof p.downloadDestination||(L(K,p,ue).call(p,M(H,p).ERROR,null,"Incompatible downloadDestination must be string, is",p.downloadDestination),L(K,p,ue).call(p,M(H,p).ERROR,null,"Downloading file to base directory"),p.downloadDestination="."),r=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt";var a=$().createWriteStream(r);L(K,p,ue).call(p,M(H,p).INFO,null,"Streaming response to : ",r),h.pipe(a),h.on("response",(function(n){L(K,p,ue).call(p,M(H,p).INFO,null,"Response Status :",n.status),L(K,p,ue).call(p,M(H,p).DEBUG,L(K,p,de),"Response Headers :",n.headers);var i=L(K,p,re).call(p,n,f);n.ok||(L(K,p,ue).call(p,M(H,p).ERROR,null,i),t(D(D({},n.error),{},{data:i})));var o="";if(void 0!==n.headers["content-disposition"]&&null!==n.headers["content-disposition"]){var s=n.headers["content-disposition"].match(S(/.*filename="(.*)".*/,{filename:1})),u=k().parse(s.groups.filename);o=p.downloadDestination+"/"+u.name+"_"+Date.now()+u.ext,void 0===i&&((i=new f).data={path:k().parse(o),$objectType:"Path"})}a.on("finish",(function(){L(K,p,ue).call(p,M(H,p).INFO,null,"Finished streaming response"),0!==o.length?(L(K,p,ue).call(p,M(H,p).INFO,null,"Content-Disposition header found [",o,"] is final filename"),a.close(),$().rename(r,o,(function(){e({data:i,response:n})}))):(L(K,p,ue).call(p,M(H,p).ERROR,null,"Content-Disposition header not found [",r,"] is final filename"),e({data:i,response:n}))})).on("error",(function(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Caught the following error :",e),error.data=L(K,p,ne).call(p,error),t(e)}))})).on("error",(function(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Caught the following error :",err),null!==e.response&&void 0!==e.response?e.data=L(K,p,re).call(p,e.response,f):e.data=L(K,p,ne).call(p,e),t(e)}))}}))):(P&&h.accept(P),new Promise((function(t,n){h.on("error",(function(e){L(K,p,ue).call(p,M(H,p).DEBUG,null,"Caught the following error :",e)})).retry(p.maxRetryAttempts,p.retryInterval,[]).then((function(r){L(K,p,fe).call(p,r,e,o,f,t,n)})).catch((function(e){L(K,p,ue).call(p,M(H,p).DEBUG,null,"Caught error during the request!"),L(K,p,ue).call(p,M(H,p).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=L(K,p,re).call(p,e.response,f):e.data=L(K,p,ne).call(p,e),n(e)}))})))}}])&&R(r.prototype,i),o&&R(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}();function Q(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function X(e){for(var t=0;t<e.length;t++)if(L(K,this,Q).call(this,e[t]))return e[t];return e[0]}function Z(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof P.Blob&&e instanceof P.Blob||"function"==typeof File&&e instanceof File}function ee(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];L(K,this,Z).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function te(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),L(K,n,ue).call(n,M(H,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var i={};r.apiKeyPrefix?i[r.name]=r.apiKeyPrefix+" "+r.apiKey:i[r.name]=r.apiKey,"header"===r.in?e.set(i):e.query(i)}L(K,n,ue).call(n,M(H,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),L(K,n,ue).call(n,M(H,n).DEBUG,null,"oauth2 applied to request");break;default:throw L(K,n,ue).call(n,M(H,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ne(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function re(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===E(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),b.convertToType(n,t)}function ie(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,i)}}function oe(e,t){return e<=0?e=t:e>M(q,this)&&(e=M(q,this)),e}function se(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,i=I(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;(o=o.split(";")[0]).includes("=")&&(o.trim(),t=t.concat(o).concat(";"))}}catch(e){i.e(e)}finally{i.f()}""!==t&&(t=t.substr(0,t.length-1))}_(V,this,t),L(K,this,ue).call(this,M(H,this).DEBUG,null,"Retained cookie :",t)}else _(V,this,null)}function ae(e){null!=M(V,this)&&e.set(L(K,this,ee).call(this,{Cookie:M(V,this)}))}function ue(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if("object"===E(e)&&"key"in e&&"value"in e&&"symbol"===E(e.value)||(e=M(H,this).INFO),!L(K,this,le).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var o=r.join(" ");o=L(K,this,ce).call(this)+" "+e.key+" - "+o,void 0!==M(W,this)&&null!==M(W,this)&&"function"==typeof M(W,this).log?M(W,this).log(o):console.log(o)}}function le(e){return!this.debug&&e===M(H,this).DEBUG}function ce(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function de(e){if("object"!==E(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function fe(e,t,n,r,i,o){try{L(K,this,ue).call(this,M(H,this).INFO,null,"Response Status :",e.status),L(K,this,ue).call(this,M(H,this).DEBUG,L(K,this,de),"Response Headers :",e.headers),L(K,this,se).call(this,e||{});var s=L(K,this,re).call(this,e,r);L(K,this,ue).call(this,M(H,this).DEBUG,null,"Response Body :",s),e.ok?(this.addEtagToReservedMap(e,s),L(K,this,ie).call(this,s,t,n),i({data:s,response:e})):(L(K,this,ue).call(this,M(H,this).ERROR,null,s),o(D(D({},e.error),{},{data:s})))}catch(e){L(K,this,ue).call(this,M(H,this).DEBUG,null,"Caught error while processing response!"),L(K,this,ue).call(this,M(H,this).ERROR,null,e),e.data=L(K,this,ne).call(this,e),o(e)}}b=Y,Y.instance=new Y;var pe={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return pe[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===pe.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(pe);const ye=pe;function he(e){return he="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},he(e)}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:t+""}var me=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function ge(e){return ge="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},ge(e)}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=$e(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$e(r.key),r)}}function $e(e){var t=function(e,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ge(t)?t:t+""}var Te=new WeakSet,ke=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Te),n.add(t),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oe(Oe(Oe({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("value","undefined or null"):new me("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Oe({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&je(t.prototype,n),r&&je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ee(e){return Ee="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},Ee(e)}function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=De(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,De(r.key),r)}}function De(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(t)?t:t+""}function Ie(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")}ke.prototype.name=void 0,ke.prototype.value=!1,ke.prototype.$reserved=void 0,ke.prototype.$objectType=void 0,ke.prototype.$unknownFields=void 0;var Ce=new WeakSet,Re=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ce),n.add(t),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fe(Fe(Fe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ie(Ce,this,Ue).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ie(Ce,this,Ue).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("value","undefined or null"):new me("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(o=[],s=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:Ee(r[0]),i=0;i<r.length;i++)switch(s){case"string":case"number":o.push(r[i]);break;default:throw"Unknown list of type "+s+" in data"}n.setValue(o)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:Ee(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Fe({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Ae(t.prototype,n),r&&Ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ue(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Ee(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Re.prototype.name=void 0,Re.prototype.value=void 0,Re.prototype.$reserved=void 0,Re.prototype.$objectType=void 0,Re.prototype.$unknownFields=void 0;var xe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(xe).find((function(t){return xe[t]===e}));return null==t?xe.$UNKNOWN:xe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xe.$UNKNOWN:case xe.$REDACTED:case xe.INFO:case xe.WARNING:case xe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(xe);const Ne=xe;function Me(e){return Me="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},Me(e)}function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ve(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ve(r.key),r)}}function Ve(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Me(t)?t:t+""}var We=new WeakSet,Be=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=We),n.add(t),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Le(Le(Le(Le(Le({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("severity","undefined or null"):new me("locale","undefined or null"):new me("message","undefined or null"):new me("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Ne.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Le({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Je(t.prototype,n),r&&Je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ze(e){return ze="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},ze(e)}function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ke(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}Be.prototype.code=void 0,Be.prototype.message=void 0,Be.prototype.locale="en_US",Be.prototype.severity=void 0,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var Ye=new WeakSet,Qe=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ye),n.add(t),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qe(qe(qe({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("rel","undefined or null"):new me("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=qe({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&He(t.prototype,n),r&&He(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xe(e){return Xe="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},Xe(e)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=nt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nt(r.key),r)}}function nt(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xe(t)?t:t+""}Qe.prototype.href=void 0,Qe.prototype.rel=void 0,Qe.prototype.$reserved=void 0,Qe.prototype.$objectType=void 0,Qe.prototype.$unknownFields=void 0;var rt=new WeakSet,it=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=rt),n.add(t),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return et(et(et(et(et(et({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("extraInfo","undefined or null"):new me("messages","undefined or null"):new me("totalAvailableResults","undefined or null"):new me("links","undefined or null"):new me("flags","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],r=t.flags,o=0;o<r.length;o++)i=ke.constructFromObject(r[o],void 0),s.push(i);n.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],r=t.links,o=0;o<r.length;o++)i=Qe.constructFromObject(r[o],void 0),s.push(i);n.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],r=t.messages,o=0;o<r.length;o++)i=Be.constructFromObject(r[o],void 0),s.push(i);n.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],r=t.extraInfo,o=0;o<r.length;o++)i=Re.constructFromObject(r[o],void 0),s.push(i);n.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=et({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&tt(t.prototype,n),r&&tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ot(e){return ot="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},ot(e)}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ct(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ct(r.key),r)}}function ct(e){var t=function(e,t){if("object"!=ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ot(t)?t:t+""}function dt(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")}it.prototype.flags=void 0,it.prototype.links=void 0,it.prototype.totalAvailableResults=void 0,it.prototype.messages=void 0,it.prototype.extraInfo=void 0,it.prototype.$reserved=void 0,it.prototype.$objectType=void 0,it.prototype.$unknownFields=void 0;var ft=new WeakSet,pt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=ft),n.add(t),this.$objectType="monitoring.v4.error.AppMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ut(ut(ut(ut(ut(ut(ut({},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()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:dt(ft,this,yt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:dt(ft,this,yt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("argumentsMap","undefined or null"):new me("errorGroup","undefined or null"):new me("locale","undefined or null"):new me("code","undefined or null"):new me("severity","undefined or null"):new me("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(Ne.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ut({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&lt(t.prototype,n),r&&lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?st(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===ot(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ht(e){return ht="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},ht(e)}function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=gt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gt(r.key),r)}}function gt(e){var t=function(e,t){if("object"!=ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ht(t)?t:t+""}pt.prototype.message=void 0,pt.prototype.severity=void 0,pt.prototype.code=void 0,pt.prototype.locale="en_US",pt.prototype.errorGroup=void 0,pt.prototype.argumentsMap=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var wt=new WeakSet,Ot=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wt),n.add(t),this.$objectType="monitoring.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bt(bt(bt(bt({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("attributePath","undefined or null"):new me("message","undefined or null"):new me("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=bt({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&mt(t.prototype,n),r&&mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jt(e){return jt="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},jt(e)}function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Pt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pt(r.key),r)}}function Pt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jt(t)?t:t+""}Ot.prototype.location=void 0,Ot.prototype.message=void 0,Ot.prototype.attributePath=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;var Et=new WeakSet,St=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Et),n.add(t),this.$objectType="monitoring.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Tt(Tt(Tt(Tt(Tt(Tt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),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((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("validationErrorMessages","undefined or null"):new me("path","undefined or null"):new me("error","undefined or null"):new me("statusCode","undefined or null"):new me("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],r=t.validationErrorMessages,o=0;o<r.length;o++)i=Ot.constructFromObject(r[o],void 0),s.push(i);n.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Tt({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&kt(t.prototype,n),r&&kt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function At(e){return At="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},At(e)}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Rt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rt(r.key),r)}}function Rt(e){var t=function(e,t){if("object"!=At(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=At(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==At(t)?t:t+""}function Ut(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.timestamp=void 0,St.prototype.statusCode=void 0,St.prototype.error=void 0,St.prototype.path=void 0,St.prototype.validationErrorMessages=void 0,St.prototype.$reserved=void 0,St.prototype.$objectType=void 0,St.prototype.$unknownFields=void 0;var xt=new WeakSet,Nt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=xt),n.add(t),this.$objectType="monitoring.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return It(It({},!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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ut(xt,this,Mt).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ut(xt,this,Mt).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(s=[],a=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:At(r[0]),o=0;o<r.length;o++){if("monitoring.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";i=pt.constructFromObject(r[o],void 0),s.push(i)}n.setError(s)}else{if("monitoring.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:At(t.error)))throw"Unknown datatype "+a+" in data";n.setError(St.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=It({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&Ct(t.prototype,n),r&&Ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Mt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===At(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}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)}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jt(r.key),r)}}function Jt(e){var t=function(e,t){if("object"!=_t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}Nt.prototype.error=void 0,Nt.prototype.$reserved=void 0,Nt.prototype.$objectType=void 0,Nt.prototype.$unknownFields=void 0;var Vt=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&Lt(e.prototype,null),t&&Lt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Wt(e){return Wt="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},Wt(e)}function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=qt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qt(r.key),r)}}function qt(e){var t=function(e,t){if("object"!=Wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wt(t)?t:t+""}var Ht=new WeakSet,Kt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ht),n.add(t),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?zt(zt({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new me("tenantId","undefined or null");if(!Vt.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 me("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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=zt({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Gt(t.prototype,n),r&&Gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Yt(e){return Yt="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},Yt(e)}function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=en(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,en(r.key),r)}}function en(e){var t=function(e,t){if("object"!=Yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yt(t)?t:t+""}function tn(e,t,n){return t=rn(t),function(e,t){if(t&&("object"===Yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nn()?Reflect.construct(t,n||[],rn(e).constructor):t.apply(e,n))}function nn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nn=function(){return!!e})()}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}Kt.prototype.tenantId=void 0,Kt.prototype.$reserved=void 0,Kt.prototype.$objectType=void 0,Kt.prototype.$unknownFields=void 0;var sn=new WeakSet,an=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=tn(this,t),r=sn),r.add(n),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&on(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return Xt(!1===e?Xt(Xt(Xt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Xt({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(null==e){if(!Vt.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 me("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===ye.update&&!Vt.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 me("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}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new me(t,"no such property exists"):new me("links","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Kt.constructFromObject(e,n,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&n.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(s=[],r=e.links,o=0;o<r.length;o++)i=Qe.constructFromObject(r[o],void 0),s.push(i);n.setLinks(s)}if(!a)for(var u in n.$unknownFields=Xt({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Zt(n.prototype,r),i&&Zt(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Kt);function un(e){return un="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},un(e)}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=fn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fn(r.key),r)}}function fn(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==un(t)?t:t+""}an.prototype.extId=void 0,an.prototype.links=void 0;var pn=new WeakSet,yn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=pn),n.add(t),this.$objectType="monitoring.v4.common.AlertEntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cn(cn(cn(cn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=cn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&dn(t.prototype,n),r&&dn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hn(e){return hn="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},hn(e)}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=gn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gn(r.key),r)}}function gn(e){var t=function(e,t){if("object"!=hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hn(t)?t:t+""}yn.prototype.type=void 0,yn.prototype.name=void 0,yn.prototype.extId=void 0,yn.prototype.$reserved=void 0,yn.prototype.$objectType=void 0,yn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wn),n.add(t),this.$objectType="monitoring.v4.common.EntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bn(bn(bn(bn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=bn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();On.prototype.type=void 0,On.prototype.name=void 0,On.prototype.extId=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var jn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AVAILABILITY:"AVAILABILITY",CAPACITY:"CAPACITY",CONFIGURATION:"CONFIGURATION",PERFORMANCE:"PERFORMANCE",SYSTEM_INDICATOR:"SYSTEM_INDICATOR",CPU_CAPACITY:"CPU_CAPACITY",MEMORY_CAPACITY:"MEMORY_CAPACITY",STORAGE_CAPACITY:"STORAGE_CAPACITY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(jn).find((function(t){return jn[t]===e}));return null==t?jn.$UNKNOWN:jn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case jn.$UNKNOWN:case jn.$REDACTED:case jn.AVAILABILITY:case jn.CAPACITY:case jn.CONFIGURATION:case jn.PERFORMANCE:case jn.SYSTEM_INDICATOR:case jn.CPU_CAPACITY:case jn.MEMORY_CAPACITY:case jn.STORAGE_CAPACITY:return;default:throw new Error("Invalid : must be ImpactType.{ $UNKNOWN|$REDACTED|AVAILABILITY|CAPACITY|CONFIGURATION|PERFORMANCE|SYSTEM_INDICATOR|CPU_CAPACITY|MEMORY_CAPACITY|STORAGE_CAPACITY }")}}};Object.freeze(jn);const $n=jn;function Tn(e){return Tn="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},Tn(e)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Sn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sn(r.key),r)}}function Sn(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tn(t)?t:t+""}var Fn=new WeakSet,An=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Fn),r.add(n),this.boolValue=t,this.$objectType="monitoring.v4.common.BoolValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getBoolValue",value:function(){return this.boolValue}},{key:"setBoolValue",value:function(e){this.boolValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pn(Pn({},void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["boolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("boolValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("boolValue")&&null!==t.boolValue&&void 0!==t.boolValue&&n.setBoolValue(t.boolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Pn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&En(t.prototype,n),r&&En(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();An.prototype.boolValue=void 0,An.prototype.$reserved=void 0,An.prototype.$objectType=void 0,An.prototype.$unknownFields=void 0;var Dn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EQUAL_TO:"EQUAL_TO",GREATER_THAN:"GREATER_THAN",GREATER_THAN_OR_EQUAL_TO:"GREATER_THAN_OR_EQUAL_TO",LESS_THAN:"LESS_THAN",LESS_THAN_OR_EQUAL_TO:"LESS_THAN_OR_EQUAL_TO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Dn).find((function(t){return Dn[t]===e}));return null==t?Dn.$UNKNOWN:Dn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Dn.$UNKNOWN:case Dn.$REDACTED:case Dn.EQUAL_TO:case Dn.GREATER_THAN:case Dn.GREATER_THAN_OR_EQUAL_TO:case Dn.LESS_THAN:case Dn.LESS_THAN_OR_EQUAL_TO:return;default:throw new Error("Invalid : must be ComparisonOperator.{ $UNKNOWN|$REDACTED|EQUAL_TO|GREATER_THAN|GREATER_THAN_OR_EQUAL_TO|LESS_THAN|LESS_THAN_OR_EQUAL_TO }")}}};Object.freeze(Dn);const In=Dn;var Cn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STATIC_THRESHOLD:"STATIC_THRESHOLD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Cn).find((function(t){return Cn[t]===e}));return null==t?Cn.$UNKNOWN:Cn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Cn.$UNKNOWN:case Cn.$REDACTED:case Cn.STATIC_THRESHOLD:return;default:throw new Error("Invalid : must be ConditionType.{ $UNKNOWN|$REDACTED|STATIC_THRESHOLD }")}}};Object.freeze(Cn);const Rn=Cn;var Un={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STRING:"STRING",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",LONG:"LONG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Un).find((function(t){return Un[t]===e}));return null==t?Un.$UNKNOWN:Un[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Un.$UNKNOWN:case Un.$REDACTED:case Un.STRING:case Un.BOOLEAN:case Un.DOUBLE:case Un.LONG:return;default:throw new Error("Invalid : must be DataType.{ $UNKNOWN|$REDACTED|STRING|BOOLEAN|DOUBLE|LONG }")}}};Object.freeze(Un);const xn=Un;function Nn(e){return Nn="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},Nn(e)}function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Jn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jn(r.key),r)}}function Jn(e){var t=function(e,t){if("object"!=Nn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nn(t)?t:t+""}var Vn=new WeakSet,Wn=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Vn),r.add(n),this.doubleValue=t,this.$objectType="monitoring.v4.common.DoubleValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getDoubleValue",value:function(){return this.doubleValue}},{key:"setDoubleValue",value:function(e){this.doubleValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _n(_n({},void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["doubleValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("doubleValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("doubleValue")&&null!==t.doubleValue&&void 0!==t.doubleValue&&n.setDoubleValue(t.doubleValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=_n({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Ln(t.prototype,n),r&&Ln(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bn(e){return Bn="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},Bn(e)}function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Hn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hn(r.key),r)}}function Hn(e){var t=function(e,t){if("object"!=Bn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bn(t)?t:t+""}Wn.prototype.doubleValue=void 0,Wn.prototype.$reserved=void 0,Wn.prototype.$objectType=void 0,Wn.prototype.$unknownFields=void 0;var Kn=new WeakSet,Yn=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Kn),r.add(n),this.intValue=t,this.$objectType="monitoring.v4.common.IntValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getIntValue",value:function(){return this.intValue}},{key:"setIntValue",value:function(e){this.intValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gn(Gn({},void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["intValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("intValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("intValue")&&null!==t.intValue&&void 0!==t.intValue&&n.setIntValue(t.intValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Gn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qn(e){return Qn="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},Qn(e)}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=tr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tr(r.key),r)}}function tr(e){var t=function(e,t){if("object"!=Qn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qn(t)?t:t+""}Yn.prototype.intValue=void 0,Yn.prototype.$reserved=void 0,Yn.prototype.$objectType=void 0,Yn.prototype.$unknownFields=void 0;var nr=new WeakSet,rr=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=nr),r.add(n),this.stringValue=t,this.$objectType="monitoring.v4.common.StringValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getStringValue",value:function(){return this.stringValue}},{key:"setStringValue",value:function(e){this.stringValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zn(Zn({},void 0!==this.getStringValue()&&null!==this.getStringValue()?{stringValue:this.getStringValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["stringValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"stringValue"!==t||void 0!==this.stringValue&&null!==this.stringValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("stringValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("stringValue")&&null!==t.stringValue&&void 0!==t.stringValue&&n.setStringValue(t.stringValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Zn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function or(e){return or="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},or(e)}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=lr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lr(r.key),r)}}function lr(e){var t=function(e,t){if("object"!=or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==or(t)?t:t+""}function cr(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")}rr.prototype.stringValue=void 0,rr.prototype.$reserved=void 0,rr.prototype.$objectType=void 0,rr.prototype.$unknownFields=void 0;var dr=new WeakSet,fr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dr),n.add(t),this.$objectType="monitoring.v4.common.MetricDetail",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getMetricDisplayName",value:function(){return this.metricDisplayName}},{key:"setMetricDisplayName",value:function(e){this.metricDisplayName=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getTriggerWaitTime",value:function(){return this.triggerWaitTime}},{key:"setTriggerWaitTime",value:function(e){this.triggerWaitTime=e}},{key:"getTriggerTime",value:function(){return this.triggerTime}},{key:"setTriggerTime",value:function(e){this.triggerTime=e}},{key:"getComparisonOperator",value:function(){return this.comparisonOperator}},{key:"setComparisonOperator",value:function(e){this.comparisonOperator=e}},{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getMetricCategory",value:function(){return this.metricCategory}},{key:"setMetricCategory",value:function(e){this.metricCategory=e}},{key:"getDataType",value:function(){return this.dataType}},{key:"setDataType",value:function(e){this.dataType=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=e}},{key:"getMetricValue",value:function(){return this.metricValue}},{key:"setMetricValue",value:function(e){this.metricValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ar(!1===e?ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTime()&&null!==this.getTriggerWaitTime()?{triggerWaitTime:this.getTriggerWaitTime()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:this.getTriggerTime()}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):cr(dr,this,pr).call(this,this.getThresholdValue(),!1)}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson(!1):Array.isArray(this.getMetricValue())?this.getMetricValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):cr(dr,this,pr).call(this,this.getMetricValue(),!1)}:{}):ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTime()&&null!==this.getTriggerWaitTime()?{triggerWaitTime:this.getTriggerWaitTime()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:this.getTriggerTime()}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):cr(dr,this,pr).call(this,this.getThresholdValue())}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson():Array.isArray(this.getMetricValue())?this.getMetricValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):cr(dr,this,pr).call(this,this.getMetricValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"metricName"!==t||void 0!==this.metricName&&null!==this.metricName?"metricDisplayName"!==t||void 0!==this.metricDisplayName&&null!==this.metricDisplayName?"unit"!==t||void 0!==this.unit&&null!==this.unit?"triggerWaitTime"!==t||void 0!==this.triggerWaitTime&&null!==this.triggerWaitTime?"triggerTime"!==t||void 0!==this.triggerTime&&null!==this.triggerTime?"comparisonOperator"!==t||void 0!==this.comparisonOperator&&null!==this.comparisonOperator?"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"metricCategory"!==t||void 0!==this.metricCategory&&null!==this.metricCategory?"dataType"!==t||void 0!==this.dataType&&null!==this.dataType?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"metricValue"!==t||void 0!==this.metricValue&&null!==this.metricValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("metricValue","undefined or null"):new me("thresholdValue","undefined or null"):new me("dataType","undefined or null"):new me("metricCategory","undefined or null"):new me("conditionType","undefined or null"):new me("comparisonOperator","undefined or null"):new me("triggerTime","undefined or null"):new me("triggerWaitTime","undefined or null"):new me("unit","undefined or null"):new me("metricDisplayName","undefined or null"):new me("metricName","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&n.setMetricName(t.metricName),t.hasOwnProperty("metricDisplayName")&&null!==t.metricDisplayName&&void 0!==t.metricDisplayName&&n.setMetricDisplayName(t.metricDisplayName),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&n.setUnit(t.unit),t.hasOwnProperty("triggerWaitTime")&&null!==t.triggerWaitTime&&void 0!==t.triggerWaitTime&&n.setTriggerWaitTime(t.triggerWaitTime),t.hasOwnProperty("triggerTime")&&null!==t.triggerTime&&void 0!==t.triggerTime&&n.setTriggerTime(t.triggerTime),t.hasOwnProperty("comparisonOperator")&&null!==t.comparisonOperator&&void 0!==t.comparisonOperator&&n.setComparisonOperator(In.constructFromObject(t.comparisonOperator)),t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&n.setConditionType(Rn.constructFromObject(t.conditionType)),t.hasOwnProperty("metricCategory")&&null!==t.metricCategory&&void 0!==t.metricCategory&&n.setMetricCategory(t.metricCategory),t.hasOwnProperty("dataType")&&null!==t.dataType&&void 0!==t.dataType&&n.setDataType(xn.constructFromObject(t.dataType)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(r=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:or(t.thresholdValue)){case"monitoring.v4.common.StringValue":n.setThresholdValue(rr.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.BoolValue":n.setThresholdValue(An.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.DoubleValue":n.setThresholdValue(Wn.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":n.setThresholdValue(Yn.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("metricValue")&&null!==t.metricValue&&void 0!==t.metricValue)switch(r=t.metricValue.hasOwnProperty("$objectType")?t.metricValue.$objectType:or(t.metricValue)){case"monitoring.v4.common.StringValue":n.setMetricValue(rr.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.BoolValue":n.setMetricValue(An.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.DoubleValue":n.setMetricValue(Wn.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.IntValue":n.setMetricValue(Yn.constructFromObject(t.metricValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!i)for(var o in n.$unknownFields=ar({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o])}return n}}],n&&ur(t.prototype,n),r&&ur(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ir(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===or(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hr(e){return hr="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},hr(e)}function vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=gr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gr(r.key),r)}}function gr(e){var t=function(e,t){if("object"!=hr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hr(t)?t:t+""}function wr(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")}fr.prototype.metricName=void 0,fr.prototype.metricDisplayName=void 0,fr.prototype.unit=void 0,fr.prototype.triggerWaitTime=void 0,fr.prototype.triggerTime=void 0,fr.prototype.comparisonOperator=void 0,fr.prototype.conditionType=void 0,fr.prototype.metricCategory=void 0,fr.prototype.dataType=void 0,fr.prototype.thresholdValue=void 0,fr.prototype.metricValue=void 0,fr.prototype.$reserved=void 0,fr.prototype.$objectType=void 0,fr.prototype.$unknownFields=void 0;var Or=new WeakSet,jr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Or),n.add(t),this.$objectType="monitoring.v4.common.Parameter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getParamName",value:function(){return this.paramName}},{key:"setParamName",value:function(e){this.paramName=e}},{key:"getParamValue",value:function(){return this.paramValue}},{key:"setParamValue",value:function(e){this.paramValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return br(br(br({},void 0!==this.getParamName()&&null!==this.getParamName()?{paramName:this.getParamName()}:{}),!1===e?void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson(!1):Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):wr(Or,this,$r).call(this,this.getParamValue(),!1)}:{}:void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson():Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):wr(Or,this,$r).call(this,this.getParamValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"paramName"!==t||void 0!==this.paramName&&null!==this.paramName?"paramValue"!==t||void 0!==this.paramValue&&null!==this.paramValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("paramValue","undefined or null"):new me("paramName","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("paramName")&&null!==t.paramName&&void 0!==t.paramName&&n.setParamName(t.paramName),t.hasOwnProperty("paramValue")&&null!==t.paramValue&&void 0!==t.paramValue)switch(r=t.paramValue.hasOwnProperty("$objectType")?t.paramValue.$objectType:hr(t.paramValue)){case"monitoring.v4.common.StringValue":n.setParamValue(rr.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.BoolValue":n.setParamValue(An.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.IntValue":n.setParamValue(Yn.constructFromObject(t.paramValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!i)for(var o in n.$unknownFields=br({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o])}return n}}],n&&mr(t.prototype,n),r&&mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $r(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===hr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}jr.prototype.paramName=void 0,jr.prototype.paramValue=void 0,jr.prototype.$reserved=void 0,jr.prototype.$objectType=void 0,jr.prototype.$unknownFields=void 0;var Tr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Tr).find((function(t){return Tr[t]===e}));return null==t?Tr.$UNKNOWN:Tr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Tr.$UNKNOWN:case Tr.$REDACTED:case Tr.INFO:case Tr.WARNING:case Tr.CRITICAL:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|INFO|WARNING|CRITICAL }")}}};Object.freeze(Tr);const kr=Tr;function Pr(e){return Pr="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},Pr(e)}function Er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ar(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ar(r.key),r)}}function Ar(e){var t=function(e,t){if("object"!=Pr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pr(t)?t:t+""}function Dr(e,t,n){return t=Cr(t),function(e,t){if(t&&("object"===Pr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ir()?Reflect.construct(t,n||[],Cr(e).constructor):t.apply(e,n))}function Ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ir=function(){return!!e})()}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}function Rr(e,t){return Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rr(e,t)}var Ur=new WeakSet,xr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Dr(this,t),r=Ur),r.add(n),e.$objectType="monitoring.v4.serviceability.RootCauseAnalysis",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rr(e,t)}(t,e),n=t,r=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=e}},{key:"toJson",value:function(e){return Sr(!1===e?Sr(Sr(Sr(Sr(Sr(Sr({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Sr(Sr(Sr(Sr({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"cause"!==t||void 0!==this.cause&&null!==this.cause?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"detail"!==t||void 0!==this.detail&&null!==this.detail?new me(t,"no such property exists"):new me("detail","undefined or null"):new me("resolution","undefined or null"):new me("cause","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("cause")&&null!==e.cause&&void 0!==e.cause&&n.setCause(e.cause),e.hasOwnProperty("resolution")&&null!==e.resolution&&void 0!==e.resolution&&n.setResolution(e.resolution),e.hasOwnProperty("detail")&&null!==e.detail&&void 0!==e.detail&&n.setDetail(e.detail),!r))for(var i in n.$unknownFields=Sr({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Fr(n.prototype,r),i&&Fr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function Nr(e){return Nr="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},Nr(e)}function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Jr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jr(r.key),r)}}function Jr(e){var t=function(e,t){if("object"!=Nr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nr(t)?t:t+""}xr.prototype.cause=void 0,xr.prototype.resolution=void 0,xr.prototype.detail=void 0;var Vr=new WeakSet,Wr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Vr),n.add(t),this.$objectType="monitoring.v4.serviceability.SeverityTrail",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getSeverityChangeTime",value:function(){return this.severityChangeTime}},{key:"setSeverityChangeTime",value:function(e){this.severityChangeTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _r(_r(_r({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getSeverityChangeTime()&&null!==this.getSeverityChangeTime()?{severityChangeTime:this.getSeverityChangeTime()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"severityChangeTime"!==t||void 0!==this.severityChangeTime&&null!==this.severityChangeTime?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("severityChangeTime","undefined or null"):new me("severity","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(kr.constructFromObject(t.severity)),t.hasOwnProperty("severityChangeTime")&&null!==t.severityChangeTime&&void 0!==t.severityChangeTime&&n.setSeverityChangeTime(t.severityChangeTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=_r({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Lr(t.prototype,n),r&&Lr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Br(e){return Br="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},Br(e)}function zr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Hr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hr(r.key),r)}}function Hr(e){var t=function(e,t){if("object"!=Br(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Br(t)?t:t+""}function Kr(e,t,n){return t=Qr(t),function(e,t){if(t&&("object"===Br(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yr()?Reflect.construct(t,n||[],Qr(e).constructor):t.apply(e,n))}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qr(e)}function Xr(e,t){return Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xr(e,t)}Wr.prototype.severity=void 0,Wr.prototype.severityChangeTime=void 0,Wr.prototype.$reserved=void 0,Wr.prototype.$objectType=void 0,Wr.prototype.$unknownFields=void 0;var Zr=new WeakSet,ei=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Kr(this,t),r=Zr),r.add(n),e.$objectType="monitoring.v4.serviceability.Alert",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xr(e,t)}(t,e),n=t,r=[{key:"getIsAcknowledged",value:function(){return this.isAcknowledged}},{key:"setIsAcknowledged",value:function(e){this.isAcknowledged=e}},{key:"getAcknowledgedByUsername",value:function(){return this.acknowledgedByUsername}},{key:"setAcknowledgedByUsername",value:function(e){this.acknowledgedByUsername=e}},{key:"getAcknowledgedTime",value:function(){return this.acknowledgedTime}},{key:"setAcknowledgedTime",value:function(e){this.acknowledgedTime=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getIsResolved",value:function(){return this.isResolved}},{key:"setIsResolved",value:function(e){this.isResolved=e}},{key:"getResolvedByUsername",value:function(){return this.resolvedByUsername}},{key:"setResolvedByUsername",value:function(e){this.resolvedByUsername=e}},{key:"getResolvedTime",value:function(){return this.resolvedTime}},{key:"setResolvedTime",value:function(e){this.resolvedTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getSeverityTrails",value:function(){return this.severityTrails}},{key:"setSeverityTrails",value:function(e){this.severityTrails=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getAlertType",value:function(){return this.alertType}},{key:"setAlertType",value:function(e){this.alertType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getOriginatingClusterUUID",value:function(){return this.originatingClusterUUID}},{key:"setOriginatingClusterUUID",value:function(e){this.originatingClusterUUID=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsUserDefined",value:function(){return this.isUserDefined}},{key:"setIsUserDefined",value:function(e){this.isUserDefined=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getRootCauseAnalysis",value:function(){return this.rootCauseAnalysis}},{key:"setRootCauseAnalysis",value:function(e){this.rootCauseAnalysis=e}},{key:"toJson",value:function(e){return Gr(!1===e?Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("isAcknowledged"===t&&(void 0===this.isAcknowledged||null===this.isAcknowledged))return new me("isAcknowledged","undefined or null");if("acknowledgedByUsername"===t&&(void 0===this.acknowledgedByUsername||null===this.acknowledgedByUsername))return new me("acknowledgedByUsername","undefined or null");if("acknowledgedTime"===t&&(void 0===this.acknowledgedTime||null===this.acknowledgedTime))return new me("acknowledgedTime","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new me("isAutoResolved","undefined or null");if("isResolved"===t&&(void 0===this.isResolved||null===this.isResolved))return new me("isResolved","undefined or null");if("resolvedByUsername"===t&&(void 0===this.resolvedByUsername||null===this.resolvedByUsername))return new me("resolvedByUsername","undefined or null");if("resolvedTime"===t&&(void 0===this.resolvedTime||null===this.resolvedTime))return new me("resolvedTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new me("affectedEntities","undefined or null");if(!Vt.validateMaxItems(this.affectedEntities,50))return new me("affectedEntities","does not satisfy required maxItems constraint: 50")}if("severityTrails"===t){if(void 0===this.severityTrails||null===this.severityTrails)return new me("severityTrails","undefined or null");if(!Vt.validateMaxItems(this.severityTrails,3))return new me("severityTrails","does not satisfy required maxItems constraint: 3")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new me("metricDetails","undefined or null");if(!Vt.validateMaxItems(this.metricDetails,50))return new me("metricDetails","does not satisfy required maxItems constraint: 50")}if("title"===t&&(void 0===this.title||null===this.title))return new me("title","undefined or null");if("alertType"===t&&(void 0===this.alertType||null===this.alertType))return new me("alertType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new me("clusterUUID","undefined or null");if(!Vt.validatePattern(this.clusterUUID,/^[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 me("clusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new me("lastUpdatedTime","undefined or null");if("message"===t&&(void 0===this.message||null===this.message))return new me("message","undefined or null");if("originatingClusterUUID"===t){if(void 0===this.originatingClusterUUID||null===this.originatingClusterUUID)return new me("originatingClusterUUID","undefined or null");if(!Vt.validatePattern(this.originatingClusterUUID,/^[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 me("originatingClusterUUID","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("severity"===t&&(void 0===this.severity||null===this.severity))return new me("severity","undefined or null");if("isUserDefined"===t&&(void 0===this.isUserDefined||null===this.isUserDefined))return new me("isUserDefined","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new me("parameters","undefined or null");if(!Vt.validateMaxItems(this.parameters,50))return new me("parameters","does not satisfy required maxItems constraint: 50")}if("serviceName"===t&&(void 0===this.serviceName||null===this.serviceName))return new me("serviceName","undefined or null");if("rootCauseAnalysis"===t){if(void 0===this.rootCauseAnalysis||null===this.rootCauseAnalysis)return new me("rootCauseAnalysis","undefined or null");if(!Vt.validateMaxItems(this.rootCauseAnalysis,15))return new me("rootCauseAnalysis","does not satisfy required maxItems constraint: 15")}return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("isAcknowledged")&&null!==e.isAcknowledged&&void 0!==e.isAcknowledged&&n.setIsAcknowledged(e.isAcknowledged),e.hasOwnProperty("acknowledgedByUsername")&&null!==e.acknowledgedByUsername&&void 0!==e.acknowledgedByUsername&&n.setAcknowledgedByUsername(e.acknowledgedByUsername),e.hasOwnProperty("acknowledgedTime")&&null!==e.acknowledgedTime&&void 0!==e.acknowledgedTime&&n.setAcknowledgedTime(e.acknowledgedTime),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&n.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("isResolved")&&null!==e.isResolved&&void 0!==e.isResolved&&n.setIsResolved(e.isResolved),e.hasOwnProperty("resolvedByUsername")&&null!==e.resolvedByUsername&&void 0!==e.resolvedByUsername&&n.setResolvedByUsername(e.resolvedByUsername),e.hasOwnProperty("resolvedTime")&&null!==e.resolvedTime&&void 0!==e.resolvedTime&&n.setResolvedTime(e.resolvedTime),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(yn.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(s=[],r=e.affectedEntities,o=0;o<r.length;o++)i=On.constructFromObject(r[o],void 0),s.push(i);n.setAffectedEntities(s)}if(e.hasOwnProperty("severityTrails")&&null!==e.severityTrails&&void 0!==e.severityTrails){for(s=[],r=e.severityTrails,o=0;o<r.length;o++)i=Wr.constructFromObject(r[o],void 0),s.push(i);n.setSeverityTrails(s)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(s=[],r=e.metricDetails,o=0;o<r.length;o++)i=fr.constructFromObject(r[o],void 0),s.push(i);n.setMetricDetails(s)}if(e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&n.setTitle(e.title),e.hasOwnProperty("alertType")&&null!==e.alertType&&void 0!==e.alertType&&n.setAlertType(e.alertType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(s=[],r=e.classifications,o=0;o<r.length;o++)s.push(r[o]);n.setClassifications(s)}if(e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&n.setClusterUUID(e.clusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(s=[],r=e.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&n.setMessage(e.message),e.hasOwnProperty("originatingClusterUUID")&&null!==e.originatingClusterUUID&&void 0!==e.originatingClusterUUID&&n.setOriginatingClusterUUID(e.originatingClusterUUID),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&n.setSeverity(kr.constructFromObject(e.severity)),e.hasOwnProperty("isUserDefined")&&null!==e.isUserDefined&&void 0!==e.isUserDefined&&n.setIsUserDefined(e.isUserDefined),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(s=[],r=e.parameters,o=0;o<r.length;o++)i=jr.constructFromObject(r[o],void 0),s.push(i);n.setParameters(s)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("rootCauseAnalysis")&&null!==e.rootCauseAnalysis&&void 0!==e.rootCauseAnalysis){for(s=[],r=e.rootCauseAnalysis,o=0;o<r.length;o++)i=xr.constructFromObject(r[o],void 0),s.push(i);n.setRootCauseAnalysis(s)}if(!a)for(var u in n.$unknownFields=Gr({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&qr(n.prototype,r),i&&qr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ni(e){return ni="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},ni(e)}function ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=si(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,si(r.key),r)}}function si(e){var t=function(e,t){if("object"!=ni(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ni(t)?t:t+""}function ai(e,t,n){return t=li(t),function(e,t){if(t&&("object"===ni(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ui()?Reflect.construct(t,n||[],li(e).constructor):t.apply(e,n))}function ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ui=function(){return!!e})()}function li(e){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},li(e)}function ci(e,t){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ci(e,t)}function di(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")}ei.prototype.isAcknowledged=!1,ei.prototype.acknowledgedByUsername=void 0,ei.prototype.acknowledgedTime=void 0,ei.prototype.isAutoResolved=!1,ei.prototype.isResolved=!1,ei.prototype.resolvedByUsername=void 0,ei.prototype.resolvedTime=void 0,ei.prototype.sourceEntity=void 0,ei.prototype.affectedEntities=void 0,ei.prototype.severityTrails=void 0,ei.prototype.metricDetails=void 0,ei.prototype.title=void 0,ei.prototype.alertType=void 0,ei.prototype.classifications=void 0,ei.prototype.clusterUUID=void 0,ei.prototype.creationTime=void 0,ei.prototype.impactTypes=void 0,ei.prototype.lastUpdatedTime=void 0,ei.prototype.message=void 0,ei.prototype.originatingClusterUUID=void 0,ei.prototype.severity=void 0,ei.prototype.isUserDefined=!1,ei.prototype.parameters=void 0,ei.prototype.serviceName=void 0,ei.prototype.rootCauseAnalysis=void 0;var fi=new WeakSet,pi=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ai(this,t),r=fi),r.add(n),e.$objectType="monitoring.v4.serviceability.ListAlertsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ci(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ii(ii(ii({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):di(fi,this,yi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):di(fi,this,yi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:ni(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.Alert"!==a)throw"Unknown list of type "+a+" in data";i=ei.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ni(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=ii({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&oi(n.prototype,r),i&&oi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function yi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ti(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===ni(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vi(e){return vi="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},vi(e)}function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=wi(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wi(r.key),r)}}function wi(e){var t=function(e,t){if("object"!=vi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vi(t)?t:t+""}function Oi(e,t,n){return t=$i(t),function(e,t){if(t&&("object"===vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ji()?Reflect.construct(t,n||[],$i(e).constructor):t.apply(e,n))}function ji(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ji=function(){return!!e})()}function $i(e){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$i(e)}function Ti(e,t){return Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ti(e,t)}function ki(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")}pi.prototype.metadata=void 0,pi.prototype.data=void 0,pi.prototype.$reserved=void 0,pi.prototype.$objectType=void 0,pi.prototype.$unknownFields=void 0;var Pi=new WeakSet,Ei=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Oi(this,t),r=Pi),r.add(n),e.$objectType="monitoring.v4.serviceability.GetAlertApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ti(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mi(mi(mi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ki(Pi,this,Si).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ki(Pi,this,Si).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:vi(e.data)){case"monitoring.v4.serviceability.Alert":n.setData(ei.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=mi({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&gi(n.prototype,r),i&&gi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Si(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===vi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Fi(e){return Fi="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},Fi(e)}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ci(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ci(r.key),r)}}function Ci(e){var t=function(e,t){if("object"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fi(t)?t:t+""}function Ri(e,t){return e.get(Ui(e,t))}function Ui(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")}Ei.prototype.metadata=void 0,Ei.prototype.data=void 0,Ei.prototype.$reserved=void 0,Ei.prototype.$objectType=void 0,Ei.prototype.$unknownFields=void 0;var xi=new WeakMap,Ni=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=xi),o.set(i,s),this.apiClient=t||Y.instance,n=xi,r=new Set,n.set(Ui(n,this),r),Ri(xi,this).add("authorization"),Ri(xi,this).add("cookie"),Ri(xi,this).add("host"),Ri(xi,this).add("user-agent")},t=[{key:"getAlertById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getAlertById");var r={extId:e},i={};Object.keys(n).forEach((function(e){Ri(xi,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Di({},i),s=Ei;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listAlerts",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Di(Di(Di(Di(Di({},(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}:{}),i={};Object.keys(n).forEach((function(e){Ri(xi,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Di({},i),s=pi;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&Ii(e.prototype,t),n&&Ii(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Mi(e){return Mi="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},Mi(e)}function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Vi(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vi(r.key),r)}}function Vi(e){var t=function(e,t){if("object"!=Mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mi(t)?t:t+""}var Wi=new WeakSet,Bi=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Wi),n.add(t),this.$objectType="monitoring.v4.serviceability.EmailConfigurationRule",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterUuids",value:function(){return this.clusterUuids}},{key:"setClusterUuids",value:function(e){this.clusterUuids=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getHasGlobalEmailContactList",value:function(){return this.hasGlobalEmailContactList}},{key:"setHasGlobalEmailContactList",value:function(e){this.hasGlobalEmailContactList=e}},{key:"getMatchPhrases",value:function(){return this.matchPhrases}},{key:"setMatchPhrases",value:function(e){this.matchPhrases=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getSeverities",value:function(){return this.severities}},{key:"setSeverities",value:function(e){this.severities=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Li(Li(Li(Li(Li(Li(Li(Li({},void 0!==this.getClusterUuids()&&null!==this.getClusterUuids()?{clusterUuids:this.getClusterUuids()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getHasGlobalEmailContactList()&&null!==this.getHasGlobalEmailContactList()?{hasGlobalEmailContactList:this.getHasGlobalEmailContactList()}:{}),void 0!==this.getMatchPhrases()&&null!==this.getMatchPhrases()?{matchPhrases:this.getMatchPhrases()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients()}:{}),void 0!==this.getSeverities()&&null!==this.getSeverities()?{severities:this.getSeverities()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterUuids"===t){if(void 0===this.clusterUuids||null===this.clusterUuids)return new me("clusterUuids","undefined or null");if(!Vt.validateMaxItems(this.clusterUuids,50))return new me("clusterUuids","does not satisfy required maxItems constraint: 50")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("hasGlobalEmailContactList"===t&&(void 0===this.hasGlobalEmailContactList||null===this.hasGlobalEmailContactList))return new me("hasGlobalEmailContactList","undefined or null");if("matchPhrases"===t){if(void 0===this.matchPhrases||null===this.matchPhrases)return new me("matchPhrases","undefined or null");if(!Vt.validateMaxItems(this.matchPhrases,100))return new me("matchPhrases","does not satisfy required maxItems constraint: 100")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new me("recipients","undefined or null");if(!Vt.validateMaxItems(this.recipients,100))return new me("recipients","does not satisfy required maxItems constraint: 100")}if("severities"===t){if(void 0===this.severities||null===this.severities)return new me("severities","undefined or null");if(!Vt.validateMaxItems(this.severities,3))return new me("severities","does not satisfy required maxItems constraint: 3")}return"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("isEnabled","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("clusterUuids")&&null!==t.clusterUuids&&void 0!==t.clusterUuids){for(s=[],r=t.clusterUuids,o=0;o<r.length;o++)s.push(r[o]);n.setClusterUuids(s)}if(t.hasOwnProperty("impactTypes")&&null!==t.impactTypes&&void 0!==t.impactTypes){for(s=[],r=t.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(t.hasOwnProperty("hasGlobalEmailContactList")&&null!==t.hasGlobalEmailContactList&&void 0!==t.hasGlobalEmailContactList&&n.setHasGlobalEmailContactList(t.hasGlobalEmailContactList),t.hasOwnProperty("matchPhrases")&&null!==t.matchPhrases&&void 0!==t.matchPhrases){for(s=[],r=t.matchPhrases,o=0;o<r.length;o++)s.push(r[o]);n.setMatchPhrases(s)}if(t.hasOwnProperty("recipients")&&null!==t.recipients&&void 0!==t.recipients){for(s=[],r=t.recipients,o=0;o<r.length;o++)s.push(r[o]);n.setRecipients(s)}if(t.hasOwnProperty("severities")&&null!==t.severities&&void 0!==t.severities){for(s=[],r=t.severities,o=0;o<r.length;o++)i=kr.constructFromObject(r[o],void 0),s.push(i);n.setSeverities(s)}if(t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Li({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Ji(t.prototype,n),r&&Ji(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zi(e){return zi="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},zi(e)}function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ki(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ki(r.key),r)}}function Ki(e){var t=function(e,t){if("object"!=zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zi(t)?t:t+""}Bi.prototype.clusterUuids=void 0,Bi.prototype.impactTypes=void 0,Bi.prototype.hasGlobalEmailContactList=!1,Bi.prototype.matchPhrases=void 0,Bi.prototype.recipients=void 0,Bi.prototype.severities=void 0,Bi.prototype.isEnabled=!0,Bi.prototype.$reserved=void 0,Bi.prototype.$objectType=void 0,Bi.prototype.$unknownFields=void 0;var Yi=new WeakSet,Qi=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Yi),n.add(t),this.$objectType="monitoring.v4.serviceability.EmailTemplate",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getBodySuffix",value:function(){return this.bodySuffix}},{key:"setBodySuffix",value:function(e){this.bodySuffix=e}},{key:"getSubjectPrefix",value:function(){return this.subjectPrefix}},{key:"setSubjectPrefix",value:function(e){this.subjectPrefix=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qi(qi(qi({},void 0!==this.getBodySuffix()&&null!==this.getBodySuffix()?{bodySuffix:this.getBodySuffix()}:{}),void 0!==this.getSubjectPrefix()&&null!==this.getSubjectPrefix()?{subjectPrefix:this.getSubjectPrefix()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("bodySuffix"===t&&(void 0===this.bodySuffix||null===this.bodySuffix))return new me("bodySuffix","undefined or null");if("subjectPrefix"===t){if(void 0===this.subjectPrefix||null===this.subjectPrefix)return new me("subjectPrefix","undefined or null");if(!Vt.validateMaxLength(this.subjectPrefix,256))return new me("subjectPrefix","does not satisfy required maxLength constraint: 256")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("bodySuffix")&&null!==t.bodySuffix&&void 0!==t.bodySuffix&&n.setBodySuffix(t.bodySuffix),t.hasOwnProperty("subjectPrefix")&&null!==t.subjectPrefix&&void 0!==t.subjectPrefix&&n.setSubjectPrefix(t.subjectPrefix),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=qi({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Hi(t.prototype,n),r&&Hi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Qi.prototype.bodySuffix=void 0,Qi.prototype.subjectPrefix=void 0,Qi.prototype.$reserved=void 0,Qi.prototype.$objectType=void 0,Qi.prototype.$unknownFields=void 0;var Xi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCESS:"SUCCESS",FAILED:"FAILED",RETRYING:"RETRYING",DISABLED:"DISABLED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Xi).find((function(t){return Xi[t]===e}));return null==t?Xi.$UNKNOWN:Xi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xi.$UNKNOWN:case Xi.$REDACTED:case Xi.SUCCESS:case Xi.FAILED:case Xi.RETRYING:case Xi.DISABLED:return;default:throw new Error("Invalid : must be ConnectionStatus.{ $UNKNOWN|$REDACTED|SUCCESS|FAILED|RETRYING|DISABLED }")}}};Object.freeze(Xi);const Zi=Xi;function eo(e){return eo="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},eo(e)}function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=io(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,io(r.key),r)}}function io(e){var t=function(e,t){if("object"!=eo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eo(t)?t:t+""}var oo=new WeakSet,so=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=oo),n.add(t),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return no(no(no({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("value","undefined or null"):new me("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=no({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ro(t.prototype,n),r&&ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ao(e){return ao="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},ao(e)}function uo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=fo(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fo(r.key),r)}}function fo(e){var t=function(e,t){if("object"!=ao(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ao(t)?t:t+""}so.prototype.name=void 0,so.prototype.value="",so.prototype.$reserved=void 0,so.prototype.$objectType=void 0,so.prototype.$unknownFields=void 0;var po=new WeakSet,yo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=po),n.add(t),this.$objectType="monitoring.v4.serviceability.ParameterizedMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(e){this.attributes=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return lo(lo(lo({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributes()&&null!==this.getAttributes()?{attributes:this.getAttributes().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"attributes"!==t||void 0!==this.attributes&&null!==this.attributes?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("attributes","undefined or null"):new me("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributes")&&null!==t.attributes&&void 0!==t.attributes){for(s=[],r=t.attributes,o=0;o<r.length;o++)i=so.constructFromObject(r[o],void 0),s.push(i);n.setAttributes(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=lo({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&co(t.prototype,n),r&&co(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ho(e){return ho="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},ho(e)}function vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=go(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,go(r.key),r)}}function go(e){var t=function(e,t){if("object"!=ho(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ho(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ho(t)?t:t+""}yo.prototype.message=void 0,yo.prototype.attributes=void 0,yo.prototype.$reserved=void 0,yo.prototype.$objectType=void 0,yo.prototype.$unknownFields=void 0;var wo=new WeakSet,Oo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wo),n.add(t),this.$objectType="monitoring.v4.serviceability.CommunicationStatus",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getLastCheckedTime",value:function(){return this.lastCheckedTime}},{key:"setLastCheckedTime",value:function(e){this.lastCheckedTime=e}},{key:"getLastChangedTime",value:function(){return this.lastChangedTime}},{key:"setLastChangedTime",value:function(e){this.lastChangedTime=e}},{key:"getLastSuccessfulTransmissionTime",value:function(){return this.lastSuccessfulTransmissionTime}},{key:"setLastSuccessfulTransmissionTime",value:function(e){this.lastSuccessfulTransmissionTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bo(bo(bo(bo(bo(bo({},void 0!==this.getLastCheckedTime()&&null!==this.getLastCheckedTime()?{lastCheckedTime:this.getLastCheckedTime()}:{}),void 0!==this.getLastChangedTime()&&null!==this.getLastChangedTime()?{lastChangedTime:this.getLastChangedTime()}:{}),void 0!==this.getLastSuccessfulTransmissionTime()&&null!==this.getLastSuccessfulTransmissionTime()?{lastSuccessfulTransmissionTime:this.getLastSuccessfulTransmissionTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"lastCheckedTime"!==t||void 0!==this.lastCheckedTime&&null!==this.lastCheckedTime?"lastChangedTime"!==t||void 0!==this.lastChangedTime&&null!==this.lastChangedTime?"lastSuccessfulTransmissionTime"!==t||void 0!==this.lastSuccessfulTransmissionTime&&null!==this.lastSuccessfulTransmissionTime?"status"!==t||void 0!==this.status&&null!==this.status?"message"!==t||void 0!==this.message&&null!==this.message?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("message","undefined or null"):new me("status","undefined or null"):new me("lastSuccessfulTransmissionTime","undefined or null"):new me("lastChangedTime","undefined or null"):new me("lastCheckedTime","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("lastCheckedTime")&&null!==t.lastCheckedTime&&void 0!==t.lastCheckedTime&&n.setLastCheckedTime(t.lastCheckedTime),t.hasOwnProperty("lastChangedTime")&&null!==t.lastChangedTime&&void 0!==t.lastChangedTime&&n.setLastChangedTime(t.lastChangedTime),t.hasOwnProperty("lastSuccessfulTransmissionTime")&&null!==t.lastSuccessfulTransmissionTime&&void 0!==t.lastSuccessfulTransmissionTime&&n.setLastSuccessfulTransmissionTime(t.lastSuccessfulTransmissionTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(Zi.constructFromObject(t.status)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(yo.constructFromObject(t.message)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=bo({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&mo(t.prototype,n),r&&mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jo(e){return jo="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},jo(e)}function $o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Po(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Po(r.key),r)}}function Po(e){var t=function(e,t){if("object"!=jo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jo(t)?t:t+""}Oo.prototype.lastCheckedTime=void 0,Oo.prototype.lastChangedTime=void 0,Oo.prototype.lastSuccessfulTransmissionTime=void 0,Oo.prototype.status=void 0,Oo.prototype.message=void 0,Oo.prototype.$reserved=void 0,Oo.prototype.$objectType=void 0,Oo.prototype.$unknownFields=void 0;var Eo=new WeakSet,So=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Eo),n.add(t),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return To(To({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new me("value","undefined or null");if(!Vt.validatePattern(this.value,/^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/))return new me("value","does not satisfy required pattern: /^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=To({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ko(t.prototype,n),r&&ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fo(e){return Fo="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},Fo(e)}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Co(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Co(r.key),r)}}function Co(e){var t=function(e,t){if("object"!=Fo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fo(t)?t:t+""}So.prototype.value=void 0,So.prototype.$reserved=void 0,So.prototype.$objectType=void 0,So.prototype.$unknownFields=void 0;var Ro=new WeakSet,Uo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ro),n.add(t),this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Do(Do(Do({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new me("value","undefined or null");if(!Vt.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 me("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 me("prefixLength","undefined or null");if(!Vt.validateMaximum(this.prefixLength,32))return new me("prefixLength","does not satisfy required maximum constraint: 32");if(!Vt.validateMinimum(this.prefixLength,0))return new me("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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Do({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Io(t.prototype,n),r&&Io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xo(e){return xo="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},xo(e)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Lo(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lo(r.key),r)}}function Lo(e){var t=function(e,t){if("object"!=xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xo(t)?t:t+""}Uo.prototype.value=void 0,Uo.prototype.prefixLength=32,Uo.prototype.$reserved=void 0,Uo.prototype.$objectType=void 0,Uo.prototype.$unknownFields=void 0;var Jo=new WeakSet,Vo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Jo),n.add(t),this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mo(Mo(Mo({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new me("value","undefined or null");if(!Vt.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new me("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new me("prefixLength","undefined or null");if(!Vt.validateMaximum(this.prefixLength,128))return new me("prefixLength","does not satisfy required maximum constraint: 128");if(!Vt.validateMinimum(this.prefixLength,0))return new me("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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Mo({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&_o(t.prototype,n),r&&_o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wo(e){return Wo="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},Wo(e)}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=qo(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qo(r.key),r)}}function qo(e){var t=function(e,t){if("object"!=Wo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wo(t)?t:t+""}Vo.prototype.value=void 0,Vo.prototype.prefixLength=128,Vo.prototype.$reserved=void 0,Vo.prototype.$objectType=void 0,Vo.prototype.$unknownFields=void 0;var Ho=new WeakSet,Ko=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ho),n.add(t),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return zo(zo(zo(zo({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("fqdn","undefined or null"):new me("ipv6","undefined or null"):new me("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Uo.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(Vo.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(So.constructFromObject(t.fqdn)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=zo({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Go(t.prototype,n),r&&Go(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ko.prototype.ipv4=void 0,Ko.prototype.ipv6=void 0,Ko.prototype.fqdn=void 0,Ko.prototype.$reserved=void 0,Ko.prototype.$objectType=void 0,Ko.prototype.$unknownFields=void 0;var Yo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HTTP:"HTTP",HTTPS:"HTTPS",SOCKS:"SOCKS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Yo).find((function(t){return Yo[t]===e}));return null==t?Yo.$UNKNOWN:Yo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Yo.$UNKNOWN:case Yo.$REDACTED:case Yo.HTTP:case Yo.HTTPS:case Yo.SOCKS:return;default:throw new Error("Invalid : must be ProxyType.{ $UNKNOWN|$REDACTED|HTTP|HTTPS|SOCKS }")}}};Object.freeze(Yo);const Qo=Yo;function Xo(e){return Xo="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},Xo(e)}function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ns(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ns(r.key),r)}}function ns(e){var t=function(e,t){if("object"!=Xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xo(t)?t:t+""}var rs=new WeakSet,is=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=rs),n.add(t),this.$objectType="monitoring.v4.serviceability.HttpProxy",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAddressValue",value:function(){return this.addressValue}},{key:"setAddressValue",value:function(e){this.addressValue=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getProxyTypes",value:function(){return this.proxyTypes}},{key:"setProxyTypes",value:function(e){this.proxyTypes=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return es(es(es(es(es(es(es({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAddressValue()&&null!==this.getAddressValue()?{addressValue:this.getAddressValue().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getProxyTypes()&&null!==this.getProxyTypes()?{proxyTypes:this.getProxyTypes()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("addressValue"===t&&(void 0===this.addressValue||null===this.addressValue))return new me("addressValue","undefined or null");if("port"===t){if(void 0===this.port||null===this.port)return new me("port","undefined or null");if(!Vt.validateMaximum(this.port,65536))return new me("port","does not satisfy required maximum constraint: 65536");if(!Vt.validateMinimum(this.port,0))return new me("port","does not satisfy required minimum constraint: 0")}return"username"!==t||void 0!==this.username&&null!==this.username?"password"!==t||void 0!==this.password&&null!==this.password?"proxyTypes"!==t||void 0!==this.proxyTypes&&null!==this.proxyTypes?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("proxyTypes","undefined or null"):new me("password","undefined or null"):new me("username","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("addressValue")&&null!==t.addressValue&&void 0!==t.addressValue&&n.setAddressValue(Ko.constructFromObject(t.addressValue)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("proxyTypes")&&null!==t.proxyTypes&&void 0!==t.proxyTypes){for(s=[],r=t.proxyTypes,o=0;o<r.length;o++)i=Qo.constructFromObject(r[o],void 0),s.push(i);n.setProxyTypes(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=es({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&ts(t.prototype,n),r&&ts(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function os(e){return os="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},os(e)}function ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ls(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function us(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ls(r.key),r)}}function ls(e){var t=function(e,t){if("object"!=os(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=os(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==os(t)?t:t+""}is.prototype.name=void 0,is.prototype.addressValue=void 0,is.prototype.port=void 0,is.prototype.username=void 0,is.prototype.password=void 0,is.prototype.proxyTypes=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var cs=new WeakSet,ds=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=cs),n.add(t),this.$objectType="monitoring.v4.serviceability.ServiceCenter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return as(as(as(as(as({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new me("ipAddress","undefined or null");if(!Vt.validatePattern(this.ipAddress,/^(?:(?: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 me("ipAddress","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("username"===t&&(void 0===this.username||null===this.username))return new me("username","undefined or null");if("port"===t){if(void 0===this.port||null===this.port)return new me("port","undefined or null");if(!Vt.validateMaximum(this.port,65536))return new me("port","does not satisfy required maximum constraint: 65536");if(!Vt.validateMinimum(this.port,0))return new me("port","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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=as({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&us(t.prototype,n),r&&us(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fs(e){return fs="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},fs(e)}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=vs(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vs(r.key),r)}}function vs(e){var t=function(e,t){if("object"!=fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fs(t)?t:t+""}ds.prototype.name=void 0,ds.prototype.ipAddress=void 0,ds.prototype.username=void 0,ds.prototype.port=void 0,ds.prototype.$reserved=void 0,ds.prototype.$objectType=void 0,ds.prototype.$unknownFields=void 0;var bs=new WeakSet,ms=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=bs),n.add(t),this.$objectType="monitoring.v4.serviceability.RemoteTunnelDetails",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getHttpProxy",value:function(){return this.httpProxy}},{key:"setHttpProxy",value:function(e){this.httpProxy=e}},{key:"getServiceCenter",value:function(){return this.serviceCenter}},{key:"setServiceCenter",value:function(e){this.serviceCenter=e}},{key:"getConnectionStatus",value:function(){return this.connectionStatus}},{key:"setConnectionStatus",value:function(e){this.connectionStatus=e}},{key:"getTransportStatus",value:function(){return this.transportStatus}},{key:"setTransportStatus",value:function(e){this.transportStatus=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ys(ys(ys(ys(ys({},void 0!==this.getHttpProxy()&&null!==this.getHttpProxy()?{httpProxy:this.getHttpProxy().toJson(!1)}:{}),void 0!==this.getServiceCenter()&&null!==this.getServiceCenter()?{serviceCenter:this.getServiceCenter().toJson(!1)}:{}),void 0!==this.getConnectionStatus()&&null!==this.getConnectionStatus()?{connectionStatus:this.getConnectionStatus().toJson(!1)}:{}),void 0!==this.getTransportStatus()&&null!==this.getTransportStatus()?{transportStatus:this.getTransportStatus().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"httpProxy"!==t||void 0!==this.httpProxy&&null!==this.httpProxy?"serviceCenter"!==t||void 0!==this.serviceCenter&&null!==this.serviceCenter?"connectionStatus"!==t||void 0!==this.connectionStatus&&null!==this.connectionStatus?"transportStatus"!==t||void 0!==this.transportStatus&&null!==this.transportStatus?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("transportStatus","undefined or null"):new me("connectionStatus","undefined or null"):new me("serviceCenter","undefined or null"):new me("httpProxy","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("httpProxy")&&null!==t.httpProxy&&void 0!==t.httpProxy&&n.setHttpProxy(is.constructFromObject(t.httpProxy)),t.hasOwnProperty("serviceCenter")&&null!==t.serviceCenter&&void 0!==t.serviceCenter&&n.setServiceCenter(ds.constructFromObject(t.serviceCenter)),t.hasOwnProperty("connectionStatus")&&null!==t.connectionStatus&&void 0!==t.connectionStatus&&n.setConnectionStatus(Oo.constructFromObject(t.connectionStatus)),t.hasOwnProperty("transportStatus")&&null!==t.transportStatus&&void 0!==t.transportStatus&&n.setTransportStatus(Oo.constructFromObject(t.transportStatus)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ys({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&hs(t.prototype,n),r&&hs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gs(e){return gs="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},gs(e)}function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=$s(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function js(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$s(r.key),r)}}function $s(e){var t=function(e,t){if("object"!=gs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}function Ts(e,t,n){return t=Ps(t),function(e,t){if(t&&("object"===gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ks()?Reflect.construct(t,n||[],Ps(e).constructor):t.apply(e,n))}function ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ks=function(){return!!e})()}function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ps(e)}function Es(e,t){return Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Es(e,t)}ms.prototype.httpProxy=void 0,ms.prototype.serviceCenter=void 0,ms.prototype.connectionStatus=void 0,ms.prototype.transportStatus=void 0,ms.prototype.$reserved=void 0,ms.prototype.$objectType=void 0,ms.prototype.$unknownFields=void 0;var Ss=new WeakSet,Fs=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ts(this,t),r=Ss),r.add(n),e.$objectType="monitoring.v4.serviceability.AlertEmailConfiguration",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Es(e,t)}(t,e),n=t,r=[{key:"getDefaultNutanixEmail",value:function(){return this.defaultNutanixEmail}},{key:"setDefaultNutanixEmail",value:function(e){this.defaultNutanixEmail=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getHasDefaultNutanixEmail",value:function(){return this.hasDefaultNutanixEmail}},{key:"setHasDefaultNutanixEmail",value:function(e){this.hasDefaultNutanixEmail=e}},{key:"getIsEmailDigestEnabled",value:function(){return this.isEmailDigestEnabled}},{key:"setIsEmailDigestEnabled",value:function(e){this.isEmailDigestEnabled=e}},{key:"getIsEmptyAlertEmailDigestSkipped",value:function(){return this.isEmptyAlertEmailDigestSkipped}},{key:"setIsEmptyAlertEmailDigestSkipped",value:function(e){this.isEmptyAlertEmailDigestSkipped=e}},{key:"getEmailConfigRules",value:function(){return this.emailConfigRules}},{key:"setEmailConfigRules",value:function(e){this.emailConfigRules=e}},{key:"getEmailContactList",value:function(){return this.emailContactList}},{key:"setEmailContactList",value:function(e){this.emailContactList=e}},{key:"getEmailTemplate",value:function(){return this.emailTemplate}},{key:"setEmailTemplate",value:function(e){this.emailTemplate=e}},{key:"getTunnelDetails",value:function(){return this.tunnelDetails}},{key:"setTunnelDetails",value:function(e){this.tunnelDetails=e}},{key:"getAlertEmailDigestSendTime",value:function(){return this.alertEmailDigestSendTime}},{key:"setAlertEmailDigestSendTime",value:function(e){this.alertEmailDigestSendTime=e}},{key:"getAlertEmailDigestSendTimezone",value:function(){return this.alertEmailDigestSendTimezone}},{key:"setAlertEmailDigestSendTimezone",value:function(e){this.alertEmailDigestSendTimezone=e}},{key:"toJson",value:function(e){return Os(!1===e?Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("defaultNutanixEmail"===t){if(void 0===this.defaultNutanixEmail||null===this.defaultNutanixEmail)return new me("defaultNutanixEmail","undefined or null");if(!Vt.validatePattern(this.defaultNutanixEmail,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new me("defaultNutanixEmail","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new me("isEnabled","undefined or null");if("hasDefaultNutanixEmail"===t&&(void 0===this.hasDefaultNutanixEmail||null===this.hasDefaultNutanixEmail))return new me("hasDefaultNutanixEmail","undefined or null");if("isEmailDigestEnabled"===t&&(void 0===this.isEmailDigestEnabled||null===this.isEmailDigestEnabled))return new me("isEmailDigestEnabled","undefined or null");if("isEmptyAlertEmailDigestSkipped"===t&&(void 0===this.isEmptyAlertEmailDigestSkipped||null===this.isEmptyAlertEmailDigestSkipped))return new me("isEmptyAlertEmailDigestSkipped","undefined or null");if("emailConfigRules"===t){if(void 0===this.emailConfigRules||null===this.emailConfigRules)return new me("emailConfigRules","undefined or null");if(!Vt.validateMaxItems(this.emailConfigRules,100))return new me("emailConfigRules","does not satisfy required maxItems constraint: 100")}if("emailContactList"===t){if(void 0===this.emailContactList||null===this.emailContactList)return new me("emailContactList","undefined or null");if(!Vt.validateMaxItems(this.emailContactList,100))return new me("emailContactList","does not satisfy required maxItems constraint: 100")}return"emailTemplate"!==t||void 0!==this.emailTemplate&&null!==this.emailTemplate?"tunnelDetails"!==t||void 0!==this.tunnelDetails&&null!==this.tunnelDetails?"alertEmailDigestSendTime"!==t||void 0!==this.alertEmailDigestSendTime&&null!==this.alertEmailDigestSendTime?"alertEmailDigestSendTimezone"!==t||void 0!==this.alertEmailDigestSendTimezone&&null!==this.alertEmailDigestSendTimezone?new me(t,"no such property exists"):new me("alertEmailDigestSendTimezone","undefined or null"):new me("alertEmailDigestSendTime","undefined or null"):new me("tunnelDetails","undefined or null"):new me("emailTemplate","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("defaultNutanixEmail")&&null!==e.defaultNutanixEmail&&void 0!==e.defaultNutanixEmail&&n.setDefaultNutanixEmail(e.defaultNutanixEmail),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&n.setIsEnabled(e.isEnabled),e.hasOwnProperty("hasDefaultNutanixEmail")&&null!==e.hasDefaultNutanixEmail&&void 0!==e.hasDefaultNutanixEmail&&n.setHasDefaultNutanixEmail(e.hasDefaultNutanixEmail),e.hasOwnProperty("isEmailDigestEnabled")&&null!==e.isEmailDigestEnabled&&void 0!==e.isEmailDigestEnabled&&n.setIsEmailDigestEnabled(e.isEmailDigestEnabled),e.hasOwnProperty("isEmptyAlertEmailDigestSkipped")&&null!==e.isEmptyAlertEmailDigestSkipped&&void 0!==e.isEmptyAlertEmailDigestSkipped&&n.setIsEmptyAlertEmailDigestSkipped(e.isEmptyAlertEmailDigestSkipped),e.hasOwnProperty("emailConfigRules")&&null!==e.emailConfigRules&&void 0!==e.emailConfigRules){for(s=[],r=e.emailConfigRules,o=0;o<r.length;o++)i=Bi.constructFromObject(r[o],void 0),s.push(i);n.setEmailConfigRules(s)}if(e.hasOwnProperty("emailContactList")&&null!==e.emailContactList&&void 0!==e.emailContactList){for(s=[],r=e.emailContactList,o=0;o<r.length;o++)s.push(r[o]);n.setEmailContactList(s)}if(e.hasOwnProperty("emailTemplate")&&null!==e.emailTemplate&&void 0!==e.emailTemplate&&n.setEmailTemplate(Qi.constructFromObject(e.emailTemplate)),e.hasOwnProperty("tunnelDetails")&&null!==e.tunnelDetails&&void 0!==e.tunnelDetails&&n.setTunnelDetails(ms.constructFromObject(e.tunnelDetails)),e.hasOwnProperty("alertEmailDigestSendTime")&&null!==e.alertEmailDigestSendTime&&void 0!==e.alertEmailDigestSendTime&&n.setAlertEmailDigestSendTime(e.alertEmailDigestSendTime),e.hasOwnProperty("alertEmailDigestSendTimezone")&&null!==e.alertEmailDigestSendTimezone&&void 0!==e.alertEmailDigestSendTimezone&&n.setAlertEmailDigestSendTimezone(e.alertEmailDigestSendTimezone),!a)for(var u in n.$unknownFields=Os({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&js(n.prototype,r),i&&js(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function As(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ds(e){return Ds="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},Ds(e)}function Is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Us(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Us(r.key),r)}}function Us(e){var t=function(e,t){if("object"!=Ds(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ds(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ds(t)?t:t+""}function xs(e,t,n){return t=Ms(t),function(e,t){if(t&&("object"===Ds(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ns()?Reflect.construct(t,n||[],Ms(e).constructor):t.apply(e,n))}function Ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ns=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function _s(e,t){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_s(e,t)}function Ls(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")}Fs.prototype.defaultNutanixEmail=void 0,Fs.prototype.isEnabled=!1,Fs.prototype.hasDefaultNutanixEmail=!1,Fs.prototype.isEmailDigestEnabled=!1,Fs.prototype.isEmptyAlertEmailDigestSkipped=!1,Fs.prototype.emailConfigRules=void 0,Fs.prototype.emailContactList=void 0,Fs.prototype.emailTemplate=void 0,Fs.prototype.tunnelDetails=void 0,Fs.prototype.alertEmailDigestSendTime=void 0,Fs.prototype.alertEmailDigestSendTimezone=void 0;var Js=new WeakSet,Vs=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=xs(this,t),r=Js),r.add(n),e.$objectType="monitoring.v4.serviceability.GetAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_s(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Cs(Cs(Cs({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ls(Js,this,Ws).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ls(Js,this,Ws).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ds(e.data)){case"monitoring.v4.serviceability.AlertEmailConfiguration":n.setData(Fs.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=Cs({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Rs(n.prototype,r),i&&Rs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Ws(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return As(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?As(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Ds(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zs(e){return zs="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},zs(e)}function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ks(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ks(r.key),r)}}function Ks(e){var t=function(e,t){if("object"!=zs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zs(t)?t:t+""}function Ys(e,t,n){return t=Xs(t),function(e,t){if(t&&("object"===zs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qs()?Reflect.construct(t,n||[],Xs(e).constructor):t.apply(e,n))}function Qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qs=function(){return!!e})()}function Xs(e){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xs(e)}function Zs(e,t){return Zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zs(e,t)}function ea(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")}Vs.prototype.metadata=void 0,Vs.prototype.data=void 0,Vs.prototype.$reserved=void 0,Vs.prototype.$objectType=void 0,Vs.prototype.$unknownFields=void 0;var ta=new WeakSet,na=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ys(this,t),r=ta),r.add(n),e.$objectType="monitoring.v4.serviceability.UpdateAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zs(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qs(qs(qs({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ea(ta,this,ra).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ea(ta,this,ra).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:zs(e.data)){case"monitoring.v4.serviceability.AlertEmailConfiguration":n.setData(Fs.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=qs({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Hs(n.prototype,r),i&&Hs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ra(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===zs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ia(e){return ia="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},ia(e)}function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ua(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ua(r.key),r)}}function ua(e){var t=function(e,t){if("object"!=ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ia(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ia(t)?t:t+""}function la(e,t){return e.get(ca(e,t))}function ca(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")}na.prototype.metadata=void 0,na.prototype.data=void 0,na.prototype.$reserved=void 0,na.prototype.$objectType=void 0,na.prototype.$unknownFields=void 0;var da=new WeakMap,fa=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=da),o.set(i,s),this.apiClient=t||Y.instance,n=da,r=new Set,n.set(ca(n,this),r),la(da,this).add("authorization"),la(da,this).add("cookie"),la(da,this).add("host"),la(da,this).add("user-agent")},t=[{key:"getAlertEmailConfiguration",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n={};Object.keys(t).forEach((function(r){la(da,e).has(r.toLowerCase())||(n[r]=t[r])}));var r=sa({},n),i=Vs;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/email-config","GET",{},{},r,{},null,["basicAuthScheme"],[],["application/json"],i)}},{key:"updateAlertEmailConfiguration",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Fs&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling updateAlertEmailConfiguration");var i={};Object.keys(r).forEach((function(e){la(da,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=sa({},i);Y.addEtagReferenceToHeader(e,o);var s=na;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/email-config","PUT",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&aa(e.prototype,t),n&&aa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),pa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATE:"CREATE",UPDATE:"UPDATE",DELETE:"DELETE",POWERSTATECHANGE:"POWERSTATECHANGE",HA:"HA",RESTORE:"RESTORE",MIGRATE:"MIGRATE",ENABLE:"ENABLE",DISABLE:"DISABLE",RESET:"RESET",LOGIN:"LOGIN",LOGOUT:"LOGOUT",VALIDATE:"VALIDATE",FAILOVER:"FAILOVER",INPROGRESS:"INPROGRESS",ON:"ON",OFF:"OFF",JOINED:"JOINED",UNJOINED:"UNJOINED",PROTECTED:"PROTECTED",UNPROTECTED:"UNPROTECTED",QUARENTINED:"QUARENTINED",UNQUARENTINED:"UNQUARENTINED",START:"START",END:"END",TESTFAILOVER:"TESTFAILOVER",IMPORT:"IMPORT",EXPORT:"EXPORT",IMAGEIMPORT:"IMAGEIMPORT",IMAGETRANSFER:"IMAGETRANSFER",IMAGEREMOVE:"IMAGEREMOVE",IMAGEUPLOAD:"IMAGEUPLOAD",TEMPLATEGUESTUPDATEINITIATE:"TEMPLATEGUESTUPDATEINITIATE",TEMPLATEGUESTUPDATECANCEL:"TEMPLATEGUESTUPDATECANCEL",TEMPLATEGUESTUPDATECOMPLETE:"TEMPLATEGUESTUPDATECOMPLETE",TEMPLATEDEPLOY:"TEMPLATEDEPLOY",TEMPLATEVERSIONPUBLISH:"TEMPLATEVERSIONPUBLISH",CROSSCLUSTERMIGRATE:"CROSSCLUSTERMIGRATE",FLOWCLUSTERMIGRATE:"FLOWCLUSTERMIGRATE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pa).find((function(t){return pa[t]===e}));return null==t?pa.$UNKNOWN:pa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pa.$UNKNOWN:case pa.$REDACTED:case pa.CREATE:case pa.UPDATE:case pa.DELETE:case pa.POWERSTATECHANGE:case pa.HA:case pa.RESTORE:case pa.MIGRATE:case pa.ENABLE:case pa.DISABLE:case pa.RESET:case pa.LOGIN:case pa.LOGOUT:case pa.VALIDATE:case pa.FAILOVER:case pa.INPROGRESS:case pa.ON:case pa.OFF:case pa.JOINED:case pa.UNJOINED:case pa.PROTECTED:case pa.UNPROTECTED:case pa.QUARENTINED:case pa.UNQUARENTINED:case pa.START:case pa.END:case pa.TESTFAILOVER:case pa.IMPORT:case pa.EXPORT:case pa.IMAGEIMPORT:case pa.IMAGETRANSFER:case pa.IMAGEREMOVE:case pa.IMAGEUPLOAD:case pa.TEMPLATEGUESTUPDATEINITIATE:case pa.TEMPLATEGUESTUPDATECANCEL:case pa.TEMPLATEGUESTUPDATECOMPLETE:case pa.TEMPLATEDEPLOY:case pa.TEMPLATEVERSIONPUBLISH:case pa.CROSSCLUSTERMIGRATE:case pa.FLOWCLUSTERMIGRATE:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|CREATE|UPDATE|DELETE|POWERSTATECHANGE|HA|RESTORE|MIGRATE|ENABLE|DISABLE|RESET|LOGIN|LOGOUT|VALIDATE|FAILOVER|INPROGRESS|ON|OFF|JOINED|UNJOINED|PROTECTED|UNPROTECTED|QUARENTINED|UNQUARENTINED|START|END|TESTFAILOVER|IMPORT|EXPORT|IMAGEIMPORT|IMAGETRANSFER|IMAGEREMOVE|IMAGEUPLOAD|TEMPLATEGUESTUPDATEINITIATE|TEMPLATEGUESTUPDATECANCEL|TEMPLATEGUESTUPDATECOMPLETE|TEMPLATEDEPLOY|TEMPLATEVERSIONPUBLISH|CROSSCLUSTERMIGRATE|FLOWCLUSTERMIGRATE }")}}};Object.freeze(pa);const ya=pa;function ha(e){return ha="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},ha(e)}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ga(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ga(r.key),r)}}function ga(e){var t=function(e,t){if("object"!=ha(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ha(t)?t:t+""}var wa=new WeakSet,Oa=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wa),n.add(t),this.$objectType="monitoring.v4.serviceability.AuditEntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ba(ba(ba(ba({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ba({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ma(t.prototype,n),r&&ma(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Oa.prototype.type=void 0,Oa.prototype.name=void 0,Oa.prototype.extId=void 0,Oa.prototype.$reserved=void 0,Oa.prototype.$objectType=void 0,Oa.prototype.$unknownFields=void 0;var ja={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",ABORTED:"ABORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ja).find((function(t){return ja[t]===e}));return null==t?ja.$UNKNOWN:ja[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ja.$UNKNOWN:case ja.$REDACTED:case ja.SUCCEEDED:case ja.FAILED:case ja.ABORTED:return;default:throw new Error("Invalid : must be Status.{ $UNKNOWN|$REDACTED|SUCCEEDED|FAILED|ABORTED }")}}};Object.freeze(ja);const $a=ja;function Ta(e){return Ta="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},Ta(e)}function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Sa(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sa(r.key),r)}}function Sa(e){var t=function(e,t){if("object"!=Ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ta(t)?t:t+""}var Fa=new WeakSet,Aa=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Fa),n.add(t),this.$objectType="monitoring.v4.serviceability.UserReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pa(Pa(Pa(Pa({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new me("ipAddress","undefined or null");if(!Vt.validatePattern(this.ipAddress,/^(?:(?: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 me("ipAddress","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]?)$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Pa({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Ea(t.prototype,n),r&&Ea(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Da(e){return Da="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},Da(e)}function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ia(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ua(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ua(r.key),r)}}function Ua(e){var t=function(e,t){if("object"!=Da(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Da(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Da(t)?t:t+""}function xa(e,t,n){return t=Ma(t),function(e,t){if(t&&("object"===Da(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Na()?Reflect.construct(t,n||[],Ma(e).constructor):t.apply(e,n))}function Na(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Na=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}Aa.prototype.extId=void 0,Aa.prototype.name=void 0,Aa.prototype.ipAddress=void 0,Aa.prototype.$reserved=void 0,Aa.prototype.$objectType=void 0,Aa.prototype.$unknownFields=void 0;var La=new WeakSet,Ja=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=xa(this,t),r=La),r.add(n),e.$objectType="monitoring.v4.serviceability.Audit",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_a(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getOperationStartTime",value:function(){return this.operationStartTime}},{key:"setOperationStartTime",value:function(e){this.operationStartTime=e}},{key:"getOperationEndTime",value:function(){return this.operationEndTime}},{key:"setOperationEndTime",value:function(e){this.operationEndTime=e}},{key:"getUserReference",value:function(){return this.userReference}},{key:"setUserReference",value:function(e){this.userReference=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getAuditType",value:function(){return this.auditType}},{key:"setAuditType",value:function(e){this.auditType=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"toJson",value:function(e){return Ca(!1===e?Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:this.getOperationStartTime()}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:this.getOperationEndTime()}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:this.getOperationStartTime()}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:this.getOperationEndTime()}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("clusterReference"===t&&(void 0===this.clusterReference||null===this.clusterReference))return new me("clusterReference","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new me("affectedEntities","undefined or null");if(!Vt.validateMaxItems(this.affectedEntities,50))return new me("affectedEntities","does not satisfy required maxItems constraint: 50")}if("operationType"===t&&(void 0===this.operationType||null===this.operationType))return new me("operationType","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new me("parameters","undefined or null");if(!Vt.validateMaxItems(this.parameters,100))return new me("parameters","does not satisfy required maxItems constraint: 100")}return"operationStartTime"!==t||void 0!==this.operationStartTime&&null!==this.operationStartTime?"operationEndTime"!==t||void 0!==this.operationEndTime&&null!==this.operationEndTime?"userReference"!==t||void 0!==this.userReference&&null!==this.userReference?"serviceName"!==t||void 0!==this.serviceName&&null!==this.serviceName?"auditType"!==t||void 0!==this.auditType&&null!==this.auditType?"status"!==t||void 0!==this.status&&null!==this.status?"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?new me(t,"no such property exists"):new me("creationTime","undefined or null"):new me("status","undefined or null"):new me("auditType","undefined or null"):new me("serviceName","undefined or null"):new me("userReference","undefined or null"):new me("operationEndTime","undefined or null"):new me("operationStartTime","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(Oa.constructFromObject(e.sourceEntity)),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&n.setClusterReference(On.constructFromObject(e.clusterReference)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(s=[],r=e.affectedEntities,o=0;o<r.length;o++)i=On.constructFromObject(r[o],void 0),s.push(i);n.setAffectedEntities(s)}if(e.hasOwnProperty("operationType")&&null!==e.operationType&&void 0!==e.operationType&&n.setOperationType(ya.constructFromObject(e.operationType)),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&n.setMessage(e.message),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(s=[],r=e.parameters,o=0;o<r.length;o++)i=jr.constructFromObject(r[o],void 0),s.push(i);n.setParameters(s)}if(e.hasOwnProperty("operationStartTime")&&null!==e.operationStartTime&&void 0!==e.operationStartTime&&n.setOperationStartTime(e.operationStartTime),e.hasOwnProperty("operationEndTime")&&null!==e.operationEndTime&&void 0!==e.operationEndTime&&n.setOperationEndTime(e.operationEndTime),e.hasOwnProperty("userReference")&&null!==e.userReference&&void 0!==e.userReference&&n.setUserReference(Aa.constructFromObject(e.userReference)),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("auditType")&&null!==e.auditType&&void 0!==e.auditType&&n.setAuditType(e.auditType),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus($a.constructFromObject(e.status)),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),!a)for(var u in n.$unknownFields=Ca({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Ra(n.prototype,r),i&&Ra(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wa(e){return Wa="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},Wa(e)}function Ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=qa(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qa(r.key),r)}}function qa(e){var t=function(e,t){if("object"!=Wa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wa(t)?t:t+""}function Ha(e,t,n){return t=Ya(t),function(e,t){if(t&&("object"===Wa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ka()?Reflect.construct(t,n||[],Ya(e).constructor):t.apply(e,n))}function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ka=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ya(e)}function Qa(e,t){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qa(e,t)}function Xa(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")}Ja.prototype.sourceEntity=void 0,Ja.prototype.clusterReference=void 0,Ja.prototype.affectedEntities=void 0,Ja.prototype.operationType=void 0,Ja.prototype.message=void 0,Ja.prototype.parameters=void 0,Ja.prototype.operationStartTime=void 0,Ja.prototype.operationEndTime=void 0,Ja.prototype.userReference=void 0,Ja.prototype.serviceName=void 0,Ja.prototype.auditType=void 0,Ja.prototype.status=void 0,Ja.prototype.creationTime=void 0;var Za=new WeakSet,eu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ha(this,t),r=Za),r.add(n),e.$objectType="monitoring.v4.serviceability.GetAuditApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qa(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return za(za(za({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Xa(Za,this,tu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Xa(Za,this,tu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wa(e.data)){case"monitoring.v4.serviceability.Audit":n.setData(Ja.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=za({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Ga(n.prototype,r),i&&Ga(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function tu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Va(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Wa(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ru(e){return ru="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},ru(e)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=au(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,au(r.key),r)}}function au(e){var t=function(e,t){if("object"!=ru(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ru(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ru(t)?t:t+""}function uu(e,t,n){return t=cu(t),function(e,t){if(t&&("object"===ru(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,lu()?Reflect.construct(t,n||[],cu(e).constructor):t.apply(e,n))}function lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lu=function(){return!!e})()}function cu(e){return cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cu(e)}function du(e,t){return du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},du(e,t)}function fu(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")}eu.prototype.metadata=void 0,eu.prototype.data=void 0,eu.prototype.$reserved=void 0,eu.prototype.$objectType=void 0,eu.prototype.$unknownFields=void 0;var pu=new WeakSet,yu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=uu(this,t),r=pu),r.add(n),e.$objectType="monitoring.v4.serviceability.ListAuditsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&du(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ou(ou(ou({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):fu(pu,this,hu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):fu(pu,this,hu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:ru(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.Audit"!==a)throw"Unknown list of type "+a+" in data";i=Ja.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ru(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=ou({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&su(n.prototype,r),i&&su(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function hu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===ru(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function vu(e){return vu="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},vu(e)}function bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=wu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wu(r.key),r)}}function wu(e){var t=function(e,t){if("object"!=vu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vu(t)?t:t+""}function Ou(e,t){return e.get(ju(e,t))}function ju(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")}yu.prototype.metadata=void 0,yu.prototype.data=void 0,yu.prototype.$reserved=void 0,yu.prototype.$objectType=void 0,yu.prototype.$unknownFields=void 0;var $u=new WeakMap,Tu=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=$u),o.set(i,s),this.apiClient=t||Y.instance,n=$u,r=new Set,n.set(ju(n,this),r),Ou($u,this).add("authorization"),Ou($u,this).add("cookie"),Ou($u,this).add("host"),Ou($u,this).add("user-agent")},t=[{key:"getAuditById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getAuditById");var r={extId:e},i={};Object.keys(n).forEach((function(e){Ou($u,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=mu({},i),s=eu;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/audits/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listAudits",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=mu(mu(mu(mu(mu({},(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}:{}),i={};Object.keys(n).forEach((function(e){Ou($u,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=mu({},i),s=yu;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/audits","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&gu(e.prototype,t),n&&gu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ku(e){return ku="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},ku(e)}function Pu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Fu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fu(r.key),r)}}function Fu(e){var t=function(e,t){if("object"!=ku(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ku(t)?t:t+""}var Au=new WeakSet,Du=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Au),n.add(t),this.$objectType="monitoring.v4.serviceability.EventEntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Eu(Eu(Eu(Eu({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Eu({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Su(t.prototype,n),r&&Su(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Iu(e){return Iu="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},Iu(e)}function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=xu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xu(r.key),r)}}function xu(e){var t=function(e,t){if("object"!=Iu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Iu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Iu(t)?t:t+""}function Nu(e,t,n){return t=_u(t),function(e,t){if(t&&("object"===Iu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Mu()?Reflect.construct(t,n||[],_u(e).constructor):t.apply(e,n))}function Mu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mu=function(){return!!e})()}function _u(e){return _u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_u(e)}function Lu(e,t){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lu(e,t)}Du.prototype.type=void 0,Du.prototype.name=void 0,Du.prototype.extId=void 0,Du.prototype.$reserved=void 0,Du.prototype.$objectType=void 0,Du.prototype.$unknownFields=void 0;var Ju=new WeakSet,Vu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Nu(this,t),r=Ju),r.add(n),e.$objectType="monitoring.v4.serviceability.Event",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lu(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getSourceClusterUUID",value:function(){return this.sourceClusterUUID}},{key:"setSourceClusterUUID",value:function(e){this.sourceClusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"toJson",value:function(e){return Ru(!1===e?Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new me("affectedEntities","undefined or null");if(!Vt.validateMaxItems(this.affectedEntities,50))return new me("affectedEntities","does not satisfy required maxItems constraint: 50")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new me("metricDetails","undefined or null");if(!Vt.validateMaxItems(this.metricDetails,100))return new me("metricDetails","does not satisfy required maxItems constraint: 100")}if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new me("eventType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("sourceClusterUUID"===t){if(void 0===this.sourceClusterUUID||null===this.sourceClusterUUID)return new me("sourceClusterUUID","undefined or null");if(!Vt.validatePattern(this.sourceClusterUUID,/^[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 me("sourceClusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new me("clusterUUID","undefined or null");if(!Vt.validatePattern(this.clusterUUID,/^[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 me("clusterUUID","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("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new me("parameters","undefined or null");if(!Vt.validateMaxItems(this.parameters,100))return new me("parameters","does not satisfy required maxItems constraint: 100")}return"serviceName"!==t||void 0!==this.serviceName&&null!==this.serviceName?new me(t,"no such property exists"):new me("serviceName","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(Du.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(s=[],r=e.affectedEntities,o=0;o<r.length;o++)i=On.constructFromObject(r[o],void 0),s.push(i);n.setAffectedEntities(s)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(s=[],r=e.metricDetails,o=0;o<r.length;o++)i=fr.constructFromObject(r[o],void 0),s.push(i);n.setMetricDetails(s)}if(e.hasOwnProperty("eventType")&&null!==e.eventType&&void 0!==e.eventType&&n.setEventType(e.eventType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(s=[],r=e.classifications,o=0;o<r.length;o++)s.push(r[o]);n.setClassifications(s)}if(e.hasOwnProperty("sourceClusterUUID")&&null!==e.sourceClusterUUID&&void 0!==e.sourceClusterUUID&&n.setSourceClusterUUID(e.sourceClusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&n.setMessage(e.message),e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&n.setClusterUUID(e.clusterUUID),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(s=[],r=e.parameters,o=0;o<r.length;o++)i=jr.constructFromObject(r[o],void 0),s.push(i);n.setParameters(s)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),!a)for(var u in n.$unknownFields=Ru({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Uu(n.prototype,r),i&&Uu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function Wu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bu(e){return Bu="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},Bu(e)}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Hu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hu(r.key),r)}}function Hu(e){var t=function(e,t){if("object"!=Bu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bu(t)?t:t+""}function Ku(e,t,n){return t=Qu(t),function(e,t){if(t&&("object"===Bu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yu()?Reflect.construct(t,n||[],Qu(e).constructor):t.apply(e,n))}function Yu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yu=function(){return!!e})()}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xu(e,t)}function Zu(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")}Vu.prototype.sourceEntity=void 0,Vu.prototype.affectedEntities=void 0,Vu.prototype.metricDetails=void 0,Vu.prototype.eventType=void 0,Vu.prototype.classifications=void 0,Vu.prototype.sourceClusterUUID=void 0,Vu.prototype.creationTime=void 0,Vu.prototype.message=void 0,Vu.prototype.clusterUUID=void 0,Vu.prototype.parameters=void 0,Vu.prototype.serviceName=void 0;var el=new WeakSet,tl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ku(this,t),r=el),r.add(n),e.$objectType="monitoring.v4.serviceability.ListEventsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gu(Gu(Gu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Zu(el,this,nl).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Zu(el,this,nl).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:Bu(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.Event"!==a)throw"Unknown list of type "+a+" in data";i=Vu.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Bu(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=Gu({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&qu(n.prototype,r),i&&qu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function nl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Bu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function rl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function il(e){return il="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},il(e)}function ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ul(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function al(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ul(r.key),r)}}function ul(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=il(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==il(t)?t:t+""}function ll(e,t,n){return t=dl(t),function(e,t){if(t&&("object"===il(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cl()?Reflect.construct(t,n||[],dl(e).constructor):t.apply(e,n))}function cl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cl=function(){return!!e})()}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dl(e)}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fl(e,t)}function pl(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")}tl.prototype.metadata=void 0,tl.prototype.data=void 0,tl.prototype.$reserved=void 0,tl.prototype.$objectType=void 0,tl.prototype.$unknownFields=void 0;var yl=new WeakSet,hl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ll(this,t),r=yl),r.add(n),e.$objectType="monitoring.v4.serviceability.GetEventApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fl(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sl(sl(sl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):pl(yl,this,vl).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):pl(yl,this,vl).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:il(e.data)){case"monitoring.v4.serviceability.Event":n.setData(Vu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=sl({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&al(n.prototype,r),i&&al(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function vl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===il(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function bl(e){return bl="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},bl(e)}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ol(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ol(r.key),r)}}function Ol(e){var t=function(e,t){if("object"!=bl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bl(t)?t:t+""}function jl(e,t){return e.get($l(e,t))}function $l(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")}hl.prototype.metadata=void 0,hl.prototype.data=void 0,hl.prototype.$reserved=void 0,hl.prototype.$objectType=void 0,hl.prototype.$unknownFields=void 0;var Tl=new WeakMap,kl=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=Tl),o.set(i,s),this.apiClient=t||Y.instance,n=Tl,r=new Set,n.set($l(n,this),r),jl(Tl,this).add("authorization"),jl(Tl,this).add("cookie"),jl(Tl,this).add("host"),jl(Tl,this).add("user-agent")},t=[{key:"getEventById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEventById");var r={extId:e},i={};Object.keys(n).forEach((function(e){jl(Tl,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=gl({},i),s=hl;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/events/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listEvents",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=gl(gl(gl(gl(gl({},(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}:{}),i={};Object.keys(n).forEach((function(e){jl(Tl,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=gl({},i),s=tl;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/events","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&wl(e.prototype,t),n&&wl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Pl(e){return Pl="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},Pl(e)}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Al(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Al(r.key),r)}}function Al(e){var t=function(e,t){if("object"!=Pl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pl(t)?t:t+""}var Dl=new WeakSet,Il=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Dl),n.add(t),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sl(Sl({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Sl({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Fl(t.prototype,n),r&&Fl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rl(e){return Rl="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},Rl(e)}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ml(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ml(r.key),r)}}function Ml(e){var t=function(e,t){if("object"!=Rl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Rl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rl(t)?t:t+""}function _l(e,t,n){return t=Jl(t),function(e,t){if(t&&("object"===Rl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ll()?Reflect.construct(t,n||[],Jl(e).constructor):t.apply(e,n))}function Ll(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ll=function(){return!!e})()}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}function Wl(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")}Il.prototype.extId=void 0,Il.prototype.$reserved=void 0,Il.prototype.$objectType=void 0,Il.prototype.$unknownFields=void 0;var Bl=new WeakSet,zl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=_l(this,t),r=Bl),r.add(n),e.$objectType="monitoring.v4.serviceability.ManageAlertApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xl(xl(xl({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Wl(Bl,this,Gl).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Wl(Bl,this,Gl).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rl(e.data)){case"prism.v4.config.TaskReference":n.setData(Il.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=xl({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Nl(n.prototype,r),i&&Nl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Gl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cl(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Rl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}zl.prototype.metadata=void 0,zl.prototype.data=void 0,zl.prototype.$reserved=void 0,zl.prototype.$objectType=void 0,zl.prototype.$unknownFields=void 0;var ql={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RESOLVE:"RESOLVE",ACKNOWLEDGE:"ACKNOWLEDGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ql).find((function(t){return ql[t]===e}));return null==t?ql.$UNKNOWN:ql[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ql.$UNKNOWN:case ql.$REDACTED:case ql.RESOLVE:case ql.ACKNOWLEDGE:return;default:throw new Error("Invalid : must be ActionType.{ $UNKNOWN|$REDACTED|RESOLVE|ACKNOWLEDGE }")}}};Object.freeze(ql);const Hl=ql;function Kl(e){return Kl="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},Kl(e)}function Yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yl(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Zl(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zl(r.key),r)}}function Zl(e){var t=function(e,t){if("object"!=Kl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Kl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kl(t)?t:t+""}var ec=new WeakSet,tc=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=ec),r.add(n),this.actionType=t,this.$objectType="monitoring.v4.serviceability.AlertActionSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getActionType",value:function(){return this.actionType}},{key:"setActionType",value:function(e){this.actionType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ql(Ql({},void 0!==this.getActionType()&&null!==this.getActionType()?{actionType:this.getActionType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["actionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"actionType"!==t||void 0!==this.actionType&&null!==this.actionType?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("actionType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("actionType")&&null!==t.actionType&&void 0!==t.actionType&&n.setActionType(Hl.constructFromObject(t.actionType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Ql({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Xl(t.prototype,n),r&&Xl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function nc(e){return nc="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},nc(e)}function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oc(r.key),r)}}function oc(e){var t=function(e,t){if("object"!=nc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nc(t)?t:t+""}function sc(e,t){return e.get(ac(e,t))}function ac(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")}tc.prototype.actionType=void 0,tc.prototype.$reserved=void 0,tc.prototype.$objectType=void 0,tc.prototype.$unknownFields=void 0;var uc=new WeakMap,lc=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=uc),o.set(i,s),this.apiClient=t||Y.instance,n=uc,r=new Set,n.set(ac(n,this),r),sc(uc,this).add("authorization"),sc(uc,this).add("cookie"),sc(uc,this).add("host"),sc(uc,this).add("user-agent")},t=[{key:"manageAlert",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof tc&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling manageAlert");if(null==n)throw new Error("Invalid body when calling manageAlert");var o={extId:e},s={};Object.keys(i).forEach((function(e){sc(uc,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=oc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s);Y.addEtagReferenceToHeader(t,a);var u=zl;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/{extId}/$actions/manage-alert","POST",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&ic(e.prototype,t),n&&ic(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function cc(e){return cc="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},cc(e)}function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=yc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yc(r.key),r)}}function yc(e){var t=function(e,t){if("object"!=cc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=cc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cc(t)?t:t+""}var hc=new WeakSet,vc=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=hc),r.add(n),this.extId=t,this.$objectType="monitoring.v4.serviceability.EntityFilter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return fc(fc({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=fc({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&pc(t.prototype,n),r&&pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();vc.prototype.extId=void 0,vc.prototype.$reserved=void 0,vc.prototype.$objectType=void 0,vc.prototype.$unknownFields=void 0;var bc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CATEGORY:"CATEGORY",CLUSTER:"CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bc).find((function(t){return bc[t]===e}));return null==t?bc.$UNKNOWN:bc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bc.$UNKNOWN:case bc.$REDACTED:case bc.CATEGORY:case bc.CLUSTER:return;default:throw new Error("Invalid : must be GroupEntityType.{ $UNKNOWN|$REDACTED|CATEGORY|CLUSTER }")}}};Object.freeze(bc);const mc=bc;function gc(e){return gc="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},gc(e)}function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=$c(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$c(r.key),r)}}function $c(e){var t=function(e,t){if("object"!=gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gc(t)?t:t+""}var Tc=new WeakSet,kc=function(){function e(t,n){var r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,i=Tc),i.add(r),this.extId=t,this.type=n,this.$objectType="monitoring.v4.serviceability.GroupFilter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oc(Oc(Oc({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["extId","type"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}return"type"!==t||void 0!==this.type&&null!==this.type?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("type","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(mc.constructFromObject(t.type)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Oc({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&jc(t.prototype,n),r&&jc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pc(e){return Pc="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},Pc(e)}function Ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ac(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ac(r.key),r)}}function Ac(e){var t=function(e,t){if("object"!=Pc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pc(t)?t:t+""}kc.prototype.extId=void 0,kc.prototype.type=void 0,kc.prototype.$reserved=void 0,kc.prototype.$objectType=void 0,kc.prototype.$unknownFields=void 0;var Dc=new WeakSet,Ic=function(){function e(t,n){var r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,i=Dc),i.add(r),this.entityUuid=t,this.policyIds=n,this.$objectType="monitoring.v4.serviceability.RelatedPolicy",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getPolicyIds",value:function(){return this.policyIds}},{key:"setPolicyIds",value:function(e){this.policyIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sc(Sc(Sc({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getPolicyIds()&&null!==this.getPolicyIds()?{policyIds:this.getPolicyIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["entityUuid","policyIds"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new me("entityUuid","undefined or null");if(!Vt.validatePattern(this.entityUuid,/^[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 me("entityUuid","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"policyIds"!==t||void 0!==this.policyIds&&null!==this.policyIds?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("policyIds","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&n.setEntityUuid(t.entityUuid),t.hasOwnProperty("policyIds")&&null!==t.policyIds&&void 0!==t.policyIds){for(o=[],r=t.policyIds,i=0;i<r.length;i++)o.push(r[i]);n.setPolicyIds(o)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=Sc({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],n&&Fc(t.prototype,n),r&&Fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rc(e){return Rc="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},Rc(e)}function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Mc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mc(r.key),r)}}function Mc(e){var t=function(e,t){if("object"!=Rc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rc(t)?t:t+""}function _c(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")}Ic.prototype.entityUuid=void 0,Ic.prototype.policyIds=void 0,Ic.prototype.$reserved=void 0,Ic.prototype.$objectType=void 0,Ic.prototype.$unknownFields=void 0;var Lc=new WeakSet,Jc=function(){function e(t,n,r){var i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=Lc),o.add(i),this.metricName=t,this.operator=n,this.thresholdValue=r,this.$objectType="monitoring.v4.serviceability.Condition",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getOperator",value:function(){return this.operator}},{key:"setOperator",value:function(e){this.operator=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xc(xc(xc(xc({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getOperator()&&null!==this.getOperator()?{operator:this.getOperator()}:{}),!1===e?void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_c(Lc,this,Vc).call(this,this.getThresholdValue(),!1)}:{}:void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):_c(Lc,this,Vc).call(this,this.getThresholdValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["metricName","operator","thresholdValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("metricName"===t){if(void 0===this.metricName||null===this.metricName)return new me("metricName","undefined or null");if(!Vt.validateMaxLength(this.metricName,150))return new me("metricName","does not satisfy required maxLength constraint: 150");if(!Vt.validateMinLength(this.metricName,1))return new me("metricName","does not satisfy required minLength constraint: 1")}return"operator"!==t||void 0!==this.operator&&null!==this.operator?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("thresholdValue","undefined or null"):new me("operator","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&n.setMetricName(t.metricName),t.hasOwnProperty("operator")&&null!==t.operator&&void 0!==t.operator&&n.setOperator(In.constructFromObject(t.operator)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(r=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:Rc(t.thresholdValue)){case"monitoring.v4.common.DoubleValue":n.setThresholdValue(Wn.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":n.setThresholdValue(Yn.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!i)for(var o in n.$unknownFields=xc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o])}return n}}],n&&Nc(t.prototype,n),r&&Nc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Vc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Rc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Jc.prototype.metricName=void 0,Jc.prototype.operator=void 0,Jc.prototype.thresholdValue=void 0,Jc.prototype.$reserved=void 0,Jc.prototype.$objectType=void 0,Jc.prototype.$unknownFields=void 0;var Wc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Wc).find((function(t){return Wc[t]===e}));return null==t?Wc.$UNKNOWN:Wc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wc.$UNKNOWN:case Wc.$REDACTED:case Wc.WARNING:case Wc.CRITICAL:return;default:throw new Error("Invalid : must be PolicySeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|CRITICAL }")}}};Object.freeze(Wc);const Bc=Wc;function zc(e){return zc="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},zc(e)}function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Kc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kc(r.key),r)}}function Kc(e){var t=function(e,t){if("object"!=zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zc(t)?t:t+""}var Yc=new WeakSet,Qc=function(){function e(t,n,r){var i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=Yc),o.add(i),this.conditionType=t,this.condition=n,this.severityLevel=r,this.$objectType="monitoring.v4.serviceability.TriggerCondition",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getCondition",value:function(){return this.condition}},{key:"setCondition",value:function(e){this.condition=e}},{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qc(qc(qc(qc({},void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getCondition()&&null!==this.getCondition()?{condition:this.getCondition().toJson(!1)}:{}),void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["conditionType","condition","severityLevel"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"condition"!==t||void 0!==this.condition&&null!==this.condition?"severityLevel"!==t||void 0!==this.severityLevel&&null!==this.severityLevel?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("severityLevel","undefined or null"):new me("condition","undefined or null"):new me("conditionType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&n.setConditionType(Rn.constructFromObject(t.conditionType)),t.hasOwnProperty("condition")&&null!==t.condition&&void 0!==t.condition&&n.setCondition(Jc.constructFromObject(t.condition)),t.hasOwnProperty("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(Bc.constructFromObject(t.severityLevel)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=qc({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Hc(t.prototype,n),r&&Hc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zc(e){return Zc="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},Zc(e)}function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=rd(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rd(r.key),r)}}function rd(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zc(t)?t:t+""}function id(e,t,n){return t=sd(t),function(e,t){if(t&&("object"===Zc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,od()?Reflect.construct(t,n||[],sd(e).constructor):t.apply(e,n))}function od(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(od=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sd(e)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ad(e,t)}function ud(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")}Qc.prototype.conditionType=void 0,Qc.prototype.condition=void 0,Qc.prototype.severityLevel=void 0,Qc.prototype.$reserved=void 0,Qc.prototype.$objectType=void 0,Qc.prototype.$unknownFields=void 0;var ld=new WeakSet,cd=function(e){function t(e,n,r){var i,o,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=i=id(this,t),s=ld),s.add(o),i.title=e,i.triggerConditions=n,i.entityType=r,i.$objectType="monitoring.v4.serviceability.UserDefinedPolicy",i.$reserved={$fv:"v4.r0.b1"},i.$unknownFields={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ad(e,t)}(t,e),n=t,r=[{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(e){this.filters=e}},{key:"getTriggerConditions",value:function(){return this.triggerConditions}},{key:"setTriggerConditions",value:function(e){this.triggerConditions=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getIsExpectedToErrorOnConflict",value:function(){return this.isExpectedToErrorOnConflict}},{key:"setIsExpectedToErrorOnConflict",value:function(e){this.isExpectedToErrorOnConflict=e}},{key:"getPoliciesToOverride",value:function(){return this.policiesToOverride}},{key:"setPoliciesToOverride",value:function(e){this.policiesToOverride=e}},{key:"getTriggerWaitPeriod",value:function(){return this.triggerWaitPeriod}},{key:"setTriggerWaitPeriod",value:function(e){this.triggerWaitPeriod=e}},{key:"getRelatedPolicies",value:function(){return this.relatedPolicies}},{key:"setRelatedPolicies",value:function(e){this.relatedPolicies=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"toJson",value:function(e){return td(!1===e?td(td(td(td(td(td(td(td(td(td(td(td(td(td(td(td(td({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson(!1):Array.isArray(this.getFilters())?this.getFilters().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ud(ld,this,dd).call(this,this.getFilters(),!1)}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):td(td(td(td(td(td(td(td(td(td(td(td(td({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson():Array.isArray(this.getFilters())?this.getFilters().map((function(e){return void 0!==e.toJson?e.toJson():e})):ud(ld,this,dd).call(this,this.getFilters())}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["title","triggerConditions","entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("title"===t){if(void 0===this.title||null===this.title)return new me("title","undefined or null");if(!Vt.validateMaxLength(this.title,150))return new me("title","does not satisfy required maxLength constraint: 150");if(!Vt.validateMinLength(this.title,1))return new me("title","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new me("description","undefined or null");if(!Vt.validateMaxLength(this.description,500))return new me("description","does not satisfy required maxLength constraint: 500")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new me("isEnabled","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new me("isAutoResolved","undefined or null");if("filters"===t&&(void 0===this.filters||null===this.filters))return new me("filters","undefined or null");if("triggerConditions"===t){if(void 0===this.triggerConditions||null===this.triggerConditions)return new me("triggerConditions","undefined or null");if(!Vt.validateMaxItems(this.triggerConditions,4))return new me("triggerConditions","does not satisfy required maxItems constraint: 4");if(!Vt.validateMinItems(this.triggerConditions,1))return new me("triggerConditions","does not satisfy required minItems constraint: 1")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("createdBy"===t&&(void 0===this.createdBy||null===this.createdBy))return new me("createdBy","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new me("lastUpdatedTime","undefined or null");if("isExpectedToErrorOnConflict"===t&&(void 0===this.isExpectedToErrorOnConflict||null===this.isExpectedToErrorOnConflict))return new me("isExpectedToErrorOnConflict","undefined or null");if("policiesToOverride"===t){if(void 0===this.policiesToOverride||null===this.policiesToOverride)return new me("policiesToOverride","undefined or null");if(!Vt.validateMaxItems(this.policiesToOverride,100))return new me("policiesToOverride","does not satisfy required maxItems constraint: 100")}if("triggerWaitPeriod"===t&&(void 0===this.triggerWaitPeriod||null===this.triggerWaitPeriod))return new me("triggerWaitPeriod","undefined or null");if("relatedPolicies"===t){if(void 0===this.relatedPolicies||null===this.relatedPolicies)return new me("relatedPolicies","undefined or null");if(!Vt.validateMaxItems(this.relatedPolicies,100))return new me("relatedPolicies","does not satisfy required maxItems constraint: 100")}if("entityType"===t){if(void 0===this.entityType||null===this.entityType)return new me("entityType","undefined or null");if(!Vt.validateMaxLength(this.entityType,10))return new me("entityType","does not satisfy required maxLength constraint: 10");if(!Vt.validateMinLength(this.entityType,1))return new me("entityType","does not satisfy required minLength constraint: 1")}return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&n.setTitle(e.title),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&n.setDescription(e.description),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&n.setIsEnabled(e.isEnabled),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&n.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("filters")&&null!==e.filters&&void 0!==e.filters){if(!Array.isArray(e.filters))throw"Unknown datatype "+(a=e.filters.hasOwnProperty("$objectType")?e.filters.$objectType:Zc(e.filters))+" in data";if(0===e.filters.length)n.setFilters([]);else{for(s=[],a=(r=e.filters)[0].hasOwnProperty("$objectType")?r[0].$objectType:Zc(r[0]),o=0;o<r.length;o++)switch(a){case"monitoring.v4.serviceability.EntityFilter":i=vc.constructFromObject(r[o],void 0),s.push(i);break;case"monitoring.v4.serviceability.GroupFilter":i=kc.constructFromObject(r[o],void 0),s.push(i);break;default:throw"Unknown list of type "+a+" in data"}n.setFilters(s)}}if(e.hasOwnProperty("triggerConditions")&&null!==e.triggerConditions&&void 0!==e.triggerConditions){for(s=[],r=e.triggerConditions,o=0;o<r.length;o++)i=Qc.constructFromObject(r[o],void 0),s.push(i);n.setTriggerConditions(s)}if(e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(s=[],r=e.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&n.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("isExpectedToErrorOnConflict")&&null!==e.isExpectedToErrorOnConflict&&void 0!==e.isExpectedToErrorOnConflict&&n.setIsExpectedToErrorOnConflict(e.isExpectedToErrorOnConflict),e.hasOwnProperty("policiesToOverride")&&null!==e.policiesToOverride&&void 0!==e.policiesToOverride){for(s=[],r=e.policiesToOverride,o=0;o<r.length;o++)s.push(r[o]);n.setPoliciesToOverride(s)}if(e.hasOwnProperty("triggerWaitPeriod")&&null!==e.triggerWaitPeriod&&void 0!==e.triggerWaitPeriod&&n.setTriggerWaitPeriod(e.triggerWaitPeriod),e.hasOwnProperty("relatedPolicies")&&null!==e.relatedPolicies&&void 0!==e.relatedPolicies){for(s=[],r=e.relatedPolicies,o=0;o<r.length;o++)i=Ic.constructFromObject(r[o],void 0),s.push(i);n.setRelatedPolicies(s)}if(e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&n.setEntityType(e.entityType),!u)for(var l in n.$unknownFields=td({},e.$unknownFields),e)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=e[l])}return n}}],r&&nd(n.prototype,r),i&&nd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function dd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Zc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function fd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pd(e){return pd="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},pd(e)}function yd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=bd(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bd(r.key),r)}}function bd(e){var t=function(e,t){if("object"!=pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pd(t)?t:t+""}function md(e,t,n){return t=wd(t),function(e,t){if(t&&("object"===pd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gd()?Reflect.construct(t,n||[],wd(e).constructor):t.apply(e,n))}function gd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gd=function(){return!!e})()}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wd(e)}function Od(e,t){return Od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Od(e,t)}function jd(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")}cd.prototype.title=void 0,cd.prototype.description=void 0,cd.prototype.isEnabled=!1,cd.prototype.isAutoResolved=!0,cd.prototype.filters=void 0,cd.prototype.triggerConditions=void 0,cd.prototype.impactTypes=void 0,cd.prototype.createdBy=void 0,cd.prototype.lastUpdatedTime=void 0,cd.prototype.isExpectedToErrorOnConflict=!0,cd.prototype.policiesToOverride=void 0,cd.prototype.triggerWaitPeriod=void 0,cd.prototype.relatedPolicies=void 0,cd.prototype.entityType=void 0;var $d=new WeakSet,Td=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=md(this,t),r=$d),r.add(n),e.$objectType="monitoring.v4.serviceability.CreateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Od(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hd(hd(hd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):jd($d,this,kd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):jd($d,this,kd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:pd(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":n.setData(cd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=hd({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&vd(n.prototype,r),i&&vd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function kd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fd(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===pd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Pd(e){return Pd="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},Pd(e)}function Ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ed(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ad(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ad(r.key),r)}}function Ad(e){var t=function(e,t){if("object"!=Pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pd(t)?t:t+""}Td.prototype.metadata=void 0,Td.prototype.data=void 0,Td.prototype.$reserved=void 0,Td.prototype.$objectType=void 0,Td.prototype.$unknownFields=void 0;var Dd=new WeakSet,Id=function(){function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Dd),r.add(n),this.extId=t,this.$objectType="monitoring.v4.serviceability.ConflictingPolicy",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sd(Sd({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Sd({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Fd(t.prototype,n),r&&Fd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rd(e){return Rd="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},Rd(e)}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Md(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Md(r.key),r)}}function Md(e){var t=function(e,t){if("object"!=Rd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Rd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rd(t)?t:t+""}function _d(e,t,n){return t=Jd(t),function(e,t){if(t&&("object"===Rd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ld()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}function Ld(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ld=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jd(e)}function Vd(e,t){return Vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vd(e,t)}function Wd(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")}Id.prototype.extId=void 0,Id.prototype.$reserved=void 0,Id.prototype.$objectType=void 0,Id.prototype.$unknownFields=void 0;var Bd=new WeakSet,zd=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=_d(this,t),r=Bd),r.add(n),e.$objectType="monitoring.v4.serviceability.FindConflictingUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vd(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xd(xd(xd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Wd(Bd,this,Gd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Wd(Bd,this,Gd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:Rd(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.ConflictingPolicy"!==a)throw"Unknown list of type "+a+" in data";i=Id.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rd(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=xd({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&Nd(n.prototype,r),i&&Nd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Gd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cd(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Rd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hd(e){return Hd="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},Hd(e)}function Kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Xd(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xd(r.key),r)}}function Xd(e){var t=function(e,t){if("object"!=Hd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Hd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hd(t)?t:t+""}function Zd(e,t,n){return t=tf(t),function(e,t){if(t&&("object"===Hd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ef()?Reflect.construct(t,n||[],tf(e).constructor):t.apply(e,n))}function ef(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ef=function(){return!!e})()}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tf(e)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nf(e,t)}function rf(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")}zd.prototype.metadata=void 0,zd.prototype.data=void 0,zd.prototype.$reserved=void 0,zd.prototype.$objectType=void 0,zd.prototype.$unknownFields=void 0;var of=new WeakSet,sf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Zd(this,t),r=of),r.add(n),e.$objectType="monitoring.v4.serviceability.UpdateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yd(Yd(Yd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):rf(of,this,af).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):rf(of,this,af).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Hd(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":n.setData(cd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=Yd({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Qd(n.prototype,r),i&&Qd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function af(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qd(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Hd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lf(e){return lf="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},lf(e)}function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=pf(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pf(r.key),r)}}function pf(e){var t=function(e,t){if("object"!=lf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=lf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lf(t)?t:t+""}function yf(e,t,n){return t=vf(t),function(e,t){if(t&&("object"===lf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hf()?Reflect.construct(t,n||[],vf(e).constructor):t.apply(e,n))}function hf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hf=function(){return!!e})()}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vf(e)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bf(e,t)}function mf(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")}sf.prototype.metadata=void 0,sf.prototype.data=void 0,sf.prototype.$reserved=void 0,sf.prototype.$objectType=void 0,sf.prototype.$unknownFields=void 0;var gf=new WeakSet,wf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=yf(this,t),r=gf),r.add(n),e.$objectType="monitoring.v4.serviceability.DeleteUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return df(df(df({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):mf(gf,this,Of).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):mf(gf,this,Of).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&n.setData(null),r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:lf(e.data)){case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;case"":n.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=df({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&ff(n.prototype,r),i&&ff(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Of(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?uf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===lf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function jf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $f(e){return $f="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},$f(e)}function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tf(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ef(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ef(r.key),r)}}function Ef(e){var t=function(e,t){if("object"!=$f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$f(t)?t:t+""}function Sf(e,t,n){return t=Af(t),function(e,t){if(t&&("object"===$f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ff()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function Ff(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ff=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Af(e)}function Df(e,t){return Df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Df(e,t)}function If(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")}wf.prototype.metadata=void 0,wf.prototype.data=void 0,wf.prototype.$reserved=void 0,wf.prototype.$objectType=void 0,wf.prototype.$unknownFields=void 0;var Cf=new WeakSet,Rf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Sf(this,t),r=Cf),r.add(n),e.$objectType="monitoring.v4.serviceability.ListUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Df(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kf(kf(kf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):If(Cf,this,Uf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):If(Cf,this,Uf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:$f(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.UserDefinedPolicy"!==a)throw"Unknown list of type "+a+" in data";i=cd.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$f(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=kf({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&Pf(n.prototype,r),i&&Pf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Uf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===$f(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function xf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nf(e){return Nf="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},Nf(e)}function Mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Jf(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jf(r.key),r)}}function Jf(e){var t=function(e,t){if("object"!=Nf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Nf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nf(t)?t:t+""}function Vf(e,t,n){return t=Bf(t),function(e,t){if(t&&("object"===Nf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wf()?Reflect.construct(t,n||[],Bf(e).constructor):t.apply(e,n))}function Wf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wf=function(){return!!e})()}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bf(e)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zf(e,t)}function Gf(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")}Rf.prototype.metadata=void 0,Rf.prototype.data=void 0,Rf.prototype.$reserved=void 0,Rf.prototype.$objectType=void 0,Rf.prototype.$unknownFields=void 0;var qf=new WeakSet,Hf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Vf(this,t),r=qf),r.add(n),e.$objectType="monitoring.v4.serviceability.GetUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _f(_f(_f({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Gf(qf,this,Kf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Gf(qf,this,Kf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Nf(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":n.setData(cd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=_f({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Lf(n.prototype,r),i&&Lf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Kf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Nf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Yf(e){return Yf="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},Yf(e)}function Qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qf(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ep(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ep(r.key),r)}}function ep(e){var t=function(e,t){if("object"!=Yf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Yf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yf(t)?t:t+""}function tp(e,t){return e.get(np(e,t))}function np(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")}Hf.prototype.metadata=void 0,Hf.prototype.data=void 0,Hf.prototype.$reserved=void 0,Hf.prototype.$objectType=void 0,Hf.prototype.$unknownFields=void 0;var rp=new WeakMap,ip=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=rp),o.set(i,s),this.apiClient=t||Y.instance,n=rp,r=new Set,n.set(np(n,this),r),tp(rp,this).add("authorization"),tp(rp,this).add("cookie"),tp(rp,this).add("host"),tp(rp,this).add("user-agent")},t=[{key:"createUdaPolicy",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof cd&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createUdaPolicy");var i={};Object.keys(r).forEach((function(e){tp(rp,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=Xf({},i);Y.addEtagReferenceToHeader(e,o);var s=Td;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies","POST",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteUdaPolicyById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){tp(rp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Xf({},i),s=wf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/{extId}","DELETE",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"findConflictingUdaPolicies",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof cd&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling findConflictingUdaPolicies");var i={};Object.keys(r).forEach((function(e){tp(rp,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=Xf({},i);Y.addEtagReferenceToHeader(e,o);var s=zd;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/$actions/find-conflicts","POST",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getUdaPolicyById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){tp(rp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Xf({},i),s=Hf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listUdaPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Xf(Xf(Xf(Xf(Xf({},(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}:{}),i={};Object.keys(n).forEach((function(e){tp(rp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Xf({},i),s=Rf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"updateUdaPolicyById",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof cd&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateUdaPolicyById");if(null==n)throw new Error("Invalid body when calling updateUdaPolicyById");var o={extId:e},s={};Object.keys(i).forEach((function(e){tp(rp,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=Xf({},s);Y.addEtagReferenceToHeader(t,a);var u=sf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/{extId}","PUT",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&Zf(e.prototype,t),n&&Zf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function op(e){return op="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},op(e)}function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=lp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function up(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lp(r.key),r)}}function lp(e){var t=function(e,t){if("object"!=op(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==op(t)?t:t+""}var cp=new WeakSet,dp=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=cp),n.add(t),this.$objectType="monitoring.v4.common.CauseAndResolution",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ap(ap(ap({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"cause"!==t||void 0!==this.cause&&null!==this.cause?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("resolution","undefined or null"):new me("cause","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("cause")&&null!==t.cause&&void 0!==t.cause&&n.setCause(t.cause),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ap({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&up(t.prototype,n),r&&up(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();dp.prototype.cause=void 0,dp.prototype.resolution=void 0,dp.prototype.$reserved=void 0,dp.prototype.$objectType=void 0,dp.prototype.$unknownFields=void 0;var fp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENABLED:"ENABLED",DISABLED:"DISABLED",NOT_SUPPORTED:"NOT_SUPPORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fp).find((function(t){return fp[t]===e}));return null==t?fp.$UNKNOWN:fp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fp.$UNKNOWN:case fp.$REDACTED:case fp.ENABLED:case fp.DISABLED:case fp.NOT_SUPPORTED:return;default:throw new Error("Invalid : must be AutoResolve.{ $UNKNOWN|$REDACTED|ENABLED|DISABLED|NOT_SUPPORTED }")}}};Object.freeze(fp);const pp=fp;function yp(e){return yp="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},yp(e)}function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=mp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mp(r.key),r)}}function mp(e){var t=function(e,t){if("object"!=yp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=yp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yp(t)?t:t+""}var gp=new WeakSet,wp=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=gp),n.add(t),this.$objectType="monitoring.v4.serviceability.SeverityThresholdInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vp(vp(vp({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("isEnabled","undefined or null"):new me("severity","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(kr.constructFromObject(t.severity)),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=vp({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&bp(t.prototype,n),r&&bp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Op(e){return Op="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},Op(e)}function jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=kp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kp(r.key),r)}}function kp(e){var t=function(e,t){if("object"!=Op(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Op(t)?t:t+""}wp.prototype.severity=void 0,wp.prototype.isEnabled=void 0,wp.prototype.$reserved=void 0,wp.prototype.$objectType=void 0,wp.prototype.$unknownFields=void 0;var Pp=new WeakSet,Ep=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Pp),n.add(t),this.$objectType="monitoring.v4.serviceability.AlertConfigExceptionGroup",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getAutoResolve",value:function(){return this.autoResolve}},{key:"setAutoResolve",value:function(e){this.autoResolve=e}},{key:"getClusterUuids",value:function(){return this.clusterUuids}},{key:"setClusterUuids",value:function(e){this.clusterUuids=e}},{key:"getSeverityThresholdInfos",value:function(){return this.severityThresholdInfos}},{key:"setSeverityThresholdInfos",value:function(e){this.severityThresholdInfos=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $p($p($p($p({},void 0!==this.getAutoResolve()&&null!==this.getAutoResolve()?{autoResolve:this.getAutoResolve()}:{}),void 0!==this.getClusterUuids()&&null!==this.getClusterUuids()?{clusterUuids:this.getClusterUuids()}:{}),void 0!==this.getSeverityThresholdInfos()&&null!==this.getSeverityThresholdInfos()?{severityThresholdInfos:this.getSeverityThresholdInfos().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("autoResolve"===t&&(void 0===this.autoResolve||null===this.autoResolve))return new me("autoResolve","undefined or null");if("clusterUuids"===t){if(void 0===this.clusterUuids||null===this.clusterUuids)return new me("clusterUuids","undefined or null");if(!Vt.validateMaxItems(this.clusterUuids,100))return new me("clusterUuids","does not satisfy required maxItems constraint: 100")}if("severityThresholdInfos"===t){if(void 0===this.severityThresholdInfos||null===this.severityThresholdInfos)return new me("severityThresholdInfos","undefined or null");if(!Vt.validateMaxItems(this.severityThresholdInfos,3))return new me("severityThresholdInfos","does not satisfy required maxItems constraint: 3")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("autoResolve")&&null!==t.autoResolve&&void 0!==t.autoResolve&&n.setAutoResolve(pp.constructFromObject(t.autoResolve)),t.hasOwnProperty("clusterUuids")&&null!==t.clusterUuids&&void 0!==t.clusterUuids){for(s=[],r=t.clusterUuids,o=0;o<r.length;o++)s.push(r[o]);n.setClusterUuids(s)}if(t.hasOwnProperty("severityThresholdInfos")&&null!==t.severityThresholdInfos&&void 0!==t.severityThresholdInfos){for(s=[],r=t.severityThresholdInfos,o=0;o<r.length;o++)i=wp.constructFromObject(r[o],void 0),s.push(i);n.setSeverityThresholdInfos(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=$p({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Tp(t.prototype,n),r&&Tp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sp(e){return Sp="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},Sp(e)}function Fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ip(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ip(r.key),r)}}function Ip(e){var t=function(e,t){if("object"!=Sp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Sp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sp(t)?t:t+""}function Cp(e,t,n){return t=Up(t),function(e,t){if(t&&("object"===Sp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rp()?Reflect.construct(t,n||[],Up(e).constructor):t.apply(e,n))}function Rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rp=function(){return!!e})()}function Up(e){return Up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Up(e)}function xp(e,t){return xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xp(e,t)}Ep.prototype.autoResolve=void 0,Ep.prototype.clusterUuids=void 0,Ep.prototype.severityThresholdInfos=void 0,Ep.prototype.$reserved=void 0,Ep.prototype.$objectType=void 0,Ep.prototype.$unknownFields=void 0;var Np=new WeakSet,Mp=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Cp(this,t),r=Np),r.add(n),e.$objectType="monitoring.v4.serviceability.AlertDb",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xp(e,t)}(t,e),n=t,r=[{key:"getProtobuf",value:function(){return this.protobuf}},{key:"setProtobuf",value:function(e){this.protobuf=e}},{key:"getIsAcknowledged",value:function(){return this.isAcknowledged}},{key:"setIsAcknowledged",value:function(e){this.isAcknowledged=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getIsResolved",value:function(){return this.isResolved}},{key:"setIsResolved",value:function(e){this.isResolved=e}},{key:"getAlertType",value:function(){return this.alertType}},{key:"setAlertType",value:function(e){this.alertType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getOriginatingClusterUUID",value:function(){return this.originatingClusterUUID}},{key:"setOriginatingClusterUUID",value:function(e){this.originatingClusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getAcknowledgedTime",value:function(){return this.acknowledgedTime}},{key:"setAcknowledgedTime",value:function(e){this.acknowledgedTime=e}},{key:"getResolvedTime",value:function(){return this.resolvedTime}},{key:"setResolvedTime",value:function(e){this.resolvedTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getCluster",value:function(){return this.cluster}},{key:"setCluster",value:function(e){this.cluster=e}},{key:"getIsUserDefined",value:function(){return this.isUserDefined}},{key:"setIsUserDefined",value:function(e){this.isUserDefined=e}},{key:"getResolvedByUsername",value:function(){return this.resolvedByUsername}},{key:"setResolvedByUsername",value:function(e){this.resolvedByUsername=e}},{key:"getAcknowledgedByUsername",value:function(){return this.acknowledgedByUsername}},{key:"setAcknowledgedByUsername",value:function(e){this.acknowledgedByUsername=e}},{key:"toJson",value:function(e){return Ap(!1===e?Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap({},void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap({},void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("protobuf"===t&&(void 0===this.protobuf||null===this.protobuf))return new me("protobuf","undefined or null");if("isAcknowledged"===t&&(void 0===this.isAcknowledged||null===this.isAcknowledged))return new me("isAcknowledged","undefined or null");if("serviceName"===t&&(void 0===this.serviceName||null===this.serviceName))return new me("serviceName","undefined or null");if("severity"===t&&(void 0===this.severity||null===this.severity))return new me("severity","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new me("isAutoResolved","undefined or null");if("isResolved"===t&&(void 0===this.isResolved||null===this.isResolved))return new me("isResolved","undefined or null");if("alertType"===t&&(void 0===this.alertType||null===this.alertType))return new me("alertType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("originatingClusterUUID"===t){if(void 0===this.originatingClusterUUID||null===this.originatingClusterUUID)return new me("originatingClusterUUID","undefined or null");if(!Vt.validatePattern(this.originatingClusterUUID,/^[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 me("originatingClusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new me("lastUpdatedTime","undefined or null");if("acknowledgedTime"===t&&(void 0===this.acknowledgedTime||null===this.acknowledgedTime))return new me("acknowledgedTime","undefined or null");if("resolvedTime"===t&&(void 0===this.resolvedTime||null===this.resolvedTime))return new me("resolvedTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("cluster"===t){if(void 0===this.cluster||null===this.cluster)return new me("cluster","undefined or null");if(!Vt.validateMaxItems(this.cluster,50))return new me("cluster","does not satisfy required maxItems constraint: 50")}return"isUserDefined"!==t||void 0!==this.isUserDefined&&null!==this.isUserDefined?"resolvedByUsername"!==t||void 0!==this.resolvedByUsername&&null!==this.resolvedByUsername?"acknowledgedByUsername"!==t||void 0!==this.acknowledgedByUsername&&null!==this.acknowledgedByUsername?new me(t,"no such property exists"):new me("acknowledgedByUsername","undefined or null"):new me("resolvedByUsername","undefined or null"):new me("isUserDefined","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("protobuf")&&null!==e.protobuf&&void 0!==e.protobuf&&n.setProtobuf(e.protobuf),e.hasOwnProperty("isAcknowledged")&&null!==e.isAcknowledged&&void 0!==e.isAcknowledged&&n.setIsAcknowledged(e.isAcknowledged),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&n.setSeverity(kr.constructFromObject(e.severity)),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&n.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("isResolved")&&null!==e.isResolved&&void 0!==e.isResolved&&n.setIsResolved(e.isResolved),e.hasOwnProperty("alertType")&&null!==e.alertType&&void 0!==e.alertType&&n.setAlertType(e.alertType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(s=[],r=e.classifications,o=0;o<r.length;o++)s.push(r[o]);n.setClassifications(s)}if(e.hasOwnProperty("originatingClusterUUID")&&null!==e.originatingClusterUUID&&void 0!==e.originatingClusterUUID&&n.setOriginatingClusterUUID(e.originatingClusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(s=[],r=e.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("acknowledgedTime")&&null!==e.acknowledgedTime&&void 0!==e.acknowledgedTime&&n.setAcknowledgedTime(e.acknowledgedTime),e.hasOwnProperty("resolvedTime")&&null!==e.resolvedTime&&void 0!==e.resolvedTime&&n.setResolvedTime(e.resolvedTime),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(yn.constructFromObject(e.sourceEntity)),e.hasOwnProperty("cluster")&&null!==e.cluster&&void 0!==e.cluster){for(s=[],r=e.cluster,o=0;o<r.length;o++)s.push(r[o]);n.setCluster(s)}if(e.hasOwnProperty("isUserDefined")&&null!==e.isUserDefined&&void 0!==e.isUserDefined&&n.setIsUserDefined(e.isUserDefined),e.hasOwnProperty("resolvedByUsername")&&null!==e.resolvedByUsername&&void 0!==e.resolvedByUsername&&n.setResolvedByUsername(e.resolvedByUsername),e.hasOwnProperty("acknowledgedByUsername")&&null!==e.acknowledgedByUsername&&void 0!==e.acknowledgedByUsername&&n.setAcknowledgedByUsername(e.acknowledgedByUsername),!a)for(var u in n.$unknownFields=Ap({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Dp(n.prototype,r),i&&Dp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function _p(e){return _p="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},_p(e)}function Lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jp(e,t,n){return(t=Wp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wp(r.key),r)}}function Wp(e){var t=function(e,t){if("object"!=_p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_p(t)?t:t+""}function Bp(e,t,n){return t=Gp(t),function(e,t){if(t&&("object"===_p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zp()?Reflect.construct(t,n||[],Gp(e).constructor):t.apply(e,n))}function zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zp=function(){return!!e})()}function Gp(e){return Gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gp(e)}function qp(e,t){return qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qp(e,t)}Mp.prototype.protobuf=void 0,Mp.prototype.isAcknowledged=void 0,Mp.prototype.serviceName=void 0,Mp.prototype.severity=void 0,Mp.prototype.isAutoResolved=void 0,Mp.prototype.isResolved=void 0,Mp.prototype.alertType=void 0,Mp.prototype.classifications=void 0,Mp.prototype.originatingClusterUUID=void 0,Mp.prototype.creationTime=void 0,Mp.prototype.impactTypes=void 0,Mp.prototype.lastUpdatedTime=void 0,Mp.prototype.acknowledgedTime=void 0,Mp.prototype.resolvedTime=void 0,Mp.prototype.sourceEntity=void 0,Mp.prototype.cluster=void 0,Mp.prototype.isUserDefined=void 0,Mp.prototype.resolvedByUsername=void 0,Mp.prototype.acknowledgedByUsername=void 0;var Hp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Bp(this,t)).$objectType="monitoring.v4.serviceability.RootCauseAnalysisProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qp(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,xr.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach((function(t){Jp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Vp(n.prototype,r),i&&Vp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(xr);function Kp(e){return Kp="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},Kp(e)}function Yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Zp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zp(r.key),r)}}function Zp(e){var t=function(e,t){if("object"!=Kp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Kp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kp(t)?t:t+""}function ey(e,t,n){return t=ny(t),function(e,t){if(t&&("object"===Kp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ty()?Reflect.construct(t,n||[],ny(e).constructor):t.apply(e,n))}function ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ty=function(){return!!e})()}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ny(e)}function ry(e,t){return ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ry(e,t)}var iy=new WeakSet,oy=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ey(this,t),r=iy),r.add(n),e.$objectType="monitoring.v4.serviceability.AlertDbProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ry(e,t)}(t,e),n=t,r=[{key:"getRootCauseAnalysisProjection",value:function(){return this.rootCauseAnalysisProjection}},{key:"setRootCauseAnalysisProjection",value:function(e){this.rootCauseAnalysisProjection=e}},{key:"toJson",value:function(e){return Qp(!1===e?Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp({},void 0!==this.getRootCauseAnalysisProjection()&&null!==this.getRootCauseAnalysisProjection()?{rootCauseAnalysisProjection:this.getRootCauseAnalysisProjection().toJson(!1)}:{}),void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp({},void 0!==this.getRootCauseAnalysisProjection()&&null!==this.getRootCauseAnalysisProjection()?{rootCauseAnalysisProjection:this.getRootCauseAnalysisProjection().toJson(!1)}:{}),void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"rootCauseAnalysisProjection"!==t||void 0!==this.rootCauseAnalysisProjection&&null!==this.rootCauseAnalysisProjection?new me(t,"no such property exists"):new me("rootCauseAnalysisProjection","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Mp.constructFromObject(e,n,!0),e.hasOwnProperty("rootCauseAnalysisProjection")&&null!==e.rootCauseAnalysisProjection&&void 0!==e.rootCauseAnalysisProjection&&n.setRootCauseAnalysisProjection(Hp.constructFromObject(e.rootCauseAnalysisProjection)),!r))for(var i in n.$unknownFields=Qp({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Xp(n.prototype,r),i&&Xp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Mp);function sy(e){return sy="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},sy(e)}function ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ay(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=cy(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ay(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ly(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cy(r.key),r)}}function cy(e){var t=function(e,t){if("object"!=sy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=sy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sy(t)?t:t+""}oy.prototype.rootCauseAnalysisProjection=void 0;var dy=new WeakSet,fy=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dy),n.add(t),this.$objectType="monitoring.v4.serviceability.AuditDb",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getProtobuf",value:function(){return this.protobuf}},{key:"setProtobuf",value:function(e){this.protobuf=e}},{key:"getUserReference",value:function(){return this.userReference}},{key:"setUserReference",value:function(e){this.userReference=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAuditType",value:function(){return this.auditType}},{key:"setAuditType",value:function(e){this.auditType=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getOperationStartTime",value:function(){return this.operationStartTime}},{key:"setOperationStartTime",value:function(e){this.operationStartTime=e}},{key:"getOperationEndTime",value:function(){return this.operationEndTime}},{key:"setOperationEndTime",value:function(e){this.operationEndTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return uy(uy(uy(uy(uy(uy(uy(uy(uy(uy(uy(uy({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:this.getOperationStartTime()}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:this.getOperationEndTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}if("protobuf"===t&&(void 0===this.protobuf||null===this.protobuf))return new me("protobuf","undefined or null");if("userReference"===t&&(void 0===this.userReference||null===this.userReference))return new me("userReference","undefined or null");if("operationType"===t&&(void 0===this.operationType||null===this.operationType))return new me("operationType","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("auditType"===t&&(void 0===this.auditType||null===this.auditType))return new me("auditType","undefined or null");if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("operationStartTime"===t&&(void 0===this.operationStartTime||null===this.operationStartTime))return new me("operationStartTime","undefined or null");if("operationEndTime"===t&&(void 0===this.operationEndTime||null===this.operationEndTime))return new me("operationEndTime","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new me("status","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("protobuf")&&null!==t.protobuf&&void 0!==t.protobuf&&n.setProtobuf(t.protobuf),t.hasOwnProperty("userReference")&&null!==t.userReference&&void 0!==t.userReference&&n.setUserReference(Aa.constructFromObject(t.userReference)),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(ya.constructFromObject(t.operationType)),t.hasOwnProperty("sourceEntity")&&null!==t.sourceEntity&&void 0!==t.sourceEntity&&n.setSourceEntity(Oa.constructFromObject(t.sourceEntity)),t.hasOwnProperty("auditType")&&null!==t.auditType&&void 0!==t.auditType&&n.setAuditType(t.auditType),t.hasOwnProperty("creationTime")&&null!==t.creationTime&&void 0!==t.creationTime&&n.setCreationTime(t.creationTime),t.hasOwnProperty("operationStartTime")&&null!==t.operationStartTime&&void 0!==t.operationStartTime&&n.setOperationStartTime(t.operationStartTime),t.hasOwnProperty("operationEndTime")&&null!==t.operationEndTime&&void 0!==t.operationEndTime&&n.setOperationEndTime(t.operationEndTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus($a.constructFromObject(t.status)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=uy({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ly(t.prototype,n),r&&ly(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function py(e){return py="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},py(e)}function yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hy(e,t,n){return(t=by(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,by(r.key),r)}}function by(e){var t=function(e,t){if("object"!=py(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=py(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==py(t)?t:t+""}function my(e,t,n){return t=wy(t),function(e,t){if(t&&("object"===py(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gy()?Reflect.construct(t,n||[],wy(e).constructor):t.apply(e,n))}function gy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gy=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wy(e)}function Oy(e,t){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oy(e,t)}fy.prototype.extId=void 0,fy.prototype.protobuf=void 0,fy.prototype.userReference=void 0,fy.prototype.operationType=void 0,fy.prototype.sourceEntity=void 0,fy.prototype.auditType=void 0,fy.prototype.creationTime=void 0,fy.prototype.operationStartTime=void 0,fy.prototype.operationEndTime=void 0,fy.prototype.status=void 0,fy.prototype.message=void 0,fy.prototype.$reserved=void 0,fy.prototype.$objectType=void 0,fy.prototype.$unknownFields=void 0;var jy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=my(this,t)).$objectType="monitoring.v4.serviceability.AuditDbProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oy(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,fy.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yy(Object(n),!0).forEach((function(t){hy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&vy(n.prototype,r),i&&vy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(fy);function $y(e){return $y="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},$y(e)}function Ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ky(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ey(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Py(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ey(r.key),r)}}function Ey(e){var t=function(e,t){if("object"!=$y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$y(t)?t:t+""}var Sy=new WeakSet,Fy=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Sy),n.add(t),this.$objectType="monitoring.v4.serviceability.EventDb",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getProtobuf",value:function(){return this.protobuf}},{key:"setProtobuf",value:function(e){this.protobuf=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ky(ky(ky(ky(ky(ky(ky(ky({},void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("protobuf"===t&&(void 0===this.protobuf||null===this.protobuf))return new me("protobuf","undefined or null");if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new me("eventType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("protobuf")&&null!==t.protobuf&&void 0!==t.protobuf&&n.setProtobuf(t.protobuf),t.hasOwnProperty("eventType")&&null!==t.eventType&&void 0!==t.eventType&&n.setEventType(t.eventType),t.hasOwnProperty("classifications")&&null!==t.classifications&&void 0!==t.classifications){for(o=[],r=t.classifications,i=0;i<r.length;i++)o.push(r[i]);n.setClassifications(o)}if(t.hasOwnProperty("creationTime")&&null!==t.creationTime&&void 0!==t.creationTime&&n.setCreationTime(t.creationTime),t.hasOwnProperty("sourceEntity")&&null!==t.sourceEntity&&void 0!==t.sourceEntity&&n.setSourceEntity(Du.constructFromObject(t.sourceEntity)),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=ky({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],n&&Py(t.prototype,n),r&&Py(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ay(e){return Ay="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},Ay(e)}function Dy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iy(e,t,n){return(t=Ry(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ry(r.key),r)}}function Ry(e){var t=function(e,t){if("object"!=Ay(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ay(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ay(t)?t:t+""}function Uy(e,t,n){return t=Ny(t),function(e,t){if(t&&("object"===Ay(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xy()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function xy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xy=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ny(e)}function My(e,t){return My=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},My(e,t)}Fy.prototype.protobuf=void 0,Fy.prototype.eventType=void 0,Fy.prototype.classifications=void 0,Fy.prototype.creationTime=void 0,Fy.prototype.sourceEntity=void 0,Fy.prototype.extId=void 0,Fy.prototype.message=void 0,Fy.prototype.$reserved=void 0,Fy.prototype.$objectType=void 0,Fy.prototype.$unknownFields=void 0;var _y=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Uy(this,t)).$objectType="monitoring.v4.serviceability.EventDbProjection",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&My(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Fy.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dy(Object(n),!0).forEach((function(t){Iy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Cy(n.prototype,r),i&&Cy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Fy);function Ly(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jy(e){return Jy="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},Jy(e)}function Vy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=zy(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function By(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zy(r.key),r)}}function zy(e){var t=function(e,t){if("object"!=Jy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jy(t)?t:t+""}function Gy(e,t,n){return t=Hy(t),function(e,t){if(t&&("object"===Jy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qy()?Reflect.construct(t,n||[],Hy(e).constructor):t.apply(e,n))}function qy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qy=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hy(e)}function Ky(e,t){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ky(e,t)}function Yy(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 Qy=new WeakSet,Xy=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Gy(this,t),r=Qy),r.add(n),e.$objectType="monitoring.v4.serviceability.ManageAlertsApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ky(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Wy(Wy(Wy({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Yy(Qy,this,Zy).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Yy(Qy,this,Zy).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Jy(e.data)){case"prism.v4.config.TaskReference":n.setData(Il.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=Wy({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&By(n.prototype,r),i&&By(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Zy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ly(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ly(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Jy(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function th(e){return th="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},th(e)}function nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=oh(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ih(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oh(r.key),r)}}function oh(e){var t=function(e,t){if("object"!=th(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=th(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==th(t)?t:t+""}function sh(e,t,n){return t=uh(t),function(e,t){if(t&&("object"===th(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ah()?Reflect.construct(t,n||[],uh(e).constructor):t.apply(e,n))}function ah(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ah=function(){return!!e})()}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(e)}function lh(e,t){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lh(e,t)}function ch(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")}Xy.prototype.metadata=void 0,Xy.prototype.data=void 0,Xy.prototype.$reserved=void 0,Xy.prototype.$objectType=void 0,Xy.prototype.$unknownFields=void 0;var dh=new WeakSet,fh=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=sh(this,t),r=dh),r.add(n),e.$objectType="monitoring.v4.serviceability.UpdateSdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lh(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rh(rh(rh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ch(dh,this,ph).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ch(dh,this,ph).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:th(e.data)){case"prism.v4.config.TaskReference":n.setData(Il.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=rh({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&ih(n.prototype,r),i&&ih(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ph(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===th(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}fh.prototype.metadata=void 0,fh.prototype.data=void 0,fh.prototype.$reserved=void 0,fh.prototype.$objectType=void 0,fh.prototype.$unknownFields=void 0;const yh={ApiClient:Y,AlertsApi:Ni,AlertEmailConfigurationApi:fa,AuditsApi:Tu,EventsApi:kl,ManageAlertsApi:lc,UserDefinedPoliciesApi:ip,FQDN:So,Flag:ke,IPAddressOrFQDN:Ko,IPv4Address:Uo,IPv6Address:Vo,KVPair:Re,KVStringPair:so,Message:Be,MessageSeverity:Ne,TenantAwareModel:Kt,ApiLink:Qe,ApiResponseMetadata:it,ExternalizableAbstractModel:an,AlertEntityReference:yn,BoolValue:An,CauseAndResolution:dp,ComparisonOperator:In,ConditionType:Rn,DataType:xn,DoubleValue:Wn,EntityReference:On,ImpactType:$n,IntValue:Yn,MetricDetail:fr,OperationType:ya,Parameter:jr,Severity:kr,StringValue:rr,AppMessage:pt,ErrorResponse:Nt,SchemaValidationError:St,SchemaValidationErrorMessage:Ot,ActionType:Hl,Alert:ei,AlertActionSpec:tc,AlertConfigExceptionGroup:Ep,AlertDb:Mp,AlertDbProjection:oy,AlertEmailConfiguration:Fs,Audit:Ja,AuditDb:fy,AuditDbProjection:jy,AuditEntityReference:Oa,AutoResolve:pp,CommunicationStatus:Oo,Condition:Jc,ConflictingPolicy:Id,ConnectionStatus:Zi,CreateUdaPolicyApiResponse:Td,DeleteUdaPolicyApiResponse:wf,EmailConfigurationRule:Bi,EmailTemplate:Qi,EntityFilter:vc,Event:Vu,EventDb:Fy,EventDbProjection:_y,EventEntityReference:Du,FindConflictingUdaPoliciesApiResponse:zd,GetAlertApiResponse:Ei,GetAlertEmailConfigurationApiResponse:Vs,GetAuditApiResponse:eu,GetEventApiResponse:hl,GetUdaPolicyApiResponse:Hf,GroupEntityType:mc,GroupFilter:kc,HttpProxy:is,ListAlertsApiResponse:pi,ListAuditsApiResponse:yu,ListEventsApiResponse:tl,ListUdaPoliciesApiResponse:Rf,ManageAlertApiResponse:zl,ManageAlertsApiResponse:Xy,ParameterizedMessage:yo,PolicySeverityLevel:Bc,ProxyType:Qo,RelatedPolicy:Ic,RemoteTunnelDetails:ms,RootCauseAnalysis:xr,RootCauseAnalysisProjection:Hp,ServiceCenter:ds,SeverityThresholdInfo:wp,SeverityTrail:Wr,Status:$a,TriggerCondition:Qc,UpdateAlertEmailConfigurationApiResponse:na,UpdateSdaPolicyApiResponse:fh,UpdateUdaPolicyApiResponse:sf,UserDefinedPolicy:cd,UserReference:Aa,TaskReference:Il}})(),r.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.Monitoring=t())}("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,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.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],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].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=>{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=a,a.default=a,a.stable=d,a.stableStringify=d;var n="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===o.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,s])):o.push([t,n,e]):(r[n]=e,i.push([r,n,t]))}function l(e,i,o,s,a,c,d){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void u(r,e,i,a);if(void 0!==d.depthLimit&&c>d.depthLimit)return void u(n,e,i,a);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void u(n,e,i,a);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,s,e,c,d);else{var p=Object.keys(e);for(f=0;f<p.length;f++){var y=p[f];l(e[y],y,f,s,e,c,d)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var a,u=f(e,"",0,[],void 0,0,r)||e;try{a=0===o.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function f(e,o,s,a,l,d,p){var y;if(d+=1,"object"===t(e)&&null!==e){for(y=0;y<a.length;y++)if(a[y]===e)return void u(r,e,o,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void u(n,e,o,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,o,l);if(a.push(e),Array.isArray(e))for(y=0;y<e.length;y++)f(e[y],y,y,a,e,d,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];f(e[b],b,y,a,e,d,p),h[b]=e[b]}if(void 0===l)return h;i.push([l,o,e]),l[o]=h}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}var i="win32"===process.platform,o=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function a(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=l.exec(r);return[n,i[1],i[2],i[3]]}function f(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var i;if(r>=0?i=arguments[r]:e?(i=process.env["="+e])&&i.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(i=e+"\\"):i=process.cwd(),!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");if(i){var a=f(i),u=a.device,l=a.isUnc,c=a.isAbsolute,d=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=d+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=s(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&a&&(o+="\\"),r&&(n=p(n)),n+(i?"\\":"")+o},c.isAbsolute=function(e){return f(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!o.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),i=a(t.split("\\")),o=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(o.length,s.length),l=u,d=0;d<u;d++)if(o[d]!==s[d]){l=d;break}if(0==l)return t;var f=[];for(d=l;d<o.length;d++)f.push("..");return(f=f.concat(i.slice(l))).join("\\")},c._makeLong=function(e){if(!o.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=d(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return d(e)[3]},c.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,i=e.base||"";return n?n[n.length-1]===c.sep?n+i:n+c.sep+i:i},c.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=d(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)}},c.sep="\\",c.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function v(e){return y.exec(e).slice(1)}h.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!o.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},h.isAbsolute=function(e){return"/"===e.charAt(0)},h.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!o.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return h.normalize(e)},h.relative=function(e,t){e=h.resolve(e).substr(1),t=h.resolve(t).substr(1);for(var n=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,s=0;s<i;s++)if(n[s]!==r[s]){o=s;break}var u=[];for(s=o;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(o))).join("/")},h._makeLong=function(e){return e},h.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},h.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},h.extname=function(e){return v(e)[3]},h.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+h.sep:"")+(e.base||"")},h.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(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)}},h.sep="/",h.delimiter=":",e.exports=i?c:h,e.exports.posix=h,e.exports.win32=c},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var i=t.status;if(i>=500)return!0;if((i>=400||i<200)&&-1===n.indexOf(i))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var i=t.length,o=e-i;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var s=t[i-1],a=0;a<o+1;a++)t.push(s)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),n.prototype._setDefaults=function(e){this._defaults.forEach((function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||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 r(e){return r="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},r(e)}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(619);function d(){}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 f=t=e.exports;t.Request=g,f.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.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(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){h(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},i=e.split("&"),o=0,s=i.length;o<s;++o)-1===(n=(t=i[o]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(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,r,i,o=e.split(/\r?\n/),s={},a=0,u=o.length;a<u;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=p(n.slice(t+1)),s[r]=i);return s}(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 g(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,r=null;try{r=new m(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",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=y,f.parseString=v,f.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"},f.serialize={"application/x-www-form-urlencoded":y,"application/json":s},f.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},f.Response=m,o(g.prototype),a(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",f.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(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")}))},g.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},g.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},g.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},g.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)},g.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)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.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||d,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.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=f.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 r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=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",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.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 i=this._header["content-type"],o=this._serializer||f.serialize[i?i.split(";")[0]:""];!o&&b(i)&&(o=f.serialize["application/json"]),o&&(n=o(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},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 r(e){return r="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},r(e)}var i=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"!==r(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 s=["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&&s.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 r=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){r.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)}})),r.end((function(n,r){n?t(n):e(r)}))}))}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(i(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(i(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 r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);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,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".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=i(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&&i(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);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 r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},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 r=n(897);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.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(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(e[r]=i),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,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=>{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 e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},818:(e,t,n)=>{function r(e){return r="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},r(e)}var i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<o;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(e,r){if(m(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o,s={};function a(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&$(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return b(i)||(i=c(e,i,r)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if($(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return d(n)}var l,w="",k=!1,T=["{","}"];return p(n)&&(k=!0,T=["[","]"]),$(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+d(n)),0!==s.length||k&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=k?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return f(e,n,r,a,t,k)})),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]}(l,w,T)):T[0]+w+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.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(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===k(e)}function j(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function $(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(o)&&(o=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=m,t.isRegExp=g,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=$,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[T((e=new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 r={};return(()=>{"use strict";n.d(r,{default:()=>Iw});var e=n(585),t=n.n(e);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)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){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)}},{key:"getPrevPage",value:function(){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)}},{key:"getNextPage",value:function(){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)}},{key:"getLastPage",value:function(){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)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(i.s();!(r=i.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){i.e(e)}finally{i.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function d(){if(!u&&!(u="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 u(c)}const f=/^(?:[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 p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return h(r)};var b=n(540),m=n.n(b),g=n(545),w=n.n(g),O=n(799),j=n.n(O),$=n(784),k=n.n($),T=n(548),P={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return P[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===P.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(P);const E=P;function S(e){return S="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},S(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function D(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}var A=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t==0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function C(e){return C="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},C(e)}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R(r.key),r)}}function R(e){var t=function(e){if("object"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}var U=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&I(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="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},N(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function L(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var J=new WeakSet,W=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,J),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=_({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&M(t.prototype,n),r&&M(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function B(e){return B="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},B(e)}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e){if("object"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(t)?t:t+""}function X(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.prototype.name=void 0,W.prototype.value=!1,W.prototype.$reserved=void 0,W.prototype.$objectType=void 0,W.prototype.$unknownFields=void 0;var Q=new WeakSet,Z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Q),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return q(q({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:X(Q,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:X(Q,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=q({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&H(t.prototype,n),r&&H(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?G(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===B(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="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},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ae(r.key),r)}}function ae(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(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")}Z.prototype.map=void 0,Z.prototype.$reserved=void 0,Z.prototype.$objectType=void 0,Z.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ie(ie(ie({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ue(le,this,de).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ue(le,this,de).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&a.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)a.setValue([]);else{for(o=[],s=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),i=0;i<n.length;i++)switch(s){case"string":case"integer":case"number":o.push(n[i]);break;case"common.v1.config.MapOfStringWrapper":r=Z.constructFromObject(n[i],void 0),o.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setValue(o)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":a.setValue(t.value);break;case"object":a.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=ie({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function de(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}ce.prototype.name=void 0,ce.prototype.value=void 0,ce.prototype.$reserved=void 0,ce.prototype.$objectType=void 0,ce.prototype.$unknownFields=void 0;var fe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fe).find((function(t){return fe[t]===e}));return null==t?fe.$UNKNOWN:fe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fe.$UNKNOWN:case fe.$REDACTED:case fe.INFO:case fe.WARNING:case fe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(fe);const pe=fe;function ye(e){return ye="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},ye(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function be(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ge(r.key),r)}}function ge(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ve(ve(ve(ve(ve({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("severity","undefined or null"):new U("locale","undefined or null"):new U("message","undefined or null"):new U("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ve({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&me(t.prototype,n),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="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},je(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Te(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Se=new WeakSet,Fe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Se),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ke(ke(ke({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("rel","undefined or null"):new U("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ke({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Pe(t.prototype,n),r&&Pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function De(e){return De="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},De(e)}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){Ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ue(r.key),r)}}function Ue(e){var t=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(t)?t:t+""}Fe.prototype.href=void 0,Fe.prototype.rel=void 0,Fe.prototype.$reserved=void 0,Fe.prototype.$objectType=void 0,Fe.prototype.$unknownFields=void 0;var Ne,xe=new WeakSet,_e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,xe),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ce(Ce(Ce(Ce(Ce(Ce({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new U("flags","undefined or null");if(!A.validateMaxItems(this.flags,20))return new U("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new U("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new U("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new U("messages","undefined or null");if(!A.validateMaxItems(this.messages,20))return new U("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new U("extraInfo","undefined or null");if(!A.validateMaxItems(this.extraInfo,20))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(o=[],n=t.flags,i=0;i<n.length;i++)r=W.constructFromObject(n[i],void 0),o.push(r);s.setFlags(o)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(o=[],n=t.links,i=0;i<n.length;i++)r=Fe.constructFromObject(n[i],void 0),o.push(r);s.setLinks(o)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&s.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(o=[],n=t.messages,i=0;i<n.length;i++)r=Oe.constructFromObject(n[i],void 0),o.push(r);s.setMessages(o)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(o=[],n=t.extraInfo,i=0;i<n.length;i++)r=ce.constructFromObject(n[i],void 0),o.push(r);s.setExtraInfo(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ce({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Re(t.prototype,n),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ve(){Ve=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),Me(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=Be(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},Ve.apply(this,arguments)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){We(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function We(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Be(e){return Be="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},Be(e)}function Ge(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e){if("object"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}function He(e,t,n){Ye(e,t),t.set(e,n)}function Ye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Ze(e,t))}function Qe(e,t,n){return e.set(Ze(e,t),n),n}function Ze(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.flags=void 0,_e.prototype.links=void 0,_e.prototype.totalAvailableResults=void 0,_e.prototype.messages=void 0,_e.prototype.extraInfo=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.prototype.$unknownFields=void 0,m()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,st=new WeakMap,at=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ye(this,n=ut),n.add(this),He(this,et,void 0),He(this,tt,void 0),He(this,nt,void 0),He(this,rt,void 0),He(this,it,void 0),He(this,ot,void 0),He(this,st,void 0),He(this,at,void 0),Qe(at,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",this.host="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={},Qe(it,this,3e4),Qe(ot,this,3e4),Qe(st,this,108e5),this.readTimeout=Xe(ot,this),this.connectTimeout=Xe(it,this),this.cache=!0,Qe(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Qe(nt,this,null),this.username=null,this.password=null,Qe(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,i=[{key:"verifySsl",get:function(){return Xe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Qe(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Qe(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Qe(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Qe(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Xe(et,this)&&""!==this.host&&""!==this.port?r=Xe(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var i=r+e;return i.replace(/\{([\w-]+)\}/g,(function(e,r){var i;return i=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(i)}))}},{key:"buildCollectionParam",value:function(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)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,i=Ge(t.getData());try{for(i.s();!(r=i.n()).done;){var o=r.value;o.hasOwnProperty("$reserved")&&void 0!==o.get$Reserved()&&(o.get$Reserved().ETag=n)}}catch(e){i.e(e)}finally{i.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,i,o,s,a,u,l,c,d,f){var p=this,y=this.buildUrl(e,i),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var i=1e3*parseInt(r,10);this._retryDelays[this._retries]=i}}}this.oldCallback(e,t)},Ze(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),h.query(Ze(ut,this,pt).call(this,o)),h.set(this.defaultHeaders).set(Ze(ut,this,pt).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();h.set(Ze(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||(this.downloadDestination=".",h.set(Ze(ut,this,pt).call(this,{"User-Agent":"Nutanix-monitoring-js-client/4.0.1"}))),this.requestAgent&&h.agent(this.requestAgent);var g={};g.response=Ze(ut,this,mt).call(this,this.connectTimeout,Xe(it,this)),g.deadline=Ze(ut,this,mt).call(this,this.readTimeout,Xe(ot,this)),h.timeout(g);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:Ze(ut,this,dt).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Request URL :",r,y),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,Ze(ut,this,kt),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Ze(ut,this,pt).call(this,a));else if("multipart/form-data"==w){var O=Ze(ut,this,pt).call(this,a);for(var $ in O)O.hasOwnProperty($)&&(Ze(ut,this,ft).call(this,O[$])?h.attach($,O[$]):h.field($,O[$]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var k;try{k=n(965)}catch(e){Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"Error fetching steam/web")}u instanceof k.ReadableStream?u.pipeTo(new k.WritableStream({write:function(e){h.write(e)},close:function(){Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise((function(t,n){h.on("error",(function(e){Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){Ze(ut,p,Tt).call(p,r,e,o,f,t,n)}))}))}u&&h.send(u)}"Blob"==typeof f?h.responseType("blob"):"String"===f&&h.responseType("string"),Ze(ut,this,wt).call(this,h),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var T=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:d.join(", "),P=["application/octet-stream","application/pdf","application/zip"];return T&&h.accept(T),new Promise((function(i,s){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).on("error",(function(e){Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught the following error :",e)})).end((function(a,u){if(a)Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught error during the request!"),Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,a),null!==a.response&&void 0!==a.response?a.data=Ze(ut,p,vt).call(p,a.response,f):a.data=Ze(ut,p,ht).call(p,a),s(a);else{Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Response Status :",u.status),Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,Ze(ut,p,kt),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),P.some((function(e){return l.includes(e)})))if(m){var c;try{c=n(965)}catch(e){Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var d=p.downloadDestination.getWriter();try{u.on("data",(function(e){d.write(e)}))}catch(e){Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Issue while downloading file",e)}u.on("end",(function(){Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Finished streaming response"),d.close();var e=Ze(ut,p,vt).call(p,u,f);i({data:e,response:u})})).on("error",(function(e){Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Caught the following error :",e),e.data=Ze(ut,p,ht).call(p,e),s(e)}))}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,y),s(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Ze(ut,p,Pt).call(p,u,b,v,i,s,f)}else if(302==u.status){var g=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(h.header),u.headers.hasOwnProperty("x-redirect-token")&&(Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.buffer(!1);var $=j().createWriteStream(g);O.pipe($),O.on("response",(function(e){Ze(ut,w,Ot).call(w,Xe(at,w).INFO,null,"Received response after redirection :",e.status),Ze(ut,w,Pt).call(w,e,$,g,i,s,f)}))}else Ze(ut,p,Tt).call(p,u,e,o,f,i,s)}}))}))}}],o=[{key:"getEtag",value:function(e){var 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}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var i=null;if(void 0!==t&&t.hasOwnProperty(n)&&(i=t[n]),null===i&&("string"==typeof e||e instanceof String)){var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(o,"=([0-9]+)")));s&&(i=s[1])}return null===i&&(i=r),i}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===Be(n)){var i,o;for(var s in n)if(n.hasOwnProperty(s)){i=s,o=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,i),l=e.convertToType(t[s],o);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var i=0;i<t.length;i++)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r));else for(var o in t)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r))}}],i&&qe(r.prototype,i),o&&qe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function dt(e){for(var t=0;t<e.length;t++)if(Ze(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function ft(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof T.Blob&&e instanceof T.Blob||"function"==typeof File&&e instanceof File}function pt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Ze(ut,this,ft).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function yt(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Ze(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var i={};r.apiKeyPrefix?i[r.name]=r.apiKeyPrefix+" "+r.apiKey:i[r.name]=r.apiKey,"header"===r.in?e.set(i):e.query(i)}Ze(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Ze(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"oauth2 applied to request");break;default:throw Ze(ut,n,Ot).call(n,Xe(at,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ht(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function vt(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"])){(o=new t).data=new T.Blob([e.text],{type:e.headers["content-type"]});var n=new W;n.name="hasError",n.value=!1;var r=[n],i=new _e;return i.flags=r,o.metadata=i,o}var o;return(null==(o=e.body)||"object"===Be(o)&&void 0===o.length&&!Object.keys(o).length)&&(o=e.text),Ne.convertToType(o,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,i)}}function mt(e,t){return e<=0?e=t:e>Xe(st,this)&&(e=Xe(st,this)),e}function gt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,i=Ge(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;(o=o.split(";")[0]).includes("=")&&(o.trim(),t=t.concat(o).concat(";"))}}catch(e){i.e(e)}finally{i.f()}""!==t&&(t=t.substr(0,t.length-1))}Qe(tt,this,t),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Retained cookie :",t)}else Qe(tt,this,null)}function wt(e){null!=Xe(tt,this)&&e.set(Ze(ut,this,pt).call(this,{Cookie:Xe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if("object"===Be(e)&&"key"in e&&"value"in e&&"symbol"===Be(e.value)||(e=Xe(at,this).INFO),!Ze(ut,this,jt).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var o=r.join(" ");o=Ze(ut,this,$t).call(this)+" "+e.key+" - "+o,void 0!==Xe(nt,this)&&null!==Xe(nt,this)&&"function"==typeof Xe(nt,this).log?Xe(nt,this).log(o):console.log(o)}}function jt(e){return!this.debug&&e===Xe(at,this).DEBUG}function $t(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function kt(e){if("object"!==Be(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function Tt(e,t,n,r,i,o){try{var s=Ze(ut,this,vt).call(this,e,r);Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Response Status :",e.status),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,Ze(ut,this,kt),"Response Headers :",e.headers),Ze(ut,this,gt).call(this,e||{}),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Response Body :",s),204==e.status&&null==s?i({data:s,response:e}):e.ok&&null!=s?(this.addEtagToReservedMap(e,s),Ze(ut,this,bt).call(this,s,t,n),i({data:s,response:e})):(Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,s),o(Je(Je({},e.error),{},{data:s})))}catch(e){Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Caught error while processing response!"),Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,e),e.data=Ze(ut,this,ht).call(this,e),o(e)}}function Pt(e,t,n,r,i,o){var s=this;Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Streaming response to : ",n);try{e.on("data",(function(e){t.write(e)}))}catch(e){Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"Issue while downloading file",e)}var a=new o,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(Ve(/.*filename="(.*)".*/,{filename:1})),c=k().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,a.data={path:k().parse(u),$objectType:"Path"};var d=new W;d.name="hasError",d.value=!1;var f=[d],p=new _e;p.flags=f,a.metadata=p}e.on("end",(function(){Ze(ut,s,Ot).call(s,Xe(at,s).INFO,null,"Finished streaming response"),0!==u.length?(Ze(ut,s,Ot).call(s,Xe(at,s).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:a,response:e})):(Ze(ut,s,Ot).call(s,Xe(at,s).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:a,response:e}))})),e.on("error",(function(e){Ze(ut,s,Ot).call(s,Xe(at,s).ERROR,null,"Caught the following error :",e),error.data=Ze(ut,s,ht).call(s,error),i(e)}))}function Et(e){return Et="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},Et(e)}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){At(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function At(e,t,n){return(t=It(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,It(r.key),r)}}function It(e){var t=function(e){if("object"!=Et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Et(t)?t:t+""}function Rt(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=lt,lt.instance=new lt;var Ut=new WeakSet,Nt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ut),this.$objectType="monitoring.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dt(Dt(Dt(Dt(Dt(Dt(Dt({},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()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Rt(Ut,this,xt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Rt(Ut,this,xt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("argumentsMap","undefined or null"):new U("errorGroup","undefined or null"):new U("locale","undefined or null"):new U("code","undefined or null"):new U("severity","undefined or null"):new U("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(pe.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Dt({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ct(t.prototype,n),r&&Ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return St(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?St(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Et(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}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)}function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){Lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lt(e,t,n){return(t=Wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wt(r.key),r)}}function Wt(e){var t=function(e){if("object"!=_t(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}Nt.prototype.message=void 0,Nt.prototype.severity=void 0,Nt.prototype.code=void 0,Nt.prototype.locale="en_US",Nt.prototype.errorGroup=void 0,Nt.prototype.argumentsMap=void 0,Nt.prototype.$reserved=void 0,Nt.prototype.$objectType=void 0,Nt.prototype.$unknownFields=void 0;var Bt=new WeakSet,Gt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Bt),this.$objectType="monitoring.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mt(Mt(Mt(Mt({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("attributePath","undefined or null"):new U("message","undefined or null"):new U("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Mt({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Jt(t.prototype,n),r&&Jt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zt(e){return zt="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},zt(e)}function qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qt(Object(n),!0).forEach((function(t){Ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t,n){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xt(r.key),r)}}function Xt(e){var t=function(e){if("object"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(t)?t:t+""}function Qt(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")}Gt.prototype.location=void 0,Gt.prototype.message=void 0,Gt.prototype.attributePath=void 0,Gt.prototype.$reserved=void 0,Gt.prototype.$objectType=void 0,Gt.prototype.$unknownFields=void 0;var Zt=new WeakSet,en=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Zt),this.$objectType="monitoring.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Kt(Kt(Kt(Kt(Kt(Kt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Qt(Zt,this,tn).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((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("validationErrorMessages","undefined or null"):new U("path","undefined or null"):new U("error","undefined or null"):new U("statusCode","undefined or null"):new U("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&s.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&s.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&s.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&s.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(o=[],n=t.validationErrorMessages,i=0;i<n.length;i++)r=Gt.constructFromObject(n[i],void 0),o.push(r);s.setValidationErrorMessages(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Kt({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function nn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rn(e){return rn="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},rn(e)}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return(t=ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ln(r.key),r)}}function ln(e){var t=function(e){if("object"!=rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rn(t)?t:t+""}function cn(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")}en.prototype.timestamp=void 0,en.prototype.statusCode=void 0,en.prototype.error=void 0,en.prototype.path=void 0,en.prototype.validationErrorMessages=void 0,en.prototype.$reserved=void 0,en.prototype.$objectType=void 0,en.prototype.$unknownFields=void 0;var dn=new WeakSet,fn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,dn),this.$objectType="monitoring.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sn(sn({},!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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):cn(dn,this,pn).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map((function(e){return void 0!==e.toJson?e.toJson():e})):cn(dn,this,pn).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)a.setError([]);else{for(o=[],s=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:rn(n[0]),i=0;i<n.length;i++){if("monitoring.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Nt.constructFromObject(n[i],void 0),o.push(r)}a.setError(o)}else{if("monitoring.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:rn(t.error)))throw"Unknown datatype "+s+" in data";a.setError(en.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=sn({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&un(t.prototype,n),r&&un(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return nn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===rn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function yn(e){return yn="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},yn(e)}function hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return(t=gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gn(r.key),r)}}function gn(e){var t=function(e){if("object"!=yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:t+""}fn.prototype.error=void 0,fn.prototype.$reserved=void 0,fn.prototype.$objectType=void 0,fn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,wn),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?vn(vn({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new U("tenantId","undefined or null");if(!A.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 U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=vn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jn(e){return jn="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},jn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Tn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tn(e,t,n){return(t=En(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,En(r.key),r)}}function En(e){var t=function(e){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sn=function(){return!!e})()}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function Dn(e,t){return Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dn(e,t)}On.prototype.tenantId=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var An=new WeakSet,Cn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fn(t),function(e,t){if(t&&("object"==jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sn()?Reflect.construct(t,n||[],Fn(e).constructor):t.apply(e,n))}(this,t),An),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dn(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return!1===e?kn(kn(kn(kn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(null==e){if(!A.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 U("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===E.update&&!A.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 U("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 U("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,On.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],n=e.links,i=0;i<n.length;i++)r=Fe.constructFromObject(n[i],void 0),o.push(r);s.setLinks(o)}if(!a)for(var u in s.$unknownFields=kn({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Pn(n.prototype,r),i&&Pn(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(On);function In(e){return In="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},In(e)}function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){Nn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nn(e,t,n){return(t=_n(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_n(r.key),r)}}function _n(e){var t=function(e){if("object"!=In(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==In(t)?t:t+""}Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var Vn=new WeakSet,Mn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Vn),this.$objectType="monitoring.v4.common.AlertEntityReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Un(Un(Un(Un({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Un({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&xn(t.prototype,n),r&&xn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ln(e){return Ln="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},Ln(e)}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){Bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bn(e,t,n){return(t=zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zn(r.key),r)}}function zn(e){var t=function(e){if("object"!=Ln(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ln(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ln(t)?t:t+""}Mn.prototype.type=void 0,Mn.prototype.name=void 0,Mn.prototype.extId=void 0,Mn.prototype.$reserved=void 0,Mn.prototype.$objectType=void 0,Mn.prototype.$unknownFields=void 0;var qn=new WeakSet,Kn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,qn),this.$objectType="monitoring.v4.common.EntityReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Wn(Wn(Wn(Wn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Wn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Gn(t.prototype,n),r&&Gn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Kn.prototype.type=void 0,Kn.prototype.name=void 0,Kn.prototype.extId=void 0,Kn.prototype.$reserved=void 0,Kn.prototype.$objectType=void 0,Kn.prototype.$unknownFields=void 0;var Hn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AVAILABILITY:"AVAILABILITY",CAPACITY:"CAPACITY",CONFIGURATION:"CONFIGURATION",PERFORMANCE:"PERFORMANCE",SYSTEM_INDICATOR:"SYSTEM_INDICATOR",CPU_CAPACITY:"CPU_CAPACITY",MEMORY_CAPACITY:"MEMORY_CAPACITY",STORAGE_CAPACITY:"STORAGE_CAPACITY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Hn).find((function(t){return 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.AVAILABILITY:case Hn.CAPACITY:case Hn.CONFIGURATION:case Hn.PERFORMANCE:case Hn.SYSTEM_INDICATOR:case Hn.CPU_CAPACITY:case Hn.MEMORY_CAPACITY:case Hn.STORAGE_CAPACITY:return;default:throw new Error("Invalid : must be ImpactType.{ $UNKNOWN|$REDACTED|AVAILABILITY|CAPACITY|CONFIGURATION|PERFORMANCE|SYSTEM_INDICATOR|CPU_CAPACITY|MEMORY_CAPACITY|STORAGE_CAPACITY }")}}};Object.freeze(Hn);const Yn=Hn;function Xn(e){return Xn="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},Xn(e)}function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){er(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(e,t,n){return(t=nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nr(r.key),r)}}function nr(e){var t=function(e){if("object"!=Xn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xn(t)?t:t+""}var rr=new WeakSet,ir=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rr),this.boolValue=t,this.$objectType="monitoring.v4.common.BoolValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getBoolValue",value:function(){return this.boolValue}},{key:"setBoolValue",value:function(e){this.boolValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zn(Zn({},void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["boolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("boolValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("boolValue")&&null!==t.boolValue&&void 0!==t.boolValue&&n.setBoolValue(t.boolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Zn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&tr(t.prototype,n),r&&tr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();ir.prototype.boolValue=void 0,ir.prototype.$reserved=void 0,ir.prototype.$objectType=void 0,ir.prototype.$unknownFields=void 0;var or={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EQUAL_TO:"EQUAL_TO",GREATER_THAN:"GREATER_THAN",GREATER_THAN_OR_EQUAL_TO:"GREATER_THAN_OR_EQUAL_TO",LESS_THAN:"LESS_THAN",LESS_THAN_OR_EQUAL_TO:"LESS_THAN_OR_EQUAL_TO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(or).find((function(t){return or[t]===e}));return null==t?or.$UNKNOWN:or[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case or.$UNKNOWN:case or.$REDACTED:case or.EQUAL_TO:case or.GREATER_THAN:case or.GREATER_THAN_OR_EQUAL_TO:case or.LESS_THAN:case or.LESS_THAN_OR_EQUAL_TO:return;default:throw new Error("Invalid : must be ComparisonOperator.{ $UNKNOWN|$REDACTED|EQUAL_TO|GREATER_THAN|GREATER_THAN_OR_EQUAL_TO|LESS_THAN|LESS_THAN_OR_EQUAL_TO }")}}};Object.freeze(or);const sr=or;var ar={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STATIC_THRESHOLD:"STATIC_THRESHOLD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ar).find((function(t){return ar[t]===e}));return null==t?ar.$UNKNOWN:ar[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ar.$UNKNOWN:case ar.$REDACTED:case ar.STATIC_THRESHOLD:return;default:throw new Error("Invalid : must be ConditionType.{ $UNKNOWN|$REDACTED|STATIC_THRESHOLD }")}}};Object.freeze(ar);const ur=ar;var lr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STRING:"STRING",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",LONG:"LONG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(lr).find((function(t){return lr[t]===e}));return null==t?lr.$UNKNOWN:lr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case lr.$UNKNOWN:case lr.$REDACTED:case lr.STRING:case lr.BOOLEAN:case lr.DOUBLE:case lr.LONG:return;default:throw new Error("Invalid : must be DataType.{ $UNKNOWN|$REDACTED|STRING|BOOLEAN|DOUBLE|LONG }")}}};Object.freeze(lr);const cr=lr;function dr(e){return dr="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},dr(e)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return(t=vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vr(r.key),r)}}function vr(e){var t=function(e){if("object"!=dr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dr(t)?t:t+""}var br=new WeakSet,mr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,br),this.doubleValue=t,this.$objectType="monitoring.v4.common.DoubleValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDoubleValue",value:function(){return this.doubleValue}},{key:"setDoubleValue",value:function(e){this.doubleValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pr(pr({},void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["doubleValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("doubleValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("doubleValue")&&null!==t.doubleValue&&void 0!==t.doubleValue&&n.setDoubleValue(t.doubleValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=pr({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&hr(t.prototype,n),r&&hr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gr(e){return gr="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},gr(e)}function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wr(Object(n),!0).forEach((function(t){jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jr(e,t,n){return(t=kr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kr(r.key),r)}}function kr(e){var t=function(e){if("object"!=gr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gr(t)?t:t+""}mr.prototype.doubleValue=void 0,mr.prototype.$reserved=void 0,mr.prototype.$objectType=void 0,mr.prototype.$unknownFields=void 0;var Tr=new WeakSet,Pr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Tr),this.intValue=t,this.$objectType="monitoring.v4.common.IntValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIntValue",value:function(){return this.intValue}},{key:"setIntValue",value:function(e){this.intValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Or(Or({},void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["intValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("intValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("intValue")&&null!==t.intValue&&void 0!==t.intValue&&n.setIntValue(t.intValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Or({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&$r(t.prototype,n),r&&$r(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Er(e){return Er="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},Er(e)}function Sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(n),!0).forEach((function(t){Dr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dr(e,t,n){return(t=Cr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cr(r.key),r)}}function Cr(e){var t=function(e){if("object"!=Er(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Er(t)?t:t+""}Pr.prototype.intValue=void 0,Pr.prototype.$reserved=void 0,Pr.prototype.$objectType=void 0,Pr.prototype.$unknownFields=void 0;var Ir=new WeakSet,Rr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ir),this.stringValue=t,this.$objectType="monitoring.v4.common.StringValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getStringValue",value:function(){return this.stringValue}},{key:"setStringValue",value:function(e){this.stringValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Fr(Fr({},void 0!==this.getStringValue()&&null!==this.getStringValue()?{stringValue:this.getStringValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["stringValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"stringValue"!==t||void 0!==this.stringValue&&null!==this.stringValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("stringValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("stringValue")&&null!==t.stringValue&&void 0!==t.stringValue&&n.setStringValue(t.stringValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Fr({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ar(t.prototype,n),r&&Ar(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nr(e){return Nr="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},Nr(e)}function xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach((function(t){Vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vr(e,t,n){return(t=Lr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lr(r.key),r)}}function Lr(e){var t=function(e){if("object"!=Nr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nr(t)?t:t+""}function Jr(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")}Rr.prototype.stringValue=void 0,Rr.prototype.$reserved=void 0,Rr.prototype.$objectType=void 0,Rr.prototype.$unknownFields=void 0;var Wr=new WeakSet,Br=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Wr),this.$objectType="monitoring.v4.common.MetricDetail",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getMetricDisplayName",value:function(){return this.metricDisplayName}},{key:"setMetricDisplayName",value:function(e){this.metricDisplayName=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getTriggerWaitTimeSeconds",value:function(){return this.triggerWaitTimeSeconds}},{key:"setTriggerWaitTimeSeconds",value:function(e){this.triggerWaitTimeSeconds=e}},{key:"getTriggerTime",value:function(){return this.triggerTime}},{key:"setTriggerTime",value:function(e){this.triggerTime=e}},{key:"getComparisonOperator",value:function(){return this.comparisonOperator}},{key:"setComparisonOperator",value:function(e){this.comparisonOperator=e}},{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getMetricCategory",value:function(){return this.metricCategory}},{key:"setMetricCategory",value:function(e){this.metricCategory=e}},{key:"getDataType",value:function(){return this.dataType}},{key:"setDataType",value:function(e){this.dataType=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=e}},{key:"getMetricValue",value:function(){return this.metricValue}},{key:"setMetricValue",value:function(e){this.metricValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _r(!1===e?_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(_r({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTimeSeconds()&&null!==this.getTriggerWaitTimeSeconds()?{triggerWaitTimeSeconds:this.getTriggerWaitTimeSeconds()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:Jr(Wr,this,zr).call(this,this.getTriggerTime(),!1)}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Jr(Wr,this,Gr).call(this,this.getThresholdValue(),!1)}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson(!1):Array.isArray(this.getMetricValue())?this.getMetricValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Jr(Wr,this,Gr).call(this,this.getMetricValue(),!1)}:{}):_r(_r(_r(_r(_r(_r(_r(_r(_r(_r(_r({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTimeSeconds()&&null!==this.getTriggerWaitTimeSeconds()?{triggerWaitTimeSeconds:this.getTriggerWaitTimeSeconds()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:Jr(Wr,this,zr).call(this,this.getTriggerTime(),!1)}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Jr(Wr,this,Gr).call(this,this.getThresholdValue())}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson():Array.isArray(this.getMetricValue())?this.getMetricValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Jr(Wr,this,Gr).call(this,this.getMetricValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("metricName"===t){if(void 0===this.metricName||null===this.metricName)return new U("metricName","undefined or null");if(!A.validateMaxLength(this.metricName,1e3))return new U("metricName","does not satisfy required maxLength constraint: 1000")}if("metricDisplayName"===t){if(void 0===this.metricDisplayName||null===this.metricDisplayName)return new U("metricDisplayName","undefined or null");if(!A.validateMaxLength(this.metricDisplayName,1e3))return new U("metricDisplayName","does not satisfy required maxLength constraint: 1000")}return"unit"!==t||void 0!==this.unit&&null!==this.unit?"triggerWaitTimeSeconds"!==t||void 0!==this.triggerWaitTimeSeconds&&null!==this.triggerWaitTimeSeconds?"triggerTime"!==t||void 0!==this.triggerTime&&null!==this.triggerTime?"comparisonOperator"!==t||void 0!==this.comparisonOperator&&null!==this.comparisonOperator?"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"metricCategory"!==t||void 0!==this.metricCategory&&null!==this.metricCategory?"dataType"!==t||void 0!==this.dataType&&null!==this.dataType?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"metricValue"!==t||void 0!==this.metricValue&&null!==this.metricValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("metricValue","undefined or null"):new U("thresholdValue","undefined or null"):new U("dataType","undefined or null"):new U("metricCategory","undefined or null"):new U("conditionType","undefined or null"):new U("comparisonOperator","undefined or null"):new U("triggerTime","undefined or null"):new U("triggerWaitTimeSeconds","undefined or null"):new U("unit","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&r.setMetricName(t.metricName),t.hasOwnProperty("metricDisplayName")&&null!==t.metricDisplayName&&void 0!==t.metricDisplayName&&r.setMetricDisplayName(t.metricDisplayName),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&r.setUnit(t.unit),t.hasOwnProperty("triggerWaitTimeSeconds")&&null!==t.triggerWaitTimeSeconds&&void 0!==t.triggerWaitTimeSeconds&&r.setTriggerWaitTimeSeconds(t.triggerWaitTimeSeconds),t.hasOwnProperty("triggerTime")&&null!==t.triggerTime&&void 0!==t.triggerTime&&r.setTriggerTime(t.triggerTime),t.hasOwnProperty("comparisonOperator")&&null!==t.comparisonOperator&&void 0!==t.comparisonOperator&&r.setComparisonOperator(sr.constructFromObject(t.comparisonOperator)),t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&r.setConditionType(ur.constructFromObject(t.conditionType)),t.hasOwnProperty("metricCategory")&&null!==t.metricCategory&&void 0!==t.metricCategory&&r.setMetricCategory(t.metricCategory),t.hasOwnProperty("dataType")&&null!==t.dataType&&void 0!==t.dataType&&r.setDataType(cr.constructFromObject(t.dataType)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(n=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:Nr(t.thresholdValue)){case"monitoring.v4.common.StringValue":r.setThresholdValue(Rr.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.BoolValue":r.setThresholdValue(ir.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.DoubleValue":r.setThresholdValue(mr.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":r.setThresholdValue(Pr.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("metricValue")&&null!==t.metricValue&&void 0!==t.metricValue)switch(n=t.metricValue.hasOwnProperty("$objectType")?t.metricValue.$objectType:Nr(t.metricValue)){case"monitoring.v4.common.StringValue":r.setMetricValue(Rr.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.BoolValue":r.setMetricValue(ir.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.DoubleValue":r.setMetricValue(mr.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.IntValue":r.setMetricValue(Pr.constructFromObject(t.metricValue,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=_r({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Mr(t.prototype,n),r&&Mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ur(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ur(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Nr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function zr(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kr(e){return Kr="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},Kr(e)}function Hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){Xr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xr(e,t,n){return(t=Zr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zr(r.key),r)}}function Zr(e){var t=function(e){if("object"!=Kr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kr(t)?t:t+""}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")}Br.prototype.metricName=void 0,Br.prototype.metricDisplayName=void 0,Br.prototype.unit=void 0,Br.prototype.triggerWaitTimeSeconds=void 0,Br.prototype.triggerTime=void 0,Br.prototype.comparisonOperator=void 0,Br.prototype.conditionType=void 0,Br.prototype.metricCategory=void 0,Br.prototype.dataType=void 0,Br.prototype.thresholdValue=void 0,Br.prototype.metricValue=void 0,Br.prototype.$reserved=void 0,Br.prototype.$objectType=void 0,Br.prototype.$unknownFields=void 0;var ti=new WeakSet,ni=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ti),this.$objectType="monitoring.v4.common.Parameter",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getParamName",value:function(){return this.paramName}},{key:"setParamName",value:function(e){this.paramName=e}},{key:"getParamValue",value:function(){return this.paramValue}},{key:"setParamValue",value:function(e){this.paramValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yr(Yr(Yr({},void 0!==this.getParamName()&&null!==this.getParamName()?{paramName:this.getParamName()}:{}),!1===e?void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson(!1):Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ei(ti,this,ri).call(this,this.getParamValue(),!1)}:{}:void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson():Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ei(ti,this,ri).call(this,this.getParamValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("paramName"===t){if(void 0===this.paramName||null===this.paramName)return new U("paramName","undefined or null");if(!A.validateMaxLength(this.paramName,100))return new U("paramName","does not satisfy required maxLength constraint: 100")}return"paramValue"!==t||void 0!==this.paramValue&&null!==this.paramValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("paramValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("paramName")&&null!==t.paramName&&void 0!==t.paramName&&r.setParamName(t.paramName),t.hasOwnProperty("paramValue")&&null!==t.paramValue&&void 0!==t.paramValue)switch(n=t.paramValue.hasOwnProperty("$objectType")?t.paramValue.$objectType:Kr(t.paramValue)){case"monitoring.v4.common.StringValue":r.setParamValue(Rr.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.BoolValue":r.setParamValue(ir.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.IntValue":r.setParamValue(Pr.constructFromObject(t.paramValue,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=Yr({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Qr(t.prototype,n),r&&Qr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ri(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qr(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Kr(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}ni.prototype.paramName=void 0,ni.prototype.paramValue=void 0,ni.prototype.$reserved=void 0,ni.prototype.$objectType=void 0,ni.prototype.$unknownFields=void 0;var ii={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ii).find((function(t){return ii[t]===e}));return null==t?ii.$UNKNOWN:ii[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ii.$UNKNOWN:case ii.$REDACTED:case ii.INFO:case ii.WARNING:case ii.CRITICAL:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|INFO|WARNING|CRITICAL }")}}};Object.freeze(ii);const oi=ii;function si(e){return si="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},si(e)}function ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ai(Object(n),!0).forEach((function(t){li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function li(e,t,n){return(t=di(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,di(r.key),r)}}function di(e){var t=function(e){if("object"!=si(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=si(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==si(t)?t:t+""}var fi=new WeakSet,pi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,fi),this.$objectType="monitoring.v4.serviceability.RootCauseAnalysis",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ui(ui(ui(ui({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"cause"!==t||void 0!==this.cause&&null!==this.cause?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"detail"!==t||void 0!==this.detail&&null!==this.detail?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("detail","undefined or null"):new U("resolution","undefined or null"):new U("cause","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("cause")&&null!==t.cause&&void 0!==t.cause&&n.setCause(t.cause),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("detail")&&null!==t.detail&&void 0!==t.detail&&n.setDetail(t.detail),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ui({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ci(t.prototype,n),r&&ci(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yi(e){return yi="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},yi(e)}function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach((function(t){bi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e,t,n){return(t=gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gi(r.key),r)}}function gi(e){var t=function(e){if("object"!=yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yi(t)?t:t+""}function wi(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")}pi.prototype.cause=void 0,pi.prototype.resolution=void 0,pi.prototype.detail=void 0,pi.prototype.$reserved=void 0,pi.prototype.$objectType=void 0,pi.prototype.$unknownFields=void 0;var Oi=new WeakSet,ji=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Oi),this.$objectType="monitoring.v4.serviceability.SeverityTrail",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getSeverityChangeTime",value:function(){return this.severityChangeTime}},{key:"setSeverityChangeTime",value:function(e){this.severityChangeTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vi(vi(vi({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getSeverityChangeTime()&&null!==this.getSeverityChangeTime()?{severityChangeTime:wi(Oi,this,$i).call(this,this.getSeverityChangeTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"severityChangeTime"!==t||void 0!==this.severityChangeTime&&null!==this.severityChangeTime?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("severityChangeTime","undefined or null"):new U("severity","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(oi.constructFromObject(t.severity)),t.hasOwnProperty("severityChangeTime")&&null!==t.severityChangeTime&&void 0!==t.severityChangeTime&&n.setSeverityChangeTime(t.severityChangeTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=vi({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&mi(t.prototype,n),r&&mi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $i(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ki(e){return ki="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},ki(e)}function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach((function(t){Ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ei(e,t,n){return(t=Fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Si(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fi(r.key),r)}}function Fi(e){var t=function(e){if("object"!=ki(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ki(t)?t:t+""}function Di(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Di=function(){return!!e})()}function Ai(e){return Ai=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ai(e)}function Ci(e,t){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ci(e,t)}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")}ji.prototype.severity=void 0,ji.prototype.severityChangeTime=void 0,ji.prototype.$reserved=void 0,ji.prototype.$objectType=void 0,ji.prototype.$unknownFields=void 0;var Ri=new WeakSet,Ui=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ai(t),function(e,t){if(t&&("object"==ki(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Di()?Reflect.construct(t,n||[],Ai(e).constructor):t.apply(e,n))}(this,t),Ri),e.$objectType="monitoring.v4.serviceability.Alert",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}(t,e),n=t,r=[{key:"getIsAcknowledged",value:function(){return this.isAcknowledged}},{key:"setIsAcknowledged",value:function(e){this.isAcknowledged=e}},{key:"getAcknowledgedByUsername",value:function(){return this.acknowledgedByUsername}},{key:"setAcknowledgedByUsername",value:function(e){this.acknowledgedByUsername=e}},{key:"getAcknowledgedTime",value:function(){return this.acknowledgedTime}},{key:"setAcknowledgedTime",value:function(e){this.acknowledgedTime=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getIsResolved",value:function(){return this.isResolved}},{key:"setIsResolved",value:function(e){this.isResolved=e}},{key:"getResolvedByUsername",value:function(){return this.resolvedByUsername}},{key:"setResolvedByUsername",value:function(e){this.resolvedByUsername=e}},{key:"getResolvedTime",value:function(){return this.resolvedTime}},{key:"setResolvedTime",value:function(e){this.resolvedTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getSeverityTrails",value:function(){return this.severityTrails}},{key:"setSeverityTrails",value:function(e){this.severityTrails=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getAlertType",value:function(){return this.alertType}},{key:"setAlertType",value:function(e){this.alertType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getOriginatingClusterUUID",value:function(){return this.originatingClusterUUID}},{key:"setOriginatingClusterUUID",value:function(e){this.originatingClusterUUID=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsUserDefined",value:function(){return this.isUserDefined}},{key:"setIsUserDefined",value:function(e){this.isUserDefined=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getRootCauseAnalysis",value:function(){return this.rootCauseAnalysis}},{key:"setRootCauseAnalysis",value:function(e){this.rootCauseAnalysis=e}},{key:"toJson",value:function(e){return Pi(!1===e?Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:Ii(Ri,this,Ni).call(this,this.getAcknowledgedTime(),!1)}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:Ii(Ri,this,Ni).call(this,this.getResolvedTime(),!1)}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ii(Ri,this,Ni).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Ii(Ri,this,Ni).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi(Pi({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:Ii(Ri,this,Ni).call(this,this.getAcknowledgedTime(),!1)}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:Ii(Ri,this,Ni).call(this,this.getResolvedTime(),!1)}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ii(Ri,this,Ni).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Ii(Ri,this,Ni).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("isAcknowledged"===t&&(void 0===this.isAcknowledged||null===this.isAcknowledged))return new U("isAcknowledged","undefined or null");if("acknowledgedByUsername"===t){if(void 0===this.acknowledgedByUsername||null===this.acknowledgedByUsername)return new U("acknowledgedByUsername","undefined or null");if(!A.validateMaxLength(this.acknowledgedByUsername,255))return new U("acknowledgedByUsername","does not satisfy required maxLength constraint: 255")}if("acknowledgedTime"===t&&(void 0===this.acknowledgedTime||null===this.acknowledgedTime))return new U("acknowledgedTime","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new U("isAutoResolved","undefined or null");if("isResolved"===t&&(void 0===this.isResolved||null===this.isResolved))return new U("isResolved","undefined or null");if("resolvedByUsername"===t){if(void 0===this.resolvedByUsername||null===this.resolvedByUsername)return new U("resolvedByUsername","undefined or null");if(!A.validateMaxLength(this.resolvedByUsername,255))return new U("resolvedByUsername","does not satisfy required maxLength constraint: 255")}if("resolvedTime"===t&&(void 0===this.resolvedTime||null===this.resolvedTime))return new U("resolvedTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new U("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new U("affectedEntities","undefined or null");if(!A.validateMaxItems(this.affectedEntities,50))return new U("affectedEntities","does not satisfy required maxItems constraint: 50")}if("severityTrails"===t){if(void 0===this.severityTrails||null===this.severityTrails)return new U("severityTrails","undefined or null");if(!A.validateMaxItems(this.severityTrails,3))return new U("severityTrails","does not satisfy required maxItems constraint: 3")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new U("metricDetails","undefined or null");if(!A.validateMaxItems(this.metricDetails,50))return new U("metricDetails","does not satisfy required maxItems constraint: 50")}if("title"===t&&(void 0===this.title||null===this.title))return new U("title","undefined or null");if("alertType"===t&&(void 0===this.alertType||null===this.alertType))return new U("alertType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new U("classifications","undefined or null");if(!A.validateMaxItems(this.classifications,15))return new U("classifications","does not satisfy required maxItems constraint: 15")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new U("clusterUUID","undefined or null");if(!A.validatePattern(this.clusterUUID,/^[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 U("clusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new U("creationTime","undefined or null");if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new U("lastUpdatedTime","undefined or null");if("message"===t&&(void 0===this.message||null===this.message))return new U("message","undefined or null");if("originatingClusterUUID"===t){if(void 0===this.originatingClusterUUID||null===this.originatingClusterUUID)return new U("originatingClusterUUID","undefined or null");if(!A.validatePattern(this.originatingClusterUUID,/^[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 U("originatingClusterUUID","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("severity"===t&&(void 0===this.severity||null===this.severity))return new U("severity","undefined or null");if("isUserDefined"===t&&(void 0===this.isUserDefined||null===this.isUserDefined))return new U("isUserDefined","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!A.validateMaxItems(this.parameters,50))return new U("parameters","does not satisfy required maxItems constraint: 50")}if("serviceName"===t){if(void 0===this.serviceName||null===this.serviceName)return new U("serviceName","undefined or null");if(!A.validateMaxLength(this.serviceName,50))return new U("serviceName","does not satisfy required maxLength constraint: 50")}if("rootCauseAnalysis"===t){if(void 0===this.rootCauseAnalysis||null===this.rootCauseAnalysis)return new U("rootCauseAnalysis","undefined or null");if(!A.validateMaxItems(this.rootCauseAnalysis,15))return new U("rootCauseAnalysis","does not satisfy required maxItems constraint: 15")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Cn.constructFromObject(e,s,!0),e.hasOwnProperty("isAcknowledged")&&null!==e.isAcknowledged&&void 0!==e.isAcknowledged&&s.setIsAcknowledged(e.isAcknowledged),e.hasOwnProperty("acknowledgedByUsername")&&null!==e.acknowledgedByUsername&&void 0!==e.acknowledgedByUsername&&s.setAcknowledgedByUsername(e.acknowledgedByUsername),e.hasOwnProperty("acknowledgedTime")&&null!==e.acknowledgedTime&&void 0!==e.acknowledgedTime&&s.setAcknowledgedTime(e.acknowledgedTime),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&s.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("isResolved")&&null!==e.isResolved&&void 0!==e.isResolved&&s.setIsResolved(e.isResolved),e.hasOwnProperty("resolvedByUsername")&&null!==e.resolvedByUsername&&void 0!==e.resolvedByUsername&&s.setResolvedByUsername(e.resolvedByUsername),e.hasOwnProperty("resolvedTime")&&null!==e.resolvedTime&&void 0!==e.resolvedTime&&s.setResolvedTime(e.resolvedTime),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&s.setSourceEntity(Mn.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(o=[],n=e.affectedEntities,i=0;i<n.length;i++)r=Kn.constructFromObject(n[i],void 0),o.push(r);s.setAffectedEntities(o)}if(e.hasOwnProperty("severityTrails")&&null!==e.severityTrails&&void 0!==e.severityTrails){for(o=[],n=e.severityTrails,i=0;i<n.length;i++)r=ji.constructFromObject(n[i],void 0),o.push(r);s.setSeverityTrails(o)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(o=[],n=e.metricDetails,i=0;i<n.length;i++)r=Br.constructFromObject(n[i],void 0),o.push(r);s.setMetricDetails(o)}if(e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&s.setTitle(e.title),e.hasOwnProperty("alertType")&&null!==e.alertType&&void 0!==e.alertType&&s.setAlertType(e.alertType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(o=[],n=e.classifications,i=0;i<n.length;i++)o.push(n[i]);s.setClassifications(o)}if(e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&s.setClusterUUID(e.clusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(o=[],n=e.impactTypes,i=0;i<n.length;i++)r=Yn.constructFromObject(n[i],void 0),o.push(r);s.setImpactTypes(o)}if(e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&s.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&s.setMessage(e.message),e.hasOwnProperty("originatingClusterUUID")&&null!==e.originatingClusterUUID&&void 0!==e.originatingClusterUUID&&s.setOriginatingClusterUUID(e.originatingClusterUUID),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&s.setSeverity(oi.constructFromObject(e.severity)),e.hasOwnProperty("isUserDefined")&&null!==e.isUserDefined&&void 0!==e.isUserDefined&&s.setIsUserDefined(e.isUserDefined),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(o=[],n=e.parameters,i=0;i<n.length;i++)r=ni.constructFromObject(n[i],void 0),o.push(r);s.setParameters(o)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&s.setServiceName(e.serviceName),e.hasOwnProperty("rootCauseAnalysis")&&null!==e.rootCauseAnalysis&&void 0!==e.rootCauseAnalysis){for(o=[],n=e.rootCauseAnalysis,i=0;i<n.length;i++)r=pi.constructFromObject(n[i],void 0),o.push(r);s.setRootCauseAnalysis(o)}if(!a)for(var u in s.$unknownFields=Pi({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Si(n.prototype,r),i&&Si(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function Ni(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}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)}function Vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vi(Object(n),!0).forEach((function(t){Li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Li(e,t,n){return(t=Wi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wi(r.key),r)}}function Wi(e){var t=function(e){if("object"!=_i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_i(t)?t:t+""}function Bi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bi=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gi(e)}function zi(e,t){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zi(e,t)}function qi(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")}Ui.prototype.isAcknowledged=!1,Ui.prototype.acknowledgedByUsername=void 0,Ui.prototype.acknowledgedTime=void 0,Ui.prototype.isAutoResolved=!1,Ui.prototype.isResolved=!1,Ui.prototype.resolvedByUsername=void 0,Ui.prototype.resolvedTime=void 0,Ui.prototype.sourceEntity=void 0,Ui.prototype.affectedEntities=void 0,Ui.prototype.severityTrails=void 0,Ui.prototype.metricDetails=void 0,Ui.prototype.title=void 0,Ui.prototype.alertType=void 0,Ui.prototype.classifications=void 0,Ui.prototype.clusterUUID=void 0,Ui.prototype.creationTime=void 0,Ui.prototype.impactTypes=void 0,Ui.prototype.lastUpdatedTime=void 0,Ui.prototype.message=void 0,Ui.prototype.originatingClusterUUID=void 0,Ui.prototype.severity=void 0,Ui.prototype.isUserDefined=!1,Ui.prototype.parameters=void 0,Ui.prototype.serviceName=void 0,Ui.prototype.rootCauseAnalysis=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var Ki=new WeakSet,Hi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Gi(t),function(e,t){if(t&&("object"==_i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bi()?Reflect.construct(t,n||[],Gi(e).constructor):t.apply(e,n))}(this,t),Ki),e.$objectType="monitoring.v4.serviceability.ListAlertsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zi(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Mi(Mi(Mi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):qi(Ki,this,Yi).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):qi(Ki,this,Yi).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:_i(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Alert"!==s)throw"Unknown list of type "+s+" in data";r=Ui.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_i(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Mi({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ji(n.prototype,r),i&&Ji(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Yi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return xi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===_i(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Xi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qi(e){return Qi="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},Qi(e)}function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return(t=ro(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ro(r.key),r)}}function ro(e){var t=function(e){if("object"!=Qi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qi(t)?t:t+""}function io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(io=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oo(e)}function so(e,t){return so=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},so(e,t)}function ao(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")}Hi.prototype.metadata=void 0,Hi.prototype.data=void 0,Hi.prototype.$reserved=void 0,Hi.prototype.$objectType=void 0,Hi.prototype.$unknownFields=void 0;var uo=new WeakSet,lo=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=oo(t),function(e,t){if(t&&("object"==Qi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,io()?Reflect.construct(t,n||[],oo(e).constructor):t.apply(e,n))}(this,t),uo),e.$objectType="monitoring.v4.serviceability.GetAlertApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&so(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return eo(eo(eo({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ao(uo,this,co).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ao(uo,this,co).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Qi(e.data)){case"monitoring.v4.serviceability.Alert":r.setData(Ui.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=eo({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&no(n.prototype,r),i&&no(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function co(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Xi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Qi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function fo(e){return fo="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},fo(e)}function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ho(e,t,n){return(t=bo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bo(r.key),r)}}function bo(e){var t=function(e){if("object"!=fo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fo(t)?t:t+""}function mo(e,t){return e.get(go(e,t))}function go(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")}lo.prototype.metadata=void 0,lo.prototype.data=void 0,lo.prototype.$reserved=void 0,lo.prototype.$objectType=void 0,lo.prototype.$unknownFields=void 0;var wo=new WeakMap,Oo=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,wo,void 0),this.apiClient=t||lt.instance,n=wo,r=new Set,n.set(go(n,this),r),mo(wo,this).add("authorization"),mo(wo,this).add("cookie"),mo(wo,this).add("host"),mo(wo,this).add("user-agent")},t=[{key:"getAlertById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getAlertById");var r={extId:e},i={};Object.keys(n).forEach((function(e){mo(wo,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=yo({},i),s=lo;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/{extId}","GET",r,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listAlerts",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=yo(yo(yo(yo(yo({},(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}:{}),i={};Object.keys(n).forEach((function(e){mo(wo,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=yo({},i),s=Hi;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts","GET",{},r,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&vo(e.prototype,t),n&&vo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),jo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENABLED:"ENABLED",DISABLED:"DISABLED",NOT_SUPPORTED:"NOT_SUPPORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(jo).find((function(t){return jo[t]===e}));return null==t?jo.$UNKNOWN:jo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case jo.$UNKNOWN:case jo.$REDACTED:case jo.ENABLED:case jo.DISABLED:case jo.NOT_SUPPORTED:return;default:throw new Error("Invalid : must be AutoResolveState.{ $UNKNOWN|$REDACTED|ENABLED|DISABLED|NOT_SUPPORTED }")}}};Object.freeze(jo);const $o=jo;function ko(e){return ko="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},ko(e)}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){Eo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eo(e,t,n){return(t=Fo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function So(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fo(r.key),r)}}function Fo(e){var t=function(e){if("object"!=ko(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ko(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ko(t)?t:t+""}var Do=new WeakSet,Ao=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Do),this.currentBoolValue=t,this.$objectType="monitoring.v4.serviceability.BooleanConfigurableParamValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultBoolValue",value:function(){return this.defaultBoolValue}},{key:"setDefaultBoolValue",value:function(e){this.defaultBoolValue=e}},{key:"getCurrentBoolValue",value:function(){return this.currentBoolValue}},{key:"setCurrentBoolValue",value:function(e){this.currentBoolValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Po(Po(!1===e?Po({},void 0!==this.getDefaultBoolValue()&&null!==this.getDefaultBoolValue()?{defaultBoolValue:this.getDefaultBoolValue()}:{}):{},void 0!==this.getCurrentBoolValue()&&null!==this.getCurrentBoolValue()?{currentBoolValue:this.getCurrentBoolValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["currentBoolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"defaultBoolValue"!==t||void 0!==this.defaultBoolValue&&null!==this.defaultBoolValue?"currentBoolValue"!==t||void 0!==this.currentBoolValue&&null!==this.currentBoolValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("currentBoolValue","undefined or null"):new U("defaultBoolValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("defaultBoolValue")&&null!==t.defaultBoolValue&&void 0!==t.defaultBoolValue&&n.setDefaultBoolValue(t.defaultBoolValue),t.hasOwnProperty("currentBoolValue")&&null!==t.currentBoolValue&&void 0!==t.currentBoolValue&&n.setCurrentBoolValue(t.currentBoolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Po({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&So(t.prototype,n),r&&So(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Io(e){return Io="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},Io(e)}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){No(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function No(e,t,n){return(t=_o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_o(r.key),r)}}function _o(e){var t=function(e){if("object"!=Io(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Io(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Io(t)?t:t+""}function Vo(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")}Ao.prototype.defaultBoolValue=void 0,Ao.prototype.currentBoolValue=void 0,Ao.prototype.$reserved=void 0,Ao.prototype.$objectType=void 0,Ao.prototype.$unknownFields=void 0;var Mo=new WeakSet,Lo=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mo),this.minimumValue=t,this.maximumValue=n,this.$objectType="monitoring.v4.serviceability.ConfigurableParamValueRange",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMinimumValue",value:function(){return this.minimumValue}},{key:"setMinimumValue",value:function(e){this.minimumValue=e}},{key:"getMaximumValue",value:function(){return this.maximumValue}},{key:"setMaximumValue",value:function(e){this.maximumValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uo(!1===e?Uo(Uo({},void 0!==this.getMinimumValue()&&null!==this.getMinimumValue()?{minimumValue:void 0!==this.getMinimumValue().toJson?this.getMinimumValue().toJson(!1):Array.isArray(this.getMinimumValue())?this.getMinimumValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Vo(Mo,this,Jo).call(this,this.getMinimumValue(),!1)}:{}),void 0!==this.getMaximumValue()&&null!==this.getMaximumValue()?{maximumValue:void 0!==this.getMaximumValue().toJson?this.getMaximumValue().toJson(!1):Array.isArray(this.getMaximumValue())?this.getMaximumValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Vo(Mo,this,Jo).call(this,this.getMaximumValue(),!1)}:{}):Uo(Uo({},void 0!==this.getMinimumValue()&&null!==this.getMinimumValue()?{minimumValue:void 0!==this.getMinimumValue().toJson?this.getMinimumValue().toJson():Array.isArray(this.getMinimumValue())?this.getMinimumValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Vo(Mo,this,Jo).call(this,this.getMinimumValue())}:{}),void 0!==this.getMaximumValue()&&null!==this.getMaximumValue()?{maximumValue:void 0!==this.getMaximumValue().toJson?this.getMaximumValue().toJson():Array.isArray(this.getMaximumValue())?this.getMaximumValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Vo(Mo,this,Jo).call(this,this.getMaximumValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["minimumValue","maximumValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"minimumValue"!==t||void 0!==this.minimumValue&&null!==this.minimumValue?"maximumValue"!==t||void 0!==this.maximumValue&&null!==this.maximumValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("maximumValue","undefined or null"):new U("minimumValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("minimumValue")&&null!==t.minimumValue&&void 0!==t.minimumValue){if("number"!==(n=t.minimumValue.hasOwnProperty("$objectType")?t.minimumValue.$objectType:Io(t.minimumValue)))throw"Unknown datatype "+n+" in data";r.setMinimumValue(t.minimumValue)}if(t.hasOwnProperty("maximumValue")&&null!==t.maximumValue&&void 0!==t.maximumValue){if("number"!==(n=t.maximumValue.hasOwnProperty("$objectType")?t.maximumValue.$objectType:Io(t.maximumValue)))throw"Unknown datatype "+n+" in data";r.setMaximumValue(t.maximumValue)}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=Uo({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Jo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Co(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Co(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Io(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Wo(e){return Wo="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},Wo(e)}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){zo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zo(e,t,n){return(t=Ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ko(r.key),r)}}function Ko(e){var t=function(e){if("object"!=Wo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wo(t)?t:t+""}Lo.prototype.minimumValue=void 0,Lo.prototype.maximumValue=void 0,Lo.prototype.$reserved=void 0,Lo.prototype.$objectType=void 0,Lo.prototype.$unknownFields=void 0;var Ho=new WeakSet,Yo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ho),this.currentFloatValue=t,this.$objectType="monitoring.v4.serviceability.FloatConfigurableParamValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultFloatValue",value:function(){return this.defaultFloatValue}},{key:"setDefaultFloatValue",value:function(e){this.defaultFloatValue=e}},{key:"getCurrentFloatValue",value:function(){return this.currentFloatValue}},{key:"setCurrentFloatValue",value:function(e){this.currentFloatValue=e}},{key:"getValidValueRanges",value:function(){return this.validValueRanges}},{key:"setValidValueRanges",value:function(e){this.validValueRanges=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Go(!1===e?Go(Go(Go({},void 0!==this.getDefaultFloatValue()&&null!==this.getDefaultFloatValue()?{defaultFloatValue:this.getDefaultFloatValue()}:{}),void 0!==this.getCurrentFloatValue()&&null!==this.getCurrentFloatValue()?{currentFloatValue:this.getCurrentFloatValue()}:{}),void 0!==this.getValidValueRanges()&&null!==this.getValidValueRanges()?{validValueRanges:this.getValidValueRanges().map((function(e){return e.toJson(!1)}))}:{}):Go({},void 0!==this.getCurrentFloatValue()&&null!==this.getCurrentFloatValue()?{currentFloatValue:this.getCurrentFloatValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["currentFloatValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("defaultFloatValue"===t&&(void 0===this.defaultFloatValue||null===this.defaultFloatValue))return new U("defaultFloatValue","undefined or null");if("currentFloatValue"===t&&(void 0===this.currentFloatValue||null===this.currentFloatValue))return new U("currentFloatValue","undefined or null");if("validValueRanges"===t){if(void 0===this.validValueRanges||null===this.validValueRanges)return new U("validValueRanges","undefined or null");if(!A.validateMaxItems(this.validValueRanges,5))return new U("validValueRanges","does not satisfy required maxItems constraint: 5")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("defaultFloatValue")&&null!==t.defaultFloatValue&&void 0!==t.defaultFloatValue&&s.setDefaultFloatValue(t.defaultFloatValue),t.hasOwnProperty("currentFloatValue")&&null!==t.currentFloatValue&&void 0!==t.currentFloatValue&&s.setCurrentFloatValue(t.currentFloatValue),t.hasOwnProperty("validValueRanges")&&null!==t.validValueRanges&&void 0!==t.validValueRanges){for(o=[],n=t.validValueRanges,i=0;i<n.length;i++)r=Lo.constructFromObject(n[i],void 0),o.push(r);s.setValidValueRanges(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Go({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&qo(t.prototype,n),r&&qo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xo(e){return Xo="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},Xo(e)}function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){es(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function es(e,t,n){return(t=ns(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ns(r.key),r)}}function ns(e){var t=function(e){if("object"!=Xo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xo(t)?t:t+""}Yo.prototype.defaultFloatValue=void 0,Yo.prototype.currentFloatValue=void 0,Yo.prototype.validValueRanges=void 0,Yo.prototype.$reserved=void 0,Yo.prototype.$objectType=void 0,Yo.prototype.$unknownFields=void 0;var rs=new WeakSet,is=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rs),this.currentIntValue=t,this.$objectType="monitoring.v4.serviceability.IntConfigurableParamValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultIntValue",value:function(){return this.defaultIntValue}},{key:"setDefaultIntValue",value:function(e){this.defaultIntValue=e}},{key:"getCurrentIntValue",value:function(){return this.currentIntValue}},{key:"setCurrentIntValue",value:function(e){this.currentIntValue=e}},{key:"getValidValueRanges",value:function(){return this.validValueRanges}},{key:"setValidValueRanges",value:function(e){this.validValueRanges=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zo(!1===e?Zo(Zo(Zo({},void 0!==this.getDefaultIntValue()&&null!==this.getDefaultIntValue()?{defaultIntValue:this.getDefaultIntValue()}:{}),void 0!==this.getCurrentIntValue()&&null!==this.getCurrentIntValue()?{currentIntValue:this.getCurrentIntValue()}:{}),void 0!==this.getValidValueRanges()&&null!==this.getValidValueRanges()?{validValueRanges:this.getValidValueRanges().map((function(e){return e.toJson(!1)}))}:{}):Zo({},void 0!==this.getCurrentIntValue()&&null!==this.getCurrentIntValue()?{currentIntValue:this.getCurrentIntValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["currentIntValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("defaultIntValue"===t&&(void 0===this.defaultIntValue||null===this.defaultIntValue))return new U("defaultIntValue","undefined or null");if("currentIntValue"===t&&(void 0===this.currentIntValue||null===this.currentIntValue))return new U("currentIntValue","undefined or null");if("validValueRanges"===t){if(void 0===this.validValueRanges||null===this.validValueRanges)return new U("validValueRanges","undefined or null");if(!A.validateMaxItems(this.validValueRanges,5))return new U("validValueRanges","does not satisfy required maxItems constraint: 5")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("defaultIntValue")&&null!==t.defaultIntValue&&void 0!==t.defaultIntValue&&s.setDefaultIntValue(t.defaultIntValue),t.hasOwnProperty("currentIntValue")&&null!==t.currentIntValue&&void 0!==t.currentIntValue&&s.setCurrentIntValue(t.currentIntValue),t.hasOwnProperty("validValueRanges")&&null!==t.validValueRanges&&void 0!==t.validValueRanges){for(o=[],n=t.validValueRanges,i=0;i<n.length;i++)r=Lo.constructFromObject(n[i],void 0),o.push(r);s.setValidValueRanges(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Zo({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ts(t.prototype,n),r&&ts(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function os(e){return os="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},os(e)}function ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){us(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function us(e,t,n){return(t=cs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cs(r.key),r)}}function cs(e){var t=function(e){if("object"!=os(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=os(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==os(t)?t:t+""}is.prototype.defaultIntValue=void 0,is.prototype.currentIntValue=void 0,is.prototype.validValueRanges=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var ds=new WeakSet,fs=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ds),this.currentStrValue=t,this.$objectType="monitoring.v4.serviceability.StringConfigurableParamValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultStrValue",value:function(){return this.defaultStrValue}},{key:"setDefaultStrValue",value:function(e){this.defaultStrValue=e}},{key:"getCurrentStrValue",value:function(){return this.currentStrValue}},{key:"setCurrentStrValue",value:function(e){this.currentStrValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return as(as(!1===e?as({},void 0!==this.getDefaultStrValue()&&null!==this.getDefaultStrValue()?{defaultStrValue:this.getDefaultStrValue()}:{}):{},void 0!==this.getCurrentStrValue()&&null!==this.getCurrentStrValue()?{currentStrValue:this.getCurrentStrValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["currentStrValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"defaultStrValue"!==t||void 0!==this.defaultStrValue&&null!==this.defaultStrValue?"currentStrValue"!==t||void 0!==this.currentStrValue&&null!==this.currentStrValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("currentStrValue","undefined or null"):new U("defaultStrValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("defaultStrValue")&&null!==t.defaultStrValue&&void 0!==t.defaultStrValue&&n.setDefaultStrValue(t.defaultStrValue),t.hasOwnProperty("currentStrValue")&&null!==t.currentStrValue&&void 0!==t.currentStrValue&&n.setCurrentStrValue(t.currentStrValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=as({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ls(t.prototype,n),r&&ls(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ps(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ys(e){return ys="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},ys(e)}function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach((function(t){bs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bs(e,t,n){return(t=gs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ms(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gs(r.key),r)}}function gs(e){var t=function(e){if("object"!=ys(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ys(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ys(t)?t:t+""}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")}fs.prototype.defaultStrValue=void 0,fs.prototype.currentStrValue=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var Os=new WeakSet,js=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Os),this.name=t,this.paramValue=n,this.$objectType="monitoring.v4.serviceability.AlertPolicyConfigurableParameter",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getParamValue",value:function(){return this.paramValue}},{key:"setParamValue",value:function(e){this.paramValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vs(!1===e?vs(vs(vs(vs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson(!1):Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ws(Os,this,$s).call(this,this.getParamValue(),!1)}:{}):vs(vs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson():Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ws(Os,this,$s).call(this,this.getParamValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","paramValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(null==e&&!A.validateMaxLength(this.name,100))return new U("name","does not satisfy required maxLength constraint: 100")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new U("displayName","undefined or null");if(!A.validateMaxLength(this.displayName,200))return new U("displayName","does not satisfy required maxLength constraint: 200")}if("unit"===t){if(void 0===this.unit||null===this.unit)return new U("unit","undefined or null");if(!A.validateMaxLength(this.unit,100))return new U("unit","does not satisfy required maxLength constraint: 100")}return"paramValue"!==t||void 0!==this.paramValue&&null!==this.paramValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("paramValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("displayName")&&null!==t.displayName&&void 0!==t.displayName&&r.setDisplayName(t.displayName),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&r.setUnit(t.unit),t.hasOwnProperty("paramValue")&&null!==t.paramValue&&void 0!==t.paramValue)switch(n=t.paramValue.hasOwnProperty("$objectType")?t.paramValue.$objectType:ys(t.paramValue)){case"monitoring.v4.serviceability.IntConfigurableParamValue":r.setParamValue(is.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.serviceability.FloatConfigurableParamValue":r.setParamValue(Yo.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.serviceability.BooleanConfigurableParamValue":r.setParamValue(Ao.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.serviceability.StringConfigurableParamValue":r.setParamValue(fs.constructFromObject(t.paramValue,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=vs({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ms(t.prototype,n),r&&ms(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $s(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ps(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ys(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}js.prototype.name=void 0,js.prototype.displayName=void 0,js.prototype.unit=void 0,js.prototype.paramValue=void 0,js.prototype.$reserved=void 0,js.prototype.$objectType=void 0,js.prototype.$unknownFields=void 0;var ks={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENABLED:"ENABLED",DISABLED:"DISABLED",NOT_SUPPORTED:"NOT_SUPPORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ks).find((function(t){return ks[t]===e}));return null==t?ks.$UNKNOWN:ks[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ks.$UNKNOWN:case ks.$REDACTED:case ks.ENABLED:case ks.DISABLED:case ks.NOT_SUPPORTED:return;default:throw new Error("Invalid : must be PropertyState.{ $UNKNOWN|$REDACTED|ENABLED|DISABLED|NOT_SUPPORTED }")}}};Object.freeze(ks);const Ts=ks;function Ps(e){return Ps="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},Ps(e)}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Es(Object(n),!0).forEach((function(t){Fs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fs(e,t,n){return(t=As(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,As(r.key),r)}}function As(e){var t=function(e){if("object"!=Ps(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ps(t)?t:t+""}var Cs=new WeakSet,Is=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Cs),this.$objectType="monitoring.v4.serviceability.SeverityConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"getThresholdParameters",value:function(){return this.thresholdParameters}},{key:"setThresholdParameters",value:function(e){this.thresholdParameters=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ss(Ss(Ss({},void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getThresholdParameters()&&null!==this.getThresholdParameters()?{thresholdParameters:this.getThresholdParameters().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("state"===t&&(void 0===this.state||null===this.state))return new U("state","undefined or null");if("thresholdParameters"===t){if(void 0===this.thresholdParameters||null===this.thresholdParameters)return new U("thresholdParameters","undefined or null");if(!A.validateMaxItems(this.thresholdParameters,5))return new U("thresholdParameters","does not satisfy required maxItems constraint: 5")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("state")&&null!==t.state&&void 0!==t.state&&s.setState(Ts.constructFromObject(t.state)),t.hasOwnProperty("thresholdParameters")&&null!==t.thresholdParameters&&void 0!==t.thresholdParameters){for(o=[],n=t.thresholdParameters,i=0;i<n.length;i++)r=js.constructFromObject(n[i],void 0),o.push(r);s.setThresholdParameters(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ss({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ds(t.prototype,n),r&&Ds(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rs(e){return Rs="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},Rs(e)}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach((function(t){xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xs(e,t,n){return(t=Vs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vs(r.key),r)}}function Vs(e){var t=function(e){if("object"!=Rs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rs(t)?t:t+""}Is.prototype.state=void 0,Is.prototype.thresholdParameters=void 0,Is.prototype.$reserved=void 0,Is.prototype.$objectType=void 0,Is.prototype.$unknownFields=void 0;var Ms=new WeakSet,Ls=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ms),this.$objectType="monitoring.v4.serviceability.AlertConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getAutoResolve",value:function(){return this.autoResolve}},{key:"setAutoResolve",value:function(e){this.autoResolve=e}},{key:"getCriticalSeverity",value:function(){return this.criticalSeverity}},{key:"setCriticalSeverity",value:function(e){this.criticalSeverity=e}},{key:"getWarningSeverity",value:function(){return this.warningSeverity}},{key:"setWarningSeverity",value:function(e){this.warningSeverity=e}},{key:"getInfoSeverity",value:function(){return this.infoSeverity}},{key:"setInfoSeverity",value:function(e){this.infoSeverity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ns(Ns(Ns(Ns(Ns({},void 0!==this.getAutoResolve()&&null!==this.getAutoResolve()?{autoResolve:this.getAutoResolve()}:{}),void 0!==this.getCriticalSeverity()&&null!==this.getCriticalSeverity()?{criticalSeverity:this.getCriticalSeverity().toJson(!1)}:{}),void 0!==this.getWarningSeverity()&&null!==this.getWarningSeverity()?{warningSeverity:this.getWarningSeverity().toJson(!1)}:{}),void 0!==this.getInfoSeverity()&&null!==this.getInfoSeverity()?{infoSeverity:this.getInfoSeverity().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"autoResolve"!==t||void 0!==this.autoResolve&&null!==this.autoResolve?"criticalSeverity"!==t||void 0!==this.criticalSeverity&&null!==this.criticalSeverity?"warningSeverity"!==t||void 0!==this.warningSeverity&&null!==this.warningSeverity?"infoSeverity"!==t||void 0!==this.infoSeverity&&null!==this.infoSeverity?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("infoSeverity","undefined or null"):new U("warningSeverity","undefined or null"):new U("criticalSeverity","undefined or null"):new U("autoResolve","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("autoResolve")&&null!==t.autoResolve&&void 0!==t.autoResolve&&n.setAutoResolve($o.constructFromObject(t.autoResolve)),t.hasOwnProperty("criticalSeverity")&&null!==t.criticalSeverity&&void 0!==t.criticalSeverity&&n.setCriticalSeverity(Is.constructFromObject(t.criticalSeverity)),t.hasOwnProperty("warningSeverity")&&null!==t.warningSeverity&&void 0!==t.warningSeverity&&n.setWarningSeverity(Is.constructFromObject(t.warningSeverity)),t.hasOwnProperty("infoSeverity")&&null!==t.infoSeverity&&void 0!==t.infoSeverity&&n.setInfoSeverity(Is.constructFromObject(t.infoSeverity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Ns({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&_s(t.prototype,n),r&&_s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Js(e){return Js="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},Js(e)}function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ws(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gs(e,t,n){return(t=qs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qs(r.key),r)}}function qs(e){var t=function(e){if("object"!=Js(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Js(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Js(t)?t:t+""}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ks=function(){return!!e})()}function Hs(e){return Hs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hs(e)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}function Xs(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.autoResolve=void 0,Ls.prototype.criticalSeverity=void 0,Ls.prototype.warningSeverity=void 0,Ls.prototype.infoSeverity=void 0,Ls.prototype.$reserved=void 0,Ls.prototype.$objectType=void 0,Ls.prototype.$unknownFields=void 0;var Qs=new WeakSet,Zs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Hs(t),function(e,t){if(t&&("object"==Js(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ks()?Reflect.construct(t,n||[],Hs(e).constructor):t.apply(e,n))}(this,t),Qs),e.$objectType="monitoring.v4.serviceability.ClusterConfig",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(e,t)}(t,e),n=t,r=[{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getLastModifiedByUser",value:function(){return this.lastModifiedByUser}},{key:"setLastModifiedByUser",value:function(e){this.lastModifiedByUser=e}},{key:"getLastModifiedTime",value:function(){return this.lastModifiedTime}},{key:"setLastModifiedTime",value:function(e){this.lastModifiedTime=e}},{key:"getScheduleIntervalSeconds",value:function(){return this.scheduleIntervalSeconds}},{key:"setScheduleIntervalSeconds",value:function(e){this.scheduleIntervalSeconds=e}},{key:"getConfigurableParameters",value:function(){return this.configurableParameters}},{key:"setConfigurableParameters",value:function(e){this.configurableParameters=e}},{key:"getAlertConfig",value:function(){return this.alertConfig}},{key:"setAlertConfig",value:function(e){this.alertConfig=e}},{key:"toJson",value:function(e){return Bs(!1===e?Bs(Bs(Bs(Bs(Bs(Bs(Bs(Bs(Bs({},void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getLastModifiedByUser()&&null!==this.getLastModifiedByUser()?{lastModifiedByUser:this.getLastModifiedByUser()}:{}),void 0!==this.getLastModifiedTime()&&null!==this.getLastModifiedTime()?{lastModifiedTime:Xs(Qs,this,ea).call(this,this.getLastModifiedTime(),!1)}:{}),void 0!==this.getScheduleIntervalSeconds()&&null!==this.getScheduleIntervalSeconds()?{scheduleIntervalSeconds:this.getScheduleIntervalSeconds()}:{}),void 0!==this.getConfigurableParameters()&&null!==this.getConfigurableParameters()?{configurableParameters:this.getConfigurableParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getAlertConfig()&&null!==this.getAlertConfig()?{alertConfig:this.getAlertConfig().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Bs(Bs(Bs(Bs({},void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getScheduleIntervalSeconds()&&null!==this.getScheduleIntervalSeconds()?{scheduleIntervalSeconds:this.getScheduleIntervalSeconds()}:{}),void 0!==this.getConfigurableParameters()&&null!==this.getConfigurableParameters()?{configurableParameters:this.getConfigurableParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getAlertConfig()&&null!==this.getAlertConfig()?{alertConfig:this.getAlertConfig().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("lastModifiedByUser"===t&&(void 0===this.lastModifiedByUser||null===this.lastModifiedByUser))return new U("lastModifiedByUser","undefined or null");if("lastModifiedTime"===t&&(void 0===this.lastModifiedTime||null===this.lastModifiedTime))return new U("lastModifiedTime","undefined or null");if("scheduleIntervalSeconds"===t&&(void 0===this.scheduleIntervalSeconds||null===this.scheduleIntervalSeconds))return new U("scheduleIntervalSeconds","undefined or null");if("configurableParameters"===t){if(void 0===this.configurableParameters||null===this.configurableParameters)return new U("configurableParameters","undefined or null");if(!A.validateMaxItems(this.configurableParameters,5))return new U("configurableParameters","does not satisfy required maxItems constraint: 5")}return"alertConfig"!==t||void 0!==this.alertConfig&&null!==this.alertConfig?new U(t,"no such property exists"):new U("alertConfig","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Cn.constructFromObject(e,s,!0),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&s.setIsEnabled(e.isEnabled),e.hasOwnProperty("lastModifiedByUser")&&null!==e.lastModifiedByUser&&void 0!==e.lastModifiedByUser&&s.setLastModifiedByUser(e.lastModifiedByUser),e.hasOwnProperty("lastModifiedTime")&&null!==e.lastModifiedTime&&void 0!==e.lastModifiedTime&&s.setLastModifiedTime(e.lastModifiedTime),e.hasOwnProperty("scheduleIntervalSeconds")&&null!==e.scheduleIntervalSeconds&&void 0!==e.scheduleIntervalSeconds&&s.setScheduleIntervalSeconds(e.scheduleIntervalSeconds),e.hasOwnProperty("configurableParameters")&&null!==e.configurableParameters&&void 0!==e.configurableParameters){for(o=[],n=e.configurableParameters,i=0;i<n.length;i++)r=js.constructFromObject(n[i],void 0),o.push(r);s.setConfigurableParameters(o)}if(e.hasOwnProperty("alertConfig")&&null!==e.alertConfig&&void 0!==e.alertConfig&&s.setAlertConfig(Ls.constructFromObject(e.alertConfig)),!a)for(var u in s.$unknownFields=Bs({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&zs(n.prototype,r),i&&zs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function ea(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Zs.prototype.isEnabled=void 0,Zs.prototype.lastModifiedByUser=void 0,Zs.prototype.lastModifiedTime=void 0,Zs.prototype.scheduleIntervalSeconds=void 0,Zs.prototype.configurableParameters=void 0,Zs.prototype.alertConfig=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var ta={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",PE:"PE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ta).find((function(t){return ta[t]===e}));return null==t?ta.$UNKNOWN:ta[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ta.$UNKNOWN:case ta.$REDACTED:case ta.PC:case ta.PE:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|PC|PE }")}}};Object.freeze(ta);const na=ta;var ra={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DISK:"DISK",VIRTUAL_DISK:"VIRTUAL_DISK",VM:"VM",CONTAINER:"CONTAINER",HOST:"HOST",CLUSTER:"CLUSTER",VOLUME_GROUP:"VOLUME_GROUP",FILE_SERVER:"FILE_SERVER",HOST_NIC:"HOST_NIC",RECOVERY_PLAN:"RECOVERY_PLAN",PROTECTION_DOMAIN:"PROTECTION_DOMAIN",PROTECTION_RULE:"PROTECTION_RULE",ACTION_RULE_RESULT:"ACTION_RULE_RESULT",AVAILABILITY_ZONE_PHYSICAL:"AVAILABILITY_ZONE_PHYSICAL",CONSISTENCY_GROUP_CONFIG:"CONSISTENCY_GROUP_CONFIG",OVA:"OVA",VOLUME_GROUP_CONFIG:"VOLUME_GROUP_CONFIG",VPN_CONNECTION:"VPN_CONNECTION",REMOTE_SITE:"REMOTE_SITE",STORAGE_POOL:"STORAGE_POOL",LAYER2_STRETCH:"LAYER2_STRETCH",ATLAS_VIRTUAL_NETWORK:"ATLAS_VIRTUAL_NETWORK",IPFIX_EXPORTER:"IPFIX_EXPORTER",ATLAS_ROUTING_POLICY:"ATLAS_ROUTING_POLICY",BGP_SESSION:"BGP_SESSION",MSP:"MSP",VPN_GATEWAY:"VPN_GATEWAY",ATLAS_LOAD_BALANCER_SESSION:"ATLAS_LOAD_BALANCER_SESSION",ATLAS_FLOW_GATEWAY:"ATLAS_FLOW_GATEWAY",PRISM_CENTRAL:"PRISM_CENTRAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ra).find((function(t){return ra[t]===e}));return null==t?ra.$UNKNOWN:ra[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ra.$UNKNOWN:case ra.$REDACTED:case ra.DISK:case ra.VIRTUAL_DISK:case ra.VM:case ra.CONTAINER:case ra.HOST:case ra.CLUSTER:case ra.VOLUME_GROUP:case ra.FILE_SERVER:case ra.HOST_NIC:case ra.RECOVERY_PLAN:case ra.PROTECTION_DOMAIN:case ra.PROTECTION_RULE:case ra.ACTION_RULE_RESULT:case ra.AVAILABILITY_ZONE_PHYSICAL:case ra.CONSISTENCY_GROUP_CONFIG:case ra.OVA:case ra.VOLUME_GROUP_CONFIG:case ra.VPN_CONNECTION:case ra.REMOTE_SITE:case ra.STORAGE_POOL:case ra.LAYER2_STRETCH:case ra.ATLAS_VIRTUAL_NETWORK:case ra.IPFIX_EXPORTER:case ra.ATLAS_ROUTING_POLICY:case ra.BGP_SESSION:case ra.MSP:case ra.VPN_GATEWAY:case ra.ATLAS_LOAD_BALANCER_SESSION:case ra.ATLAS_FLOW_GATEWAY:case ra.PRISM_CENTRAL:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|DISK|VIRTUAL_DISK|VM|CONTAINER|HOST|CLUSTER|VOLUME_GROUP|FILE_SERVER|HOST_NIC|RECOVERY_PLAN|PROTECTION_DOMAIN|PROTECTION_RULE|ACTION_RULE_RESULT|AVAILABILITY_ZONE_PHYSICAL|CONSISTENCY_GROUP_CONFIG|OVA|VOLUME_GROUP_CONFIG|VPN_CONNECTION|REMOTE_SITE|STORAGE_POOL|LAYER2_STRETCH|ATLAS_VIRTUAL_NETWORK|IPFIX_EXPORTER|ATLAS_ROUTING_POLICY|BGP_SESSION|MSP|VPN_GATEWAY|ATLAS_LOAD_BALANCER_SESSION|ATLAS_FLOW_GATEWAY|PRISM_CENTRAL }")}}};Object.freeze(ra);const ia=ra;var oa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",NODE:"NODE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(oa).find((function(t){return oa[t]===e}));return null==t?oa.$UNKNOWN:oa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case oa.$UNKNOWN:case oa.$REDACTED:case oa.CLUSTER:case oa.NODE:return;default:throw new Error("Invalid : must be Scope.{ $UNKNOWN|$REDACTED|CLUSTER|NODE }")}}};Object.freeze(oa);const sa=oa;var aa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SCHEDULED:"SCHEDULED",NOT_SCHEDULED:"NOT_SCHEDULED",EVENT_DRIVEN:"EVENT_DRIVEN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(aa).find((function(t){return aa[t]===e}));return null==t?aa.$UNKNOWN:aa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case aa.$UNKNOWN:case aa.$REDACTED:case aa.SCHEDULED:case aa.NOT_SCHEDULED:case aa.EVENT_DRIVEN:return;default:throw new Error("Invalid : must be SdaSubType.{ $UNKNOWN|$REDACTED|SCHEDULED|NOT_SCHEDULED|EVENT_DRIVEN }")}}};Object.freeze(aa);const ua=aa;var la={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HEALTH_CHECK:"HEALTH_CHECK",SERVICE_DEFINED:"SERVICE_DEFINED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(la).find((function(t){return la[t]===e}));return null==t?la.$UNKNOWN:la[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case la.$UNKNOWN:case la.$REDACTED:case la.HEALTH_CHECK:case la.SERVICE_DEFINED:return;default:throw new Error("Invalid : must be SdaType.{ $UNKNOWN|$REDACTED|HEALTH_CHECK|SERVICE_DEFINED }")}}};Object.freeze(la);const ca=la;function da(e){return da="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},da(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach((function(t){ya(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ya(e,t,n){return(t=va(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ha(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,va(r.key),r)}}function va(e){var t=function(e){if("object"!=da(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=da(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==da(t)?t:t+""}function ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ba=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ma(e)}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ga(e,t)}var wa=new WeakSet,Oa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ma(t),function(e,t){if(t&&("object"==da(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ba()?Reflect.construct(t,n||[],ma(e).constructor):t.apply(e,n))}(this,t),wa),e.$objectType="monitoring.v4.serviceability.SystemDefinedPolicy",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ga(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getPolicyId",value:function(){return this.policyId}},{key:"setPolicyId",value:function(e){this.policyId=e}},{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getSubType",value:function(){return this.subType}},{key:"setSubType",value:function(e){this.subType=e}},{key:"getScope",value:function(){return this.scope}},{key:"setScope",value:function(e){this.scope=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getKbArticles",value:function(){return this.kbArticles}},{key:"setKbArticles",value:function(e){this.kbArticles=e}},{key:"getTargetClusters",value:function(){return this.targetClusters}},{key:"setTargetClusters",value:function(e){this.targetClusters=e}},{key:"getPublisher",value:function(){return this.publisher}},{key:"setPublisher",value:function(e){this.publisher=e}},{key:"getClusterConfigs",value:function(){return this.clusterConfigs}},{key:"setClusterConfigs",value:function(e){this.clusterConfigs=e}},{key:"toJson",value:function(e){return pa(!1===e?pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getPolicyId()&&null!==this.getPolicyId()?{policyId:this.getPolicyId()}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getSubType()&&null!==this.getSubType()?{subType:this.getSubType()}:{}),void 0!==this.getScope()&&null!==this.getScope()?{scope:this.getScope()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getKbArticles()&&null!==this.getKbArticles()?{kbArticles:this.getKbArticles()}:{}),void 0!==this.getTargetClusters()&&null!==this.getTargetClusters()?{targetClusters:this.getTargetClusters()}:{}),void 0!==this.getPublisher()&&null!==this.getPublisher()?{publisher:this.getPublisher()}:{}),void 0!==this.getClusterConfigs()&&null!==this.getClusterConfigs()?{clusterConfigs:this.getClusterConfigs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa(pa({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getPolicyId()&&null!==this.getPolicyId()?{policyId:this.getPolicyId()}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getSubType()&&null!==this.getSubType()?{subType:this.getSubType()}:{}),void 0!==this.getScope()&&null!==this.getScope()?{scope:this.getScope()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getKbArticles()&&null!==this.getKbArticles()?{kbArticles:this.getKbArticles()}:{}),void 0!==this.getTargetClusters()&&null!==this.getTargetClusters()?{targetClusters:this.getTargetClusters()}:{}),void 0!==this.getPublisher()&&null!==this.getPublisher()?{publisher:this.getPublisher()}:{}),void 0!==this.getClusterConfigs()&&null!==this.getClusterConfigs()?{clusterConfigs:this.getClusterConfigs().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.validateMaxLength(this.extId,100))return new U("extId","does not satisfy required maxLength constraint: 100");if(!A.validatePattern(this.extId,/^\\d+$/))return new U("extId","does not satisfy required pattern: /^\\d+$/")}if("links"===t){if(void 0===this.links||null===this.links)return new U("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("description"===t){if(void 0===this.description||null===this.description)return new U("description","undefined or null");if(!A.validateMaxLength(this.description,400))return new U("description","does not satisfy required maxLength constraint: 400")}if("policyId"===t){if(void 0===this.policyId||null===this.policyId)return new U("policyId","undefined or null");if(!A.validatePattern(this.policyId,/^{A}\\d+$/))return new U("policyId","does not satisfy required pattern: /^{A}\\d+$/")}if("title"===t){if(void 0===this.title||null===this.title)return new U("title","undefined or null");if(!A.validateMaxLength(this.title,250))return new U("title","does not satisfy required maxLength constraint: 250")}if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("subType"===t&&(void 0===this.subType||null===this.subType))return new U("subType","undefined or null");if("scope"===t&&(void 0===this.scope||null===this.scope))return new U("scope","undefined or null");if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new U("entityType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new U("classifications","undefined or null");if(!A.validateMaxItems(this.classifications,15))return new U("classifications","does not satisfy required maxItems constraint: 15")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("kbArticles"===t&&(void 0===this.kbArticles||null===this.kbArticles))return new U("kbArticles","undefined or null");if("targetClusters"===t){if(void 0===this.targetClusters||null===this.targetClusters)return new U("targetClusters","undefined or null");if(!A.validateMaxItems(this.targetClusters,2))return new U("targetClusters","does not satisfy required maxItems constraint: 2");if(!A.validateMinItems(this.targetClusters,1))return new U("targetClusters","does not satisfy required minItems constraint: 1")}if("publisher"===t){if(void 0===this.publisher||null===this.publisher)return new U("publisher","undefined or null");if(!A.validateMinLength(this.publisher,1))return new U("publisher","does not satisfy required minLength constraint: 1")}if("clusterConfigs"===t){if(void 0===this.clusterConfigs||null===this.clusterConfigs)return new U("clusterConfigs","undefined or null");if(!A.validateMaxItems(this.clusterConfigs,350))return new U("clusterConfigs","does not satisfy required maxItems constraint: 350");if(!A.validateMinItems(this.clusterConfigs,1))return new U("clusterConfigs","does not satisfy required minItems constraint: 1")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,On.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],n=e.links,i=0;i<n.length;i++)r=Fe.constructFromObject(n[i],void 0),o.push(r);s.setLinks(o)}if(e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&s.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("policyId")&&null!==e.policyId&&void 0!==e.policyId&&s.setPolicyId(e.policyId),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&s.setTitle(e.title),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&s.setType(ca.constructFromObject(e.type)),e.hasOwnProperty("subType")&&null!==e.subType&&void 0!==e.subType&&s.setSubType(ua.constructFromObject(e.subType)),e.hasOwnProperty("scope")&&null!==e.scope&&void 0!==e.scope&&s.setScope(sa.constructFromObject(e.scope)),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&s.setEntityType(ia.constructFromObject(e.entityType)),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(o=[],n=e.classifications,i=0;i<n.length;i++)o.push(n[i]);s.setClassifications(o)}if(e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(o=[],n=e.impactTypes,i=0;i<n.length;i++)r=Yn.constructFromObject(n[i],void 0),o.push(r);s.setImpactTypes(o)}if(e.hasOwnProperty("kbArticles")&&null!==e.kbArticles&&void 0!==e.kbArticles){for(o=[],n=e.kbArticles,i=0;i<n.length;i++)o.push(n[i]);s.setKbArticles(o)}if(e.hasOwnProperty("targetClusters")&&null!==e.targetClusters&&void 0!==e.targetClusters){for(o=[],n=e.targetClusters,i=0;i<n.length;i++)r=na.constructFromObject(n[i],void 0),o.push(r);s.setTargetClusters(o)}if(e.hasOwnProperty("publisher")&&null!==e.publisher&&void 0!==e.publisher&&s.setPublisher(e.publisher),e.hasOwnProperty("clusterConfigs")&&null!==e.clusterConfigs&&void 0!==e.clusterConfigs){for(o=[],n=e.clusterConfigs,i=0;i<n.length;i++)r=Zs.constructFromObject(n[i],void 0),o.push(r);s.setClusterConfigs(o)}if(!a)for(var u in s.$unknownFields=pa({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ha(n.prototype,r),i&&ha(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(On);function ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $a(e){return $a="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},$a(e)}function ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ka(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return(t=Sa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sa(r.key),r)}}function Sa(e){var t=function(e){if("object"!=$a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$a(t)?t:t+""}function Fa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fa=function(){return!!e})()}function Da(e){return Da=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Da(e)}function Aa(e,t){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aa(e,t)}function Ca(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")}Oa.prototype.extId=void 0,Oa.prototype.links=void 0,Oa.prototype.name=void 0,Oa.prototype.description=void 0,Oa.prototype.policyId=void 0,Oa.prototype.title=void 0,Oa.prototype.type=void 0,Oa.prototype.subType=void 0,Oa.prototype.scope=void 0,Oa.prototype.entityType=void 0,Oa.prototype.classifications=void 0,Oa.prototype.impactTypes=void 0,Oa.prototype.kbArticles=void 0,Oa.prototype.targetClusters=["PE"],Oa.prototype.publisher="NCC",Oa.prototype.clusterConfigs=void 0,On.prototype.tenantId=void 0;var Ia=new WeakSet,Ra=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Da(t),function(e,t){if(t&&("object"==$a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fa()?Reflect.construct(t,n||[],Da(e).constructor):t.apply(e,n))}(this,t),Ia),e.$objectType="monitoring.v4.serviceability.GetSdaPolicyApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Aa(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ta(Ta(Ta({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ca(Ia,this,Ua).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ca(Ia,this,Ua).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$a(e.data)){case"monitoring.v4.serviceability.SystemDefinedPolicy":r.setData(Oa.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=Ta({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ea(n.prototype,r),i&&Ea(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Ua(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ja(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ja(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===$a(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Na(e){return Na="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},Na(e)}function xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _a(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ma(r.key),r)}}function Ma(e){var t=function(e){if("object"!=Na(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Na(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Na(t)?t:t+""}function La(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(La=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ja(e)}function Wa(e,t){return Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wa(e,t)}Ra.prototype.metadata=void 0,Ra.prototype.data=void 0,Ra.prototype.$reserved=void 0,Ra.prototype.$objectType=void 0,Ra.prototype.$unknownFields=void 0;var Ba=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Ja(t),function(e,t){if(t&&("object"==Na(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,La()?Reflect.construct(t,n||[],Ja(e).constructor):t.apply(e,n))}(this,t)).$objectType="monitoring.v4.serviceability.ClusterConfigProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wa(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Zs.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach((function(t){_a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Va(n.prototype,r),i&&Va(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Zs);function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function za(e){return za="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},za(e)}function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach((function(t){Ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ha(e,t,n){return(t=Xa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xa(r.key),r)}}function Xa(e){var t=function(e){if("object"!=za(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==za(t)?t:t+""}function Qa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qa=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Za(e)}function eu(e,t){return eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eu(e,t)}function tu(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 nu=new WeakSet,ru=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Za(t),function(e,t){if(t&&("object"==za(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qa()?Reflect.construct(t,n||[],Za(e).constructor):t.apply(e,n))}(this,t),nu),e.$objectType="monitoring.v4.serviceability.ListClusterConfigsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ka(Ka(Ka({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):tu(nu,this,iu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):tu(nu,this,iu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:za(n[0]),i=0;i<n.length;i++)switch(s){case"monitoring.v4.serviceability.ClusterConfig":r=Zs.constructFromObject(n[i],void 0),o.push(r);break;case"monitoring.v4.serviceability.ClusterConfigProjection":r=Ba.constructFromObject(n[i],void 0),o.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:za(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Ka({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ya(n.prototype,r),i&&Ya(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function iu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ga(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ga(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===za(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function su(e){return su="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},su(e)}function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){lu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lu(e,t,n){return(t=du(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,du(r.key),r)}}function du(e){var t=function(e){if("object"!=su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==su(t)?t:t+""}function fu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fu=function(){return!!e})()}function pu(e){return pu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pu(e)}function yu(e,t){return yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yu(e,t)}function hu(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")}ru.prototype.metadata=void 0,ru.prototype.data=void 0,ru.prototype.$reserved=void 0,ru.prototype.$objectType=void 0,ru.prototype.$unknownFields=void 0;var vu=new WeakSet,bu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=pu(t),function(e,t){if(t&&("object"==su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fu()?Reflect.construct(t,n||[],pu(e).constructor):t.apply(e,n))}(this,t),vu),e.$objectType="monitoring.v4.serviceability.GetClusterConfigApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return uu(uu(uu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):hu(vu,this,mu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):hu(vu,this,mu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:su(e.data)){case"monitoring.v4.serviceability.ClusterConfig":r.setData(Zs.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=uu({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&cu(n.prototype,r),i&&cu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function mu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ou(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ou(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===su(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function gu(e){return gu="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},gu(e)}function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wu(Object(n),!0).forEach((function(t){ju(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ju(e,t,n){return(t=ku(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ku(r.key),r)}}function ku(e){var t=function(e){if("object"!=gu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gu(t)?t:t+""}bu.prototype.metadata=void 0,bu.prototype.data=void 0,bu.prototype.$reserved=void 0,bu.prototype.$objectType=void 0,bu.prototype.$unknownFields=void 0;var Tu=new WeakSet,Pu=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Tu),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ou(Ou({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Ou({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&$u(t.prototype,n),r&&$u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Eu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Su(e){return Su="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},Su(e)}function Fu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fu(Object(n),!0).forEach((function(t){Au(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Au(e,t,n){return(t=Iu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iu(r.key),r)}}function Iu(e){var t=function(e){if("object"!=Su(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Su(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Su(t)?t:t+""}function Ru(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ru=function(){return!!e})()}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uu(e)}function Nu(e,t){return Nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nu(e,t)}function xu(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")}Pu.prototype.extId=void 0,Pu.prototype.$reserved=void 0,Pu.prototype.$objectType=void 0,Pu.prototype.$unknownFields=void 0;var _u=new WeakSet,Vu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Uu(t),function(e,t){if(t&&("object"==Su(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ru()?Reflect.construct(t,n||[],Uu(e).constructor):t.apply(e,n))}(this,t),_u),e.$objectType="monitoring.v4.serviceability.UpdateClusterConfigApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Du(Du(Du({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xu(_u,this,Mu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):xu(_u,this,Mu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Su(e.data)){case"prism.v4.config.TaskReference":r.setData(Pu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=Du({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Cu(n.prototype,r),i&&Cu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Mu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Eu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eu(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Su(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Lu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ju(e){return Ju="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},Ju(e)}function Wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wu(Object(n),!0).forEach((function(t){Gu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gu(e,t,n){return(t=qu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qu(r.key),r)}}function qu(e){var t=function(e){if("object"!=Ju(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ju(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ju(t)?t:t+""}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ku=function(){return!!e})()}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hu(e)}function Yu(e,t){return Yu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yu(e,t)}function Xu(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")}Vu.prototype.metadata=void 0,Vu.prototype.data=void 0,Vu.prototype.$reserved=void 0,Vu.prototype.$objectType=void 0,Vu.prototype.$unknownFields=void 0;var Qu=new WeakSet,Zu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Hu(t),function(e,t){if(t&&("object"==Ju(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ku()?Reflect.construct(t,n||[],Hu(e).constructor):t.apply(e,n))}(this,t),Qu),e.$objectType="monitoring.v4.serviceability.ListSdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bu(Bu(Bu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Xu(Qu,this,el).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Xu(Qu,this,el).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ju(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.SystemDefinedPolicy"!==s)throw"Unknown list of type "+s+" in data";r=Oa.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ju(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Bu({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&zu(n.prototype,r),i&&zu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function el(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Lu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lu(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ju(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function tl(e){return tl="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},tl(e)}function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nl(Object(n),!0).forEach((function(t){il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function il(e,t,n){return(t=sl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sl(r.key),r)}}function sl(e){var t=function(e){if("object"!=tl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tl(t)?t:t+""}function al(e,t){return e.get(ul(e,t))}function ul(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")}Zu.prototype.metadata=void 0,Zu.prototype.data=void 0,Zu.prototype.$reserved=void 0,Zu.prototype.$objectType=void 0,Zu.prototype.$unknownFields=void 0;var ll=new WeakMap,cl=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,ll,void 0),this.apiClient=t||lt.instance,n=ll,r=new Set,n.set(ul(n,this),r),al(ll,this).add("authorization"),al(ll,this).add("cookie"),al(ll,this).add("host"),al(ll,this).add("user-agent")},t=[{key:"getClusterConfigById",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'systemDefinedPolicyExtId' when calling getClusterConfigById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getClusterConfigById");var i={systemDefinedPolicyExtId:e,extId:t},o={};Object.keys(r).forEach((function(e){al(ll,n).has(e.toLowerCase())||(o[e]=r[e])}));var s=rl({},o),a=bu;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/system-defined-policies/{systemDefinedPolicyExtId}/cluster-configs/{extId}","GET",i,{},s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getSdaPolicyById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getSdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){al(ll,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=rl({},i),s=Ra;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/system-defined-policies/{extId}","GET",r,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listClusterConfigsBySdaId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'systemDefinedPolicyExtId' when calling listClusterConfigsBySdaId");var i={systemDefinedPolicyExtId:e},o=rl(rl(rl(rl(rl({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach((function(e){al(ll,n).has(e.toLowerCase())||(s[e]=r[e])}));var a=rl({},s),u=ru;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/system-defined-policies/{systemDefinedPolicyExtId}/cluster-configs","GET",i,o,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"listSdaPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=rl(rl(rl(rl(rl({},(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}:{}),i={};Object.keys(n).forEach((function(e){al(ll,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=rl({},i),s=Zu;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/system-defined-policies","GET",{},r,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"updateClusterConfigById",value:function(e,t,n){var r,i=this,o=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{};if(r=n instanceof Zs&&"function"==typeof n.toJson?n.toJson():n,null==e)throw new Error("Missing the required parameter 'systemDefinedPolicyExtId' when calling updateClusterConfigById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling updateClusterConfigById");if(null==r)throw new Error("Invalid body when calling updateClusterConfigById");var s={systemDefinedPolicyExtId:e,extId:t},a={};Object.keys(o).forEach((function(e){al(ll,i).has(e.toLowerCase())||(a[e]=o[e])}));var u=rl({},a);lt.addEtagReferenceToHeader(n,u);var l=Vu;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/system-defined-policies/{systemDefinedPolicyExtId}/cluster-configs/{extId}","PUT",s,{},u,{},r,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ol(e.prototype,t),n&&ol(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function dl(e){return dl="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},dl(e)}function fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fl(Object(n),!0).forEach((function(t){yl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yl(e,t,n){return(t=vl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vl(r.key),r)}}function vl(e){var t=function(e){if("object"!=dl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dl(t)?t:t+""}var bl=new WeakSet,ml=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,bl),this.$objectType="monitoring.v4.serviceability.EmailConfigurationRule",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getClusterUuids",value:function(){return this.clusterUuids}},{key:"setClusterUuids",value:function(e){this.clusterUuids=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getHasGlobalEmailContactList",value:function(){return this.hasGlobalEmailContactList}},{key:"setHasGlobalEmailContactList",value:function(e){this.hasGlobalEmailContactList=e}},{key:"getMatchPhrases",value:function(){return this.matchPhrases}},{key:"setMatchPhrases",value:function(e){this.matchPhrases=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getSeverities",value:function(){return this.severities}},{key:"setSeverities",value:function(e){this.severities=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pl(pl(pl(pl(pl(pl(pl(pl({},void 0!==this.getClusterUuids()&&null!==this.getClusterUuids()?{clusterUuids:this.getClusterUuids()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getHasGlobalEmailContactList()&&null!==this.getHasGlobalEmailContactList()?{hasGlobalEmailContactList:this.getHasGlobalEmailContactList()}:{}),void 0!==this.getMatchPhrases()&&null!==this.getMatchPhrases()?{matchPhrases:this.getMatchPhrases()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients()}:{}),void 0!==this.getSeverities()&&null!==this.getSeverities()?{severities:this.getSeverities()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterUuids"===t){if(void 0===this.clusterUuids||null===this.clusterUuids)return new U("clusterUuids","undefined or null");if(!A.validateMaxItems(this.clusterUuids,50))return new U("clusterUuids","does not satisfy required maxItems constraint: 50")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("hasGlobalEmailContactList"===t&&(void 0===this.hasGlobalEmailContactList||null===this.hasGlobalEmailContactList))return new U("hasGlobalEmailContactList","undefined or null");if("matchPhrases"===t){if(void 0===this.matchPhrases||null===this.matchPhrases)return new U("matchPhrases","undefined or null");if(!A.validateMaxItems(this.matchPhrases,100))return new U("matchPhrases","does not satisfy required maxItems constraint: 100")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new U("recipients","undefined or null");if(!A.validateMaxItems(this.recipients,100))return new U("recipients","does not satisfy required maxItems constraint: 100")}if("severities"===t){if(void 0===this.severities||null===this.severities)return new U("severities","undefined or null");if(!A.validateMaxItems(this.severities,3))return new U("severities","does not satisfy required maxItems constraint: 3")}return"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("isEnabled","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("clusterUuids")&&null!==t.clusterUuids&&void 0!==t.clusterUuids){for(o=[],n=t.clusterUuids,i=0;i<n.length;i++)o.push(n[i]);s.setClusterUuids(o)}if(t.hasOwnProperty("impactTypes")&&null!==t.impactTypes&&void 0!==t.impactTypes){for(o=[],n=t.impactTypes,i=0;i<n.length;i++)r=Yn.constructFromObject(n[i],void 0),o.push(r);s.setImpactTypes(o)}if(t.hasOwnProperty("hasGlobalEmailContactList")&&null!==t.hasGlobalEmailContactList&&void 0!==t.hasGlobalEmailContactList&&s.setHasGlobalEmailContactList(t.hasGlobalEmailContactList),t.hasOwnProperty("matchPhrases")&&null!==t.matchPhrases&&void 0!==t.matchPhrases){for(o=[],n=t.matchPhrases,i=0;i<n.length;i++)o.push(n[i]);s.setMatchPhrases(o)}if(t.hasOwnProperty("recipients")&&null!==t.recipients&&void 0!==t.recipients){for(o=[],n=t.recipients,i=0;i<n.length;i++)o.push(n[i]);s.setRecipients(o)}if(t.hasOwnProperty("severities")&&null!==t.severities&&void 0!==t.severities){for(o=[],n=t.severities,i=0;i<n.length;i++)r=oi.constructFromObject(n[i],void 0),o.push(r);s.setSeverities(o)}if(t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&s.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=pl({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&hl(t.prototype,n),r&&hl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gl(e){return gl="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},gl(e)}function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach((function(t){jl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jl(e,t,n){return(t=kl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kl(r.key),r)}}function kl(e){var t=function(e){if("object"!=gl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gl(t)?t:t+""}ml.prototype.clusterUuids=void 0,ml.prototype.impactTypes=void 0,ml.prototype.hasGlobalEmailContactList=!1,ml.prototype.matchPhrases=void 0,ml.prototype.recipients=void 0,ml.prototype.severities=void 0,ml.prototype.isEnabled=!0,ml.prototype.$reserved=void 0,ml.prototype.$objectType=void 0,ml.prototype.$unknownFields=void 0;var Tl=new WeakSet,Pl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Tl),this.$objectType="monitoring.v4.serviceability.EmailTemplate",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getBodySuffix",value:function(){return this.bodySuffix}},{key:"setBodySuffix",value:function(e){this.bodySuffix=e}},{key:"getSubjectPrefix",value:function(){return this.subjectPrefix}},{key:"setSubjectPrefix",value:function(e){this.subjectPrefix=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ol(Ol(Ol({},void 0!==this.getBodySuffix()&&null!==this.getBodySuffix()?{bodySuffix:this.getBodySuffix()}:{}),void 0!==this.getSubjectPrefix()&&null!==this.getSubjectPrefix()?{subjectPrefix:this.getSubjectPrefix()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("bodySuffix"===t&&(void 0===this.bodySuffix||null===this.bodySuffix))return new U("bodySuffix","undefined or null");if("subjectPrefix"===t){if(void 0===this.subjectPrefix||null===this.subjectPrefix)return new U("subjectPrefix","undefined or null");if(!A.validateMaxLength(this.subjectPrefix,256))return new U("subjectPrefix","does not satisfy required maxLength constraint: 256")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("bodySuffix")&&null!==t.bodySuffix&&void 0!==t.bodySuffix&&n.setBodySuffix(t.bodySuffix),t.hasOwnProperty("subjectPrefix")&&null!==t.subjectPrefix&&void 0!==t.subjectPrefix&&n.setSubjectPrefix(t.subjectPrefix),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Ol({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&$l(t.prototype,n),r&&$l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Pl.prototype.bodySuffix=void 0,Pl.prototype.subjectPrefix=void 0,Pl.prototype.$reserved=void 0,Pl.prototype.$objectType=void 0,Pl.prototype.$unknownFields=void 0;var El={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCESS:"SUCCESS",FAILED:"FAILED",RETRYING:"RETRYING",DISABLED:"DISABLED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(El).find((function(t){return El[t]===e}));return null==t?El.$UNKNOWN:El[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case El.$UNKNOWN:case El.$REDACTED:case El.SUCCESS:case El.FAILED:case El.RETRYING:case El.DISABLED:return;default:throw new Error("Invalid : must be ConnectionStatus.{ $UNKNOWN|$REDACTED|SUCCESS|FAILED|RETRYING|DISABLED }")}}};Object.freeze(El);const Sl=El;function Fl(e){return Fl="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},Fl(e)}function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dl(Object(n),!0).forEach((function(t){Cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cl(e,t,n){return(t=Rl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rl(r.key),r)}}function Rl(e){var t=function(e){if("object"!=Fl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fl(t)?t:t+""}var Ul=new WeakSet,Nl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ul),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Al(Al(Al({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Al({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Il(t.prototype,n),r&&Il(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xl(e){return xl="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},xl(e)}function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){Ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ml(e,t,n){return(t=Jl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jl(r.key),r)}}function Jl(e){var t=function(e){if("object"!=xl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xl(t)?t:t+""}Nl.prototype.name=void 0,Nl.prototype.value="",Nl.prototype.$reserved=void 0,Nl.prototype.$objectType=void 0,Nl.prototype.$unknownFields=void 0;var Wl=new WeakSet,Bl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Wl),this.$objectType="monitoring.v4.serviceability.ParameterizedMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(e){this.attributes=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Vl(Vl(Vl({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributes()&&null!==this.getAttributes()?{attributes:this.getAttributes().map((function(e){return e.toJson(!1)}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("message"===t&&(void 0===this.message||null===this.message))return new U("message","undefined or null");if("attributes"===t){if(void 0===this.attributes||null===this.attributes)return new U("attributes","undefined or null");if(!A.validateMaxItems(this.attributes,100))return new U("attributes","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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&s.setMessage(t.message),t.hasOwnProperty("attributes")&&null!==t.attributes&&void 0!==t.attributes){for(o=[],n=t.attributes,i=0;i<n.length;i++)r=Nl.constructFromObject(n[i],void 0),o.push(r);s.setAttributes(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Vl({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ll(t.prototype,n),r&&Ll(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gl(e){return Gl="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},Gl(e)}function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach((function(t){Kl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kl(e,t,n){return(t=Yl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yl(r.key),r)}}function Yl(e){var t=function(e){if("object"!=Gl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gl(t)?t:t+""}function Xl(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")}Bl.prototype.message=void 0,Bl.prototype.attributes=void 0,Bl.prototype.$reserved=void 0,Bl.prototype.$objectType=void 0,Bl.prototype.$unknownFields=void 0;var Ql=new WeakSet,Zl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ql),this.$objectType="monitoring.v4.serviceability.CommunicationStatus",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLastCheckedTime",value:function(){return this.lastCheckedTime}},{key:"setLastCheckedTime",value:function(e){this.lastCheckedTime=e}},{key:"getLastChangedTime",value:function(){return this.lastChangedTime}},{key:"setLastChangedTime",value:function(e){this.lastChangedTime=e}},{key:"getLastSuccessfulTransmissionTime",value:function(){return this.lastSuccessfulTransmissionTime}},{key:"setLastSuccessfulTransmissionTime",value:function(e){this.lastSuccessfulTransmissionTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ql(ql(ql(ql(ql(ql({},void 0!==this.getLastCheckedTime()&&null!==this.getLastCheckedTime()?{lastCheckedTime:Xl(Ql,this,ec).call(this,this.getLastCheckedTime(),!1)}:{}),void 0!==this.getLastChangedTime()&&null!==this.getLastChangedTime()?{lastChangedTime:Xl(Ql,this,ec).call(this,this.getLastChangedTime(),!1)}:{}),void 0!==this.getLastSuccessfulTransmissionTime()&&null!==this.getLastSuccessfulTransmissionTime()?{lastSuccessfulTransmissionTime:Xl(Ql,this,ec).call(this,this.getLastSuccessfulTransmissionTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"lastCheckedTime"!==t||void 0!==this.lastCheckedTime&&null!==this.lastCheckedTime?"lastChangedTime"!==t||void 0!==this.lastChangedTime&&null!==this.lastChangedTime?"lastSuccessfulTransmissionTime"!==t||void 0!==this.lastSuccessfulTransmissionTime&&null!==this.lastSuccessfulTransmissionTime?"status"!==t||void 0!==this.status&&null!==this.status?"message"!==t||void 0!==this.message&&null!==this.message?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("message","undefined or null"):new U("status","undefined or null"):new U("lastSuccessfulTransmissionTime","undefined or null"):new U("lastChangedTime","undefined or null"):new U("lastCheckedTime","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("lastCheckedTime")&&null!==t.lastCheckedTime&&void 0!==t.lastCheckedTime&&n.setLastCheckedTime(t.lastCheckedTime),t.hasOwnProperty("lastChangedTime")&&null!==t.lastChangedTime&&void 0!==t.lastChangedTime&&n.setLastChangedTime(t.lastChangedTime),t.hasOwnProperty("lastSuccessfulTransmissionTime")&&null!==t.lastSuccessfulTransmissionTime&&void 0!==t.lastSuccessfulTransmissionTime&&n.setLastSuccessfulTransmissionTime(t.lastSuccessfulTransmissionTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(Sl.constructFromObject(t.status)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(Bl.constructFromObject(t.message)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ql({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Hl(t.prototype,n),r&&Hl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ec(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function tc(e){return tc="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},tc(e)}function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(n),!0).forEach((function(t){ic(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ic(e,t,n){return(t=sc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sc(r.key),r)}}function sc(e){var t=function(e){if("object"!=tc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tc(t)?t:t+""}Zl.prototype.lastCheckedTime=void 0,Zl.prototype.lastChangedTime=void 0,Zl.prototype.lastSuccessfulTransmissionTime=void 0,Zl.prototype.status=void 0,Zl.prototype.message=void 0,Zl.prototype.$reserved=void 0,Zl.prototype.$objectType=void 0,Zl.prototype.$unknownFields=void 0;var ac=new WeakSet,uc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ac),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return rc(rc({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!A.validatePattern(this.value,/^([a-z0-9]+(-[a-z0-9]+)*\\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/))return new U("value","does not satisfy required pattern: /^([a-z0-9]+(-[a-z0-9]+)*\\.)+([a-z0-9]+(-[a-z0-9]+)*){1,63}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=rc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&oc(t.prototype,n),r&&oc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function lc(e){return lc="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},lc(e)}function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach((function(t){fc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fc(e,t,n){return(t=yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yc(r.key),r)}}function yc(e){var t=function(e){if("object"!=lc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lc(t)?t:t+""}uc.prototype.value=void 0,uc.prototype.$reserved=void 0,uc.prototype.$objectType=void 0,uc.prototype.$unknownFields=void 0;var hc=new WeakSet,vc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,hc),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return dc(dc(dc({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!A.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 U("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 U("prefixLength","undefined or null");if(!A.validateMaximum(this.prefixLength,32))return new U("prefixLength","does not satisfy required maximum constraint: 32");if(!A.validateMinimum(this.prefixLength,0))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=dc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&pc(t.prototype,n),r&&pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function bc(e){return bc="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},bc(e)}function mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mc(Object(n),!0).forEach((function(t){wc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wc(e,t,n){return(t=jc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jc(r.key),r)}}function jc(e){var t=function(e){if("object"!=bc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bc(t)?t:t+""}vc.prototype.value=void 0,vc.prototype.prefixLength=32,vc.prototype.$reserved=void 0,vc.prototype.$objectType=void 0,vc.prototype.$unknownFields=void 0;var $c=new WeakSet,kc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,$c),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gc(gc(gc({},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(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!A.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new U("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new U("prefixLength","undefined or null");if(!A.validateMaximum(this.prefixLength,128))return new U("prefixLength","does not satisfy required maximum constraint: 128");if(!A.validateMinimum(this.prefixLength,0))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=gc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Oc(t.prototype,n),r&&Oc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Tc(e){return Tc="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},Tc(e)}function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach((function(t){Sc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sc(e,t,n){return(t=Dc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dc(r.key),r)}}function Dc(e){var t=function(e){if("object"!=Tc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tc(t)?t:t+""}kc.prototype.value=void 0,kc.prototype.prefixLength=128,kc.prototype.$reserved=void 0,kc.prototype.$objectType=void 0,kc.prototype.$unknownFields=void 0;var Ac=new WeakSet,Cc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ac),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return Ec(Ec(Ec(Ec({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("fqdn","undefined or null"):new U("ipv6","undefined or null"):new U("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(vc.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(kc.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(uc.constructFromObject(t.fqdn)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Ec({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Fc(t.prototype,n),r&&Fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Cc.prototype.ipv4=void 0,Cc.prototype.ipv6=void 0,Cc.prototype.fqdn=void 0,Cc.prototype.$reserved=void 0,Cc.prototype.$objectType=void 0,Cc.prototype.$unknownFields=void 0;var Ic={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HTTP:"HTTP",HTTPS:"HTTPS",SOCKS:"SOCKS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ic).find((function(t){return Ic[t]===e}));return null==t?Ic.$UNKNOWN:Ic[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ic.$UNKNOWN:case Ic.$REDACTED:case Ic.HTTP:case Ic.HTTPS:case Ic.SOCKS:return;default:throw new Error("Invalid : must be ProxyType.{ $UNKNOWN|$REDACTED|HTTP|HTTPS|SOCKS }")}}};Object.freeze(Ic);const Rc=Ic;function Uc(e){return Uc="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},Uc(e)}function Nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nc(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _c(e,t,n){return(t=Mc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mc(r.key),r)}}function Mc(e){var t=function(e){if("object"!=Uc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uc(t)?t:t+""}var Lc=new WeakSet,Jc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Lc),this.$objectType="monitoring.v4.serviceability.HttpProxy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAddressValue",value:function(){return this.addressValue}},{key:"setAddressValue",value:function(e){this.addressValue=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getProxyTypes",value:function(){return this.proxyTypes}},{key:"setProxyTypes",value:function(e){this.proxyTypes=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xc(xc(xc(xc(xc(xc(xc({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAddressValue()&&null!==this.getAddressValue()?{addressValue:this.getAddressValue().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getProxyTypes()&&null!==this.getProxyTypes()?{proxyTypes:this.getProxyTypes()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("addressValue"===t&&(void 0===this.addressValue||null===this.addressValue))return new U("addressValue","undefined or null");if("port"===t){if(void 0===this.port||null===this.port)return new U("port","undefined or null");if(!A.validateMaximum(this.port,65536))return new U("port","does not satisfy required maximum constraint: 65536");if(!A.validateMinimum(this.port,0))return new U("port","does not satisfy required minimum constraint: 0")}if("username"===t){if(void 0===this.username||null===this.username)return new U("username","undefined or null");if(!A.validateMaxLength(this.username,255))return new U("username","does not satisfy required maxLength constraint: 255")}if("password"===t&&(void 0===this.password||null===this.password))return new U("password","undefined or null");if("proxyTypes"===t){if(void 0===this.proxyTypes||null===this.proxyTypes)return new U("proxyTypes","undefined or null");if(!A.validateMaxItems(this.proxyTypes,100))return new U("proxyTypes","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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("addressValue")&&null!==t.addressValue&&void 0!==t.addressValue&&s.setAddressValue(Cc.constructFromObject(t.addressValue)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&s.setPort(t.port),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&s.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&s.setPassword(t.password),t.hasOwnProperty("proxyTypes")&&null!==t.proxyTypes&&void 0!==t.proxyTypes){for(o=[],n=t.proxyTypes,i=0;i<n.length;i++)r=Rc.constructFromObject(n[i],void 0),o.push(r);s.setProxyTypes(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=xc({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Vc(t.prototype,n),r&&Vc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wc(e){return Wc="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},Wc(e)}function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bc(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zc(e,t,n){return(t=Kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kc(r.key),r)}}function Kc(e){var t=function(e){if("object"!=Wc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wc(t)?t:t+""}Jc.prototype.name=void 0,Jc.prototype.addressValue=void 0,Jc.prototype.port=void 0,Jc.prototype.username=void 0,Jc.prototype.password=void 0,Jc.prototype.proxyTypes=void 0,Jc.prototype.$reserved=void 0,Jc.prototype.$objectType=void 0,Jc.prototype.$unknownFields=void 0;var Hc=new WeakSet,Yc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Hc),this.$objectType="monitoring.v4.serviceability.ServiceCenter",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gc(Gc(Gc(Gc(Gc({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new U("ipAddress","undefined or null");if(!A.validatePattern(this.ipAddress,/^(?:(?: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 U("ipAddress","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("username"===t){if(void 0===this.username||null===this.username)return new U("username","undefined or null");if(!A.validateMaxLength(this.username,255))return new U("username","does not satisfy required maxLength constraint: 255")}if("port"===t){if(void 0===this.port||null===this.port)return new U("port","undefined or null");if(!A.validateMaximum(this.port,65536))return new U("port","does not satisfy required maximum constraint: 65536");if(!A.validateMinimum(this.port,0))return new U("port","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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Gc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&qc(t.prototype,n),r&&qc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xc(e){return Xc="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},Xc(e)}function Qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(n),!0).forEach((function(t){ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ed(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nd(r.key),r)}}function nd(e){var t=function(e){if("object"!=Xc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xc(t)?t:t+""}Yc.prototype.name=void 0,Yc.prototype.ipAddress=void 0,Yc.prototype.username=void 0,Yc.prototype.port=void 0,Yc.prototype.$reserved=void 0,Yc.prototype.$objectType=void 0,Yc.prototype.$unknownFields=void 0;var rd=new WeakSet,id=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,rd),this.$objectType="monitoring.v4.serviceability.RemoteTunnelDetails",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHttpProxy",value:function(){return this.httpProxy}},{key:"setHttpProxy",value:function(e){this.httpProxy=e}},{key:"getServiceCenter",value:function(){return this.serviceCenter}},{key:"setServiceCenter",value:function(e){this.serviceCenter=e}},{key:"getConnectionStatus",value:function(){return this.connectionStatus}},{key:"setConnectionStatus",value:function(e){this.connectionStatus=e}},{key:"getTransportStatus",value:function(){return this.transportStatus}},{key:"setTransportStatus",value:function(e){this.transportStatus=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zc(Zc(Zc(Zc(Zc({},void 0!==this.getHttpProxy()&&null!==this.getHttpProxy()?{httpProxy:this.getHttpProxy().toJson(!1)}:{}),void 0!==this.getServiceCenter()&&null!==this.getServiceCenter()?{serviceCenter:this.getServiceCenter().toJson(!1)}:{}),void 0!==this.getConnectionStatus()&&null!==this.getConnectionStatus()?{connectionStatus:this.getConnectionStatus().toJson(!1)}:{}),void 0!==this.getTransportStatus()&&null!==this.getTransportStatus()?{transportStatus:this.getTransportStatus().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"httpProxy"!==t||void 0!==this.httpProxy&&null!==this.httpProxy?"serviceCenter"!==t||void 0!==this.serviceCenter&&null!==this.serviceCenter?"connectionStatus"!==t||void 0!==this.connectionStatus&&null!==this.connectionStatus?"transportStatus"!==t||void 0!==this.transportStatus&&null!==this.transportStatus?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("transportStatus","undefined or null"):new U("connectionStatus","undefined or null"):new U("serviceCenter","undefined or null"):new U("httpProxy","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("httpProxy")&&null!==t.httpProxy&&void 0!==t.httpProxy&&n.setHttpProxy(Jc.constructFromObject(t.httpProxy)),t.hasOwnProperty("serviceCenter")&&null!==t.serviceCenter&&void 0!==t.serviceCenter&&n.setServiceCenter(Yc.constructFromObject(t.serviceCenter)),t.hasOwnProperty("connectionStatus")&&null!==t.connectionStatus&&void 0!==t.connectionStatus&&n.setConnectionStatus(Zl.constructFromObject(t.connectionStatus)),t.hasOwnProperty("transportStatus")&&null!==t.transportStatus&&void 0!==t.transportStatus&&n.setTransportStatus(Zl.constructFromObject(t.transportStatus)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Zc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&td(t.prototype,n),r&&td(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function od(e){return od="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},od(e)}function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){ud(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ud(e,t,n){return(t=cd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ld(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cd(r.key),r)}}function cd(e){var t=function(e){if("object"!=od(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=od(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==od(t)?t:t+""}function dd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dd=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fd(e)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pd(e,t)}id.prototype.httpProxy=void 0,id.prototype.serviceCenter=void 0,id.prototype.connectionStatus=void 0,id.prototype.transportStatus=void 0,id.prototype.$reserved=void 0,id.prototype.$objectType=void 0,id.prototype.$unknownFields=void 0;var yd=new WeakSet,hd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=fd(t),function(e,t){if(t&&("object"==od(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dd()?Reflect.construct(t,n||[],fd(e).constructor):t.apply(e,n))}(this,t),yd),e.$objectType="monitoring.v4.serviceability.AlertEmailConfiguration",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pd(e,t)}(t,e),n=t,r=[{key:"getDefaultNutanixEmail",value:function(){return this.defaultNutanixEmail}},{key:"setDefaultNutanixEmail",value:function(e){this.defaultNutanixEmail=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getHasDefaultNutanixEmail",value:function(){return this.hasDefaultNutanixEmail}},{key:"setHasDefaultNutanixEmail",value:function(e){this.hasDefaultNutanixEmail=e}},{key:"getIsEmailDigestEnabled",value:function(){return this.isEmailDigestEnabled}},{key:"setIsEmailDigestEnabled",value:function(e){this.isEmailDigestEnabled=e}},{key:"getIsEmptyAlertEmailDigestSkipped",value:function(){return this.isEmptyAlertEmailDigestSkipped}},{key:"setIsEmptyAlertEmailDigestSkipped",value:function(e){this.isEmptyAlertEmailDigestSkipped=e}},{key:"getEmailConfigRules",value:function(){return this.emailConfigRules}},{key:"setEmailConfigRules",value:function(e){this.emailConfigRules=e}},{key:"getEmailContactList",value:function(){return this.emailContactList}},{key:"setEmailContactList",value:function(e){this.emailContactList=e}},{key:"getEmailTemplate",value:function(){return this.emailTemplate}},{key:"setEmailTemplate",value:function(e){this.emailTemplate=e}},{key:"getTunnelDetails",value:function(){return this.tunnelDetails}},{key:"setTunnelDetails",value:function(e){this.tunnelDetails=e}},{key:"getAlertEmailDigestSendTime",value:function(){return this.alertEmailDigestSendTime}},{key:"setAlertEmailDigestSendTime",value:function(e){this.alertEmailDigestSendTime=e}},{key:"getAlertEmailDigestSendTimezone",value:function(){return this.alertEmailDigestSendTimezone}},{key:"setAlertEmailDigestSendTimezone",value:function(e){this.alertEmailDigestSendTimezone=e}},{key:"toJson",value:function(e){return ad(!1===e?ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("defaultNutanixEmail"===t){if(void 0===this.defaultNutanixEmail||null===this.defaultNutanixEmail)return new U("defaultNutanixEmail","undefined or null");if(!A.validatePattern(this.defaultNutanixEmail,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new U("defaultNutanixEmail","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("hasDefaultNutanixEmail"===t&&(void 0===this.hasDefaultNutanixEmail||null===this.hasDefaultNutanixEmail))return new U("hasDefaultNutanixEmail","undefined or null");if("isEmailDigestEnabled"===t&&(void 0===this.isEmailDigestEnabled||null===this.isEmailDigestEnabled))return new U("isEmailDigestEnabled","undefined or null");if("isEmptyAlertEmailDigestSkipped"===t&&(void 0===this.isEmptyAlertEmailDigestSkipped||null===this.isEmptyAlertEmailDigestSkipped))return new U("isEmptyAlertEmailDigestSkipped","undefined or null");if("emailConfigRules"===t){if(void 0===this.emailConfigRules||null===this.emailConfigRules)return new U("emailConfigRules","undefined or null");if(!A.validateMaxItems(this.emailConfigRules,100))return new U("emailConfigRules","does not satisfy required maxItems constraint: 100")}if("emailContactList"===t){if(void 0===this.emailContactList||null===this.emailContactList)return new U("emailContactList","undefined or null");if(!A.validateMaxItems(this.emailContactList,100))return new U("emailContactList","does not satisfy required maxItems constraint: 100")}return"emailTemplate"!==t||void 0!==this.emailTemplate&&null!==this.emailTemplate?"tunnelDetails"!==t||void 0!==this.tunnelDetails&&null!==this.tunnelDetails?"alertEmailDigestSendTime"!==t||void 0!==this.alertEmailDigestSendTime&&null!==this.alertEmailDigestSendTime?"alertEmailDigestSendTimezone"!==t||void 0!==this.alertEmailDigestSendTimezone&&null!==this.alertEmailDigestSendTimezone?new U(t,"no such property exists"):new U("alertEmailDigestSendTimezone","undefined or null"):new U("alertEmailDigestSendTime","undefined or null"):new U("tunnelDetails","undefined or null"):new U("emailTemplate","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Cn.constructFromObject(e,s,!0),e.hasOwnProperty("defaultNutanixEmail")&&null!==e.defaultNutanixEmail&&void 0!==e.defaultNutanixEmail&&s.setDefaultNutanixEmail(e.defaultNutanixEmail),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&s.setIsEnabled(e.isEnabled),e.hasOwnProperty("hasDefaultNutanixEmail")&&null!==e.hasDefaultNutanixEmail&&void 0!==e.hasDefaultNutanixEmail&&s.setHasDefaultNutanixEmail(e.hasDefaultNutanixEmail),e.hasOwnProperty("isEmailDigestEnabled")&&null!==e.isEmailDigestEnabled&&void 0!==e.isEmailDigestEnabled&&s.setIsEmailDigestEnabled(e.isEmailDigestEnabled),e.hasOwnProperty("isEmptyAlertEmailDigestSkipped")&&null!==e.isEmptyAlertEmailDigestSkipped&&void 0!==e.isEmptyAlertEmailDigestSkipped&&s.setIsEmptyAlertEmailDigestSkipped(e.isEmptyAlertEmailDigestSkipped),e.hasOwnProperty("emailConfigRules")&&null!==e.emailConfigRules&&void 0!==e.emailConfigRules){for(o=[],n=e.emailConfigRules,i=0;i<n.length;i++)r=ml.constructFromObject(n[i],void 0),o.push(r);s.setEmailConfigRules(o)}if(e.hasOwnProperty("emailContactList")&&null!==e.emailContactList&&void 0!==e.emailContactList){for(o=[],n=e.emailContactList,i=0;i<n.length;i++)o.push(n[i]);s.setEmailContactList(o)}if(e.hasOwnProperty("emailTemplate")&&null!==e.emailTemplate&&void 0!==e.emailTemplate&&s.setEmailTemplate(Pl.constructFromObject(e.emailTemplate)),e.hasOwnProperty("tunnelDetails")&&null!==e.tunnelDetails&&void 0!==e.tunnelDetails&&s.setTunnelDetails(id.constructFromObject(e.tunnelDetails)),e.hasOwnProperty("alertEmailDigestSendTime")&&null!==e.alertEmailDigestSendTime&&void 0!==e.alertEmailDigestSendTime&&s.setAlertEmailDigestSendTime(e.alertEmailDigestSendTime),e.hasOwnProperty("alertEmailDigestSendTimezone")&&null!==e.alertEmailDigestSendTimezone&&void 0!==e.alertEmailDigestSendTimezone&&s.setAlertEmailDigestSendTimezone(e.alertEmailDigestSendTimezone),!a)for(var u in s.$unknownFields=ad({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ld(n.prototype,r),i&&ld(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bd(e){return bd="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},bd(e)}function md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?md(Object(n),!0).forEach((function(t){wd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wd(e,t,n){return(t=jd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Od(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jd(r.key),r)}}function jd(e){var t=function(e){if("object"!=bd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bd(t)?t:t+""}function $d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($d=function(){return!!e})()}function kd(e){return kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kd(e)}function Td(e,t){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Td(e,t)}function Pd(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")}hd.prototype.defaultNutanixEmail=void 0,hd.prototype.isEnabled=!1,hd.prototype.hasDefaultNutanixEmail=!1,hd.prototype.isEmailDigestEnabled=!1,hd.prototype.isEmptyAlertEmailDigestSkipped=!1,hd.prototype.emailConfigRules=void 0,hd.prototype.emailContactList=void 0,hd.prototype.emailTemplate=void 0,hd.prototype.tunnelDetails=void 0,hd.prototype.alertEmailDigestSendTime=void 0,hd.prototype.alertEmailDigestSendTimezone=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var Ed=new WeakSet,Sd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=kd(t),function(e,t){if(t&&("object"==bd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$d()?Reflect.construct(t,n||[],kd(e).constructor):t.apply(e,n))}(this,t),Ed),e.$objectType="monitoring.v4.serviceability.GetAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Td(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gd(gd(gd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Pd(Ed,this,Fd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Pd(Ed,this,Fd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:bd(e.data)){case"monitoring.v4.serviceability.AlertEmailConfiguration":r.setData(hd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=gd({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Od(n.prototype,r),i&&Od(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Fd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return vd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===bd(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ad(e){return Ad="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},Ad(e)}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){Rd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rd(e,t,n){return(t=Nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ud(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nd(r.key),r)}}function Nd(e){var t=function(e){if("object"!=Ad(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ad(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ad(t)?t:t+""}function xd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xd=function(){return!!e})()}function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_d(e)}function Vd(e,t){return Vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vd(e,t)}function Md(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")}Sd.prototype.metadata=void 0,Sd.prototype.data=void 0,Sd.prototype.$reserved=void 0,Sd.prototype.$objectType=void 0,Sd.prototype.$unknownFields=void 0;var Ld=new WeakSet,Jd=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=_d(t),function(e,t){if(t&&("object"==Ad(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xd()?Reflect.construct(t,n||[],_d(e).constructor):t.apply(e,n))}(this,t),Ld),e.$objectType="monitoring.v4.serviceability.UpdateAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vd(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Id(Id(Id({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Md(Ld,this,Wd).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Md(Ld,this,Wd).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ad(n[0]),i=0;i<n.length;i++){if("monitoring.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Nt.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ad(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Id({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ud(n.prototype,r),i&&Ud(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Wd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Dd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dd(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ad(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Bd(e){return Bd="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},Bd(e)}function Gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach((function(t){qd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qd(e,t,n){return(t=Hd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hd(r.key),r)}}function Hd(e){var t=function(e){if("object"!=Bd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bd(t)?t:t+""}function Yd(e,t){return e.get(Xd(e,t))}function Xd(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")}Jd.prototype.metadata=void 0,Jd.prototype.data=void 0,Jd.prototype.$reserved=void 0,Jd.prototype.$objectType=void 0,Jd.prototype.$unknownFields=void 0;var Qd=new WeakMap,Zd=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Qd,void 0),this.apiClient=t||lt.instance,n=Qd,r=new Set,n.set(Xd(n,this),r),Yd(Qd,this).add("authorization"),Yd(Qd,this).add("cookie"),Yd(Qd,this).add("host"),Yd(Qd,this).add("user-agent")},t=[{key:"getAlertEmailConfiguration",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n={};Object.keys(t).forEach((function(r){Yd(Qd,e).has(r.toLowerCase())||(n[r]=t[r])}));var r=zd({},n),i=Sd;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/email-config","GET",{},{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],i)}},{key:"updateAlertEmailConfiguration",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof hd&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling updateAlertEmailConfiguration");var i={};Object.keys(r).forEach((function(e){Yd(Qd,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=zd({},i);lt.addEtagReferenceToHeader(e,o);var s=Jd;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/email-config","PUT",{},{},o,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Kd(e.prototype,t),n&&Kd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),ef={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATE:"CREATE",UPDATE:"UPDATE",DELETE:"DELETE",POWERSTATECHANGE:"POWERSTATECHANGE",HA:"HA",RESTORE:"RESTORE",MIGRATE:"MIGRATE",ENABLE:"ENABLE",DISABLE:"DISABLE",RESET:"RESET",LOGIN:"LOGIN",LOGOUT:"LOGOUT",VALIDATE:"VALIDATE",FAILOVER:"FAILOVER",INPROGRESS:"INPROGRESS",ON:"ON",OFF:"OFF",JOINED:"JOINED",UNJOINED:"UNJOINED",PROTECTED:"PROTECTED",UNPROTECTED:"UNPROTECTED",QUARENTINED:"QUARENTINED",UNQUARENTINED:"UNQUARENTINED",START:"START",END:"END",TESTFAILOVER:"TESTFAILOVER",IMPORT:"IMPORT",EXPORT:"EXPORT",IMAGEIMPORT:"IMAGEIMPORT",IMAGETRANSFER:"IMAGETRANSFER",IMAGEREMOVE:"IMAGEREMOVE",IMAGEUPLOAD:"IMAGEUPLOAD",TEMPLATEGUESTUPDATEINITIATE:"TEMPLATEGUESTUPDATEINITIATE",TEMPLATEGUESTUPDATECANCEL:"TEMPLATEGUESTUPDATECANCEL",TEMPLATEGUESTUPDATECOMPLETE:"TEMPLATEGUESTUPDATECOMPLETE",TEMPLATEDEPLOY:"TEMPLATEDEPLOY",TEMPLATEVERSIONPUBLISH:"TEMPLATEVERSIONPUBLISH",CROSSCLUSTERMIGRATE:"CROSSCLUSTERMIGRATE",FLOWCONFIGMIGRATE:"FLOWCONFIGMIGRATE",SUSPEND:"SUSPEND",RESUME:"RESUME",GENERATEURL:"GENERATEURL",DOWNLOAD:"DOWNLOAD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ef).find((function(t){return ef[t]===e}));return null==t?ef.$UNKNOWN:ef[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ef.$UNKNOWN:case ef.$REDACTED:case ef.CREATE:case ef.UPDATE:case ef.DELETE:case ef.POWERSTATECHANGE:case ef.HA:case ef.RESTORE:case ef.MIGRATE:case ef.ENABLE:case ef.DISABLE:case ef.RESET:case ef.LOGIN:case ef.LOGOUT:case ef.VALIDATE:case ef.FAILOVER:case ef.INPROGRESS:case ef.ON:case ef.OFF:case ef.JOINED:case ef.UNJOINED:case ef.PROTECTED:case ef.UNPROTECTED:case ef.QUARENTINED:case ef.UNQUARENTINED:case ef.START:case ef.END:case ef.TESTFAILOVER:case ef.IMPORT:case ef.EXPORT:case ef.IMAGEIMPORT:case ef.IMAGETRANSFER:case ef.IMAGEREMOVE:case ef.IMAGEUPLOAD:case ef.TEMPLATEGUESTUPDATEINITIATE:case ef.TEMPLATEGUESTUPDATECANCEL:case ef.TEMPLATEGUESTUPDATECOMPLETE:case ef.TEMPLATEDEPLOY:case ef.TEMPLATEVERSIONPUBLISH:case ef.CROSSCLUSTERMIGRATE:case ef.FLOWCONFIGMIGRATE:case ef.SUSPEND:case ef.RESUME:case ef.GENERATEURL:case ef.DOWNLOAD:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|CREATE|UPDATE|DELETE|POWERSTATECHANGE|HA|RESTORE|MIGRATE|ENABLE|DISABLE|RESET|LOGIN|LOGOUT|VALIDATE|FAILOVER|INPROGRESS|ON|OFF|JOINED|UNJOINED|PROTECTED|UNPROTECTED|QUARENTINED|UNQUARENTINED|START|END|TESTFAILOVER|IMPORT|EXPORT|IMAGEIMPORT|IMAGETRANSFER|IMAGEREMOVE|IMAGEUPLOAD|TEMPLATEGUESTUPDATEINITIATE|TEMPLATEGUESTUPDATECANCEL|TEMPLATEGUESTUPDATECOMPLETE|TEMPLATEDEPLOY|TEMPLATEVERSIONPUBLISH|CROSSCLUSTERMIGRATE|FLOWCONFIGMIGRATE|SUSPEND|RESUME|GENERATEURL|DOWNLOAD }")}}};Object.freeze(ef);const tf=ef;function nf(e){return nf="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},nf(e)}function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t,n){return(t=uf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uf(r.key),r)}}function uf(e){var t=function(e){if("object"!=nf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nf(t)?t:t+""}var lf=new WeakSet,cf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,lf),this.$objectType="monitoring.v4.serviceability.AuditEntityReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return of(of(of(of({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=of({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&af(t.prototype,n),r&&af(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();cf.prototype.type=void 0,cf.prototype.name=void 0,cf.prototype.extId=void 0,cf.prototype.$reserved=void 0,cf.prototype.$objectType=void 0,cf.prototype.$unknownFields=void 0;var df={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",ABORTED:"ABORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(df).find((function(t){return df[t]===e}));return null==t?df.$UNKNOWN:df[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case df.$UNKNOWN:case df.$REDACTED:case df.SUCCEEDED:case df.FAILED:case df.ABORTED:return;default:throw new Error("Invalid : must be Status.{ $UNKNOWN|$REDACTED|SUCCEEDED|FAILED|ABORTED }")}}};Object.freeze(df);const ff=df;function pf(e){return pf="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},pf(e)}function yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(n),!0).forEach((function(t){vf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vf(e,t,n){return(t=mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mf(r.key),r)}}function mf(e){var t=function(e){if("object"!=pf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pf(t)?t:t+""}var gf=new WeakSet,wf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,gf),this.$objectType="monitoring.v4.serviceability.UserReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hf(hf(hf(hf({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new U("ipAddress","undefined or null");if(!A.validatePattern(this.ipAddress,/^(?:(?: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 U("ipAddress","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]?)$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=hf({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&bf(t.prototype,n),r&&bf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Of(e){return Of="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},Of(e)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach((function(t){kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kf(e,t,n){return(t=Pf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pf(r.key),r)}}function Pf(e){var t=function(e){if("object"!=Of(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Of(t)?t:t+""}function Ef(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ef=function(){return!!e})()}function Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sf(e)}function Ff(e,t){return Ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ff(e,t)}function Df(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")}wf.prototype.extId=void 0,wf.prototype.name=void 0,wf.prototype.ipAddress=void 0,wf.prototype.$reserved=void 0,wf.prototype.$objectType=void 0,wf.prototype.$unknownFields=void 0;var Af=new WeakSet,Cf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Sf(t),function(e,t){if(t&&("object"==Of(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ef()?Reflect.construct(t,n||[],Sf(e).constructor):t.apply(e,n))}(this,t),Af),e.$objectType="monitoring.v4.serviceability.Audit",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ff(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getOperationStartTime",value:function(){return this.operationStartTime}},{key:"setOperationStartTime",value:function(e){this.operationStartTime=e}},{key:"getOperationEndTime",value:function(){return this.operationEndTime}},{key:"setOperationEndTime",value:function(e){this.operationEndTime=e}},{key:"getUserReference",value:function(){return this.userReference}},{key:"setUserReference",value:function(e){this.userReference=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getAuditType",value:function(){return this.auditType}},{key:"setAuditType",value:function(e){this.auditType=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"toJson",value:function(e){return $f(!1===e?$f($f($f($f($f($f($f($f($f($f($f($f($f($f($f($f({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:Df(Af,this,If).call(this,this.getOperationStartTime(),!1)}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:Df(Af,this,If).call(this,this.getOperationEndTime(),!1)}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Df(Af,this,If).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):$f($f($f($f($f($f($f($f($f($f($f($f($f({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:Df(Af,this,If).call(this,this.getOperationStartTime(),!1)}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:Df(Af,this,If).call(this,this.getOperationEndTime(),!1)}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Df(Af,this,If).call(this,this.getCreationTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new U("sourceEntity","undefined or null");if("clusterReference"===t&&(void 0===this.clusterReference||null===this.clusterReference))return new U("clusterReference","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new U("affectedEntities","undefined or null");if(!A.validateMaxItems(this.affectedEntities,50))return new U("affectedEntities","does not satisfy required maxItems constraint: 50")}if("operationType"===t&&(void 0===this.operationType||null===this.operationType))return new U("operationType","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new U("message","undefined or null");if(!A.validateMaxLength(this.message,1024))return new U("message","does not satisfy required maxLength constraint: 1024")}if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!A.validateMaxItems(this.parameters,100))return new U("parameters","does not satisfy required maxItems constraint: 100")}if("operationStartTime"===t&&(void 0===this.operationStartTime||null===this.operationStartTime))return new U("operationStartTime","undefined or null");if("operationEndTime"===t&&(void 0===this.operationEndTime||null===this.operationEndTime))return new U("operationEndTime","undefined or null");if("userReference"===t&&(void 0===this.userReference||null===this.userReference))return new U("userReference","undefined or null");if("serviceName"===t){if(void 0===this.serviceName||null===this.serviceName)return new U("serviceName","undefined or null");if(!A.validateMaxLength(this.serviceName,50))return new U("serviceName","does not satisfy required maxLength constraint: 50")}return"auditType"!==t||void 0!==this.auditType&&null!==this.auditType?"status"!==t||void 0!==this.status&&null!==this.status?"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?new U(t,"no such property exists"):new U("creationTime","undefined or null"):new U("status","undefined or null"):new U("auditType","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Cn.constructFromObject(e,s,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&s.setSourceEntity(cf.constructFromObject(e.sourceEntity)),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&s.setClusterReference(Kn.constructFromObject(e.clusterReference)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(o=[],n=e.affectedEntities,i=0;i<n.length;i++)r=Kn.constructFromObject(n[i],void 0),o.push(r);s.setAffectedEntities(o)}if(e.hasOwnProperty("operationType")&&null!==e.operationType&&void 0!==e.operationType&&s.setOperationType(tf.constructFromObject(e.operationType)),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&s.setMessage(e.message),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(o=[],n=e.parameters,i=0;i<n.length;i++)r=ni.constructFromObject(n[i],void 0),o.push(r);s.setParameters(o)}if(e.hasOwnProperty("operationStartTime")&&null!==e.operationStartTime&&void 0!==e.operationStartTime&&s.setOperationStartTime(e.operationStartTime),e.hasOwnProperty("operationEndTime")&&null!==e.operationEndTime&&void 0!==e.operationEndTime&&s.setOperationEndTime(e.operationEndTime),e.hasOwnProperty("userReference")&&null!==e.userReference&&void 0!==e.userReference&&s.setUserReference(wf.constructFromObject(e.userReference)),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&s.setServiceName(e.serviceName),e.hasOwnProperty("auditType")&&null!==e.auditType&&void 0!==e.auditType&&s.setAuditType(e.auditType),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&s.setStatus(ff.constructFromObject(e.status)),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),!a)for(var u in s.$unknownFields=$f({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Tf(n.prototype,r),i&&Tf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function If(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uf(e){return Uf="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},Uf(e)}function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){_f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _f(e,t,n){return(t=Mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mf(r.key),r)}}function Mf(e){var t=function(e){if("object"!=Uf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uf(t)?t:t+""}function Lf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lf=function(){return!!e})()}function Jf(e){return Jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jf(e)}function Wf(e,t){return Wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wf(e,t)}function Bf(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")}Cf.prototype.sourceEntity=void 0,Cf.prototype.clusterReference=void 0,Cf.prototype.affectedEntities=void 0,Cf.prototype.operationType=void 0,Cf.prototype.message=void 0,Cf.prototype.parameters=void 0,Cf.prototype.operationStartTime=void 0,Cf.prototype.operationEndTime=void 0,Cf.prototype.userReference=void 0,Cf.prototype.serviceName=void 0,Cf.prototype.auditType=void 0,Cf.prototype.status=void 0,Cf.prototype.creationTime=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var Gf=new WeakSet,zf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Jf(t),function(e,t){if(t&&("object"==Uf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Lf()?Reflect.construct(t,n||[],Jf(e).constructor):t.apply(e,n))}(this,t),Gf),e.$objectType="monitoring.v4.serviceability.GetAuditApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xf(xf(xf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Bf(Gf,this,qf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Bf(Gf,this,qf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Uf(e.data)){case"monitoring.v4.serviceability.Audit":r.setData(Cf.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=xf({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Vf(n.prototype,r),i&&Vf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function qf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Rf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Uf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Kf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hf(e){return Hf="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},Hf(e)}function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){Qf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qf(e,t,n){return(t=ep(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ep(r.key),r)}}function ep(e){var t=function(e){if("object"!=Hf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hf(t)?t:t+""}function tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tp=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},np(e)}function rp(e,t){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rp(e,t)}function ip(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")}zf.prototype.metadata=void 0,zf.prototype.data=void 0,zf.prototype.$reserved=void 0,zf.prototype.$objectType=void 0,zf.prototype.$unknownFields=void 0;var op=new WeakSet,sp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=np(t),function(e,t){if(t&&("object"==Hf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tp()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}(this,t),op),e.$objectType="monitoring.v4.serviceability.ListAuditsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rp(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Xf(Xf(Xf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ip(op,this,ap).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):ip(op,this,ap).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Hf(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Audit"!==s)throw"Unknown list of type "+s+" in data";r=Cf.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Hf(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Xf({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Zf(n.prototype,r),i&&Zf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ap(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Kf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Hf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function up(e){return up="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},up(e)}function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach((function(t){dp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dp(e,t,n){return(t=pp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pp(r.key),r)}}function pp(e){var t=function(e){if("object"!=up(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==up(t)?t:t+""}function yp(e,t){return e.get(hp(e,t))}function hp(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")}sp.prototype.metadata=void 0,sp.prototype.data=void 0,sp.prototype.$reserved=void 0,sp.prototype.$objectType=void 0,sp.prototype.$unknownFields=void 0;var vp=new WeakMap,bp=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,vp,void 0),this.apiClient=t||lt.instance,n=vp,r=new Set,n.set(hp(n,this),r),yp(vp,this).add("authorization"),yp(vp,this).add("cookie"),yp(vp,this).add("host"),yp(vp,this).add("user-agent")},t=[{key:"getAuditById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getAuditById");var r={extId:e},i={};Object.keys(n).forEach((function(e){yp(vp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=cp({},i),s=zf;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/audits/{extId}","GET",r,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listAudits",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=cp(cp(cp(cp(cp({},(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}:{}),i={};Object.keys(n).forEach((function(e){yp(vp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=cp({},i),s=sp;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/audits","GET",{},r,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&fp(e.prototype,t),n&&fp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function mp(e){return mp="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},mp(e)}function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach((function(t){Op(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Op(e,t,n){return(t=$p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$p(r.key),r)}}function $p(e){var t=function(e){if("object"!=mp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mp(t)?t:t+""}var kp=new WeakSet,Tp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,kp),this.userName=t,this.$objectType="monitoring.v4.serviceability.Credential",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getUserName",value:function(){return this.userName}},{key:"setUserName",value:function(e){this.userName=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getKeyFilePath",value:function(){return this.keyFilePath}},{key:"setKeyFilePath",value:function(e){this.keyFilePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wp(wp(wp(wp({},void 0!==this.getUserName()&&null!==this.getUserName()?{userName:this.getUserName()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getKeyFilePath()&&null!==this.getKeyFilePath()?{keyFilePath:this.getKeyFilePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["userName"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("userName"===t){if(void 0===this.userName||null===this.userName)return new U("userName","undefined or null");if(!A.validateMaxLength(this.userName,100))return new U("userName","does not satisfy required maxLength constraint: 100")}if("password"===t){if(void 0===this.password||null===this.password)return new U("password","undefined or null");if(!A.validateMaxLength(this.password,100))return new U("password","does not satisfy required maxLength constraint: 100")}if("keyFilePath"===t){if(void 0===this.keyFilePath||null===this.keyFilePath)return new U("keyFilePath","undefined or null");if(!A.validateMaxLength(this.keyFilePath,100))return new U("keyFilePath","does not satisfy required maxLength 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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("userName")&&null!==t.userName&&void 0!==t.userName&&n.setUserName(t.userName),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("keyFilePath")&&null!==t.keyFilePath&&void 0!==t.keyFilePath&&n.setKeyFilePath(t.keyFilePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=wp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&jp(t.prototype,n),r&&jp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Tp.prototype.userName=void 0,Tp.prototype.password=void 0,Tp.prototype.keyFilePath=void 0,Tp.prototype.$reserved=void 0,Tp.prototype.$objectType=void 0,Tp.prototype.$unknownFields=void 0;var Pp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SFTP:"SFTP",FTP:"FTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Pp).find((function(t){return Pp[t]===e}));return null==t?Pp.$UNKNOWN:Pp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pp.$UNKNOWN:case Pp.$REDACTED:case Pp.SFTP:case Pp.FTP:return;default:throw new Error("Invalid : must be ServerUploadProtocol.{ $UNKNOWN|$REDACTED|SFTP|FTP }")}}};Object.freeze(Pp);const Ep=Pp;function Sp(e){return Sp="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},Sp(e)}function Fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fp(Object(n),!0).forEach((function(t){Ap(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ap(e,t,n){return(t=Ip(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ip(r.key),r)}}function Ip(e){var t=function(e){if("object"!=Sp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sp(t)?t:t+""}var Rp=new WeakSet,Up=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Rp),this.protocol=t,this.serverAddress=n,this.credential=r,this.$objectType="monitoring.v4.serviceability.CustomServerUploadParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=e}},{key:"getServerAddress",value:function(){return this.serverAddress}},{key:"setServerAddress",value:function(e){this.serverAddress=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dp(Dp(Dp(Dp(Dp(Dp({},void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getServerAddress()&&null!==this.getServerAddress()?{serverAddress:this.getServerAddress().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["protocol","serverAddress","credential"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("protocol"===t&&(void 0===this.protocol||null===this.protocol))return new U("protocol","undefined or null");if("serverAddress"===t&&(void 0===this.serverAddress||null===this.serverAddress))return new U("serverAddress","undefined or null");if("port"===t&&(void 0===this.port||null===this.port))return new U("port","undefined or null");if("credential"===t&&(void 0===this.credential||null===this.credential))return new U("credential","undefined or null");if("path"===t){if(void 0===this.path||null===this.path)return new U("path","undefined or null");if(!A.validateMaxLength(this.path,100))return new U("path","does not satisfy required maxLength 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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("protocol")&&null!==t.protocol&&void 0!==t.protocol&&n.setProtocol(Ep.constructFromObject(t.protocol)),t.hasOwnProperty("serverAddress")&&null!==t.serverAddress&&void 0!==t.serverAddress&&n.setServerAddress(Cc.constructFromObject(t.serverAddress)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(Tp.constructFromObject(t.credential)),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Dp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Cp(t.prototype,n),r&&Cp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Np(e){return Np="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},Np(e)}function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xp(Object(n),!0).forEach((function(t){Vp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vp(e,t,n){return(t=Lp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lp(r.key),r)}}function Lp(e){var t=function(e){if("object"!=Np(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Np(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Np(t)?t:t+""}Up.prototype.protocol=void 0,Up.prototype.serverAddress=void 0,Up.prototype.port=void 0,Up.prototype.credential=void 0,Up.prototype.path=void 0,Up.prototype.$reserved=void 0,Up.prototype.$objectType=void 0,Up.prototype.$unknownFields=void 0;var Jp=new WeakSet,Wp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Jp),this.$objectType="monitoring.v4.serviceability.LocalUploadParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _p(_p({},void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("path"===t){if(void 0===this.path||null===this.path)return new U("path","undefined or null");if(!A.validateMaxLength(this.path,100))return new U("path","does not satisfy required maxLength 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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=_p({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Mp(t.prototype,n),r&&Mp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bp(e){return Bp="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},Bp(e)}function Gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gp(Object(n),!0).forEach((function(t){qp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qp(e,t,n){return(t=Hp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hp(r.key),r)}}function Hp(e){var t=function(e){if("object"!=Bp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bp(t)?t:t+""}Wp.prototype.path="/home/nutanix/data/logbay/bundles",Wp.prototype.$reserved=void 0,Wp.prototype.$objectType=void 0,Wp.prototype.$unknownFields=void 0;var Yp=new WeakSet,Xp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Yp),this.caseNumber=t,this.$objectType="monitoring.v4.serviceability.NtnxServerUploadParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCaseNumber",value:function(){return this.caseNumber}},{key:"setCaseNumber",value:function(e){this.caseNumber=e}},{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zp(zp(zp({},void 0!==this.getCaseNumber()&&null!==this.getCaseNumber()?{caseNumber:this.getCaseNumber()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["caseNumber"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("caseNumber"===t){if(void 0===this.caseNumber||null===this.caseNumber)return new U("caseNumber","undefined or null");if(!A.validateMinimum(this.caseNumber,1e6))return new U("caseNumber","does not satisfy required minimum constraint: 1000000")}return"protocol"!==t||void 0!==this.protocol&&null!==this.protocol?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("protocol","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("caseNumber")&&null!==t.caseNumber&&void 0!==t.caseNumber&&n.setCaseNumber(t.caseNumber),t.hasOwnProperty("protocol")&&null!==t.protocol&&void 0!==t.protocol&&n.setProtocol(Ep.constructFromObject(t.protocol)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=zp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Kp(t.prototype,n),r&&Kp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qp(e){return Qp="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},Qp(e)}function Zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ey(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach((function(t){ty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ty(e,t,n){return(t=ry(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ny(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ry(r.key),r)}}function ry(e){var t=function(e){if("object"!=Qp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qp(t)?t:t+""}Xp.prototype.caseNumber=void 0,Xp.prototype.protocol=void 0,Xp.prototype.$reserved=void 0,Xp.prototype.$objectType=void 0,Xp.prototype.$unknownFields=void 0;var iy=new WeakSet,oy=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,iy),this.credential=t,this.path=n,this.$objectType="monitoring.v4.serviceability.StorageContainerUploadParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ey(ey(ey(ey(ey({},void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["credential","path"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("ipAddress"===t&&(void 0===this.ipAddress||null===this.ipAddress))return new U("ipAddress","undefined or null");if("port"===t&&(void 0===this.port||null===this.port))return new U("port","undefined or null");if("credential"===t&&(void 0===this.credential||null===this.credential))return new U("credential","undefined or null");if("path"===t){if(void 0===this.path||null===this.path)return new U("path","undefined or null");if(!A.validateMaxLength(this.path,100))return new U("path","does not satisfy required maxLength 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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(vc.constructFromObject(t.ipAddress)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(Tp.constructFromObject(t.credential)),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ey({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ny(t.prototype,n),r&&ny(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function sy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ay(e){return ay="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},ay(e)}function uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uy(Object(n),!0).forEach((function(t){cy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cy(e,t,n){return(t=fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fy(r.key),r)}}function fy(e){var t=function(e){if("object"!=ay(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ay(t)?t:t+""}function py(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")}oy.prototype.ipAddress=void 0,oy.prototype.port=2222,oy.prototype.credential=void 0,oy.prototype.path=void 0,oy.prototype.$reserved=void 0,oy.prototype.$objectType=void 0,oy.prototype.$unknownFields=void 0;var yy=new WeakSet,hy=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,yy),this.uploadParams=t,this.$objectType="monitoring.v4.serviceability.ArchiveOpts",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getArchiveName",value:function(){return this.archiveName}},{key:"setArchiveName",value:function(e){this.archiveName=e}},{key:"getUploadParams",value:function(){return this.uploadParams}},{key:"setUploadParams",value:function(e){this.uploadParams=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ly(ly(ly({},void 0!==this.getArchiveName()&&null!==this.getArchiveName()?{archiveName:this.getArchiveName()}:{}),!1===e?void 0!==this.getUploadParams()&&null!==this.getUploadParams()?{uploadParams:void 0!==this.getUploadParams().toJson?this.getUploadParams().toJson(!1):Array.isArray(this.getUploadParams())?this.getUploadParams().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):py(yy,this,vy).call(this,this.getUploadParams(),!1)}:{}:void 0!==this.getUploadParams()&&null!==this.getUploadParams()?{uploadParams:void 0!==this.getUploadParams().toJson?this.getUploadParams().toJson():Array.isArray(this.getUploadParams())?this.getUploadParams().map((function(e){return void 0!==e.toJson?e.toJson():e})):py(yy,this,vy).call(this,this.getUploadParams())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["uploadParams"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("archiveName"===t){if(void 0===this.archiveName||null===this.archiveName)return new U("archiveName","undefined or null");if(!A.validateMaxLength(this.archiveName,100))return new U("archiveName","does not satisfy required maxLength constraint: 100")}return"uploadParams"!==t||void 0!==this.uploadParams&&null!==this.uploadParams?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("uploadParams","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("archiveName")&&null!==t.archiveName&&void 0!==t.archiveName&&r.setArchiveName(t.archiveName),t.hasOwnProperty("uploadParams")&&null!==t.uploadParams&&void 0!==t.uploadParams)switch(n=t.uploadParams.hasOwnProperty("$objectType")?t.uploadParams.$objectType:ay(t.uploadParams)){case"monitoring.v4.serviceability.LocalUploadParams":r.setUploadParams(Wp.constructFromObject(t.uploadParams,void 0));break;case"monitoring.v4.serviceability.NtnxServerUploadParams":r.setUploadParams(Xp.constructFromObject(t.uploadParams,void 0));break;case"monitoring.v4.serviceability.CustomServerUploadParams":r.setUploadParams(Up.constructFromObject(t.uploadParams,void 0));break;case"monitoring.v4.serviceability.StorageContainerUploadParams":r.setUploadParams(oy.constructFromObject(t.uploadParams,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=ly({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&dy(t.prototype,n),r&&dy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return sy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===ay(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function by(e){return by="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},by(e)}function my(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?my(Object(n),!0).forEach((function(t){wy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):my(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wy(e,t,n){return(t=jy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jy(r.key),r)}}function jy(e){var t=function(e){if("object"!=by(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=by(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==by(t)?t:t+""}function $y(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")}hy.prototype.archiveName="NTNX-Log",hy.prototype.uploadParams=void 0,hy.prototype.$reserved=void 0,hy.prototype.$objectType=void 0,hy.prototype.$unknownFields=void 0;var ky=new WeakSet,Ty=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ky),this.startTime=t,this.endTime=n,this.archiveOpts=r,this.$objectType="monitoring.v4.serviceability.LogCollectionSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"getIncludeTags",value:function(){return this.includeTags}},{key:"setIncludeTags",value:function(e){this.includeTags=e}},{key:"getShouldAnonymize",value:function(){return this.shouldAnonymize}},{key:"setShouldAnonymize",value:function(e){this.shouldAnonymize=e}},{key:"getNodeIpList",value:function(){return this.nodeIpList}},{key:"setNodeIpList",value:function(e){this.nodeIpList=e}},{key:"getShouldCollectFromDisabledNode",value:function(){return this.shouldCollectFromDisabledNode}},{key:"setShouldCollectFromDisabledNode",value:function(e){this.shouldCollectFromDisabledNode=e}},{key:"getExcludeTags",value:function(){return this.excludeTags}},{key:"setExcludeTags",value:function(e){this.excludeTags=e}},{key:"getArchiveOpts",value:function(){return this.archiveOpts}},{key:"setArchiveOpts",value:function(e){this.archiveOpts=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return gy(gy(gy(gy(gy(gy(gy(gy(gy(gy({},void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:$y(ky,this,Py).call(this,this.getStartTime(),!1)}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:$y(ky,this,Py).call(this,this.getEndTime(),!1)}:{}),void 0!==this.getIncludeTags()&&null!==this.getIncludeTags()?{includeTags:this.getIncludeTags()}:{}),void 0!==this.getShouldAnonymize()&&null!==this.getShouldAnonymize()?{shouldAnonymize:this.getShouldAnonymize()}:{}),void 0!==this.getNodeIpList()&&null!==this.getNodeIpList()?{nodeIpList:this.getNodeIpList().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getShouldCollectFromDisabledNode()&&null!==this.getShouldCollectFromDisabledNode()?{shouldCollectFromDisabledNode:this.getShouldCollectFromDisabledNode()}:{}),void 0!==this.getExcludeTags()&&null!==this.getExcludeTags()?{excludeTags:this.getExcludeTags()}:{}),void 0!==this.getArchiveOpts()&&null!==this.getArchiveOpts()?{archiveOpts:this.getArchiveOpts().toJson(!1)}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["startTime","endTime","archiveOpts"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("startTime"===t&&(void 0===this.startTime||null===this.startTime))return new U("startTime","undefined or null");if("endTime"===t&&(void 0===this.endTime||null===this.endTime))return new U("endTime","undefined or null");if("includeTags"===t){if(void 0===this.includeTags||null===this.includeTags)return new U("includeTags","undefined or null");if(!A.validateMaxItems(this.includeTags,300))return new U("includeTags","does not satisfy required maxItems constraint: 300")}if("shouldAnonymize"===t&&(void 0===this.shouldAnonymize||null===this.shouldAnonymize))return new U("shouldAnonymize","undefined or null");if("nodeIpList"===t){if(void 0===this.nodeIpList||null===this.nodeIpList)return new U("nodeIpList","undefined or null");if(!A.validateMaxItems(this.nodeIpList,48))return new U("nodeIpList","does not satisfy required maxItems constraint: 48")}if("shouldCollectFromDisabledNode"===t&&(void 0===this.shouldCollectFromDisabledNode||null===this.shouldCollectFromDisabledNode))return new U("shouldCollectFromDisabledNode","undefined or null");if("excludeTags"===t){if(void 0===this.excludeTags||null===this.excludeTags)return new U("excludeTags","undefined or null");if(!A.validateMaxItems(this.excludeTags,50))return new U("excludeTags","does not satisfy required maxItems constraint: 50")}return"archiveOpts"!==t||void 0!==this.archiveOpts&&null!==this.archiveOpts?"description"!==t||void 0!==this.description&&null!==this.description?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("description","undefined or null"):new U("archiveOpts","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("startTime")&&null!==t.startTime&&void 0!==t.startTime&&s.setStartTime(t.startTime),t.hasOwnProperty("endTime")&&null!==t.endTime&&void 0!==t.endTime&&s.setEndTime(t.endTime),t.hasOwnProperty("includeTags")&&null!==t.includeTags&&void 0!==t.includeTags){for(o=[],n=t.includeTags,i=0;i<n.length;i++)o.push(n[i]);s.setIncludeTags(o)}if(t.hasOwnProperty("shouldAnonymize")&&null!==t.shouldAnonymize&&void 0!==t.shouldAnonymize&&s.setShouldAnonymize(t.shouldAnonymize),t.hasOwnProperty("nodeIpList")&&null!==t.nodeIpList&&void 0!==t.nodeIpList){for(o=[],n=t.nodeIpList,i=0;i<n.length;i++)r=vc.constructFromObject(n[i],void 0),o.push(r);s.setNodeIpList(o)}if(t.hasOwnProperty("shouldCollectFromDisabledNode")&&null!==t.shouldCollectFromDisabledNode&&void 0!==t.shouldCollectFromDisabledNode&&s.setShouldCollectFromDisabledNode(t.shouldCollectFromDisabledNode),t.hasOwnProperty("excludeTags")&&null!==t.excludeTags&&void 0!==t.excludeTags){for(o=[],n=t.excludeTags,i=0;i<n.length;i++)o.push(n[i]);s.setExcludeTags(o)}if(t.hasOwnProperty("archiveOpts")&&null!==t.archiveOpts&&void 0!==t.archiveOpts&&s.setArchiveOpts(hy.constructFromObject(t.archiveOpts)),t.hasOwnProperty("description")&&null!==t.description&&void 0!==t.description&&s.setDescription(t.description),t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=gy({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Oy(t.prototype,n),r&&Oy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Py(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ey(e){return Ey="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},Ey(e)}function Sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sy(Object(n),!0).forEach((function(t){Dy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dy(e,t,n){return(t=Cy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ay(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cy(r.key),r)}}function Cy(e){var t=function(e){if("object"!=Ey(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ey(t)?t:t+""}function Iy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Iy=function(){return!!e})()}function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ry(e)}function Uy(e,t){return Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uy(e,t)}Ty.prototype.startTime=void 0,Ty.prototype.endTime=void 0,Ty.prototype.includeTags=void 0,Ty.prototype.shouldAnonymize=!1,Ty.prototype.nodeIpList=void 0,Ty.prototype.shouldCollectFromDisabledNode=!1,Ty.prototype.excludeTags=void 0,Ty.prototype.archiveOpts=void 0,Ty.prototype.description="Log collection via V4 API",Ty.prototype.$reserved=void 0,Ty.prototype.$objectType=void 0,Ty.prototype.$unknownFields=void 0;var Ny=new WeakSet,xy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ry(t),function(e,t){if(t&&("object"==Ey(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Iy()?Reflect.construct(t,n||[],Ry(e).constructor):t.apply(e,n))}(this,t),Ny),e.$objectType="monitoring.v4.serviceability.Tag",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uy(e,t)}(t,e),n=t,r=[{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"toJson",value:function(e){return Fy(!1===e?Fy(Fy(Fy(Fy(Fy({},void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Fy(Fy({},void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("description"===t){if(void 0===this.description||null===this.description)return new U("description","undefined or null");if(!A.validateMaxLength(this.description,100))return new U("description","does not satisfy required maxLength constraint: 100")}if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,100))return new U("name","does not satisfy required maxLength constraint: 100")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Cn.constructFromObject(e,n,!0),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&n.setDescription(e.description),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),!r))for(var i in n.$unknownFields=Fy({},e.$unknownFields),e)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ay(n.prototype,r),i&&Ay(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function _y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vy(e){return Vy="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},Vy(e)}function My(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?My(Object(n),!0).forEach((function(t){Jy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jy(e,t,n){return(t=By(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,By(r.key),r)}}function By(e){var t=function(e){if("object"!=Vy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vy(t)?t:t+""}function Gy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gy=function(){return!!e})()}function zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zy(e)}function qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qy(e,t)}function Ky(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")}xy.prototype.description=void 0,xy.prototype.name=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var Hy=new WeakSet,Yy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zy(t),function(e,t){if(t&&("object"==Vy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Gy()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}(this,t),Hy),e.$objectType="monitoring.v4.serviceability.ListTagsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qy(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ly(Ly(Ly({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Ky(Hy,this,Xy).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Ky(Hy,this,Xy).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Vy(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Tag"!==s)throw"Unknown list of type "+s+" in data";r=xy.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Vy(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Ly({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wy(n.prototype,r),i&&Wy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Xy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_y(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Vy(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Qy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zy(e){return Zy="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},Zy(e)}function eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(n),!0).forEach((function(t){nh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nh(e,t,n){return(t=ih(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ih(r.key),r)}}function ih(e){var t=function(e){if("object"!=Zy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zy(t)?t:t+""}function oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oh=function(){return!!e})()}function sh(e){return sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sh(e)}function ah(e,t){return ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ah(e,t)}function uh(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")}Yy.prototype.metadata=void 0,Yy.prototype.data=void 0,Yy.prototype.$reserved=void 0,Yy.prototype.$objectType=void 0,Yy.prototype.$unknownFields=void 0;var lh=new WeakSet,ch=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=sh(t),function(e,t){if(t&&("object"==Zy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oh()?Reflect.construct(t,n||[],sh(e).constructor):t.apply(e,n))}(this,t),lh),e.$objectType="monitoring.v4.serviceability.CollectLogsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ah(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return th(th(th({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):uh(lh,this,dh).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):uh(lh,this,dh).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Zy(e.data)){case"prism.v4.config.TaskReference":r.setData(Pu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=th({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&rh(n.prototype,r),i&&rh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function dh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Qy(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Zy(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function fh(e){return fh="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},fh(e)}function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){hh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hh(e,t,n){return(t=bh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bh(r.key),r)}}function bh(e){var t=function(e){if("object"!=fh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fh(t)?t:t+""}function mh(e,t){return e.get(gh(e,t))}function gh(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")}ch.prototype.metadata=void 0,ch.prototype.data=void 0,ch.prototype.$reserved=void 0,ch.prototype.$objectType=void 0,ch.prototype.$unknownFields=void 0;var wh=new WeakMap,Oh=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,wh,void 0),this.apiClient=t||lt.instance,n=wh,r=new Set,n.set(gh(n,this),r),mh(wh,this).add("authorization"),mh(wh,this).add("cookie"),mh(wh,this).add("host"),mh(wh,this).add("user-agent")},t=[{key:"collectLogs",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Ty&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling collectLogs");if(null==n)throw new Error("Invalid body when calling collectLogs");var o={extId:e},s={};Object.keys(i).forEach((function(e){mh(wh,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=yh({},s);lt.addEtagReferenceToHeader(t,a);var u=ch;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/clusters/{extId}/$actions/collect-logs","POST",o,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"listTags",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'clusterExtId' when calling listTags");var i={clusterExtId:e},o=yh(yh(yh(yh(yh({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach((function(e){mh(wh,n).has(e.toLowerCase())||(s[e]=r[e])}));var a=yh({},s),u=Yy;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/clusters/{clusterExtId}/tags","GET",i,o,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&vh(e.prototype,t),n&&vh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function jh(e){return jh="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},jh(e)}function $h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$h(Object(n),!0).forEach((function(t){Th(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Th(e,t,n){return(t=Eh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ph(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Eh(r.key),r)}}function Eh(e){var t=function(e){if("object"!=jh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jh(t)?t:t+""}var Sh=new WeakSet,Fh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Sh),this.$objectType="monitoring.v4.serviceability.EventEntityReference",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kh(kh(kh(kh({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=kh({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ph(t.prototype,n),r&&Ph(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Dh(e){return Dh="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},Dh(e)}function Ah(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ch(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ah(Object(n),!0).forEach((function(t){Ih(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ih(e,t,n){return(t=Uh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uh(r.key),r)}}function Uh(e){var t=function(e){if("object"!=Dh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dh(t)?t:t+""}function Nh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nh=function(){return!!e})()}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xh(e)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_h(e,t)}function Vh(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")}Fh.prototype.type=void 0,Fh.prototype.name=void 0,Fh.prototype.extId=void 0,Fh.prototype.$reserved=void 0,Fh.prototype.$objectType=void 0,Fh.prototype.$unknownFields=void 0;var Mh=new WeakSet,Lh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xh(t),function(e,t){if(t&&("object"==Dh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nh()?Reflect.construct(t,n||[],xh(e).constructor):t.apply(e,n))}(this,t),Mh),e.$objectType="monitoring.v4.serviceability.Event",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getSourceClusterUUID",value:function(){return this.sourceClusterUUID}},{key:"setSourceClusterUUID",value:function(e){this.sourceClusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"toJson",value:function(e){return Ch(!1===e?Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Vh(Mh,this,Jh).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch(Ch({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Vh(Mh,this,Jh).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new U("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new U("affectedEntities","undefined or null");if(!A.validateMaxItems(this.affectedEntities,50))return new U("affectedEntities","does not satisfy required maxItems constraint: 50")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new U("metricDetails","undefined or null");if(!A.validateMaxItems(this.metricDetails,100))return new U("metricDetails","does not satisfy required maxItems constraint: 100")}if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new U("eventType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new U("classifications","undefined or null");if(!A.validateMaxItems(this.classifications,15))return new U("classifications","does not satisfy required maxItems constraint: 15")}if("sourceClusterUUID"===t){if(void 0===this.sourceClusterUUID||null===this.sourceClusterUUID)return new U("sourceClusterUUID","undefined or null");if(!A.validatePattern(this.sourceClusterUUID,/^[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 U("sourceClusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new U("creationTime","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new U("message","undefined or null");if(!A.validateMaxLength(this.message,1024))return new U("message","does not satisfy required maxLength constraint: 1024")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new U("clusterUUID","undefined or null");if(!A.validatePattern(this.clusterUUID,/^[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 U("clusterUUID","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("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!A.validateMaxItems(this.parameters,100))return new U("parameters","does not satisfy required maxItems constraint: 100")}if("serviceName"===t){if(void 0===this.serviceName||null===this.serviceName)return new U("serviceName","undefined or null");if(!A.validateMaxLength(this.serviceName,50))return new U("serviceName","does not satisfy required maxLength constraint: 50")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,Cn.constructFromObject(e,s,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&s.setSourceEntity(Fh.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(o=[],n=e.affectedEntities,i=0;i<n.length;i++)r=Kn.constructFromObject(n[i],void 0),o.push(r);s.setAffectedEntities(o)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(o=[],n=e.metricDetails,i=0;i<n.length;i++)r=Br.constructFromObject(n[i],void 0),o.push(r);s.setMetricDetails(o)}if(e.hasOwnProperty("eventType")&&null!==e.eventType&&void 0!==e.eventType&&s.setEventType(e.eventType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(o=[],n=e.classifications,i=0;i<n.length;i++)o.push(n[i]);s.setClassifications(o)}if(e.hasOwnProperty("sourceClusterUUID")&&null!==e.sourceClusterUUID&&void 0!==e.sourceClusterUUID&&s.setSourceClusterUUID(e.sourceClusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&s.setMessage(e.message),e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&s.setClusterUUID(e.clusterUUID),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(o=[],n=e.parameters,i=0;i<n.length;i++)r=ni.constructFromObject(n[i],void 0),o.push(r);s.setParameters(o)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&s.setServiceName(e.serviceName),!a)for(var u in s.$unknownFields=Ch({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Rh(n.prototype,r),i&&Rh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function Jh(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Wh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bh(e){return Bh="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},Bh(e)}function Gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gh(Object(n),!0).forEach((function(t){qh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qh(e,t,n){return(t=Hh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hh(r.key),r)}}function Hh(e){var t=function(e){if("object"!=Bh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bh(t)?t:t+""}function Yh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yh=function(){return!!e})()}function Xh(e){return Xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xh(e)}function Qh(e,t){return Qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qh(e,t)}function Zh(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")}Lh.prototype.sourceEntity=void 0,Lh.prototype.affectedEntities=void 0,Lh.prototype.metricDetails=void 0,Lh.prototype.eventType=void 0,Lh.prototype.classifications=void 0,Lh.prototype.sourceClusterUUID=void 0,Lh.prototype.creationTime=void 0,Lh.prototype.message=void 0,Lh.prototype.clusterUUID=void 0,Lh.prototype.parameters=void 0,Lh.prototype.serviceName=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var ev=new WeakSet,tv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Xh(t),function(e,t){if(t&&("object"==Bh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yh()?Reflect.construct(t,n||[],Xh(e).constructor):t.apply(e,n))}(this,t),ev),e.$objectType="monitoring.v4.serviceability.ListEventsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qh(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zh(zh(zh({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Zh(ev,this,nv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Zh(ev,this,nv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Bh(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Event"!==s)throw"Unknown list of type "+s+" in data";r=Lh.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Bh(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=zh({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Kh(n.prototype,r),i&&Kh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function nv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Wh(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wh(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Bh(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function rv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iv(e){return iv="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},iv(e)}function ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ov(Object(n),!0).forEach((function(t){av(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ov(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function av(e,t,n){return(t=lv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lv(r.key),r)}}function lv(e){var t=function(e){if("object"!=iv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==iv(t)?t:t+""}function cv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cv=function(){return!!e})()}function dv(e){return dv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dv(e)}function fv(e,t){return fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fv(e,t)}function pv(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")}tv.prototype.metadata=void 0,tv.prototype.data=void 0,tv.prototype.$reserved=void 0,tv.prototype.$objectType=void 0,tv.prototype.$unknownFields=void 0;var yv=new WeakSet,hv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=dv(t),function(e,t){if(t&&("object"==iv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cv()?Reflect.construct(t,n||[],dv(e).constructor):t.apply(e,n))}(this,t),yv),e.$objectType="monitoring.v4.serviceability.GetEventApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fv(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return sv(sv(sv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):pv(yv,this,vv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):pv(yv,this,vv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:iv(e.data)){case"monitoring.v4.serviceability.Event":r.setData(Lh.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=sv({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&uv(n.prototype,r),i&&uv(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function vv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return rv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rv(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===iv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function bv(e){return bv="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},bv(e)}function mv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mv(Object(n),!0).forEach((function(t){wv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wv(e,t,n){return(t=jv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ov(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jv(r.key),r)}}function jv(e){var t=function(e){if("object"!=bv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bv(t)?t:t+""}function $v(e,t){return e.get(kv(e,t))}function kv(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")}hv.prototype.metadata=void 0,hv.prototype.data=void 0,hv.prototype.$reserved=void 0,hv.prototype.$objectType=void 0,hv.prototype.$unknownFields=void 0;var Tv=new WeakMap,Pv=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Tv,void 0),this.apiClient=t||lt.instance,n=Tv,r=new Set,n.set(kv(n,this),r),$v(Tv,this).add("authorization"),$v(Tv,this).add("cookie"),$v(Tv,this).add("host"),$v(Tv,this).add("user-agent")},t=[{key:"getEventById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getEventById");var r={extId:e},i={};Object.keys(n).forEach((function(e){$v(Tv,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=gv({},i),s=hv;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/events/{extId}","GET",r,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listEvents",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=gv(gv(gv(gv(gv({},(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}:{}),i={};Object.keys(n).forEach((function(e){$v(Tv,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=gv({},i),s=tv;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/events","GET",{},r,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ov(e.prototype,t),n&&Ov(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Ev(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sv(e){return Sv="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},Sv(e)}function Fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fv(Object(n),!0).forEach((function(t){Av(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Av(e,t,n){return(t=Iv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iv(r.key),r)}}function Iv(e){var t=function(e){if("object"!=Sv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sv(t)?t:t+""}function Rv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rv=function(){return!!e})()}function Uv(e){return Uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uv(e)}function Nv(e,t){return Nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nv(e,t)}function xv(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 _v=new WeakSet,Vv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Uv(t),function(e,t){if(t&&("object"==Sv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rv()?Reflect.construct(t,n||[],Uv(e).constructor):t.apply(e,n))}(this,t),_v),e.$objectType="monitoring.v4.serviceability.ManageAlertApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nv(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dv(Dv(Dv({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):xv(_v,this,Mv).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):xv(_v,this,Mv).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Sv(e.data)){case"prism.v4.config.TaskReference":r.setData(Pu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=Dv({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Cv(n.prototype,r),i&&Cv(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Mv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ev(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ev(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Sv(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Vv.prototype.metadata=void 0,Vv.prototype.data=void 0,Vv.prototype.$reserved=void 0,Vv.prototype.$objectType=void 0,Vv.prototype.$unknownFields=void 0;var Lv={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RESOLVE:"RESOLVE",ACKNOWLEDGE:"ACKNOWLEDGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Lv).find((function(t){return Lv[t]===e}));return null==t?Lv.$UNKNOWN:Lv[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Lv.$UNKNOWN:case Lv.$REDACTED:case Lv.RESOLVE:case Lv.ACKNOWLEDGE:return;default:throw new Error("Invalid : must be ActionType.{ $UNKNOWN|$REDACTED|RESOLVE|ACKNOWLEDGE }")}}};Object.freeze(Lv);const Jv=Lv;function Wv(e){return Wv="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},Wv(e)}function Bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bv(Object(n),!0).forEach((function(t){zv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zv(e,t,n){return(t=Kv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kv(r.key),r)}}function Kv(e){var t=function(e){if("object"!=Wv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wv(t)?t:t+""}var Hv=new WeakSet,Yv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Hv),this.actionType=t,this.$objectType="monitoring.v4.serviceability.AlertActionSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getActionType",value:function(){return this.actionType}},{key:"setActionType",value:function(e){this.actionType=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gv(Gv({},void 0!==this.getActionType()&&null!==this.getActionType()?{actionType:this.getActionType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["actionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"actionType"!==t||void 0!==this.actionType&&null!==this.actionType?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("actionType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("actionType")&&null!==t.actionType&&void 0!==t.actionType&&n.setActionType(Jv.constructFromObject(t.actionType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Gv({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&qv(t.prototype,n),r&&qv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xv(e){return Xv="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},Xv(e)}function Qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zv(e,t,n){return(t=tb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tb(r.key),r)}}function tb(e){var t=function(e){if("object"!=Xv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xv(t)?t:t+""}function nb(e,t){return e.get(rb(e,t))}function rb(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")}Yv.prototype.actionType=void 0,Yv.prototype.$reserved=void 0,Yv.prototype.$objectType=void 0,Yv.prototype.$unknownFields=void 0;var ib=new WeakMap,ob=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,ib,void 0),this.apiClient=t||lt.instance,n=ib,r=new Set,n.set(rb(n,this),r),nb(ib,this).add("authorization"),nb(ib,this).add("cookie"),nb(ib,this).add("host"),nb(ib,this).add("user-agent")},t=[{key:"manageAlert",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Yv&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling manageAlert");if(null==n)throw new Error("Invalid body when calling manageAlert");var o={extId:e},s={};Object.keys(i).forEach((function(e){nb(ib,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qv(Object(n),!0).forEach((function(t){Zv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s);lt.addEtagReferenceToHeader(t,a);var u=Vv;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/{extId}/$actions/manage-alert","POST",o,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&eb(e.prototype,t),n&&eb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function sb(e){return sb="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},sb(e)}function ab(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach((function(t){lb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lb(e,t,n){return(t=db(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,db(r.key),r)}}function db(e){var t=function(e){if("object"!=sb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sb(t)?t:t+""}var fb=new WeakSet,pb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,fb),this.extId=t,this.$objectType="monitoring.v4.serviceability.EntityFilter",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ub(ub({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ub({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&cb(t.prototype,n),r&&cb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();pb.prototype.extId=void 0,pb.prototype.$reserved=void 0,pb.prototype.$objectType=void 0,pb.prototype.$unknownFields=void 0;var yb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CATEGORY:"CATEGORY",CLUSTER:"CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(yb).find((function(t){return yb[t]===e}));return null==t?yb.$UNKNOWN:yb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yb.$UNKNOWN:case yb.$REDACTED:case yb.CATEGORY:case yb.CLUSTER:return;default:throw new Error("Invalid : must be GroupEntityType.{ $UNKNOWN|$REDACTED|CATEGORY|CLUSTER }")}}};Object.freeze(yb);const hb=yb;function vb(e){return vb="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},vb(e)}function bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bb(Object(n),!0).forEach((function(t){gb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gb(e,t,n){return(t=Ob(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ob(r.key),r)}}function Ob(e){var t=function(e){if("object"!=vb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vb(t)?t:t+""}var jb=new WeakSet,$b=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,jb),this.extId=t,this.type=n,this.$objectType="monitoring.v4.serviceability.GroupFilter",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mb(mb(mb({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["extId","type"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}return"type"!==t||void 0!==this.type&&null!==this.type?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("type","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(hb.constructFromObject(t.type)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=mb({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&wb(t.prototype,n),r&&wb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function kb(e){return kb="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},kb(e)}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){Eb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Eb(e,t,n){return(t=Fb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fb(r.key),r)}}function Fb(e){var t=function(e){if("object"!=kb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kb(t)?t:t+""}$b.prototype.extId=void 0,$b.prototype.type=void 0,$b.prototype.$reserved=void 0,$b.prototype.$objectType=void 0,$b.prototype.$unknownFields=void 0;var Db=new WeakSet,Ab=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Db),this.entityUuid=t,this.policyIds=n,this.$objectType="monitoring.v4.serviceability.RelatedPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getPolicyIds",value:function(){return this.policyIds}},{key:"setPolicyIds",value:function(e){this.policyIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pb(Pb(Pb({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getPolicyIds()&&null!==this.getPolicyIds()?{policyIds:this.getPolicyIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["entityUuid","policyIds"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new U("entityUuid","undefined or null");if(!A.validatePattern(this.entityUuid,/^[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 U("entityUuid","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("policyIds"===t){if(void 0===this.policyIds||null===this.policyIds)return new U("policyIds","undefined or null");if(!A.validateMaxItems(this.policyIds,100))return new U("policyIds","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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(o=o||new e,t.hasOwnProperty("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&o.setEntityUuid(t.entityUuid),t.hasOwnProperty("policyIds")&&null!==t.policyIds&&void 0!==t.policyIds){for(i=[],n=t.policyIds,r=0;r<n.length;r++)i.push(n[r]);o.setPolicyIds(i)}if(t.hasOwnProperty("$reserved")&&(o.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(o.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(o.$unknownFields=t.$unknownFields),!s)for(var a in o.$unknownFields=Pb({},t.$unknownFields),t)Object.keys(o).includes(a)||Object.keys(o).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(o.$unknownFields[a]=t[a])}return o}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Sb(t.prototype,n),r&&Sb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ib(e){return Ib="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},Ib(e)}function Rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rb(Object(n),!0).forEach((function(t){Nb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nb(e,t,n){return(t=_b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_b(r.key),r)}}function _b(e){var t=function(e){if("object"!=Ib(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ib(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ib(t)?t:t+""}function Vb(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")}Ab.prototype.entityUuid=void 0,Ab.prototype.policyIds=void 0,Ab.prototype.$reserved=void 0,Ab.prototype.$objectType=void 0,Ab.prototype.$unknownFields=void 0;var Mb=new WeakSet,Lb=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mb),this.metricName=t,this.operator=n,this.thresholdValue=r,this.$objectType="monitoring.v4.serviceability.Condition",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getOperator",value:function(){return this.operator}},{key:"setOperator",value:function(e){this.operator=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ub(Ub(Ub(Ub({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getOperator()&&null!==this.getOperator()?{operator:this.getOperator()}:{}),!1===e?void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Vb(Mb,this,Jb).call(this,this.getThresholdValue(),!1)}:{}:void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):Vb(Mb,this,Jb).call(this,this.getThresholdValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["metricName","operator","thresholdValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("metricName"===t){if(void 0===this.metricName||null===this.metricName)return new U("metricName","undefined or null");if(!A.validateMaxLength(this.metricName,150))return new U("metricName","does not satisfy required maxLength constraint: 150");if(!A.validateMinLength(this.metricName,1))return new U("metricName","does not satisfy required minLength constraint: 1")}return"operator"!==t||void 0!==this.operator&&null!==this.operator?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("thresholdValue","undefined or null"):new U("operator","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&r.setMetricName(t.metricName),t.hasOwnProperty("operator")&&null!==t.operator&&void 0!==t.operator&&r.setOperator(sr.constructFromObject(t.operator)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(n=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:Ib(t.thresholdValue)){case"monitoring.v4.common.DoubleValue":r.setThresholdValue(mr.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":r.setThresholdValue(Pr.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=Ub({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&xb(t.prototype,n),r&&xb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Jb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Cb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cb(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Ib(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}Lb.prototype.metricName=void 0,Lb.prototype.operator=void 0,Lb.prototype.thresholdValue=void 0,Lb.prototype.$reserved=void 0,Lb.prototype.$objectType=void 0,Lb.prototype.$unknownFields=void 0;var Wb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Wb).find((function(t){return Wb[t]===e}));return null==t?Wb.$UNKNOWN:Wb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wb.$UNKNOWN:case Wb.$REDACTED:case Wb.WARNING:case Wb.CRITICAL:return;default:throw new Error("Invalid : must be PolicySeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|CRITICAL }")}}};Object.freeze(Wb);const Bb=Wb;function Gb(e){return Gb="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},Gb(e)}function zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zb(Object(n),!0).forEach((function(t){Kb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kb(e,t,n){return(t=Yb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yb(r.key),r)}}function Yb(e){var t=function(e){if("object"!=Gb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gb(t)?t:t+""}var Xb=new WeakSet,Qb=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Xb),this.conditionType=t,this.condition=n,this.severityLevel=r,this.$objectType="monitoring.v4.serviceability.TriggerCondition",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getCondition",value:function(){return this.condition}},{key:"setCondition",value:function(e){this.condition=e}},{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qb(qb(qb(qb({},void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getCondition()&&null!==this.getCondition()?{condition:this.getCondition().toJson(!1)}:{}),void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["conditionType","condition","severityLevel"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"condition"!==t||void 0!==this.condition&&null!==this.condition?"severityLevel"!==t||void 0!==this.severityLevel&&null!==this.severityLevel?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("severityLevel","undefined or null"):new U("condition","undefined or null"):new U("conditionType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&n.setConditionType(ur.constructFromObject(t.conditionType)),t.hasOwnProperty("condition")&&null!==t.condition&&void 0!==t.condition&&n.setCondition(Lb.constructFromObject(t.condition)),t.hasOwnProperty("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(Bb.constructFromObject(t.severityLevel)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=qb({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Hb(t.prototype,n),r&&Hb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function em(e){return em="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},em(e)}function tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach((function(t){rm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rm(e,t,n){return(t=om(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,om(r.key),r)}}function om(e){var t=function(e){if("object"!=em(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=em(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==em(t)?t:t+""}function sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sm=function(){return!!e})()}function am(e){return am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},am(e)}function um(e,t){return um=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},um(e,t)}function lm(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")}Qb.prototype.conditionType=void 0,Qb.prototype.condition=void 0,Qb.prototype.severityLevel=void 0,Qb.prototype.$reserved=void 0,Qb.prototype.$objectType=void 0,Qb.prototype.$unknownFields=void 0;var cm=new WeakSet,dm=function(e){function t(e,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(i=function(e,t,n){return t=am(t),function(e,t){if(t&&("object"==em(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sm()?Reflect.construct(t,n||[],am(e).constructor):t.apply(e,n))}(this,t),cm),i.title=e,i.triggerConditions=n,i.entityType=r,i.$objectType="monitoring.v4.serviceability.UserDefinedPolicy",i.$reserved={$fv:"v4.r0"},i.$unknownFields={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&um(e,t)}(t,e),n=t,r=[{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(e){this.filters=e}},{key:"getTriggerConditions",value:function(){return this.triggerConditions}},{key:"setTriggerConditions",value:function(e){this.triggerConditions=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getIsExpectedToErrorOnConflict",value:function(){return this.isExpectedToErrorOnConflict}},{key:"setIsExpectedToErrorOnConflict",value:function(e){this.isExpectedToErrorOnConflict=e}},{key:"getPoliciesToOverride",value:function(){return this.policiesToOverride}},{key:"setPoliciesToOverride",value:function(e){this.policiesToOverride=e}},{key:"getTriggerWaitPeriod",value:function(){return this.triggerWaitPeriod}},{key:"setTriggerWaitPeriod",value:function(e){this.triggerWaitPeriod=e}},{key:"getRelatedPolicies",value:function(){return this.relatedPolicies}},{key:"setRelatedPolicies",value:function(e){this.relatedPolicies=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"toJson",value:function(e){return nm(!1===e?nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson(!1):Array.isArray(this.getFilters())?this.getFilters().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):lm(cm,this,fm).call(this,this.getFilters(),!1)}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:lm(cm,this,pm).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm(nm({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson():Array.isArray(this.getFilters())?this.getFilters().map((function(e){return void 0!==e.toJson?e.toJson():e})):lm(cm,this,fm).call(this,this.getFilters())}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["title","triggerConditions","entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("title"===t){if(void 0===this.title||null===this.title)return new U("title","undefined or null");if(!A.validateMaxLength(this.title,150))return new U("title","does not satisfy required maxLength constraint: 150");if(!A.validateMinLength(this.title,1))return new U("title","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new U("description","undefined or null");if(!A.validateMaxLength(this.description,500))return new U("description","does not satisfy required maxLength constraint: 500")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new U("isAutoResolved","undefined or null");if("filters"===t&&(void 0===this.filters||null===this.filters))return new U("filters","undefined or null");if("triggerConditions"===t){if(void 0===this.triggerConditions||null===this.triggerConditions)return new U("triggerConditions","undefined or null");if(!A.validateMaxItems(this.triggerConditions,4))return new U("triggerConditions","does not satisfy required maxItems constraint: 4");if(!A.validateMinItems(this.triggerConditions,1))return new U("triggerConditions","does not satisfy required minItems constraint: 1")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("createdBy"===t&&(void 0===this.createdBy||null===this.createdBy))return new U("createdBy","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new U("lastUpdatedTime","undefined or null");if("isExpectedToErrorOnConflict"===t&&(void 0===this.isExpectedToErrorOnConflict||null===this.isExpectedToErrorOnConflict))return new U("isExpectedToErrorOnConflict","undefined or null");if("policiesToOverride"===t){if(void 0===this.policiesToOverride||null===this.policiesToOverride)return new U("policiesToOverride","undefined or null");if(!A.validateMaxItems(this.policiesToOverride,100))return new U("policiesToOverride","does not satisfy required maxItems constraint: 100")}if("triggerWaitPeriod"===t&&(void 0===this.triggerWaitPeriod||null===this.triggerWaitPeriod))return new U("triggerWaitPeriod","undefined or null");if("relatedPolicies"===t){if(void 0===this.relatedPolicies||null===this.relatedPolicies)return new U("relatedPolicies","undefined or null");if(!A.validateMaxItems(this.relatedPolicies,100))return new U("relatedPolicies","does not satisfy required maxItems constraint: 100")}if("entityType"===t){if(void 0===this.entityType||null===this.entityType)return new U("entityType","undefined or null");if(!A.validateMaxLength(this.entityType,10))return new U("entityType","does not satisfy required maxLength constraint: 10");if(!A.validateMinLength(this.entityType,1))return new U("entityType","does not satisfy required minLength constraint: 1")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Cn.constructFromObject(e,a,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&a.setTitle(e.title),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&a.setDescription(e.description),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&a.setIsEnabled(e.isEnabled),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&a.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("filters")&&null!==e.filters&&void 0!==e.filters){if(!Array.isArray(e.filters))throw"Unknown datatype "+(s=e.filters.hasOwnProperty("$objectType")?e.filters.$objectType:em(e.filters))+" in data";if(0===e.filters.length)a.setFilters([]);else{for(o=[],s=(n=e.filters)[0].hasOwnProperty("$objectType")?n[0].$objectType:em(n[0]),i=0;i<n.length;i++)switch(s){case"monitoring.v4.serviceability.EntityFilter":r=pb.constructFromObject(n[i],void 0),o.push(r);break;case"monitoring.v4.serviceability.GroupFilter":r=$b.constructFromObject(n[i],void 0),o.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setFilters(o)}}if(e.hasOwnProperty("triggerConditions")&&null!==e.triggerConditions&&void 0!==e.triggerConditions){for(o=[],n=e.triggerConditions,i=0;i<n.length;i++)r=Qb.constructFromObject(n[i],void 0),o.push(r);a.setTriggerConditions(o)}if(e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(o=[],n=e.impactTypes,i=0;i<n.length;i++)r=Yn.constructFromObject(n[i],void 0),o.push(r);a.setImpactTypes(o)}if(e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&a.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&a.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("isExpectedToErrorOnConflict")&&null!==e.isExpectedToErrorOnConflict&&void 0!==e.isExpectedToErrorOnConflict&&a.setIsExpectedToErrorOnConflict(e.isExpectedToErrorOnConflict),e.hasOwnProperty("policiesToOverride")&&null!==e.policiesToOverride&&void 0!==e.policiesToOverride){for(o=[],n=e.policiesToOverride,i=0;i<n.length;i++)o.push(n[i]);a.setPoliciesToOverride(o)}if(e.hasOwnProperty("triggerWaitPeriod")&&null!==e.triggerWaitPeriod&&void 0!==e.triggerWaitPeriod&&a.setTriggerWaitPeriod(e.triggerWaitPeriod),e.hasOwnProperty("relatedPolicies")&&null!==e.relatedPolicies&&void 0!==e.relatedPolicies){for(o=[],n=e.relatedPolicies,i=0;i<n.length;i++)r=Ab.constructFromObject(n[i],void 0),o.push(r);a.setRelatedPolicies(o)}if(e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&a.setEntityType(e.entityType),!u)for(var l in a.$unknownFields=nm({},e.$unknownFields),e)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=e[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&im(n.prototype,r),i&&im(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Cn);function fm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Zb(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zb(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===em(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function pm(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ym(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hm(e){return hm="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},hm(e)}function vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vm(Object(n),!0).forEach((function(t){mm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mm(e,t,n){return(t=wm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wm(r.key),r)}}function wm(e){var t=function(e){if("object"!=hm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hm(t)?t:t+""}function Om(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Om=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jm(e)}function $m(e,t){return $m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$m(e,t)}function km(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")}dm.prototype.title=void 0,dm.prototype.description=void 0,dm.prototype.isEnabled=!1,dm.prototype.isAutoResolved=!0,dm.prototype.filters=void 0,dm.prototype.triggerConditions=void 0,dm.prototype.impactTypes=void 0,dm.prototype.createdBy=void 0,dm.prototype.lastUpdatedTime=void 0,dm.prototype.isExpectedToErrorOnConflict=!0,dm.prototype.policiesToOverride=void 0,dm.prototype.triggerWaitPeriod=void 0,dm.prototype.relatedPolicies=void 0,dm.prototype.entityType=void 0,Cn.prototype.extId=void 0,Cn.prototype.links=void 0,On.prototype.tenantId=void 0;var Tm=new WeakSet,Pm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=jm(t),function(e,t){if(t&&("object"==hm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Om()?Reflect.construct(t,n||[],jm(e).constructor):t.apply(e,n))}(this,t),Tm),e.$objectType="monitoring.v4.serviceability.CreateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$m(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bm(bm(bm({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):km(Tm,this,Em).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):km(Tm,this,Em).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hm(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":r.setData(dm.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=bm({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&gm(n.prototype,r),i&&gm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Em(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ym(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ym(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===hm(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Sm(e){return Sm="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},Sm(e)}function Fm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fm(Object(n),!0).forEach((function(t){Am(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Am(e,t,n){return(t=Im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Im(r.key),r)}}function Im(e){var t=function(e){if("object"!=Sm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sm(t)?t:t+""}Pm.prototype.metadata=void 0,Pm.prototype.data=void 0,Pm.prototype.$reserved=void 0,Pm.prototype.$objectType=void 0,Pm.prototype.$unknownFields=void 0;var Rm=new WeakSet,Um=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Rm),this.extId=t,this.$objectType="monitoring.v4.serviceability.ConflictingPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dm(Dm({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Dm({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Cm(t.prototype,n),r&&Cm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Nm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xm(e){return xm="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},xm(e)}function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_m(Object(n),!0).forEach((function(t){Mm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mm(e,t,n){return(t=Jm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jm(r.key),r)}}function Jm(e){var t=function(e){if("object"!=xm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xm(t)?t:t+""}function Wm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wm=function(){return!!e})()}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bm(e)}function Gm(e,t){return Gm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gm(e,t)}function zm(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")}Um.prototype.extId=void 0,Um.prototype.$reserved=void 0,Um.prototype.$objectType=void 0,Um.prototype.$unknownFields=void 0;var qm=new WeakSet,Km=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Bm(t),function(e,t){if(t&&("object"==xm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wm()?Reflect.construct(t,n||[],Bm(e).constructor):t.apply(e,n))}(this,t),qm),e.$objectType="monitoring.v4.serviceability.FindConflictingUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gm(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Vm(Vm(Vm({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):zm(qm,this,Hm).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):zm(qm,this,Hm).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:xm(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.ConflictingPolicy"!==s)throw"Unknown list of type "+s+" in data";r=Um.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:xm(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Vm({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Lm(n.prototype,r),i&&Lm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Hm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Nm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nm(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===xm(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Ym(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xm(e){return Xm="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},Xm(e)}function Qm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qm(Object(n),!0).forEach((function(t){eg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eg(e,t,n){return(t=ng(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ng(r.key),r)}}function ng(e){var t=function(e){if("object"!=Xm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xm(t)?t:t+""}function rg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rg=function(){return!!e})()}function ig(e){return ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ig(e)}function og(e,t){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},og(e,t)}function sg(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")}Km.prototype.metadata=void 0,Km.prototype.data=void 0,Km.prototype.$reserved=void 0,Km.prototype.$objectType=void 0,Km.prototype.$unknownFields=void 0;var ag=new WeakSet,ug=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ig(t),function(e,t){if(t&&("object"==Xm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rg()?Reflect.construct(t,n||[],ig(e).constructor):t.apply(e,n))}(this,t),ag),e.$objectType="monitoring.v4.serviceability.UpdateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&og(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zm(Zm(Zm({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):sg(ag,this,lg).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):sg(ag,this,lg).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Xm(n[0]),i=0;i<n.length;i++){if("monitoring.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Nt.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xm(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Zm({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&tg(n.prototype,r),i&&tg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function lg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ym(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ym(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Xm(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function cg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dg(e){return dg="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},dg(e)}function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach((function(t){yg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yg(e,t,n){return(t=vg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vg(r.key),r)}}function vg(e){var t=function(e){if("object"!=dg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dg(t)?t:t+""}function bg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bg=function(){return!!e})()}function mg(e){return mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mg(e)}function gg(e,t){return gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gg(e,t)}function wg(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")}ug.prototype.metadata=void 0,ug.prototype.data=void 0,ug.prototype.$reserved=void 0,ug.prototype.$objectType=void 0,ug.prototype.$unknownFields=void 0;var Og=new WeakSet,jg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mg(t),function(e,t){if(t&&("object"==dg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bg()?Reflect.construct(t,n||[],mg(e).constructor):t.apply(e,n))}(this,t),Og),e.$objectType="monitoring.v4.serviceability.DeleteUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gg(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pg(pg(pg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):wg(Og,this,$g).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):wg(Og,this,$g).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&r.setData(null),n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:dg(e.data)){case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=pg({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&hg(n.prototype,r),i&&hg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function $g(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cg(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===dg(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tg(e){return Tg="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},Tg(e)}function Pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach((function(t){Sg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sg(e,t,n){return(t=Dg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dg(r.key),r)}}function Dg(e){var t=function(e){if("object"!=Tg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tg(t)?t:t+""}function Ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ag=function(){return!!e})()}function Cg(e){return Cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cg(e)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ig(e,t)}function Rg(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")}jg.prototype.metadata=void 0,jg.prototype.data=void 0,jg.prototype.$reserved=void 0,jg.prototype.$objectType=void 0,jg.prototype.$unknownFields=void 0;var Ug=new WeakSet,Ng=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Cg(t),function(e,t){if(t&&("object"==Tg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ag()?Reflect.construct(t,n||[],Cg(e).constructor):t.apply(e,n))}(this,t),Ug),e.$objectType="monitoring.v4.serviceability.ListUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Eg(Eg(Eg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Rg(Ug,this,xg).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Rg(Ug,this,xg).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Tg(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.UserDefinedPolicy"!==s)throw"Unknown list of type "+s+" in data";r=dm.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Tg(e.data)))throw"Unknown datatype "+s+" in data";a.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Eg({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Fg(n.prototype,r),i&&Fg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function xg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return kg(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kg(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Tg(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function _g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vg(e){return Vg="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},Vg(e)}function Mg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mg(Object(n),!0).forEach((function(t){Jg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jg(e,t,n){return(t=Bg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bg(r.key),r)}}function Bg(e){var t=function(e){if("object"!=Vg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vg(t)?t:t+""}function Gg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gg=function(){return!!e})()}function zg(e){return zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zg(e)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qg(e,t)}function Kg(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")}Ng.prototype.metadata=void 0,Ng.prototype.data=void 0,Ng.prototype.$reserved=void 0,Ng.prototype.$objectType=void 0,Ng.prototype.$unknownFields=void 0;var Hg=new WeakSet,Yg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zg(t),function(e,t){if(t&&("object"==Vg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Gg()?Reflect.construct(t,n||[],zg(e).constructor):t.apply(e,n))}(this,t),Hg),e.$objectType="monitoring.v4.serviceability.GetUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Lg(Lg(Lg({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Kg(Hg,this,Xg).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map((function(e){return void 0!==e.toJson?e.toJson():e})):Kg(Hg,this,Xg).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Vg(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":r.setData(dm.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!i)for(var o in r.$unknownFields=Lg({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wg(n.prototype,r),i&&Wg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Xg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,i=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_g(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]}))):"object"===Vg(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function Qg(e){return Qg="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},Qg(e)}function Zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ew(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zg(Object(n),!0).forEach((function(t){tw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tw(e,t,n){return(t=rw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rw(r.key),r)}}function rw(e){var t=function(e){if("object"!=Qg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qg(t)?t:t+""}function iw(e,t){return e.get(ow(e,t))}function ow(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")}Yg.prototype.metadata=void 0,Yg.prototype.data=void 0,Yg.prototype.$reserved=void 0,Yg.prototype.$objectType=void 0,Yg.prototype.$unknownFields=void 0;var sw=new WeakMap,aw=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,sw,void 0),this.apiClient=t||lt.instance,n=sw,r=new Set,n.set(ow(n,this),r),iw(sw,this).add("authorization"),iw(sw,this).add("cookie"),iw(sw,this).add("host"),iw(sw,this).add("user-agent")},t=[{key:"createUdaPolicy",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof dm&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createUdaPolicy");var i={};Object.keys(r).forEach((function(e){iw(sw,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=ew({},i);lt.addEtagReferenceToHeader(e,o);var s=Pm;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/user-defined-policies","POST",{},{},o,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteUdaPolicyById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){iw(sw,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=ew({},i),s=jg;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/user-defined-policies/{extId}","DELETE",r,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"findConflictingUdaPolicies",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof dm&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling findConflictingUdaPolicies");var i={};Object.keys(r).forEach((function(e){iw(sw,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=ew({},i);lt.addEtagReferenceToHeader(e,o);var s=Km;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/user-defined-policies/$actions/find-conflicts","POST",{},{},o,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getUdaPolicyById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){iw(sw,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=ew({},i),s=Yg;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/user-defined-policies/{extId}","GET",r,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"listUdaPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=ew(ew(ew(ew(ew({},(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}:{}),i={};Object.keys(n).forEach((function(e){iw(sw,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=ew({},i),s=Ng;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/user-defined-policies","GET",{},r,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},{key:"updateUdaPolicyById",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof dm&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateUdaPolicyById");if(null==n)throw new Error("Invalid body when calling updateUdaPolicyById");var o={extId:e},s={};Object.keys(i).forEach((function(e){iw(sw,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=ew({},s);lt.addEtagReferenceToHeader(t,a);var u=ug;return this.apiClient.callApi("/api/monitoring/v4.0/serviceability/alerts/user-defined-policies/{extId}","PUT",o,{},a,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&nw(e.prototype,t),n&&nw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function uw(e){return uw="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},uw(e)}function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(n),!0).forEach((function(t){dw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dw(e,t,n){return(t=pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pw(r.key),r)}}function pw(e){var t=function(e){if("object"!=uw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uw(t)?t:t+""}var yw=new WeakSet,hw=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,yw),this.$objectType="monitoring.v4.common.CauseAndResolution",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return cw(cw(cw({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("cause"===t){if(void 0===this.cause||null===this.cause)return new U("cause","undefined or null");if(!A.validateMaxLength(this.cause,500))return new U("cause","does not satisfy required maxLength constraint: 500")}if("resolution"===t){if(void 0===this.resolution||null===this.resolution)return new U("resolution","undefined or null");if(!A.validateMaxLength(this.resolution,500))return new U("resolution","does not satisfy required maxLength constraint: 500")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("cause")&&null!==t.cause&&void 0!==t.cause&&n.setCause(t.cause),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=cw({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&fw(t.prototype,n),r&&fw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vw(e){return vw="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},vw(e)}function bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bw(Object(n),!0).forEach((function(t){gw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gw(e,t,n){return(t=Ow(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ww(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ow(r.key),r)}}function Ow(e){var t=function(e){if("object"!=vw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vw(t)?t:t+""}hw.prototype.cause=void 0,hw.prototype.resolution=void 0,hw.prototype.$reserved=void 0,hw.prototype.$objectType=void 0,hw.prototype.$unknownFields=void 0;var jw=new WeakSet,$w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,jw),this.floatValue=t,this.$objectType="monitoring.v4.common.FloatValue",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFloatValue",value:function(){return this.floatValue}},{key:"setFloatValue",value:function(e){this.floatValue=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return mw(mw({},void 0!==this.getFloatValue()&&null!==this.getFloatValue()?{floatValue:this.getFloatValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["floatValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"floatValue"!==t||void 0!==this.floatValue&&null!==this.floatValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("floatValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("floatValue")&&null!==t.floatValue&&void 0!==t.floatValue&&n.setFloatValue(t.floatValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=mw({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ww(t.prototype,n),r&&ww(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function kw(e){return kw="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},kw(e)}function Tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pw(e,t,n){return(t=Sw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ew(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sw(r.key),r)}}function Sw(e){var t=function(e){if("object"!=kw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kw(t)?t:t+""}function Fw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fw=function(){return!!e})()}function Dw(e){return Dw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dw(e)}function Aw(e,t){return Aw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aw(e,t)}$w.prototype.floatValue=void 0,$w.prototype.$reserved=void 0,$w.prototype.$objectType=void 0,$w.prototype.$unknownFields=void 0;var Cw=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Dw(t),function(e,t){if(t&&("object"==kw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fw()?Reflect.construct(t,n||[],Dw(e).constructor):t.apply(e,n))}(this,t)).$objectType="monitoring.v4.serviceability.RootCauseAnalysisProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Aw(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,pi.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tw(Object(n),!0).forEach((function(t){Pw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ew(n.prototype,r),i&&Ew(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(pi);const Iw={ApiClient:lt,AlertsApi:Oo,SystemDefinedPoliciesApi:cl,AlertEmailConfigurationApi:Zd,AuditsApi:bp,ClusterLogsApi:Oh,EventsApi:Pv,ManageAlertsApi:ob,UserDefinedPoliciesApi:aw,FQDN:uc,Flag:W,IPAddressOrFQDN:Cc,IPv4Address:vc,IPv6Address:kc,KVPair:ce,KVStringPair:Nl,MapOfStringWrapper:Z,Message:Oe,MessageSeverity:pe,TenantAwareModel:On,ApiLink:Fe,ApiResponseMetadata:_e,ExternalizableAbstractModel:Cn,AlertEntityReference:Mn,BoolValue:ir,CauseAndResolution:hw,ComparisonOperator:sr,ConditionType:ur,DataType:cr,DoubleValue:mr,EntityReference:Kn,FloatValue:$w,ImpactType:Yn,IntValue:Pr,MetricDetail:Br,OperationType:tf,Parameter:ni,Severity:oi,StringValue:Rr,AppMessage:Nt,ErrorResponse:fn,SchemaValidationError:en,SchemaValidationErrorMessage:Gt,ActionType:Jv,Alert:Ui,AlertActionSpec:Yv,AlertConfig:Ls,AlertEmailConfiguration:hd,AlertPolicyConfigurableParameter:js,ArchiveOpts:hy,Audit:Cf,AuditEntityReference:cf,AutoResolveState:$o,BooleanConfigurableParamValue:Ao,ClusterConfig:Zs,ClusterConfigProjection:Ba,ClusterType:na,CollectLogsApiResponse:ch,CommunicationStatus:Zl,Condition:Lb,ConfigurableParamValueRange:Lo,ConflictingPolicy:Um,ConnectionStatus:Sl,CreateUdaPolicyApiResponse:Pm,Credential:Tp,CustomServerUploadParams:Up,DeleteUdaPolicyApiResponse:jg,EmailConfigurationRule:ml,EmailTemplate:Pl,EntityFilter:pb,EntityType:ia,Event:Lh,EventEntityReference:Fh,FindConflictingUdaPoliciesApiResponse:Km,FloatConfigurableParamValue:Yo,GetAlertApiResponse:lo,GetAlertEmailConfigurationApiResponse:Sd,GetAuditApiResponse:zf,GetClusterConfigApiResponse:bu,GetEventApiResponse:hv,GetSdaPolicyApiResponse:Ra,GetUdaPolicyApiResponse:Yg,GroupEntityType:hb,GroupFilter:$b,HttpProxy:Jc,IntConfigurableParamValue:is,ListAlertsApiResponse:Hi,ListAuditsApiResponse:sp,ListClusterConfigsApiResponse:ru,ListEventsApiResponse:tv,ListSdaPoliciesApiResponse:Zu,ListTagsApiResponse:Yy,ListUdaPoliciesApiResponse:Ng,LocalUploadParams:Wp,LogCollectionSpec:Ty,ManageAlertApiResponse:Vv,NtnxServerUploadParams:Xp,ParameterizedMessage:Bl,PolicySeverityLevel:Bb,PropertyState:Ts,ProxyType:Rc,RelatedPolicy:Ab,RemoteTunnelDetails:id,RootCauseAnalysis:pi,RootCauseAnalysisProjection:Cw,Scope:sa,SdaSubType:ua,SdaType:ca,ServerUploadProtocol:Ep,ServiceCenter:Yc,SeverityConfig:Is,SeverityTrail:ji,Status:ff,StorageContainerUploadParams:oy,StringConfigurableParamValue:fs,SystemDefinedPolicy:Oa,Tag:xy,TriggerCondition:Qb,UpdateAlertEmailConfigurationApiResponse:Jd,UpdateClusterConfigApiResponse:Vu,UpdateUdaPolicyApiResponse:ug,UserDefinedPolicy:dm,UserReference:wf,TaskReference:Pu}})(),r.default})()));