@nutanix-scratch/monitoring-js-client 4.0.1-beta.1 → 4.1.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 (533) hide show
  1. package/LICENSE.txt +202 -49
  2. package/README.md +66 -49
  3. package/dist/Ntnx-Monitoring-js-client-prod.js +1 -1
  4. package/dist/Ntnx-Monitoring-js-client.js +501 -171
  5. package/dist/es/ApiClient.d.ts +14 -1
  6. package/dist/es/ApiClient.js +257 -206
  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 +17 -17
  11. package/dist/es/apis/alerts-endpoints.d.ts +7 -55
  12. package/dist/es/apis/alerts-endpoints.js +20 -67
  13. package/dist/es/apis/audits-endpoints.d.ts +7 -43
  14. package/dist/es/apis/audits-endpoints.js +20 -55
  15. package/dist/es/apis/clusterlogs-endpoints.d.ts +58 -0
  16. package/dist/es/apis/clusterlogs-endpoints.js +173 -0
  17. package/dist/es/apis/events-endpoints.d.ts +7 -33
  18. package/dist/es/apis/events-endpoints.js +20 -45
  19. package/dist/es/apis/managealerts-endpoints.d.ts +3 -3
  20. package/dist/es/apis/managealerts-endpoints.js +14 -14
  21. package/dist/es/apis/systemdefinedchecks-endpoints.d.ts +34 -0
  22. package/dist/es/apis/systemdefinedchecks-endpoints.js +118 -0
  23. package/dist/es/apis/systemdefinedpolicies-endpoints.d.ts +101 -0
  24. package/dist/es/apis/systemdefinedpolicies-endpoints.js +307 -0
  25. package/dist/es/apis/userdefinedpolicies-endpoints.d.ts +14 -38
  26. package/dist/es/apis/userdefinedpolicies-endpoints.js +31 -54
  27. package/dist/es/index.d.ts +83 -23
  28. package/dist/es/index.js +307 -67
  29. package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
  30. package/dist/es/models/common/v1/config/FQDN.js +57 -22
  31. package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
  32. package/dist/es/models/common/v1/config/Flag.js +66 -22
  33. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
  34. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +56 -24
  35. package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
  36. package/dist/es/models/common/v1/config/IPv4Address.js +65 -24
  37. package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
  38. package/dist/es/models/common/v1/config/IPv6Address.js +65 -24
  39. package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
  40. package/dist/es/models/common/v1/config/KVPair.js +71 -25
  41. package/dist/es/models/common/v1/config/KVStringPair.d.ts +28 -26
  42. package/dist/es/models/common/v1/config/KVStringPair.js +60 -22
  43. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  44. package/dist/{lib/models/monitoring/v4/serviceability/SeverityThresholdInfo.js → es/models/common/v1/config/MapOfStringWrapper.js} +93 -96
  45. package/dist/es/models/common/v1/config/Message.d.ts +41 -38
  46. package/dist/es/models/common/v1/config/Message.js +58 -26
  47. package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
  48. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +24 -22
  49. package/dist/es/models/common/v1/config/TenantAwareModel.js +55 -23
  50. package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
  51. package/dist/es/models/common/v1/response/ApiLink.js +54 -22
  52. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  53. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
  54. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  55. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
  56. package/dist/es/models/monitoring/v4/common/AlertEntityReference.d.ts +36 -34
  57. package/dist/es/models/monitoring/v4/common/AlertEntityReference.js +63 -27
  58. package/dist/es/models/monitoring/v4/common/BoolValue.d.ts +26 -21
  59. package/dist/es/models/monitoring/v4/common/BoolValue.js +58 -22
  60. package/dist/es/models/monitoring/v4/common/CauseAndResolution.d.ts +28 -26
  61. package/dist/es/models/monitoring/v4/common/CauseAndResolution.js +60 -22
  62. package/dist/es/models/monitoring/v4/common/ComparisonOperator.js +13 -13
  63. package/dist/es/models/monitoring/v4/common/ConditionType.js +9 -9
  64. package/dist/es/models/monitoring/v4/common/DataType.js +12 -12
  65. package/dist/es/models/monitoring/v4/common/DoubleValue.d.ts +26 -21
  66. package/dist/es/models/monitoring/v4/common/DoubleValue.js +58 -22
  67. package/dist/es/models/monitoring/v4/common/EntityReference.d.ts +36 -34
  68. package/dist/es/models/monitoring/v4/common/EntityReference.js +62 -27
  69. package/dist/es/models/monitoring/v4/common/FloatValue.d.ts +62 -0
  70. package/dist/es/models/monitoring/v4/common/FloatValue.js +279 -0
  71. package/dist/es/models/monitoring/v4/common/ImpactType.js +14 -14
  72. package/dist/es/models/monitoring/v4/common/IntValue.d.ts +26 -21
  73. package/dist/es/models/monitoring/v4/common/IntValue.js +58 -22
  74. package/dist/es/models/monitoring/v4/common/MetricDetail.d.ts +96 -87
  75. package/dist/es/models/monitoring/v4/common/MetricDetail.js +111 -73
  76. package/dist/es/models/monitoring/v4/common/OperationType.js +47 -23
  77. package/dist/es/models/monitoring/v4/common/Parameter.d.ts +30 -25
  78. package/dist/es/models/monitoring/v4/common/Parameter.js +57 -22
  79. package/dist/es/models/monitoring/v4/common/Severity.js +11 -11
  80. package/dist/es/models/monitoring/v4/common/StringValue.d.ts +26 -21
  81. package/dist/es/models/monitoring/v4/common/StringValue.js +58 -22
  82. package/dist/es/models/monitoring/v4/error/AppMessage.d.ts +59 -50
  83. package/dist/es/models/monitoring/v4/error/AppMessage.js +65 -33
  84. package/dist/es/models/monitoring/v4/error/ErrorResponse.d.ts +23 -19
  85. package/dist/es/models/monitoring/v4/error/ErrorResponse.js +61 -23
  86. package/dist/es/models/monitoring/v4/error/SchemaValidationError.d.ts +53 -43
  87. package/dist/es/models/monitoring/v4/error/SchemaValidationError.js +63 -30
  88. package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  89. package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.js +56 -24
  90. package/dist/es/models/monitoring/v4/serviceability/ActionType.js +8 -8
  91. package/dist/es/models/monitoring/v4/serviceability/Alert.d.ts +231 -170
  92. package/dist/es/models/monitoring/v4/serviceability/Alert.js +165 -108
  93. package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +23 -21
  94. package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.js +53 -21
  95. package/dist/es/models/monitoring/v4/serviceability/AlertConfig.d.ts +124 -0
  96. package/dist/es/models/monitoring/v4/serviceability/AlertConfig.js +378 -0
  97. package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +204 -89
  98. package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +111 -65
  99. package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +106 -0
  100. package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +434 -0
  101. package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +78 -0
  102. package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.js +350 -0
  103. package/dist/es/models/monitoring/v4/serviceability/Audit.d.ts +134 -87
  104. package/dist/es/models/monitoring/v4/serviceability/Audit.js +115 -64
  105. package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +36 -34
  106. package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.js +63 -27
  107. package/dist/es/models/monitoring/v4/serviceability/AutoResolveState.d.ts +19 -0
  108. package/dist/{lib/models/monitoring/v4/serviceability/AutoResolve.js → es/models/monitoring/v4/serviceability/AutoResolveState.js} +28 -28
  109. package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +74 -0
  110. package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +317 -0
  111. package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.d.ts +155 -0
  112. package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.js +473 -0
  113. package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +10 -0
  114. package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.js +154 -0
  115. package/dist/es/models/monitoring/v4/serviceability/{AutoResolve.d.ts → ClusterType.d.ts} +6 -6
  116. package/dist/es/models/monitoring/v4/serviceability/ClusterType.js +85 -0
  117. package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +99 -0
  118. package/dist/{lib/models/monitoring/v4/serviceability/ManageAlertsApiResponse.js → es/models/monitoring/v4/serviceability/CollectLogsApiResponse.js} +87 -55
  119. package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +57 -41
  120. package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.js +68 -35
  121. package/dist/es/models/monitoring/v4/serviceability/Condition.d.ts +36 -33
  122. package/dist/es/models/monitoring/v4/serviceability/Condition.js +62 -29
  123. package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +78 -0
  124. package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +353 -0
  125. package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +25 -23
  126. package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.js +57 -25
  127. package/dist/es/models/monitoring/v4/serviceability/ConnectionStatus.js +10 -10
  128. package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +65 -25
  129. package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +60 -28
  130. package/dist/es/models/monitoring/v4/serviceability/Credential.d.ts +86 -0
  131. package/dist/es/models/monitoring/v4/serviceability/Credential.js +364 -0
  132. package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +146 -0
  133. package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.js +440 -0
  134. package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +66 -25
  135. package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +60 -28
  136. package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +66 -60
  137. package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.js +74 -39
  138. package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.d.ts +28 -26
  139. package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.js +54 -22
  140. package/dist/es/models/monitoring/v4/serviceability/EntityFilter.d.ts +26 -24
  141. package/dist/es/models/monitoring/v4/serviceability/EntityFilter.js +58 -26
  142. package/dist/es/models/monitoring/v4/serviceability/EntityType.d.ts +19 -0
  143. package/dist/es/models/monitoring/v4/serviceability/EntityType.js +253 -0
  144. package/dist/es/models/monitoring/v4/serviceability/Event.d.ts +121 -77
  145. package/dist/es/models/monitoring/v4/serviceability/Event.js +107 -56
  146. package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.d.ts +36 -34
  147. package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.js +63 -27
  148. package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +65 -25
  149. package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +60 -28
  150. package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +93 -0
  151. package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +365 -0
  152. package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +65 -25
  153. package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.js +60 -28
  154. package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +65 -25
  155. package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +60 -28
  156. package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +65 -25
  157. package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.js +60 -28
  158. package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +99 -0
  159. package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +343 -0
  160. package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +65 -25
  161. package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.js +60 -28
  162. package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +99 -0
  163. package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +343 -0
  164. package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +65 -25
  165. package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +60 -28
  166. package/dist/es/models/monitoring/v4/serviceability/GroupEntityType.js +8 -8
  167. package/dist/es/models/monitoring/v4/serviceability/GroupFilter.d.ts +29 -27
  168. package/dist/es/models/monitoring/v4/serviceability/GroupFilter.js +56 -24
  169. package/dist/es/models/monitoring/v4/serviceability/HttpProxy.d.ts +84 -52
  170. package/dist/es/models/monitoring/v4/serviceability/HttpProxy.js +75 -34
  171. package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +93 -0
  172. package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +365 -0
  173. package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +65 -25
  174. package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +60 -28
  175. package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +65 -25
  176. package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +60 -28
  177. package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +100 -0
  178. package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +370 -0
  179. package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +65 -25
  180. package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.js +60 -28
  181. package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +99 -0
  182. package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +365 -0
  183. package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +99 -0
  184. package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.js +365 -0
  185. package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +65 -25
  186. package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +60 -28
  187. package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +52 -0
  188. package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.js +280 -0
  189. package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +178 -0
  190. package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.js +625 -0
  191. package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +65 -25
  192. package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +60 -28
  193. package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +74 -0
  194. package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +321 -0
  195. package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +39 -26
  196. package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.js +63 -22
  197. package/dist/es/models/monitoring/v4/serviceability/PolicySeverityLevel.js +10 -10
  198. package/dist/es/models/monitoring/v4/serviceability/PropertyState.d.ts +19 -0
  199. package/dist/es/models/monitoring/v4/serviceability/PropertyState.js +91 -0
  200. package/dist/es/models/monitoring/v4/serviceability/ProxyType.js +8 -8
  201. package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +36 -34
  202. package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.js +67 -32
  203. package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +127 -38
  204. package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +58 -26
  205. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +48 -28
  206. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.js +109 -60
  207. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +2 -1
  208. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +38 -17
  209. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +103 -0
  210. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +343 -0
  211. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +119 -0
  212. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +506 -0
  213. package/dist/es/models/monitoring/v4/serviceability/Scope.d.ts +19 -0
  214. package/dist/es/models/monitoring/v4/serviceability/Scope.js +85 -0
  215. package/dist/es/models/monitoring/v4/serviceability/SdaSubType.d.ts +19 -0
  216. package/dist/es/models/monitoring/v4/serviceability/SdaSubType.js +91 -0
  217. package/dist/es/models/monitoring/v4/serviceability/SdaType.d.ts +19 -0
  218. package/dist/es/models/monitoring/v4/serviceability/SdaType.js +85 -0
  219. package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.d.ts +19 -0
  220. package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.js +85 -0
  221. package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.d.ts +40 -38
  222. package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.js +64 -26
  223. package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.d.ts +72 -0
  224. package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.js +324 -0
  225. package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.d.ts +28 -25
  226. package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.js +57 -24
  227. package/dist/es/models/monitoring/v4/serviceability/Status.js +11 -11
  228. package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +113 -0
  229. package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +400 -0
  230. package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +74 -0
  231. package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +317 -0
  232. package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +304 -0
  233. package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +904 -0
  234. package/dist/es/models/monitoring/v4/serviceability/Tag.d.ts +49 -0
  235. package/dist/es/models/monitoring/v4/serviceability/Tag.js +317 -0
  236. package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.d.ts +39 -30
  237. package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.js +56 -24
  238. package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +65 -25
  239. package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +96 -42
  240. package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +99 -0
  241. package/dist/{lib/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.js → es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js} +87 -55
  242. package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +65 -25
  243. package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +96 -42
  244. package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +132 -103
  245. package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.js +120 -74
  246. package/dist/es/models/monitoring/v4/serviceability/UserReference.d.ts +34 -32
  247. package/dist/es/models/monitoring/v4/serviceability/UserReference.js +59 -24
  248. package/dist/es/models/prism/v4/config/TaskReference.d.ts +24 -22
  249. package/dist/es/models/prism/v4/config/TaskReference.js +58 -25
  250. package/dist/es/models/validation/ValidationError.js +6 -6
  251. package/dist/es/utils/ValidationUtils.js +6 -6
  252. package/dist/lib/ApiClient.d.ts +14 -1
  253. package/dist/lib/ApiClient.js +257 -206
  254. package/dist/lib/Paginable.d.ts +1 -1
  255. package/dist/lib/Paginable.js +10 -10
  256. package/dist/lib/apis/alertemailconfiguration-endpoints.d.ts +5 -5
  257. package/dist/lib/apis/alertemailconfiguration-endpoints.js +17 -17
  258. package/dist/lib/apis/alerts-endpoints.d.ts +7 -55
  259. package/dist/lib/apis/alerts-endpoints.js +20 -67
  260. package/dist/lib/apis/audits-endpoints.d.ts +7 -43
  261. package/dist/lib/apis/audits-endpoints.js +20 -55
  262. package/dist/lib/apis/clusterlogs-endpoints.d.ts +58 -0
  263. package/dist/lib/apis/clusterlogs-endpoints.js +173 -0
  264. package/dist/lib/apis/events-endpoints.d.ts +7 -33
  265. package/dist/lib/apis/events-endpoints.js +20 -45
  266. package/dist/lib/apis/managealerts-endpoints.d.ts +3 -3
  267. package/dist/lib/apis/managealerts-endpoints.js +14 -14
  268. package/dist/lib/apis/systemdefinedchecks-endpoints.d.ts +34 -0
  269. package/dist/lib/apis/systemdefinedchecks-endpoints.js +118 -0
  270. package/dist/lib/apis/systemdefinedpolicies-endpoints.d.ts +101 -0
  271. package/dist/lib/apis/systemdefinedpolicies-endpoints.js +307 -0
  272. package/dist/lib/apis/userdefinedpolicies-endpoints.d.ts +14 -38
  273. package/dist/lib/apis/userdefinedpolicies-endpoints.js +31 -54
  274. package/dist/lib/index.d.ts +83 -23
  275. package/dist/lib/index.js +307 -67
  276. package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
  277. package/dist/lib/models/common/v1/config/FQDN.js +57 -22
  278. package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
  279. package/dist/lib/models/common/v1/config/Flag.js +66 -22
  280. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
  281. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +56 -24
  282. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
  283. package/dist/lib/models/common/v1/config/IPv4Address.js +65 -24
  284. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
  285. package/dist/lib/models/common/v1/config/IPv6Address.js +65 -24
  286. package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
  287. package/dist/lib/models/common/v1/config/KVPair.js +71 -25
  288. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +28 -26
  289. package/dist/lib/models/common/v1/config/KVStringPair.js +60 -22
  290. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  291. package/dist/{es/models/monitoring/v4/serviceability/SeverityThresholdInfo.js → lib/models/common/v1/config/MapOfStringWrapper.js} +93 -96
  292. package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
  293. package/dist/lib/models/common/v1/config/Message.js +58 -26
  294. package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
  295. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +24 -22
  296. package/dist/lib/models/common/v1/config/TenantAwareModel.js +55 -23
  297. package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
  298. package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
  299. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
  300. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
  301. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
  302. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
  303. package/dist/lib/models/monitoring/v4/common/AlertEntityReference.d.ts +36 -34
  304. package/dist/lib/models/monitoring/v4/common/AlertEntityReference.js +63 -27
  305. package/dist/lib/models/monitoring/v4/common/BoolValue.d.ts +26 -21
  306. package/dist/lib/models/monitoring/v4/common/BoolValue.js +58 -22
  307. package/dist/lib/models/monitoring/v4/common/CauseAndResolution.d.ts +28 -26
  308. package/dist/lib/models/monitoring/v4/common/CauseAndResolution.js +60 -22
  309. package/dist/lib/models/monitoring/v4/common/ComparisonOperator.js +13 -13
  310. package/dist/lib/models/monitoring/v4/common/ConditionType.js +9 -9
  311. package/dist/lib/models/monitoring/v4/common/DataType.js +12 -12
  312. package/dist/lib/models/monitoring/v4/common/DoubleValue.d.ts +26 -21
  313. package/dist/lib/models/monitoring/v4/common/DoubleValue.js +58 -22
  314. package/dist/lib/models/monitoring/v4/common/EntityReference.d.ts +36 -34
  315. package/dist/lib/models/monitoring/v4/common/EntityReference.js +62 -27
  316. package/dist/lib/models/monitoring/v4/common/FloatValue.d.ts +62 -0
  317. package/dist/lib/models/monitoring/v4/common/FloatValue.js +279 -0
  318. package/dist/lib/models/monitoring/v4/common/ImpactType.js +14 -14
  319. package/dist/lib/models/monitoring/v4/common/IntValue.d.ts +26 -21
  320. package/dist/lib/models/monitoring/v4/common/IntValue.js +58 -22
  321. package/dist/lib/models/monitoring/v4/common/MetricDetail.d.ts +96 -87
  322. package/dist/lib/models/monitoring/v4/common/MetricDetail.js +111 -73
  323. package/dist/lib/models/monitoring/v4/common/OperationType.js +47 -23
  324. package/dist/lib/models/monitoring/v4/common/Parameter.d.ts +30 -25
  325. package/dist/lib/models/monitoring/v4/common/Parameter.js +57 -22
  326. package/dist/lib/models/monitoring/v4/common/Severity.js +11 -11
  327. package/dist/lib/models/monitoring/v4/common/StringValue.d.ts +26 -21
  328. package/dist/lib/models/monitoring/v4/common/StringValue.js +58 -22
  329. package/dist/lib/models/monitoring/v4/error/AppMessage.d.ts +59 -50
  330. package/dist/lib/models/monitoring/v4/error/AppMessage.js +65 -33
  331. package/dist/lib/models/monitoring/v4/error/ErrorResponse.d.ts +23 -19
  332. package/dist/lib/models/monitoring/v4/error/ErrorResponse.js +61 -23
  333. package/dist/lib/models/monitoring/v4/error/SchemaValidationError.d.ts +53 -43
  334. package/dist/lib/models/monitoring/v4/error/SchemaValidationError.js +63 -30
  335. package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
  336. package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.js +56 -24
  337. package/dist/lib/models/monitoring/v4/serviceability/ActionType.js +8 -8
  338. package/dist/lib/models/monitoring/v4/serviceability/Alert.d.ts +231 -170
  339. package/dist/lib/models/monitoring/v4/serviceability/Alert.js +165 -108
  340. package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +23 -21
  341. package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.js +53 -21
  342. package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.d.ts +124 -0
  343. package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.js +378 -0
  344. package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +204 -89
  345. package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +111 -65
  346. package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +106 -0
  347. package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +434 -0
  348. package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +78 -0
  349. package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.js +350 -0
  350. package/dist/lib/models/monitoring/v4/serviceability/Audit.d.ts +134 -87
  351. package/dist/lib/models/monitoring/v4/serviceability/Audit.js +115 -64
  352. package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +36 -34
  353. package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.js +63 -27
  354. package/dist/lib/models/monitoring/v4/serviceability/AutoResolveState.d.ts +19 -0
  355. package/dist/{es/models/monitoring/v4/serviceability/AutoResolve.js → lib/models/monitoring/v4/serviceability/AutoResolveState.js} +28 -28
  356. package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +74 -0
  357. package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +317 -0
  358. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.d.ts +155 -0
  359. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.js +473 -0
  360. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +10 -0
  361. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.js +154 -0
  362. package/dist/lib/models/monitoring/v4/serviceability/{AutoResolve.d.ts → ClusterType.d.ts} +6 -6
  363. package/dist/lib/models/monitoring/v4/serviceability/ClusterType.js +85 -0
  364. package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +99 -0
  365. package/dist/{es/models/monitoring/v4/serviceability/ManageAlertsApiResponse.js → lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.js} +87 -55
  366. package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +57 -41
  367. package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.js +68 -35
  368. package/dist/lib/models/monitoring/v4/serviceability/Condition.d.ts +36 -33
  369. package/dist/lib/models/monitoring/v4/serviceability/Condition.js +62 -29
  370. package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +78 -0
  371. package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +353 -0
  372. package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +25 -23
  373. package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.js +57 -25
  374. package/dist/lib/models/monitoring/v4/serviceability/ConnectionStatus.js +10 -10
  375. package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +65 -25
  376. package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +60 -28
  377. package/dist/lib/models/monitoring/v4/serviceability/Credential.d.ts +86 -0
  378. package/dist/lib/models/monitoring/v4/serviceability/Credential.js +364 -0
  379. package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +146 -0
  380. package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.js +440 -0
  381. package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +66 -25
  382. package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +60 -28
  383. package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +66 -60
  384. package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.js +74 -39
  385. package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.d.ts +28 -26
  386. package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.js +54 -22
  387. package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.d.ts +26 -24
  388. package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.js +58 -26
  389. package/dist/lib/models/monitoring/v4/serviceability/EntityType.d.ts +19 -0
  390. package/dist/lib/models/monitoring/v4/serviceability/EntityType.js +253 -0
  391. package/dist/lib/models/monitoring/v4/serviceability/Event.d.ts +121 -77
  392. package/dist/lib/models/monitoring/v4/serviceability/Event.js +107 -56
  393. package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.d.ts +36 -34
  394. package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.js +63 -27
  395. package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +65 -25
  396. package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +60 -28
  397. package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +93 -0
  398. package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +365 -0
  399. package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +65 -25
  400. package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.js +60 -28
  401. package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +65 -25
  402. package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +60 -28
  403. package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +65 -25
  404. package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.js +60 -28
  405. package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +99 -0
  406. package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +343 -0
  407. package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +65 -25
  408. package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.js +60 -28
  409. package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +99 -0
  410. package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +343 -0
  411. package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +65 -25
  412. package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +60 -28
  413. package/dist/lib/models/monitoring/v4/serviceability/GroupEntityType.js +8 -8
  414. package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.d.ts +29 -27
  415. package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.js +56 -24
  416. package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.d.ts +84 -52
  417. package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.js +75 -34
  418. package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +93 -0
  419. package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +365 -0
  420. package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +65 -25
  421. package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +60 -28
  422. package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +65 -25
  423. package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +60 -28
  424. package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +100 -0
  425. package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +370 -0
  426. package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +65 -25
  427. package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.js +60 -28
  428. package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +99 -0
  429. package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +365 -0
  430. package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +99 -0
  431. package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.js +365 -0
  432. package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +65 -25
  433. package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +60 -28
  434. package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +52 -0
  435. package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.js +280 -0
  436. package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +178 -0
  437. package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.js +625 -0
  438. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +65 -25
  439. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +60 -28
  440. package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +74 -0
  441. package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +321 -0
  442. package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +39 -26
  443. package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.js +63 -22
  444. package/dist/lib/models/monitoring/v4/serviceability/PolicySeverityLevel.js +10 -10
  445. package/dist/lib/models/monitoring/v4/serviceability/PropertyState.d.ts +19 -0
  446. package/dist/lib/models/monitoring/v4/serviceability/PropertyState.js +91 -0
  447. package/dist/lib/models/monitoring/v4/serviceability/ProxyType.js +8 -8
  448. package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +36 -34
  449. package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.js +67 -32
  450. package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +127 -38
  451. package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +58 -26
  452. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +48 -28
  453. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.js +109 -60
  454. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +2 -1
  455. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +38 -17
  456. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +103 -0
  457. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +343 -0
  458. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +119 -0
  459. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +506 -0
  460. package/dist/lib/models/monitoring/v4/serviceability/Scope.d.ts +19 -0
  461. package/dist/lib/models/monitoring/v4/serviceability/Scope.js +85 -0
  462. package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.d.ts +19 -0
  463. package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.js +91 -0
  464. package/dist/lib/models/monitoring/v4/serviceability/SdaType.d.ts +19 -0
  465. package/dist/lib/models/monitoring/v4/serviceability/SdaType.js +85 -0
  466. package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.d.ts +19 -0
  467. package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.js +85 -0
  468. package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.d.ts +40 -38
  469. package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.js +64 -26
  470. package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.d.ts +72 -0
  471. package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.js +324 -0
  472. package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.d.ts +28 -25
  473. package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.js +57 -24
  474. package/dist/lib/models/monitoring/v4/serviceability/Status.js +11 -11
  475. package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +113 -0
  476. package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +400 -0
  477. package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +74 -0
  478. package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +317 -0
  479. package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +304 -0
  480. package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +904 -0
  481. package/dist/lib/models/monitoring/v4/serviceability/Tag.d.ts +49 -0
  482. package/dist/lib/models/monitoring/v4/serviceability/Tag.js +317 -0
  483. package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.d.ts +39 -30
  484. package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.js +56 -24
  485. package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +65 -25
  486. package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +96 -42
  487. package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +99 -0
  488. package/dist/{es/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.js → lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js} +87 -55
  489. package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +65 -25
  490. package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +96 -42
  491. package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +132 -103
  492. package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.js +120 -74
  493. package/dist/lib/models/monitoring/v4/serviceability/UserReference.d.ts +34 -32
  494. package/dist/lib/models/monitoring/v4/serviceability/UserReference.js +59 -24
  495. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +24 -22
  496. package/dist/lib/models/prism/v4/config/TaskReference.js +58 -25
  497. package/dist/lib/models/validation/ValidationError.js +6 -6
  498. package/dist/lib/utils/ValidationUtils.js +6 -6
  499. package/package.json +4 -4
  500. package/dist/es/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.d.ts +0 -72
  501. package/dist/es/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.js +0 -337
  502. package/dist/es/models/monitoring/v4/serviceability/AlertDb.d.ts +0 -210
  503. package/dist/es/models/monitoring/v4/serviceability/AlertDb.js +0 -882
  504. package/dist/es/models/monitoring/v4/serviceability/AlertDbProjection.d.ts +0 -49
  505. package/dist/es/models/monitoring/v4/serviceability/AlertDbProjection.js +0 -300
  506. package/dist/es/models/monitoring/v4/serviceability/AuditDb.d.ts +0 -148
  507. package/dist/es/models/monitoring/v4/serviceability/AuditDb.js +0 -598
  508. package/dist/es/models/monitoring/v4/serviceability/AuditDbProjection.d.ts +0 -9
  509. package/dist/es/models/monitoring/v4/serviceability/AuditDbProjection.js +0 -133
  510. package/dist/es/models/monitoring/v4/serviceability/EventDb.d.ts +0 -108
  511. package/dist/es/models/monitoring/v4/serviceability/EventDb.js +0 -463
  512. package/dist/es/models/monitoring/v4/serviceability/EventDbProjection.d.ts +0 -9
  513. package/dist/es/models/monitoring/v4/serviceability/EventDbProjection.js +0 -130
  514. package/dist/es/models/monitoring/v4/serviceability/ManageAlertsApiResponse.d.ts +0 -59
  515. package/dist/es/models/monitoring/v4/serviceability/SeverityThresholdInfo.d.ts +0 -60
  516. package/dist/es/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.d.ts +0 -59
  517. package/dist/lib/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.d.ts +0 -72
  518. package/dist/lib/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.js +0 -337
  519. package/dist/lib/models/monitoring/v4/serviceability/AlertDb.d.ts +0 -210
  520. package/dist/lib/models/monitoring/v4/serviceability/AlertDb.js +0 -882
  521. package/dist/lib/models/monitoring/v4/serviceability/AlertDbProjection.d.ts +0 -49
  522. package/dist/lib/models/monitoring/v4/serviceability/AlertDbProjection.js +0 -300
  523. package/dist/lib/models/monitoring/v4/serviceability/AuditDb.d.ts +0 -148
  524. package/dist/lib/models/monitoring/v4/serviceability/AuditDb.js +0 -598
  525. package/dist/lib/models/monitoring/v4/serviceability/AuditDbProjection.d.ts +0 -9
  526. package/dist/lib/models/monitoring/v4/serviceability/AuditDbProjection.js +0 -133
  527. package/dist/lib/models/monitoring/v4/serviceability/EventDb.d.ts +0 -108
  528. package/dist/lib/models/monitoring/v4/serviceability/EventDb.js +0 -463
  529. package/dist/lib/models/monitoring/v4/serviceability/EventDbProjection.d.ts +0 -9
  530. package/dist/lib/models/monitoring/v4/serviceability/EventDbProjection.js +0 -130
  531. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertsApiResponse.d.ts +0 -59
  532. package/dist/lib/models/monitoring/v4/serviceability/SeverityThresholdInfo.d.ts +0 -60
  533. package/dist/lib/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.d.ts +0 -59
@@ -0,0 +1,625 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
8
+ var _ArchiveOpts = _interopRequireDefault(require("./ArchiveOpts"));
9
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
10
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
11
+ var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
14
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
15
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
23
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
24
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
25
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
26
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
28
+ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
29
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
30
+ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
31
+ * Nutanix Monitoring APIs
32
+ *
33
+ * OpenAPI spec version: 4.1.1
34
+ *
35
+ * NOTE: This class is auto generated by the Open API Dev Platform.
36
+ *
37
+ * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
38
+ *
39
+ * Do not edit the class manually.
40
+ *
41
+ */
42
+ /**
43
+ * The LogCollectionSpec model module.
44
+ * @module Ntnx/LogCollectionSpec
45
+ * @version 4.1.1
46
+ * @class LogCollectionSpec
47
+ *
48
+ * @param { Date } startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
49
+ *
50
+ * @param { Date } endTime The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
51
+ *
52
+ * @param { ArchiveOpts } archiveOpts
53
+ */
54
+ var _LogCollectionSpec_brand = /*#__PURE__*/new WeakSet();
55
+ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
56
+ /**
57
+ * Constructs a new <code>LogCollectionSpec</code>.
58
+ * Input parameters for collecting logs.
59
+ * @alias module:Ntnx/LogCollectionSpec
60
+ *
61
+ * @param { Date } startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
62
+ *
63
+ * @param { Date } endTime The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
64
+ *
65
+ * @param { ArchiveOpts } archiveOpts
66
+ */
67
+ function LogCollectionSpec(startTime, endTime, archiveOpts) {
68
+ _classCallCheck(this, LogCollectionSpec);
69
+ /*
70
+ * toJson method for a map type which supports map with primitive keys and values of object types
71
+ * @param {Object} obj
72
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
73
+ * Otherwise, just returns the input object.
74
+ */
75
+ _classPrivateMethodInitSpec(this, _LogCollectionSpec_brand);
76
+ this.startTime = startTime;
77
+ this.endTime = endTime;
78
+ this.archiveOpts = archiveOpts;
79
+ this.$objectType = "monitoring.v4.serviceability.LogCollectionSpec";
80
+ /** @type {object<string, any>} */
81
+ this.$reserved = {
82
+ '$fv': "v4.r1"
83
+ };
84
+ /** @type {object<string, any>} */
85
+ this.$unknownFields = {};
86
+ }
87
+
88
+ /**
89
+ * Constructs a <code>LogCollectionSpec</code> from a plain JavaScript object, optionally creating a new instance.
90
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
91
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
92
+ * @param {module:Ntnx/LogCollectionSpec} obj Optional instance to populate.
93
+ * @param callFromChild {Boolean} Flag to recognise calling instance
94
+ * @return {module:Ntnx/LogCollectionSpec} The populated <code>LogCollectionSpec</code> instance.
95
+ */
96
+ return _createClass(LogCollectionSpec, [{
97
+ key: "getStartTime",
98
+ value:
99
+ /**
100
+ * Returns The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
101
+ * @return {Date}
102
+ */
103
+ function getStartTime() {
104
+ return this.startTime;
105
+ }
106
+
107
+ /**
108
+ * Sets The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
109
+ * @param {Date} startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
110
+ */
111
+ }, {
112
+ key: "setStartTime",
113
+ value: function setStartTime(startTime) {
114
+ this.startTime = startTime;
115
+ }
116
+
117
+ /**
118
+ * Returns The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
119
+ * @return {Date}
120
+ */
121
+ }, {
122
+ key: "getEndTime",
123
+ value: function getEndTime() {
124
+ return this.endTime;
125
+ }
126
+
127
+ /**
128
+ * Sets The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
129
+ * @param {Date} endTime The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
130
+ */
131
+ }, {
132
+ key: "setEndTime",
133
+ value: function setEndTime(endTime) {
134
+ this.endTime = endTime;
135
+ }
136
+
137
+ /**
138
+ * Returns Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
139
+ * @return {string[]}
140
+ */
141
+ }, {
142
+ key: "getIncludeTags",
143
+ value: function getIncludeTags() {
144
+ return this.includeTags;
145
+ }
146
+
147
+ /**
148
+ * Sets Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
149
+ * @param {string[]} includeTags Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
150
+ */
151
+ }, {
152
+ key: "setIncludeTags",
153
+ value: function setIncludeTags(includeTags) {
154
+ this.includeTags = includeTags;
155
+ }
156
+
157
+ /**
158
+ * Returns Indicates whether to mask sensitive data in the collected logs or not.
159
+ * @return {boolean}
160
+ */
161
+ }, {
162
+ key: "getShouldAnonymize",
163
+ value: function getShouldAnonymize() {
164
+ return this.shouldAnonymize;
165
+ }
166
+
167
+ /**
168
+ * Sets Indicates whether to mask sensitive data in the collected logs or not.
169
+ * @param {boolean} shouldAnonymize Indicates whether to mask sensitive data in the collected logs or not.
170
+ */
171
+ }, {
172
+ key: "setShouldAnonymize",
173
+ value: function setShouldAnonymize(shouldAnonymize) {
174
+ this.shouldAnonymize = shouldAnonymize;
175
+ }
176
+
177
+ /**
178
+ * Returns List of node IP addresses from where the logs will be collected.
179
+ * @return {IPv4Address[]}
180
+ */
181
+ }, {
182
+ key: "getNodeIpList",
183
+ value: function getNodeIpList() {
184
+ return this.nodeIpList;
185
+ }
186
+
187
+ /**
188
+ * Sets List of node IP addresses from where the logs will be collected.
189
+ * @param {IPv4Address[]} nodeIpList List of node IP addresses from where the logs will be collected.
190
+ */
191
+ }, {
192
+ key: "setNodeIpList",
193
+ value: function setNodeIpList(nodeIpList) {
194
+ this.nodeIpList = nodeIpList;
195
+ }
196
+
197
+ /**
198
+ * Returns Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
199
+ * @return {boolean}
200
+ */
201
+ }, {
202
+ key: "getShouldCollectFromDisabledNode",
203
+ value: function getShouldCollectFromDisabledNode() {
204
+ return this.shouldCollectFromDisabledNode;
205
+ }
206
+
207
+ /**
208
+ * Sets Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
209
+ * @param {boolean} shouldCollectFromDisabledNode Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
210
+ */
211
+ }, {
212
+ key: "setShouldCollectFromDisabledNode",
213
+ value: function setShouldCollectFromDisabledNode(shouldCollectFromDisabledNode) {
214
+ this.shouldCollectFromDisabledNode = shouldCollectFromDisabledNode;
215
+ }
216
+
217
+ /**
218
+ * Returns Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
219
+ * @return {string[]}
220
+ */
221
+ }, {
222
+ key: "getExcludeTags",
223
+ value: function getExcludeTags() {
224
+ return this.excludeTags;
225
+ }
226
+
227
+ /**
228
+ * Sets Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
229
+ * @param {string[]} excludeTags Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
230
+ */
231
+ }, {
232
+ key: "setExcludeTags",
233
+ value: function setExcludeTags(excludeTags) {
234
+ this.excludeTags = excludeTags;
235
+ }
236
+
237
+ /**
238
+ * @return {ArchiveOpts}
239
+ */
240
+ }, {
241
+ key: "getArchiveOpts",
242
+ value: function getArchiveOpts() {
243
+ return this.archiveOpts;
244
+ }
245
+
246
+ /**
247
+ * @param {ArchiveOpts} archiveOpts
248
+ */
249
+ }, {
250
+ key: "setArchiveOpts",
251
+ value: function setArchiveOpts(archiveOpts) {
252
+ this.archiveOpts = archiveOpts;
253
+ }
254
+
255
+ /**
256
+ * Returns Description to be attached with the associated log collection task.
257
+ * @return {string}
258
+ */
259
+ }, {
260
+ key: "getDescription",
261
+ value: function getDescription() {
262
+ return this.description;
263
+ }
264
+
265
+ /**
266
+ * Sets Description to be attached with the associated log collection task.
267
+ * @param {string} description Description to be attached with the associated log collection task.
268
+ */
269
+ }, {
270
+ key: "setDescription",
271
+ value: function setDescription(description) {
272
+ this.description = description;
273
+ }
274
+ }, {
275
+ key: "get$Reserved",
276
+ value: function get$Reserved() {
277
+ return this.$reserved;
278
+ }
279
+ }, {
280
+ key: "get$ObjectType",
281
+ value: function get$ObjectType() {
282
+ return this.$objectType;
283
+ }
284
+ }, {
285
+ key: "get$UnknownFields",
286
+ value: function get$UnknownFields() {
287
+ return this.$unknownFields;
288
+ }
289
+ }, {
290
+ key: "toJson",
291
+ value: function toJson(forMutation) {
292
+ if (forMutation === false) {
293
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
294
+ 'startTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getStartTime(), false)
295
+ } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
296
+ 'endTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getEndTime(), false)
297
+ } : {}), typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
298
+ 'includeTags': this.getIncludeTags()
299
+ } : {}), typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
300
+ 'shouldAnonymize': this.getShouldAnonymize()
301
+ } : {}), typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
302
+ 'nodeIpList': this.getNodeIpList().map(function (item) {
303
+ return item.toJson(false);
304
+ })
305
+ } : {}), typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
306
+ 'shouldCollectFromDisabledNode': this.getShouldCollectFromDisabledNode()
307
+ } : {}), typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
308
+ 'excludeTags': this.getExcludeTags()
309
+ } : {}), typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
310
+ 'archiveOpts': this.getArchiveOpts().toJson(false)
311
+ } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
312
+ 'description': this.getDescription()
313
+ } : {}), {}, {
314
+ '$reserved': this.get$Reserved(),
315
+ '$objectType': this.get$ObjectType(),
316
+ '$unknownFields': this.get$UnknownFields()
317
+ });
318
+ }
319
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
320
+ 'startTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getStartTime(), false)
321
+ } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
322
+ 'endTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getEndTime(), false)
323
+ } : {}), typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
324
+ 'includeTags': this.getIncludeTags()
325
+ } : {}), typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
326
+ 'shouldAnonymize': this.getShouldAnonymize()
327
+ } : {}), typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
328
+ 'nodeIpList': this.getNodeIpList().map(function (item) {
329
+ return item.toJson(false);
330
+ })
331
+ } : {}), typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
332
+ 'shouldCollectFromDisabledNode': this.getShouldCollectFromDisabledNode()
333
+ } : {}), typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
334
+ 'excludeTags': this.getExcludeTags()
335
+ } : {}), typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
336
+ 'archiveOpts': this.getArchiveOpts().toJson(false)
337
+ } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
338
+ 'description': this.getDescription()
339
+ } : {}), {}, {
340
+ '$reserved': this.get$Reserved(),
341
+ '$objectType': this.get$ObjectType(),
342
+ '$unknownFields': this.get$UnknownFields()
343
+ });
344
+ }
345
+ }, {
346
+ key: "validate",
347
+ value: function validate(scope, properties) {
348
+ var _this = this;
349
+ var propList = [];
350
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
351
+ //cases validate() and validate(scope)
352
+ propList = ["startTime", "endTime", "archiveOpts"];
353
+ } else if (arguments.length === 1) {
354
+ //case validate(properties)
355
+ propList = arguments[0];
356
+ scope = null;
357
+ } else {
358
+ //case validate(scope, properties)
359
+ propList = arguments[1];
360
+ }
361
+ var res = [];
362
+ var err = null;
363
+ propList.forEach(function (property) {
364
+ err = _this.validateProperty(property, scope);
365
+ if (err) {
366
+ res.push(err);
367
+ }
368
+ });
369
+ return new Promise(function (resolve, reject) {
370
+ if (res.length !== 0) {
371
+ reject(err);
372
+ } else {
373
+ resolve();
374
+ }
375
+ });
376
+ }
377
+ }, {
378
+ key: "validateProperty",
379
+ value: function validateProperty(scope, property) {
380
+ if (property === "startTime") {
381
+ if (typeof this.startTime === 'undefined' || this.startTime === null) {
382
+ return new _ValidationError["default"]("startTime", "undefined or null");
383
+ }
384
+ }
385
+ if (property === "endTime") {
386
+ if (typeof this.endTime === 'undefined' || this.endTime === null) {
387
+ return new _ValidationError["default"]("endTime", "undefined or null");
388
+ }
389
+ }
390
+ if (property === "includeTags") {
391
+ if (typeof this.includeTags === 'undefined' || this.includeTags === null) {
392
+ return new _ValidationError["default"]("includeTags", "undefined or null");
393
+ }
394
+ if (!_ValidationUtils["default"].validateMaxItems(this.includeTags, 300)) {
395
+ return new _ValidationError["default"]("includeTags", "does not satisfy required maxItems constraint: 300");
396
+ }
397
+ }
398
+ if (property === "shouldAnonymize") {
399
+ if (typeof this.shouldAnonymize === 'undefined' || this.shouldAnonymize === null) {
400
+ return new _ValidationError["default"]("shouldAnonymize", "undefined or null");
401
+ }
402
+ }
403
+ if (property === "nodeIpList") {
404
+ if (typeof this.nodeIpList === 'undefined' || this.nodeIpList === null) {
405
+ return new _ValidationError["default"]("nodeIpList", "undefined or null");
406
+ }
407
+ if (!_ValidationUtils["default"].validateMaxItems(this.nodeIpList, 48)) {
408
+ return new _ValidationError["default"]("nodeIpList", "does not satisfy required maxItems constraint: 48");
409
+ }
410
+ }
411
+ if (property === "shouldCollectFromDisabledNode") {
412
+ if (typeof this.shouldCollectFromDisabledNode === 'undefined' || this.shouldCollectFromDisabledNode === null) {
413
+ return new _ValidationError["default"]("shouldCollectFromDisabledNode", "undefined or null");
414
+ }
415
+ }
416
+ if (property === "excludeTags") {
417
+ if (typeof this.excludeTags === 'undefined' || this.excludeTags === null) {
418
+ return new _ValidationError["default"]("excludeTags", "undefined or null");
419
+ }
420
+ if (!_ValidationUtils["default"].validateMaxItems(this.excludeTags, 50)) {
421
+ return new _ValidationError["default"]("excludeTags", "does not satisfy required maxItems constraint: 50");
422
+ }
423
+ }
424
+ if (property === "archiveOpts") {
425
+ if (typeof this.archiveOpts === 'undefined' || this.archiveOpts === null) {
426
+ return new _ValidationError["default"]("archiveOpts", "undefined or null");
427
+ }
428
+ }
429
+ if (property === "description") {
430
+ if (typeof this.description === 'undefined' || this.description === null) {
431
+ return new _ValidationError["default"]("description", "undefined or null");
432
+ }
433
+ }
434
+ if (property === "$reserved") {
435
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
436
+ return new _ValidationError["default"]("$reserved", "undefined or null");
437
+ }
438
+ }
439
+ if (property === "$objectType") {
440
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
441
+ return new _ValidationError["default"]("$objectType", "undefined or null");
442
+ }
443
+ }
444
+ if (property === "$unknownFields") {
445
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
446
+ return new _ValidationError["default"]("$unknownFields", "undefined or null");
447
+ }
448
+ }
449
+ return new _ValidationError["default"](property, "no such property exists");
450
+ }
451
+ }], [{
452
+ key: "constructFromObject",
453
+ value: function constructFromObject(data) {
454
+ var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
455
+ var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
456
+ var items, item, i, itemArr, discriminator;
457
+ if (data) {
458
+ obj = obj || new LogCollectionSpec();
459
+ if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
460
+ obj.setStartTime(data['startTime']);
461
+ }
462
+ if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
463
+ obj.setEndTime(data['endTime']);
464
+ }
465
+ if (data.hasOwnProperty('includeTags') && data.includeTags !== null && data.includeTags !== undefined) {
466
+ itemArr = [];
467
+ items = data.includeTags;
468
+ for (i = 0; i < items.length; i++) {
469
+ itemArr.push(items[i]);
470
+ }
471
+ obj.setIncludeTags(itemArr);
472
+ }
473
+ if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
474
+ obj.setShouldAnonymize(data['shouldAnonymize']);
475
+ }
476
+ if (data.hasOwnProperty('nodeIpList') && data.nodeIpList !== null && data.nodeIpList !== undefined) {
477
+ itemArr = [];
478
+ items = data.nodeIpList;
479
+ for (i = 0; i < items.length; i++) {
480
+ item = _IPv4Address["default"].constructFromObject(items[i], undefined);
481
+ itemArr.push(item);
482
+ }
483
+ obj.setNodeIpList(itemArr);
484
+ }
485
+ if (data.hasOwnProperty('shouldCollectFromDisabledNode') && data.shouldCollectFromDisabledNode !== null && data.shouldCollectFromDisabledNode !== undefined) {
486
+ obj.setShouldCollectFromDisabledNode(data['shouldCollectFromDisabledNode']);
487
+ }
488
+ if (data.hasOwnProperty('excludeTags') && data.excludeTags !== null && data.excludeTags !== undefined) {
489
+ itemArr = [];
490
+ items = data.excludeTags;
491
+ for (i = 0; i < items.length; i++) {
492
+ itemArr.push(items[i]);
493
+ }
494
+ obj.setExcludeTags(itemArr);
495
+ }
496
+ if (data.hasOwnProperty('archiveOpts') && data.archiveOpts !== null && data.archiveOpts !== undefined) {
497
+ obj.setArchiveOpts(_ArchiveOpts["default"].constructFromObject(data['archiveOpts']));
498
+ }
499
+ if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
500
+ obj.setDescription(data['description']);
501
+ }
502
+ if (data.hasOwnProperty('$reserved')) {
503
+ obj.$reserved = data['$reserved'];
504
+ }
505
+ if (data.hasOwnProperty('$objectType')) {
506
+ obj.$objectType = data['$objectType'];
507
+ }
508
+ if (data.hasOwnProperty('$unknownFields')) {
509
+ obj.$unknownFields = data['$unknownFields'];
510
+ }
511
+ if (!callFromChild) {
512
+ obj.$unknownFields = _objectSpread({}, data.$unknownFields);
513
+ for (var property in data) {
514
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
515
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
516
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
517
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
518
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
519
+ obj.$unknownFields[property] = data[property];
520
+ }
521
+ }
522
+ }
523
+ }
524
+ return obj;
525
+ }
526
+
527
+ /**
528
+ * Converts a given snake_case string to camelCase.
529
+ * @param {string} snakeStr - The input string in snake_case format.
530
+ * @returns {string} - The converted string in camelCase format.
531
+ */
532
+ }, {
533
+ key: "snakeToCamel",
534
+ value: function snakeToCamel(snakeStr) {
535
+ return snakeStr.replace(/(_\w)/g, function (match) {
536
+ return match[1].toUpperCase();
537
+ });
538
+ }
539
+ }]);
540
+ }();
541
+ /**
542
+ * The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
543
+ * @memberof LogCollectionSpec
544
+ */
545
+ function _toJsonMapType(obj, forMutation) {
546
+ if (obj instanceof Map) {
547
+ return Object.fromEntries(Array.from(obj, function (_ref) {
548
+ var _ref2 = _slicedToArray(_ref, 2),
549
+ k = _ref2[0],
550
+ v = _ref2[1];
551
+ return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
552
+ }));
553
+ } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
554
+ return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
555
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
556
+ }));
557
+ }
558
+ return obj;
559
+ }
560
+ /*
561
+ * toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
562
+ * @param {Object} obj Object to serialize
563
+ * @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
564
+ * @returns {Object|string} Returns serialized date object or original input object
565
+ */
566
+ function _handleDateType(obj, isDateOnly) {
567
+ if (obj instanceof Date && isDateOnly !== undefined) {
568
+ return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
569
+ }
570
+ return obj;
571
+ }
572
+ LogCollectionSpec.prototype.startTime = undefined;
573
+
574
+ /**
575
+ * The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
576
+ * @memberof LogCollectionSpec
577
+ */
578
+ LogCollectionSpec.prototype.endTime = undefined;
579
+
580
+ /**
581
+ * Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
582
+ * @memberof LogCollectionSpec
583
+ */
584
+ LogCollectionSpec.prototype.includeTags = undefined;
585
+
586
+ /**
587
+ * Indicates whether to mask sensitive data in the collected logs or not.
588
+ * @memberof LogCollectionSpec
589
+ * @default false
590
+ */
591
+ LogCollectionSpec.prototype.shouldAnonymize = false;
592
+
593
+ /**
594
+ * List of node IP addresses from where the logs will be collected.
595
+ * @memberof LogCollectionSpec
596
+ */
597
+ LogCollectionSpec.prototype.nodeIpList = undefined;
598
+
599
+ /**
600
+ * Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
601
+ * @memberof LogCollectionSpec
602
+ * @default false
603
+ */
604
+ LogCollectionSpec.prototype.shouldCollectFromDisabledNode = false;
605
+
606
+ /**
607
+ * Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
608
+ * @memberof LogCollectionSpec
609
+ */
610
+ LogCollectionSpec.prototype.excludeTags = undefined;
611
+
612
+ /**
613
+ * @memberof LogCollectionSpec
614
+ */
615
+ LogCollectionSpec.prototype.archiveOpts = undefined;
616
+
617
+ /**
618
+ * Description to be attached with the associated log collection task.
619
+ * @memberof LogCollectionSpec
620
+ * @default 'Log collection via V4 API'
621
+ */
622
+ LogCollectionSpec.prototype.description = 'Log collection via V4 API';
623
+ LogCollectionSpec.prototype.$reserved = undefined;
624
+ LogCollectionSpec.prototype.$objectType = undefined;
625
+ LogCollectionSpec.prototype.$unknownFields = undefined;