@nutanix-scratch/monitoring-js-client 4.1.1 → 4.2.2

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 (492) hide show
  1. package/README.md +19 -7
  2. package/dist/Ntnx-Monitoring-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Monitoring-js-client.js +651 -623
  4. package/dist/es/ApiClient.d.ts +29 -7
  5. package/dist/es/ApiClient.js +854 -667
  6. package/dist/es/Paginable.d.ts +1 -1
  7. package/dist/es/Paginable.js +144 -183
  8. package/dist/es/apis/alertemailconfiguration-endpoints.d.ts +1 -1
  9. package/dist/es/apis/alertemailconfiguration-endpoints.js +82 -99
  10. package/dist/es/apis/alerts-endpoints.d.ts +2 -2
  11. package/dist/es/apis/alerts-endpoints.js +97 -108
  12. package/dist/es/apis/audits-endpoints.d.ts +2 -2
  13. package/dist/es/apis/audits-endpoints.js +97 -108
  14. package/dist/es/apis/clusterlogs-endpoints.d.ts +2 -2
  15. package/dist/es/apis/clusterlogs-endpoints.js +114 -125
  16. package/dist/es/apis/events-endpoints.d.ts +2 -2
  17. package/dist/es/apis/events-endpoints.js +97 -108
  18. package/dist/es/apis/managealerts-endpoints.d.ts +1 -1
  19. package/dist/es/apis/managealerts-endpoints.js +60 -76
  20. package/dist/es/apis/systemdefinedchecks-endpoints.d.ts +1 -1
  21. package/dist/es/apis/systemdefinedchecks-endpoints.js +60 -76
  22. package/dist/es/apis/systemdefinedpolicies-endpoints.d.ts +3 -3
  23. package/dist/es/apis/systemdefinedpolicies-endpoints.js +237 -245
  24. package/dist/es/apis/userdefinedpolicies-endpoints.d.ts +2 -2
  25. package/dist/es/apis/userdefinedpolicies-endpoints.js +247 -262
  26. package/dist/es/index.d.ts +5 -1
  27. package/dist/es/index.js +380 -364
  28. package/dist/es/models/common/v1/config/FQDN.d.ts +2 -7
  29. package/dist/es/models/common/v1/config/FQDN.js +141 -180
  30. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  31. package/dist/es/models/common/v1/config/Flag.js +170 -211
  32. package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  33. package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  34. package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
  35. package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
  36. package/dist/es/models/common/v1/config/IPv6Address.d.ts +2 -8
  37. package/dist/es/models/common/v1/config/IPv6Address.js +174 -215
  38. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  39. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  40. package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
  41. package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
  42. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  43. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  44. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  45. package/dist/es/models/common/v1/config/Message.js +213 -258
  46. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  47. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  48. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  49. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  50. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  51. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  52. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  53. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  54. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  55. package/dist/es/models/monitoring/v4/common/AlertEntityReference.d.ts +2 -9
  56. package/dist/es/models/monitoring/v4/common/AlertEntityReference.js +195 -238
  57. package/dist/es/models/monitoring/v4/common/BoolValue.d.ts +2 -7
  58. package/dist/es/models/monitoring/v4/common/BoolValue.js +140 -179
  59. package/dist/es/models/monitoring/v4/common/CauseAndResolution.d.ts +2 -8
  60. package/dist/es/models/monitoring/v4/common/CauseAndResolution.js +171 -212
  61. package/dist/es/models/monitoring/v4/common/ComparisonOperator.js +7 -9
  62. package/dist/es/models/monitoring/v4/common/ConditionType.js +7 -9
  63. package/dist/es/models/monitoring/v4/common/DataType.js +7 -9
  64. package/dist/es/models/monitoring/v4/common/DoubleValue.d.ts +2 -7
  65. package/dist/es/models/monitoring/v4/common/DoubleValue.js +140 -179
  66. package/dist/es/models/monitoring/v4/common/EntityReference.d.ts +2 -9
  67. package/dist/es/models/monitoring/v4/common/EntityReference.js +195 -238
  68. package/dist/es/models/monitoring/v4/common/FloatValue.d.ts +2 -7
  69. package/dist/es/models/monitoring/v4/common/FloatValue.js +140 -179
  70. package/dist/es/models/monitoring/v4/common/ImpactType.js +7 -9
  71. package/dist/es/models/monitoring/v4/common/IntValue.d.ts +2 -7
  72. package/dist/es/models/monitoring/v4/common/IntValue.js +140 -179
  73. package/dist/es/models/monitoring/v4/common/MetricDetail.d.ts +2 -17
  74. package/dist/es/models/monitoring/v4/common/MetricDetail.js +435 -502
  75. package/dist/es/models/monitoring/v4/common/OperationType.js +15 -11
  76. package/dist/es/models/monitoring/v4/common/Parameter.d.ts +2 -8
  77. package/dist/es/models/monitoring/v4/common/Parameter.js +186 -231
  78. package/dist/es/models/monitoring/v4/common/Severity.js +7 -9
  79. package/dist/es/models/monitoring/v4/common/StringValue.d.ts +2 -7
  80. package/dist/es/models/monitoring/v4/common/StringValue.js +140 -179
  81. package/dist/es/models/monitoring/v4/error/AppMessage.d.ts +2 -12
  82. package/dist/es/models/monitoring/v4/error/AppMessage.js +264 -313
  83. package/dist/es/models/monitoring/v4/error/ErrorResponse.d.ts +2 -7
  84. package/dist/es/models/monitoring/v4/error/ErrorResponse.js +175 -218
  85. package/dist/es/models/monitoring/v4/error/SchemaValidationError.d.ts +2 -18
  86. package/dist/es/models/monitoring/v4/error/SchemaValidationError.js +249 -300
  87. package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  88. package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.js +191 -234
  89. package/dist/es/models/monitoring/v4/serviceability/ActionType.js +7 -9
  90. package/dist/es/models/monitoring/v4/serviceability/Alert.d.ts +34 -88
  91. package/dist/es/models/monitoring/v4/serviceability/Alert.js +929 -919
  92. package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +2 -7
  93. package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.js +138 -177
  94. package/dist/es/models/monitoring/v4/serviceability/AlertConfig.d.ts +2 -52
  95. package/dist/es/models/monitoring/v4/serviceability/AlertConfig.js +208 -253
  96. package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +1 -138
  97. package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +393 -459
  98. package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +2 -10
  99. package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +241 -292
  100. package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +2 -8
  101. package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.js +189 -234
  102. package/dist/es/models/monitoring/v4/serviceability/Audit.d.ts +1 -64
  103. package/dist/es/models/monitoring/v4/serviceability/Audit.js +444 -518
  104. package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +2 -9
  105. package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.js +195 -238
  106. package/dist/es/models/monitoring/v4/serviceability/AutoResolveState.js +7 -9
  107. package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +2 -8
  108. package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +163 -205
  109. package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.d.ts +1 -79
  110. package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.js +256 -314
  111. package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +1 -1
  112. package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.js +74 -103
  113. package/dist/es/models/monitoring/v4/serviceability/ClusterType.js +7 -9
  114. package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +2 -43
  115. package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.js +187 -242
  116. package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +2 -23
  117. package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.js +237 -284
  118. package/dist/es/models/monitoring/v4/serviceability/Condition.d.ts +2 -9
  119. package/dist/es/models/monitoring/v4/serviceability/Condition.js +210 -257
  120. package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +2 -8
  121. package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +190 -239
  122. package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +2 -7
  123. package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.js +142 -181
  124. package/dist/es/models/monitoring/v4/serviceability/ConnectionStatus.js +7 -9
  125. package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +2 -43
  126. package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +187 -242
  127. package/dist/es/models/monitoring/v4/serviceability/Credential.d.ts +2 -9
  128. package/dist/es/models/monitoring/v4/serviceability/Credential.js +198 -241
  129. package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +2 -42
  130. package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.js +237 -284
  131. package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +2 -45
  132. package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +190 -245
  133. package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +2 -13
  134. package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.js +327 -378
  135. package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.d.ts +2 -8
  136. package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.js +168 -209
  137. package/dist/es/models/monitoring/v4/serviceability/EntityFilter.d.ts +2 -7
  138. package/dist/es/models/monitoring/v4/serviceability/EntityFilter.js +142 -181
  139. package/dist/es/models/monitoring/v4/serviceability/EntityType.js +7 -9
  140. package/dist/es/models/monitoring/v4/serviceability/Event.d.ts +22 -61
  141. package/dist/es/models/monitoring/v4/serviceability/Event.js +500 -501
  142. package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.d.ts +2 -9
  143. package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.js +195 -238
  144. package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +2 -43
  145. package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +209 -264
  146. package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +2 -15
  147. package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +195 -242
  148. package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +2 -43
  149. package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.js +187 -242
  150. package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +2 -43
  151. package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +187 -242
  152. package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +2 -43
  153. package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.js +187 -242
  154. package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +2 -43
  155. package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +187 -242
  156. package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +2 -43
  157. package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.js +187 -242
  158. package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +2 -43
  159. package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +187 -242
  160. package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +2 -43
  161. package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +187 -242
  162. package/dist/es/models/monitoring/v4/serviceability/GroupEntityType.js +7 -9
  163. package/dist/es/models/monitoring/v4/serviceability/GroupFilter.d.ts +2 -8
  164. package/dist/es/models/monitoring/v4/serviceability/GroupFilter.js +166 -207
  165. package/dist/es/models/monitoring/v4/serviceability/HttpProxy.d.ts +2 -40
  166. package/dist/es/models/monitoring/v4/serviceability/HttpProxy.js +285 -334
  167. package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +2 -15
  168. package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +195 -242
  169. package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +2 -43
  170. package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +209 -264
  171. package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +2 -43
  172. package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +209 -264
  173. package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +2 -43
  174. package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +213 -268
  175. package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +2 -43
  176. package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.js +209 -264
  177. package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +2 -43
  178. package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +209 -264
  179. package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +2 -43
  180. package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.js +209 -264
  181. package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +2 -43
  182. package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +209 -264
  183. package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +2 -7
  184. package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.js +142 -181
  185. package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +12 -27
  186. package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.js +399 -424
  187. package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +2 -43
  188. package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +187 -242
  189. package/dist/es/models/monitoring/v4/serviceability/MspOpts.d.ts +47 -0
  190. package/dist/es/models/monitoring/v4/serviceability/MspOpts.js +246 -0
  191. package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +2 -8
  192. package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +167 -208
  193. package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +2 -14
  194. package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.js +175 -220
  195. package/dist/es/models/monitoring/v4/serviceability/PolicySeverityLevel.js +7 -9
  196. package/dist/es/models/monitoring/v4/serviceability/PropertyState.js +7 -9
  197. package/dist/es/models/monitoring/v4/serviceability/ProxyType.js +7 -9
  198. package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +2 -8
  199. package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.js +176 -217
  200. package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +2 -94
  201. package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +208 -253
  202. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +2 -9
  203. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.js +191 -234
  204. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +1 -1
  205. package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +74 -103
  206. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +2 -47
  207. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +187 -242
  208. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +8 -24
  209. package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +302 -355
  210. package/dist/es/models/monitoring/v4/serviceability/Scope.js +7 -9
  211. package/dist/es/models/monitoring/v4/serviceability/SdaSubType.js +7 -9
  212. package/dist/es/models/monitoring/v4/serviceability/SdaType.js +7 -9
  213. package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.js +7 -9
  214. package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.d.ts +2 -10
  215. package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.js +231 -276
  216. package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.d.ts +2 -16
  217. package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.js +173 -218
  218. package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.d.ts +2 -8
  219. package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.js +164 -205
  220. package/dist/es/models/monitoring/v4/serviceability/Status.js +7 -9
  221. package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +2 -23
  222. package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +214 -259
  223. package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +2 -8
  224. package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +163 -205
  225. package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +4 -121
  226. package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +569 -645
  227. package/dist/es/models/monitoring/v4/serviceability/Tag.d.ts +1 -17
  228. package/dist/es/models/monitoring/v4/serviceability/Tag.js +157 -201
  229. package/dist/es/models/monitoring/v4/serviceability/TagOpts.d.ts +46 -0
  230. package/dist/es/models/monitoring/v4/serviceability/TagOpts.js +233 -0
  231. package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.d.ts +2 -16
  232. package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.js +185 -228
  233. package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +2 -43
  234. package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +209 -264
  235. package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +2 -43
  236. package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js +187 -242
  237. package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +2 -43
  238. package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +209 -264
  239. package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +1 -49
  240. package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.js +547 -629
  241. package/dist/es/models/monitoring/v4/serviceability/UserReference.d.ts +2 -9
  242. package/dist/es/models/monitoring/v4/serviceability/UserReference.js +198 -241
  243. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  244. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  245. package/dist/es/models/validation/ValidationError.js +26 -42
  246. package/dist/es/models/validation/ValidationScopes.js +3 -3
  247. package/dist/es/utils/ValidationUtils.js +39 -69
  248. package/dist/lib/ApiClient.d.ts +29 -7
  249. package/dist/lib/ApiClient.js +854 -667
  250. package/dist/lib/Paginable.d.ts +1 -1
  251. package/dist/lib/Paginable.js +144 -183
  252. package/dist/lib/apis/alertemailconfiguration-endpoints.d.ts +1 -1
  253. package/dist/lib/apis/alertemailconfiguration-endpoints.js +82 -99
  254. package/dist/lib/apis/alerts-endpoints.d.ts +2 -2
  255. package/dist/lib/apis/alerts-endpoints.js +97 -108
  256. package/dist/lib/apis/audits-endpoints.d.ts +2 -2
  257. package/dist/lib/apis/audits-endpoints.js +97 -108
  258. package/dist/lib/apis/clusterlogs-endpoints.d.ts +2 -2
  259. package/dist/lib/apis/clusterlogs-endpoints.js +114 -125
  260. package/dist/lib/apis/events-endpoints.d.ts +2 -2
  261. package/dist/lib/apis/events-endpoints.js +97 -108
  262. package/dist/lib/apis/managealerts-endpoints.d.ts +1 -1
  263. package/dist/lib/apis/managealerts-endpoints.js +60 -76
  264. package/dist/lib/apis/systemdefinedchecks-endpoints.d.ts +1 -1
  265. package/dist/lib/apis/systemdefinedchecks-endpoints.js +60 -76
  266. package/dist/lib/apis/systemdefinedpolicies-endpoints.d.ts +3 -3
  267. package/dist/lib/apis/systemdefinedpolicies-endpoints.js +237 -245
  268. package/dist/lib/apis/userdefinedpolicies-endpoints.d.ts +2 -2
  269. package/dist/lib/apis/userdefinedpolicies-endpoints.js +247 -262
  270. package/dist/lib/index.d.ts +5 -1
  271. package/dist/lib/index.js +380 -364
  272. package/dist/lib/models/common/v1/config/FQDN.d.ts +2 -7
  273. package/dist/lib/models/common/v1/config/FQDN.js +141 -180
  274. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  275. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  276. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +2 -26
  277. package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +196 -247
  278. package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
  279. package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
  280. package/dist/lib/models/common/v1/config/IPv6Address.d.ts +2 -8
  281. package/dist/lib/models/common/v1/config/IPv6Address.js +174 -215
  282. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  283. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  284. package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
  285. package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
  286. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  287. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  288. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  289. package/dist/lib/models/common/v1/config/Message.js +213 -258
  290. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  291. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  292. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  293. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  294. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  295. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  296. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  297. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  298. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  299. package/dist/lib/models/monitoring/v4/common/AlertEntityReference.d.ts +2 -9
  300. package/dist/lib/models/monitoring/v4/common/AlertEntityReference.js +195 -238
  301. package/dist/lib/models/monitoring/v4/common/BoolValue.d.ts +2 -7
  302. package/dist/lib/models/monitoring/v4/common/BoolValue.js +140 -179
  303. package/dist/lib/models/monitoring/v4/common/CauseAndResolution.d.ts +2 -8
  304. package/dist/lib/models/monitoring/v4/common/CauseAndResolution.js +171 -212
  305. package/dist/lib/models/monitoring/v4/common/ComparisonOperator.js +7 -9
  306. package/dist/lib/models/monitoring/v4/common/ConditionType.js +7 -9
  307. package/dist/lib/models/monitoring/v4/common/DataType.js +7 -9
  308. package/dist/lib/models/monitoring/v4/common/DoubleValue.d.ts +2 -7
  309. package/dist/lib/models/monitoring/v4/common/DoubleValue.js +140 -179
  310. package/dist/lib/models/monitoring/v4/common/EntityReference.d.ts +2 -9
  311. package/dist/lib/models/monitoring/v4/common/EntityReference.js +195 -238
  312. package/dist/lib/models/monitoring/v4/common/FloatValue.d.ts +2 -7
  313. package/dist/lib/models/monitoring/v4/common/FloatValue.js +140 -179
  314. package/dist/lib/models/monitoring/v4/common/ImpactType.js +7 -9
  315. package/dist/lib/models/monitoring/v4/common/IntValue.d.ts +2 -7
  316. package/dist/lib/models/monitoring/v4/common/IntValue.js +140 -179
  317. package/dist/lib/models/monitoring/v4/common/MetricDetail.d.ts +2 -17
  318. package/dist/lib/models/monitoring/v4/common/MetricDetail.js +435 -502
  319. package/dist/lib/models/monitoring/v4/common/OperationType.js +15 -11
  320. package/dist/lib/models/monitoring/v4/common/Parameter.d.ts +2 -8
  321. package/dist/lib/models/monitoring/v4/common/Parameter.js +186 -231
  322. package/dist/lib/models/monitoring/v4/common/Severity.js +7 -9
  323. package/dist/lib/models/monitoring/v4/common/StringValue.d.ts +2 -7
  324. package/dist/lib/models/monitoring/v4/common/StringValue.js +140 -179
  325. package/dist/lib/models/monitoring/v4/error/AppMessage.d.ts +2 -12
  326. package/dist/lib/models/monitoring/v4/error/AppMessage.js +264 -313
  327. package/dist/lib/models/monitoring/v4/error/ErrorResponse.d.ts +2 -7
  328. package/dist/lib/models/monitoring/v4/error/ErrorResponse.js +175 -218
  329. package/dist/lib/models/monitoring/v4/error/SchemaValidationError.d.ts +2 -18
  330. package/dist/lib/models/monitoring/v4/error/SchemaValidationError.js +249 -300
  331. package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  332. package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.js +191 -234
  333. package/dist/lib/models/monitoring/v4/serviceability/ActionType.js +7 -9
  334. package/dist/lib/models/monitoring/v4/serviceability/Alert.d.ts +34 -88
  335. package/dist/lib/models/monitoring/v4/serviceability/Alert.js +929 -919
  336. package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +2 -7
  337. package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.js +138 -177
  338. package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.d.ts +2 -52
  339. package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.js +208 -253
  340. package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +1 -138
  341. package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +393 -459
  342. package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +2 -10
  343. package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +241 -292
  344. package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +2 -8
  345. package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.js +189 -234
  346. package/dist/lib/models/monitoring/v4/serviceability/Audit.d.ts +1 -64
  347. package/dist/lib/models/monitoring/v4/serviceability/Audit.js +444 -518
  348. package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +2 -9
  349. package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.js +195 -238
  350. package/dist/lib/models/monitoring/v4/serviceability/AutoResolveState.js +7 -9
  351. package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +2 -8
  352. package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +163 -205
  353. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.d.ts +1 -79
  354. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.js +256 -314
  355. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +1 -1
  356. package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.js +74 -103
  357. package/dist/lib/models/monitoring/v4/serviceability/ClusterType.js +7 -9
  358. package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +2 -43
  359. package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.js +187 -242
  360. package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +2 -23
  361. package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.js +237 -284
  362. package/dist/lib/models/monitoring/v4/serviceability/Condition.d.ts +2 -9
  363. package/dist/lib/models/monitoring/v4/serviceability/Condition.js +210 -257
  364. package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +2 -8
  365. package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +190 -239
  366. package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +2 -7
  367. package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.js +142 -181
  368. package/dist/lib/models/monitoring/v4/serviceability/ConnectionStatus.js +7 -9
  369. package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +2 -43
  370. package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +187 -242
  371. package/dist/lib/models/monitoring/v4/serviceability/Credential.d.ts +2 -9
  372. package/dist/lib/models/monitoring/v4/serviceability/Credential.js +198 -241
  373. package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +2 -42
  374. package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.js +237 -284
  375. package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +2 -45
  376. package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +190 -245
  377. package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +2 -13
  378. package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.js +327 -378
  379. package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.d.ts +2 -8
  380. package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.js +168 -209
  381. package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.d.ts +2 -7
  382. package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.js +142 -181
  383. package/dist/lib/models/monitoring/v4/serviceability/EntityType.js +7 -9
  384. package/dist/lib/models/monitoring/v4/serviceability/Event.d.ts +22 -61
  385. package/dist/lib/models/monitoring/v4/serviceability/Event.js +500 -501
  386. package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.d.ts +2 -9
  387. package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.js +195 -238
  388. package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +2 -43
  389. package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +209 -264
  390. package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +2 -15
  391. package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +195 -242
  392. package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +2 -43
  393. package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.js +187 -242
  394. package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +2 -43
  395. package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +187 -242
  396. package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +2 -43
  397. package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.js +187 -242
  398. package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +2 -43
  399. package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +187 -242
  400. package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +2 -43
  401. package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.js +187 -242
  402. package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +2 -43
  403. package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +187 -242
  404. package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +2 -43
  405. package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +187 -242
  406. package/dist/lib/models/monitoring/v4/serviceability/GroupEntityType.js +7 -9
  407. package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.d.ts +2 -8
  408. package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.js +166 -207
  409. package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.d.ts +2 -40
  410. package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.js +285 -334
  411. package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +2 -15
  412. package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +195 -242
  413. package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +2 -43
  414. package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +209 -264
  415. package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +2 -43
  416. package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +209 -264
  417. package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +2 -43
  418. package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +213 -268
  419. package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +2 -43
  420. package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.js +209 -264
  421. package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +2 -43
  422. package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +209 -264
  423. package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +2 -43
  424. package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.js +209 -264
  425. package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +2 -43
  426. package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +209 -264
  427. package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +2 -7
  428. package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.js +142 -181
  429. package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +12 -27
  430. package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.js +399 -424
  431. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +2 -43
  432. package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +187 -242
  433. package/dist/lib/models/monitoring/v4/serviceability/MspOpts.d.ts +47 -0
  434. package/dist/lib/models/monitoring/v4/serviceability/MspOpts.js +246 -0
  435. package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +2 -8
  436. package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +167 -208
  437. package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +2 -14
  438. package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.js +175 -220
  439. package/dist/lib/models/monitoring/v4/serviceability/PolicySeverityLevel.js +7 -9
  440. package/dist/lib/models/monitoring/v4/serviceability/PropertyState.js +7 -9
  441. package/dist/lib/models/monitoring/v4/serviceability/ProxyType.js +7 -9
  442. package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +2 -8
  443. package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.js +176 -217
  444. package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +2 -94
  445. package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +208 -253
  446. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +2 -9
  447. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.js +191 -234
  448. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +1 -1
  449. package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +74 -103
  450. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +2 -47
  451. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +187 -242
  452. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +8 -24
  453. package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +302 -355
  454. package/dist/lib/models/monitoring/v4/serviceability/Scope.js +7 -9
  455. package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.js +7 -9
  456. package/dist/lib/models/monitoring/v4/serviceability/SdaType.js +7 -9
  457. package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.js +7 -9
  458. package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.d.ts +2 -10
  459. package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.js +231 -276
  460. package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.d.ts +2 -16
  461. package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.js +173 -218
  462. package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.d.ts +2 -8
  463. package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.js +164 -205
  464. package/dist/lib/models/monitoring/v4/serviceability/Status.js +7 -9
  465. package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +2 -23
  466. package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +214 -259
  467. package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +2 -8
  468. package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +163 -205
  469. package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +4 -121
  470. package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +569 -645
  471. package/dist/lib/models/monitoring/v4/serviceability/Tag.d.ts +1 -17
  472. package/dist/lib/models/monitoring/v4/serviceability/Tag.js +157 -201
  473. package/dist/lib/models/monitoring/v4/serviceability/TagOpts.d.ts +46 -0
  474. package/dist/lib/models/monitoring/v4/serviceability/TagOpts.js +233 -0
  475. package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.d.ts +2 -16
  476. package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.js +185 -228
  477. package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +2 -43
  478. package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +209 -264
  479. package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +2 -43
  480. package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js +187 -242
  481. package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +2 -43
  482. package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +209 -264
  483. package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +1 -49
  484. package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.js +547 -629
  485. package/dist/lib/models/monitoring/v4/serviceability/UserReference.d.ts +2 -9
  486. package/dist/lib/models/monitoring/v4/serviceability/UserReference.js +198 -241
  487. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  488. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  489. package/dist/lib/models/validation/ValidationError.js +26 -42
  490. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  491. package/dist/lib/utils/ValidationUtils.js +39 -69
  492. package/package.json +1 -1
@@ -3,36 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
  var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
8
8
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
9
9
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
10
10
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
- 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); }
13
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
14
- 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."); }
15
- 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; } }
16
- 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; }
17
- 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; } }
18
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
19
- 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; }
20
- 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; }
21
- 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; }
22
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
23
- 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); } }
24
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
25
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
26
- 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); }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
27
12
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
28
13
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
29
14
  * Nutanix Monitoring APIs
30
15
  *
31
- * OpenAPI spec version: 4.1.1
16
+ * OpenAPI spec version: 4.2.2
32
17
  *
33
18
  * NOTE: This class is auto generated by the Open API Dev Platform.
34
19
  *
35
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
20
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
36
21
  *
37
22
  * Do not edit the class manually.
38
23
  *
@@ -40,18 +25,17 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
40
25
  /**
41
26
  * The RunSystemDefinedChecksSpec model module.
42
27
  * @module Ntnx/RunSystemDefinedChecksSpec
43
- * @version 4.1.1
28
+ * @version 4.2.2
44
29
  * @class RunSystemDefinedChecksSpec
45
30
  */
46
31
  var _RunSystemDefinedChecksSpec_brand = /*#__PURE__*/new WeakSet();
47
- var RunSystemDefinedChecksSpec = exports["default"] = /*#__PURE__*/function () {
32
+ class RunSystemDefinedChecksSpec {
48
33
  /**
49
34
  * Constructs a new <code>RunSystemDefinedChecksSpec</code>.
50
35
  * Required parameters for running the System-Defined Checks.
51
36
  * @alias module:Ntnx/RunSystemDefinedChecksSpec
52
37
  */
53
- function RunSystemDefinedChecksSpec() {
54
- _classCallCheck(this, RunSystemDefinedChecksSpec);
38
+ constructor() {
55
39
  /*
56
40
  * toJson method for a map type which supports map with primitive keys and values of object types
57
41
  * @param {Object} obj
@@ -62,7 +46,7 @@ var RunSystemDefinedChecksSpec = exports["default"] = /*#__PURE__*/function () {
62
46
  this.$objectType = "monitoring.v4.serviceability.RunSystemDefinedChecksSpec";
63
47
  /** @type {object<string, any>} */
64
48
  this.$reserved = {
65
- '$fv': "v4.r1"
49
+ '$fv': "v4.r2"
66
50
  };
67
51
  /** @type {object<string, any>} */
68
52
  this.$unknownFields = {};
@@ -76,380 +60,343 @@ var RunSystemDefinedChecksSpec = exports["default"] = /*#__PURE__*/function () {
76
60
  * @param callFromChild {Boolean} Flag to recognise calling instance
77
61
  * @return {module:Ntnx/RunSystemDefinedChecksSpec} The populated <code>RunSystemDefinedChecksSpec</code> instance.
78
62
  */
79
- return _createClass(RunSystemDefinedChecksSpec, [{
80
- key: "getSdaExtIds",
81
- value:
82
- /**
83
- * Returns List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
84
- * @return {string[]}
85
- */
86
- function getSdaExtIds() {
87
- return this.sdaExtIds;
63
+ static constructFromObject(data, obj = null, callFromChild = false) {
64
+ let items, item, i, itemArr, discriminator;
65
+ if (data) {
66
+ obj = obj || new RunSystemDefinedChecksSpec();
67
+ if (data.hasOwnProperty('sdaExtIds') && data.sdaExtIds !== null && data.sdaExtIds !== undefined) {
68
+ itemArr = [];
69
+ items = data.sdaExtIds;
70
+ for (i = 0; i < items.length; i++) {
71
+ itemArr.push(items[i]);
72
+ }
73
+ obj.setSdaExtIds(itemArr);
74
+ }
75
+ if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
76
+ obj.setShouldAnonymize(data['shouldAnonymize']);
77
+ }
78
+ if (data.hasOwnProperty('shouldSendReportToConfiguredRecipients') && data.shouldSendReportToConfiguredRecipients !== null && data.shouldSendReportToConfiguredRecipients !== undefined) {
79
+ obj.setShouldSendReportToConfiguredRecipients(data['shouldSendReportToConfiguredRecipients']);
80
+ }
81
+ if (data.hasOwnProperty('additionalRecipients') && data.additionalRecipients !== null && data.additionalRecipients !== undefined) {
82
+ itemArr = [];
83
+ items = data.additionalRecipients;
84
+ for (i = 0; i < items.length; i++) {
85
+ itemArr.push(items[i]);
86
+ }
87
+ obj.setAdditionalRecipients(itemArr);
88
+ }
89
+ if (data.hasOwnProperty('nodeIps') && data.nodeIps !== null && data.nodeIps !== undefined) {
90
+ itemArr = [];
91
+ items = data.nodeIps;
92
+ for (i = 0; i < items.length; i++) {
93
+ item = _IPv4Address.default.constructFromObject(items[i], undefined);
94
+ itemArr.push(item);
95
+ }
96
+ obj.setNodeIps(itemArr);
97
+ }
98
+ if (data.hasOwnProperty('shouldRunAllChecks') && data.shouldRunAllChecks !== null && data.shouldRunAllChecks !== undefined) {
99
+ obj.setShouldRunAllChecks(data['shouldRunAllChecks']);
100
+ }
101
+ if (data.hasOwnProperty('$reserved')) {
102
+ obj.$reserved = data['$reserved'];
103
+ }
104
+ if (data.hasOwnProperty('$objectType')) {
105
+ obj.$objectType = data['$objectType'];
106
+ }
107
+ if (data.hasOwnProperty('$unknownFields')) {
108
+ obj.$unknownFields = data['$unknownFields'];
109
+ }
110
+ if (!callFromChild) {
111
+ obj.$unknownFields = {
112
+ ...data.$unknownFields
113
+ };
114
+ for (const property in data) {
115
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
116
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
117
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
118
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
119
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
120
+ obj.$unknownFields[property] = data[property];
121
+ }
122
+ }
123
+ }
88
124
  }
125
+ return obj;
126
+ }
89
127
 
90
- /**
91
- * Sets List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
92
- * @param {string[]} sdaExtIds List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
93
- */
94
- }, {
95
- key: "setSdaExtIds",
96
- value: function setSdaExtIds(sdaExtIds) {
97
- this.sdaExtIds = sdaExtIds;
98
- }
128
+ /**
129
+ * Converts a given snake_case string to camelCase.
130
+ * @param {string} snakeStr - The input string in snake_case format.
131
+ * @returns {string} - The converted string in camelCase format.
132
+ */
133
+ static snakeToCamel(snakeStr) {
134
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
135
+ }
99
136
 
100
- /**
101
- * Returns Indicates whether to mask sensitive data in the check run summary.
102
- * @return {boolean}
103
- */
104
- }, {
105
- key: "getShouldAnonymize",
106
- value: function getShouldAnonymize() {
107
- return this.shouldAnonymize;
108
- }
137
+ /**
138
+ * Returns List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
139
+ * @return {string[]}
140
+ */
141
+ getSdaExtIds() {
142
+ return this.sdaExtIds;
143
+ }
109
144
 
110
- /**
111
- * Sets Indicates whether to mask sensitive data in the check run summary.
112
- * @param {boolean} shouldAnonymize Indicates whether to mask sensitive data in the check run summary.
113
- */
114
- }, {
115
- key: "setShouldAnonymize",
116
- value: function setShouldAnonymize(shouldAnonymize) {
117
- this.shouldAnonymize = shouldAnonymize;
118
- }
145
+ /**
146
+ * Sets List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
147
+ * @param {string[]} sdaExtIds List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
148
+ */
149
+ setSdaExtIds(sdaExtIds) {
150
+ this.sdaExtIds = sdaExtIds;
151
+ }
119
152
 
120
- /**
121
- * Returns Determines if the run summary should be sent to the configured email address associated with the cluster.
122
- * @return {boolean}
123
- */
124
- }, {
125
- key: "getShouldSendReportToConfiguredRecipients",
126
- value: function getShouldSendReportToConfiguredRecipients() {
127
- return this.shouldSendReportToConfiguredRecipients;
128
- }
153
+ /**
154
+ * Returns Indicates whether to mask sensitive data in the check run summary.
155
+ * @return {boolean}
156
+ */
157
+ getShouldAnonymize() {
158
+ return this.shouldAnonymize;
159
+ }
129
160
 
130
- /**
131
- * Sets Determines if the run summary should be sent to the configured email address associated with the cluster.
132
- * @param {boolean} shouldSendReportToConfiguredRecipients Determines if the run summary should be sent to the configured email address associated with the cluster.
133
- */
134
- }, {
135
- key: "setShouldSendReportToConfiguredRecipients",
136
- value: function setShouldSendReportToConfiguredRecipients(shouldSendReportToConfiguredRecipients) {
137
- this.shouldSendReportToConfiguredRecipients = shouldSendReportToConfiguredRecipients;
138
- }
161
+ /**
162
+ * Sets Indicates whether to mask sensitive data in the check run summary.
163
+ * @param {boolean} shouldAnonymize Indicates whether to mask sensitive data in the check run summary.
164
+ */
165
+ setShouldAnonymize(shouldAnonymize) {
166
+ this.shouldAnonymize = shouldAnonymize;
167
+ }
139
168
 
140
- /**
141
- * Returns A list of additional email addresses for sending the check run summary.
142
- * @return {string[]}
143
- */
144
- }, {
145
- key: "getAdditionalRecipients",
146
- value: function getAdditionalRecipients() {
147
- return this.additionalRecipients;
148
- }
169
+ /**
170
+ * Returns Determines if the run summary should be sent to the configured email address associated with the cluster. Either this should be true or additionalRecipients should be provided. If both are set then email would be sent to all the recipients.
171
+ * @return {boolean}
172
+ */
173
+ getShouldSendReportToConfiguredRecipients() {
174
+ return this.shouldSendReportToConfiguredRecipients;
175
+ }
149
176
 
150
- /**
151
- * Sets A list of additional email addresses for sending the check run summary.
152
- * @param {string[]} additionalRecipients A list of additional email addresses for sending the check run summary.
153
- */
154
- }, {
155
- key: "setAdditionalRecipients",
156
- value: function setAdditionalRecipients(additionalRecipients) {
157
- this.additionalRecipients = additionalRecipients;
158
- }
177
+ /**
178
+ * Sets Determines if the run summary should be sent to the configured email address associated with the cluster. Either this should be true or additionalRecipients should be provided. If both are set then email would be sent to all the recipients.
179
+ * @param {boolean} shouldSendReportToConfiguredRecipients Determines if the run summary should be sent to the configured email address associated with the cluster. Either this should be true or additionalRecipients should be provided. If both are set then email would be sent to all the recipients.
180
+ */
181
+ setShouldSendReportToConfiguredRecipients(shouldSendReportToConfiguredRecipients) {
182
+ this.shouldSendReportToConfiguredRecipients = shouldSendReportToConfiguredRecipients;
183
+ }
159
184
 
160
- /**
161
- * Returns List of node IP addresses where the Check will run. This field will be ignored if the check scope is a cluster.
162
- * @return {IPv4Address[]}
163
- */
164
- }, {
165
- key: "getNodeIps",
166
- value: function getNodeIps() {
167
- return this.nodeIps;
168
- }
185
+ /**
186
+ * Returns A list of additional email addresses for sending the run summary. Either this should be set or shouldSendReportToConfiguredRecipients should be true. If both are set then email would be sent to all the recipients.
187
+ * @return {string[]}
188
+ */
189
+ getAdditionalRecipients() {
190
+ return this.additionalRecipients;
191
+ }
169
192
 
170
- /**
171
- * Sets List of node IP addresses where the Check will run. This field will be ignored if the check scope is a cluster.
172
- * @param {IPv4Address[]} nodeIps List of node IP addresses where the Check will run. This field will be ignored if the check scope is a cluster.
173
- */
174
- }, {
175
- key: "setNodeIps",
176
- value: function setNodeIps(nodeIps) {
177
- this.nodeIps = nodeIps;
178
- }
193
+ /**
194
+ * Sets A list of additional email addresses for sending the run summary. Either this should be set or shouldSendReportToConfiguredRecipients should be true. If both are set then email would be sent to all the recipients.
195
+ * @param {string[]} additionalRecipients A list of additional email addresses for sending the run summary. Either this should be set or shouldSendReportToConfiguredRecipients should be true. If both are set then email would be sent to all the recipients.
196
+ */
197
+ setAdditionalRecipients(additionalRecipients) {
198
+ this.additionalRecipients = additionalRecipients;
199
+ }
179
200
 
180
- /**
181
- * Returns Indicates whether all System-Defined Checks applicable to the specified cluster should be executed. This field is mutually exclusive with the sdaExtIds parameter, meaning that only one of these should be set at a time. Please use this field with caution, as it is resource-intensive.
182
- * @return {boolean}
183
- */
184
- }, {
185
- key: "getShouldRunAllChecks",
186
- value: function getShouldRunAllChecks() {
187
- return this.shouldRunAllChecks;
188
- }
201
+ /**
202
+ * Returns List of node IP addresses where the Check will run. This field will be ignored if the check scope is a cluster.
203
+ * @return {IPv4Address[]}
204
+ */
205
+ getNodeIps() {
206
+ return this.nodeIps;
207
+ }
189
208
 
190
- /**
191
- * Sets Indicates whether all System-Defined Checks applicable to the specified cluster should be executed. This field is mutually exclusive with the sdaExtIds parameter, meaning that only one of these should be set at a time. Please use this field with caution, as it is resource-intensive.
192
- * @param {boolean} shouldRunAllChecks Indicates whether all System-Defined Checks applicable to the specified cluster should be executed. This field is mutually exclusive with the sdaExtIds parameter, meaning that only one of these should be set at a time. Please use this field with caution, as it is resource-intensive.
193
- */
194
- }, {
195
- key: "setShouldRunAllChecks",
196
- value: function setShouldRunAllChecks(shouldRunAllChecks) {
197
- this.shouldRunAllChecks = shouldRunAllChecks;
198
- }
199
- }, {
200
- key: "get$Reserved",
201
- value: function get$Reserved() {
202
- return this.$reserved;
203
- }
204
- }, {
205
- key: "get$ObjectType",
206
- value: function get$ObjectType() {
207
- return this.$objectType;
208
- }
209
- }, {
210
- key: "get$UnknownFields",
211
- value: function get$UnknownFields() {
212
- return this.$unknownFields;
213
- }
214
- }, {
215
- key: "toJson",
216
- value: function toJson(forMutation) {
217
- if (forMutation === false) {
218
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getSdaExtIds() !== 'undefined' && this.getSdaExtIds() !== null ? {
209
+ /**
210
+ * Sets List of node IP addresses where the Check will run. This field will be ignored if the check scope is a cluster.
211
+ * @param {IPv4Address[]} nodeIps List of node IP addresses where the Check will run. This field will be ignored if the check scope is a cluster.
212
+ */
213
+ setNodeIps(nodeIps) {
214
+ this.nodeIps = nodeIps;
215
+ }
216
+
217
+ /**
218
+ * Returns Indicates whether all System-Defined Checks applicable to the specified cluster should be executed. This field is mutually exclusive with the sdaExtIds parameter, meaning that only one of these should be set at a time. Please use this field with caution, as it is resource-intensive.
219
+ * @return {boolean}
220
+ */
221
+ getShouldRunAllChecks() {
222
+ return this.shouldRunAllChecks;
223
+ }
224
+
225
+ /**
226
+ * Sets Indicates whether all System-Defined Checks applicable to the specified cluster should be executed. This field is mutually exclusive with the sdaExtIds parameter, meaning that only one of these should be set at a time. Please use this field with caution, as it is resource-intensive.
227
+ * @param {boolean} shouldRunAllChecks Indicates whether all System-Defined Checks applicable to the specified cluster should be executed. This field is mutually exclusive with the sdaExtIds parameter, meaning that only one of these should be set at a time. Please use this field with caution, as it is resource-intensive.
228
+ */
229
+ setShouldRunAllChecks(shouldRunAllChecks) {
230
+ this.shouldRunAllChecks = shouldRunAllChecks;
231
+ }
232
+ get$Reserved() {
233
+ return this.$reserved;
234
+ }
235
+ get$ObjectType() {
236
+ return this.$objectType;
237
+ }
238
+ get$UnknownFields() {
239
+ return this.$unknownFields;
240
+ }
241
+ toJson(forMutation) {
242
+ if (forMutation === false) {
243
+ return {
244
+ ...(typeof this.getSdaExtIds() !== 'undefined' && this.getSdaExtIds() !== null ? {
219
245
  'sdaExtIds': this.getSdaExtIds()
220
- } : {}), typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
246
+ } : {}),
247
+ ...(typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
221
248
  'shouldAnonymize': this.getShouldAnonymize()
222
- } : {}), typeof this.getShouldSendReportToConfiguredRecipients() !== 'undefined' && this.getShouldSendReportToConfiguredRecipients() !== null ? {
249
+ } : {}),
250
+ ...(typeof this.getShouldSendReportToConfiguredRecipients() !== 'undefined' && this.getShouldSendReportToConfiguredRecipients() !== null ? {
223
251
  'shouldSendReportToConfiguredRecipients': this.getShouldSendReportToConfiguredRecipients()
224
- } : {}), typeof this.getAdditionalRecipients() !== 'undefined' && this.getAdditionalRecipients() !== null ? {
252
+ } : {}),
253
+ ...(typeof this.getAdditionalRecipients() !== 'undefined' && this.getAdditionalRecipients() !== null ? {
225
254
  'additionalRecipients': this.getAdditionalRecipients()
226
- } : {}), typeof this.getNodeIps() !== 'undefined' && this.getNodeIps() !== null ? {
227
- 'nodeIps': this.getNodeIps().map(function (item) {
228
- return item.toJson(false);
229
- })
230
- } : {}), typeof this.getShouldRunAllChecks() !== 'undefined' && this.getShouldRunAllChecks() !== null ? {
255
+ } : {}),
256
+ ...(typeof this.getNodeIps() !== 'undefined' && this.getNodeIps() !== null ? {
257
+ 'nodeIps': this.getNodeIps().map(item => item.toJson(false))
258
+ } : {}),
259
+ ...(typeof this.getShouldRunAllChecks() !== 'undefined' && this.getShouldRunAllChecks() !== null ? {
231
260
  'shouldRunAllChecks': this.getShouldRunAllChecks()
232
- } : {}), {}, {
233
- '$reserved': this.get$Reserved(),
234
- '$objectType': this.get$ObjectType(),
235
- '$unknownFields': this.get$UnknownFields()
236
- });
237
- }
238
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getSdaExtIds() !== 'undefined' && this.getSdaExtIds() !== null ? {
261
+ } : {}),
262
+ '$reserved': this.get$Reserved(),
263
+ '$objectType': this.get$ObjectType(),
264
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
265
+ '$unknownFields': {}
266
+ };
267
+ }
268
+ return {
269
+ ...(typeof this.getSdaExtIds() !== 'undefined' && this.getSdaExtIds() !== null ? {
239
270
  'sdaExtIds': this.getSdaExtIds()
240
- } : {}), typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
271
+ } : {}),
272
+ ...(typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
241
273
  'shouldAnonymize': this.getShouldAnonymize()
242
- } : {}), typeof this.getShouldSendReportToConfiguredRecipients() !== 'undefined' && this.getShouldSendReportToConfiguredRecipients() !== null ? {
274
+ } : {}),
275
+ ...(typeof this.getShouldSendReportToConfiguredRecipients() !== 'undefined' && this.getShouldSendReportToConfiguredRecipients() !== null ? {
243
276
  'shouldSendReportToConfiguredRecipients': this.getShouldSendReportToConfiguredRecipients()
244
- } : {}), typeof this.getAdditionalRecipients() !== 'undefined' && this.getAdditionalRecipients() !== null ? {
277
+ } : {}),
278
+ ...(typeof this.getAdditionalRecipients() !== 'undefined' && this.getAdditionalRecipients() !== null ? {
245
279
  'additionalRecipients': this.getAdditionalRecipients()
246
- } : {}), typeof this.getNodeIps() !== 'undefined' && this.getNodeIps() !== null ? {
247
- 'nodeIps': this.getNodeIps().map(function (item) {
248
- return item.toJson(false);
249
- })
250
- } : {}), typeof this.getShouldRunAllChecks() !== 'undefined' && this.getShouldRunAllChecks() !== null ? {
280
+ } : {}),
281
+ ...(typeof this.getNodeIps() !== 'undefined' && this.getNodeIps() !== null ? {
282
+ 'nodeIps': this.getNodeIps().map(item => item.toJson(false))
283
+ } : {}),
284
+ ...(typeof this.getShouldRunAllChecks() !== 'undefined' && this.getShouldRunAllChecks() !== null ? {
251
285
  'shouldRunAllChecks': this.getShouldRunAllChecks()
252
- } : {}), {}, {
253
- '$reserved': this.get$Reserved(),
254
- '$objectType': this.get$ObjectType(),
255
- '$unknownFields': this.get$UnknownFields()
256
- });
286
+ } : {}),
287
+ '$reserved': this.get$Reserved(),
288
+ '$objectType': this.get$ObjectType(),
289
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
290
+ '$unknownFields': {}
291
+ };
292
+ }
293
+ validate(scope, properties) {
294
+ let propList = [];
295
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
296
+ //cases validate() and validate(scope)
297
+ propList = [];
298
+ } else if (arguments.length === 1) {
299
+ //case validate(properties)
300
+ propList = arguments[0];
301
+ scope = null;
302
+ } else {
303
+ //case validate(scope, properties)
304
+ propList = arguments[1];
257
305
  }
258
- }, {
259
- key: "validate",
260
- value: function validate(scope, properties) {
261
- var _this = this;
262
- var propList = [];
263
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
264
- //cases validate() and validate(scope)
265
- propList = [];
266
- } else if (arguments.length === 1) {
267
- //case validate(properties)
268
- propList = arguments[0];
269
- scope = null;
306
+ let res = [];
307
+ let err = null;
308
+ propList.forEach(property => {
309
+ err = this.validateProperty(property, scope);
310
+ if (err) {
311
+ res.push(err);
312
+ }
313
+ });
314
+ return new Promise(function (resolve, reject) {
315
+ if (res.length !== 0) {
316
+ reject(err);
270
317
  } else {
271
- //case validate(scope, properties)
272
- propList = arguments[1];
318
+ resolve();
319
+ }
320
+ });
321
+ }
322
+ validateProperty(scope, property) {
323
+ if (property === "sdaExtIds") {
324
+ if (typeof this.sdaExtIds === 'undefined' || this.sdaExtIds === null) {
325
+ return new _ValidationError.default("sdaExtIds", "undefined or null");
326
+ }
327
+ if (!_ValidationUtils.default.validateMaxItems(this.sdaExtIds, 50)) {
328
+ return new _ValidationError.default("sdaExtIds", "does not satisfy required maxItems constraint: 50");
329
+ }
330
+ if (!_ValidationUtils.default.validateMinItems(this.sdaExtIds, 1)) {
331
+ return new _ValidationError.default("sdaExtIds", "does not satisfy required minItems constraint: 1");
273
332
  }
274
- var res = [];
275
- var err = null;
276
- propList.forEach(function (property) {
277
- err = _this.validateProperty(property, scope);
278
- if (err) {
279
- res.push(err);
280
- }
281
- });
282
- return new Promise(function (resolve, reject) {
283
- if (res.length !== 0) {
284
- reject(err);
285
- } else {
286
- resolve();
287
- }
288
- });
289
333
  }
290
- }, {
291
- key: "validateProperty",
292
- value: function validateProperty(scope, property) {
293
- if (property === "sdaExtIds") {
294
- if (typeof this.sdaExtIds === 'undefined' || this.sdaExtIds === null) {
295
- return new _ValidationError["default"]("sdaExtIds", "undefined or null");
296
- }
297
- if (!_ValidationUtils["default"].validateMaxItems(this.sdaExtIds, 50)) {
298
- return new _ValidationError["default"]("sdaExtIds", "does not satisfy required maxItems constraint: 50");
299
- }
300
- if (!_ValidationUtils["default"].validateMinItems(this.sdaExtIds, 1)) {
301
- return new _ValidationError["default"]("sdaExtIds", "does not satisfy required minItems constraint: 1");
302
- }
334
+ if (property === "shouldAnonymize") {
335
+ if (typeof this.shouldAnonymize === 'undefined' || this.shouldAnonymize === null) {
336
+ return new _ValidationError.default("shouldAnonymize", "undefined or null");
303
337
  }
304
- if (property === "shouldAnonymize") {
305
- if (typeof this.shouldAnonymize === 'undefined' || this.shouldAnonymize === null) {
306
- return new _ValidationError["default"]("shouldAnonymize", "undefined or null");
307
- }
338
+ }
339
+ if (property === "shouldSendReportToConfiguredRecipients") {
340
+ if (typeof this.shouldSendReportToConfiguredRecipients === 'undefined' || this.shouldSendReportToConfiguredRecipients === null) {
341
+ return new _ValidationError.default("shouldSendReportToConfiguredRecipients", "undefined or null");
308
342
  }
309
- if (property === "shouldSendReportToConfiguredRecipients") {
310
- if (typeof this.shouldSendReportToConfiguredRecipients === 'undefined' || this.shouldSendReportToConfiguredRecipients === null) {
311
- return new _ValidationError["default"]("shouldSendReportToConfiguredRecipients", "undefined or null");
312
- }
343
+ }
344
+ if (property === "additionalRecipients") {
345
+ if (typeof this.additionalRecipients === 'undefined' || this.additionalRecipients === null) {
346
+ return new _ValidationError.default("additionalRecipients", "undefined or null");
313
347
  }
314
- if (property === "additionalRecipients") {
315
- if (typeof this.additionalRecipients === 'undefined' || this.additionalRecipients === null) {
316
- return new _ValidationError["default"]("additionalRecipients", "undefined or null");
317
- }
318
- if (!_ValidationUtils["default"].validateMaxItems(this.additionalRecipients, 5)) {
319
- return new _ValidationError["default"]("additionalRecipients", "does not satisfy required maxItems constraint: 5");
320
- }
321
- if (!_ValidationUtils["default"].validateMinItems(this.additionalRecipients, 1)) {
322
- return new _ValidationError["default"]("additionalRecipients", "does not satisfy required minItems constraint: 1");
323
- }
348
+ if (!_ValidationUtils.default.validateMaxItems(this.additionalRecipients, 5)) {
349
+ return new _ValidationError.default("additionalRecipients", "does not satisfy required maxItems constraint: 5");
324
350
  }
325
- if (property === "nodeIps") {
326
- if (typeof this.nodeIps === 'undefined' || this.nodeIps === null) {
327
- return new _ValidationError["default"]("nodeIps", "undefined or null");
328
- }
329
- if (!_ValidationUtils["default"].validateMaxItems(this.nodeIps, 48)) {
330
- return new _ValidationError["default"]("nodeIps", "does not satisfy required maxItems constraint: 48");
331
- }
332
- if (!_ValidationUtils["default"].validateMinItems(this.nodeIps, 1)) {
333
- return new _ValidationError["default"]("nodeIps", "does not satisfy required minItems constraint: 1");
334
- }
351
+ if (!_ValidationUtils.default.validateMinItems(this.additionalRecipients, 1)) {
352
+ return new _ValidationError.default("additionalRecipients", "does not satisfy required minItems constraint: 1");
335
353
  }
336
- if (property === "shouldRunAllChecks") {
337
- if (typeof this.shouldRunAllChecks === 'undefined' || this.shouldRunAllChecks === null) {
338
- return new _ValidationError["default"]("shouldRunAllChecks", "undefined or null");
339
- }
354
+ }
355
+ if (property === "nodeIps") {
356
+ if (typeof this.nodeIps === 'undefined' || this.nodeIps === null) {
357
+ return new _ValidationError.default("nodeIps", "undefined or null");
340
358
  }
341
- if (property === "$reserved") {
342
- if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
343
- return new _ValidationError["default"]("$reserved", "undefined or null");
344
- }
359
+ if (!_ValidationUtils.default.validateMaxItems(this.nodeIps, 48)) {
360
+ return new _ValidationError.default("nodeIps", "does not satisfy required maxItems constraint: 48");
345
361
  }
346
- if (property === "$objectType") {
347
- if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
348
- return new _ValidationError["default"]("$objectType", "undefined or null");
349
- }
362
+ if (!_ValidationUtils.default.validateMinItems(this.nodeIps, 1)) {
363
+ return new _ValidationError.default("nodeIps", "does not satisfy required minItems constraint: 1");
350
364
  }
351
- if (property === "$unknownFields") {
352
- if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
353
- return new _ValidationError["default"]("$unknownFields", "undefined or null");
354
- }
365
+ }
366
+ if (property === "shouldRunAllChecks") {
367
+ if (typeof this.shouldRunAllChecks === 'undefined' || this.shouldRunAllChecks === null) {
368
+ return new _ValidationError.default("shouldRunAllChecks", "undefined or null");
355
369
  }
356
- return new _ValidationError["default"](property, "no such property exists");
357
370
  }
358
- }], [{
359
- key: "constructFromObject",
360
- value: function constructFromObject(data) {
361
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
362
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
363
- var items, item, i, itemArr, discriminator;
364
- if (data) {
365
- obj = obj || new RunSystemDefinedChecksSpec();
366
- if (data.hasOwnProperty('sdaExtIds') && data.sdaExtIds !== null && data.sdaExtIds !== undefined) {
367
- itemArr = [];
368
- items = data.sdaExtIds;
369
- for (i = 0; i < items.length; i++) {
370
- itemArr.push(items[i]);
371
- }
372
- obj.setSdaExtIds(itemArr);
373
- }
374
- if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
375
- obj.setShouldAnonymize(data['shouldAnonymize']);
376
- }
377
- if (data.hasOwnProperty('shouldSendReportToConfiguredRecipients') && data.shouldSendReportToConfiguredRecipients !== null && data.shouldSendReportToConfiguredRecipients !== undefined) {
378
- obj.setShouldSendReportToConfiguredRecipients(data['shouldSendReportToConfiguredRecipients']);
379
- }
380
- if (data.hasOwnProperty('additionalRecipients') && data.additionalRecipients !== null && data.additionalRecipients !== undefined) {
381
- itemArr = [];
382
- items = data.additionalRecipients;
383
- for (i = 0; i < items.length; i++) {
384
- itemArr.push(items[i]);
385
- }
386
- obj.setAdditionalRecipients(itemArr);
387
- }
388
- if (data.hasOwnProperty('nodeIps') && data.nodeIps !== null && data.nodeIps !== undefined) {
389
- itemArr = [];
390
- items = data.nodeIps;
391
- for (i = 0; i < items.length; i++) {
392
- item = _IPv4Address["default"].constructFromObject(items[i], undefined);
393
- itemArr.push(item);
394
- }
395
- obj.setNodeIps(itemArr);
396
- }
397
- if (data.hasOwnProperty('shouldRunAllChecks') && data.shouldRunAllChecks !== null && data.shouldRunAllChecks !== undefined) {
398
- obj.setShouldRunAllChecks(data['shouldRunAllChecks']);
399
- }
400
- if (data.hasOwnProperty('$reserved')) {
401
- obj.$reserved = data['$reserved'];
402
- }
403
- if (data.hasOwnProperty('$objectType')) {
404
- obj.$objectType = data['$objectType'];
405
- }
406
- if (data.hasOwnProperty('$unknownFields')) {
407
- obj.$unknownFields = data['$unknownFields'];
408
- }
409
- if (!callFromChild) {
410
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
411
- for (var property in data) {
412
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
413
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
414
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
415
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
416
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
417
- obj.$unknownFields[property] = data[property];
418
- }
419
- }
420
- }
371
+ if (property === "$reserved") {
372
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
373
+ return new _ValidationError.default("$reserved", "undefined or null");
421
374
  }
422
- return obj;
423
375
  }
424
-
425
- /**
426
- * Converts a given snake_case string to camelCase.
427
- * @param {string} snakeStr - The input string in snake_case format.
428
- * @returns {string} - The converted string in camelCase format.
429
- */
430
- }, {
431
- key: "snakeToCamel",
432
- value: function snakeToCamel(snakeStr) {
433
- return snakeStr.replace(/(_\w)/g, function (match) {
434
- return match[1].toUpperCase();
435
- });
376
+ if (property === "$objectType") {
377
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
378
+ return new _ValidationError.default("$objectType", "undefined or null");
379
+ }
380
+ }
381
+ if (property === "$unknownFields") {
382
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
383
+ return new _ValidationError.default("$unknownFields", "undefined or null");
384
+ }
436
385
  }
437
- }]);
438
- }();
386
+ return new _ValidationError.default(property, "no such property exists");
387
+ }
388
+ }
389
+
439
390
  /**
440
391
  * List of Check IDs to be executed. This field cannot be set simultaneously with shouldRunAllChecks; only one of them should be specified.
441
392
  * @memberof RunSystemDefinedChecksSpec
442
393
  */
394
+ exports.default = RunSystemDefinedChecksSpec;
443
395
  function _toJsonMapType(obj, forMutation) {
444
396
  if (obj instanceof Map) {
445
- return Object.fromEntries(Array.from(obj, function (_ref) {
446
- var _ref2 = _slicedToArray(_ref, 2),
447
- k = _ref2[0],
448
- v = _ref2[1];
449
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
450
- }));
451
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
452
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
397
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
398
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
399
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
453
400
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
454
401
  }));
455
402
  }
@@ -477,14 +424,14 @@ RunSystemDefinedChecksSpec.prototype.sdaExtIds = undefined;
477
424
  RunSystemDefinedChecksSpec.prototype.shouldAnonymize = true;
478
425
 
479
426
  /**
480
- * Determines if the run summary should be sent to the configured email address associated with the cluster.
427
+ * Determines if the run summary should be sent to the configured email address associated with the cluster. Either this should be true or additionalRecipients should be provided. If both are set then email would be sent to all the recipients.
481
428
  * @memberof RunSystemDefinedChecksSpec
482
429
  * @default true
483
430
  */
484
431
  RunSystemDefinedChecksSpec.prototype.shouldSendReportToConfiguredRecipients = true;
485
432
 
486
433
  /**
487
- * A list of additional email addresses for sending the check run summary.
434
+ * A list of additional email addresses for sending the run summary. Either this should be set or shouldSendReportToConfiguredRecipients should be true. If both are set then email would be sent to all the recipients.
488
435
  * @memberof RunSystemDefinedChecksSpec
489
436
  */
490
437
  RunSystemDefinedChecksSpec.prototype.additionalRecipients = undefined;