@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,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
7
- var _TenantAwareModel2 = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
6
+ exports.default = void 0;
7
+ var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
8
8
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
9
9
  var _ImpactType = _interopRequireDefault(require("../common/ImpactType"));
10
10
  var _ClusterConfig = _interopRequireDefault(require("./ClusterConfig"));
@@ -16,38 +16,16 @@ var _SdaType = _interopRequireDefault(require("./SdaType"));
16
16
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
17
17
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
18
18
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
19
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
20
- 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); }
21
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
22
- 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."); }
23
- 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; } }
24
- 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; }
25
- 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; } }
26
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
27
- 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; }
28
- 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; }
29
- 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; }
30
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
31
- 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); } }
32
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
33
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
34
- 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); }
35
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
36
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
37
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
38
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
39
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
40
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
41
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
19
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
42
20
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
43
21
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
44
22
  * Nutanix Monitoring APIs
45
23
  *
46
- * OpenAPI spec version: 4.1.1
24
+ * OpenAPI spec version: 4.2.2
47
25
  *
48
26
  * NOTE: This class is auto generated by the Open API Dev Platform.
49
27
  *
50
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
28
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
51
29
  *
52
30
  * Do not edit the class manually.
53
31
  *
@@ -55,37 +33,34 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
55
33
  /**
56
34
  * The SystemDefinedPolicy model module.
57
35
  * @module Ntnx/SystemDefinedPolicy
58
- * @version 4.1.1
36
+ * @version 4.2.2
59
37
  * @class SystemDefinedPolicy
60
38
  * @extends TenantAwareModel
61
39
  */
62
40
  var _SystemDefinedPolicy_brand = /*#__PURE__*/new WeakSet();
63
- var SystemDefinedPolicy = exports["default"] = /*#__PURE__*/function (_TenantAwareModel) {
41
+ class SystemDefinedPolicy extends _TenantAwareModel.default {
64
42
  /**
65
43
  * Constructs a new <code>SystemDefinedPolicy</code>.
66
44
  * Attributes of System-Defined Alert Policy across all clusters.
67
45
  * @alias module:Ntnx/SystemDefinedPolicy
68
46
  * @extends module:Ntnx/TenantAwareModel
69
47
  */
70
- function SystemDefinedPolicy() {
71
- var _this;
72
- _classCallCheck(this, SystemDefinedPolicy);
73
- _this = _callSuper(this, SystemDefinedPolicy);
48
+ constructor() {
49
+ super();
74
50
  /*
75
51
  * toJson method for a map type which supports map with primitive keys and values of object types
76
52
  * @param {Object} obj
77
53
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
78
54
  * Otherwise, just returns the input object.
79
55
  */
80
- _classPrivateMethodInitSpec(_this, _SystemDefinedPolicy_brand);
81
- _this.$objectType = "monitoring.v4.serviceability.SystemDefinedPolicy";
56
+ _classPrivateMethodInitSpec(this, _SystemDefinedPolicy_brand);
57
+ this.$objectType = "monitoring.v4.serviceability.SystemDefinedPolicy";
82
58
  /** @type {object<string, any>} */
83
- _this.$reserved = {
84
- '$fv': "v4.r1"
59
+ this.$reserved = {
60
+ '$fv': "v4.r2"
85
61
  };
86
62
  /** @type {object<string, any>} */
87
- _this.$unknownFields = {};
88
- return _this;
63
+ this.$unknownFields = {};
89
64
  }
90
65
 
91
66
  /**
@@ -96,699 +71,648 @@ var SystemDefinedPolicy = exports["default"] = /*#__PURE__*/function (_TenantAwa
96
71
  * @param callFromChild {Boolean} Flag to recognise calling instance
97
72
  * @return {module:Ntnx/SystemDefinedPolicy} The populated <code>SystemDefinedPolicy</code> instance.
98
73
  */
99
- _inherits(SystemDefinedPolicy, _TenantAwareModel);
100
- return _createClass(SystemDefinedPolicy, [{
101
- key: "getExtId",
102
- value:
103
- /**
104
- * Returns Unique ID of the System-Defined Alert Policy.
105
- * @return {string}
106
- */
107
- function getExtId() {
108
- return this.extId;
74
+ static constructFromObject(data, obj = null, callFromChild = false) {
75
+ let items, item, i, itemArr, discriminator;
76
+ if (data) {
77
+ obj = obj || new SystemDefinedPolicy();
78
+ _TenantAwareModel.default.constructFromObject(data, obj, true);
79
+ if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {
80
+ obj.setExtId(data['extId']);
81
+ }
82
+ if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {
83
+ itemArr = [];
84
+ items = data.links;
85
+ for (i = 0; i < items.length; i++) {
86
+ item = _ApiLink.default.constructFromObject(items[i], undefined);
87
+ itemArr.push(item);
88
+ }
89
+ obj.setLinks(itemArr);
90
+ }
91
+ if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
92
+ obj.setName(data['name']);
93
+ }
94
+ if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
95
+ obj.setDescription(data['description']);
96
+ }
97
+ if (data.hasOwnProperty('policyId') && data.policyId !== null && data.policyId !== undefined) {
98
+ obj.setPolicyId(data['policyId']);
99
+ }
100
+ if (data.hasOwnProperty('title') && data.title !== null && data.title !== undefined) {
101
+ obj.setTitle(data['title']);
102
+ }
103
+ if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
104
+ obj.setType(_SdaType.default.constructFromObject(data['type']));
105
+ }
106
+ if (data.hasOwnProperty('subType') && data.subType !== null && data.subType !== undefined) {
107
+ obj.setSubType(_SdaSubType.default.constructFromObject(data['subType']));
108
+ }
109
+ if (data.hasOwnProperty('scope') && data.scope !== null && data.scope !== undefined) {
110
+ obj.setScope(_Scope.default.constructFromObject(data['scope']));
111
+ }
112
+ if (data.hasOwnProperty('entityType') && data.entityType !== null && data.entityType !== undefined) {
113
+ obj.setEntityType(_EntityType.default.constructFromObject(data['entityType']));
114
+ }
115
+ if (data.hasOwnProperty('classifications') && data.classifications !== null && data.classifications !== undefined) {
116
+ itemArr = [];
117
+ items = data.classifications;
118
+ for (i = 0; i < items.length; i++) {
119
+ itemArr.push(items[i]);
120
+ }
121
+ obj.setClassifications(itemArr);
122
+ }
123
+ if (data.hasOwnProperty('impactTypes') && data.impactTypes !== null && data.impactTypes !== undefined) {
124
+ itemArr = [];
125
+ items = data.impactTypes;
126
+ for (i = 0; i < items.length; i++) {
127
+ item = _ImpactType.default.constructFromObject(items[i], undefined);
128
+ itemArr.push(item);
129
+ }
130
+ obj.setImpactTypes(itemArr);
131
+ }
132
+ if (data.hasOwnProperty('kbArticles') && data.kbArticles !== null && data.kbArticles !== undefined) {
133
+ itemArr = [];
134
+ items = data.kbArticles;
135
+ for (i = 0; i < items.length; i++) {
136
+ itemArr.push(items[i]);
137
+ }
138
+ obj.setKbArticles(itemArr);
139
+ }
140
+ if (data.hasOwnProperty('targetClusters') && data.targetClusters !== null && data.targetClusters !== undefined) {
141
+ itemArr = [];
142
+ items = data.targetClusters;
143
+ for (i = 0; i < items.length; i++) {
144
+ item = _ClusterType.default.constructFromObject(items[i], undefined);
145
+ itemArr.push(item);
146
+ }
147
+ obj.setTargetClusters(itemArr);
148
+ }
149
+ if (data.hasOwnProperty('publisher') && data.publisher !== null && data.publisher !== undefined) {
150
+ obj.setPublisher(data['publisher']);
151
+ }
152
+ if (data.hasOwnProperty('clusterConfigs') && data.clusterConfigs !== null && data.clusterConfigs !== undefined) {
153
+ itemArr = [];
154
+ items = data.clusterConfigs;
155
+ for (i = 0; i < items.length; i++) {
156
+ item = _ClusterConfig.default.constructFromObject(items[i], undefined);
157
+ itemArr.push(item);
158
+ }
159
+ obj.setClusterConfigs(itemArr);
160
+ }
161
+ if (!callFromChild) {
162
+ obj.$unknownFields = {
163
+ ...data.$unknownFields
164
+ };
165
+ for (const property in data) {
166
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
167
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
168
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
169
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
170
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
171
+ obj.$unknownFields[property] = data[property];
172
+ }
173
+ }
174
+ }
109
175
  }
176
+ return obj;
177
+ }
110
178
 
111
- /**
112
- * Sets Unique ID of the System-Defined Alert Policy.
113
- * @param {string} extId Unique ID of the System-Defined Alert Policy.
114
- */
115
- }, {
116
- key: "setExtId",
117
- value: function setExtId(extId) {
118
- this.extId = extId;
119
- }
179
+ /**
180
+ * Converts a given snake_case string to camelCase.
181
+ * @param {string} snakeStr - The input string in snake_case format.
182
+ * @returns {string} - The converted string in camelCase format.
183
+ */
184
+ static snakeToCamel(snakeStr) {
185
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
186
+ }
120
187
 
121
- /**
122
- * Returns A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
123
- * @return {ApiLink[]}
124
- */
125
- }, {
126
- key: "getLinks",
127
- value: function getLinks() {
128
- return this.links;
129
- }
188
+ /**
189
+ * Returns Unique ID of the System-Defined Alert Policy.
190
+ * @return {string}
191
+ */
192
+ getExtId() {
193
+ return this.extId;
194
+ }
130
195
 
131
- /**
132
- * Sets A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
133
- * @param {ApiLink[]} links A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
134
- */
135
- }, {
136
- key: "setLinks",
137
- value: function setLinks(links) {
138
- this.links = links;
139
- }
196
+ /**
197
+ * Sets Unique ID of the System-Defined Alert Policy.
198
+ * @param {string} extId Unique ID of the System-Defined Alert Policy.
199
+ */
200
+ setExtId(extId) {
201
+ this.extId = extId;
202
+ }
140
203
 
141
- /**
142
- * Returns Name of the System-Defined Alert Policy.
143
- * @return {string}
144
- */
145
- }, {
146
- key: "getName",
147
- value: function getName() {
148
- return this.name;
149
- }
204
+ /**
205
+ * Returns A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
206
+ * @return {ApiLink[]}
207
+ */
208
+ getLinks() {
209
+ return this.links;
210
+ }
150
211
 
151
- /**
152
- * Sets Name of the System-Defined Alert Policy.
153
- * @param {string} name Name of the System-Defined Alert Policy.
154
- */
155
- }, {
156
- key: "setName",
157
- value: function setName(name) {
158
- this.name = name;
159
- }
212
+ /**
213
+ * Sets A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
214
+ * @param {ApiLink[]} links A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
215
+ */
216
+ setLinks(links) {
217
+ this.links = links;
218
+ }
160
219
 
161
- /**
162
- * Returns System-defined alert policy description.
163
- * @return {string}
164
- */
165
- }, {
166
- key: "getDescription",
167
- value: function getDescription() {
168
- return this.description;
169
- }
220
+ /**
221
+ * Returns Name of the System-Defined Alert Policy.
222
+ * @return {string}
223
+ */
224
+ getName() {
225
+ return this.name;
226
+ }
170
227
 
171
- /**
172
- * Sets System-defined alert policy description.
173
- * @param {string} description System-defined alert policy description.
174
- */
175
- }, {
176
- key: "setDescription",
177
- value: function setDescription(description) {
178
- this.description = description;
179
- }
228
+ /**
229
+ * Sets Name of the System-Defined Alert Policy.
230
+ * @param {string} name Name of the System-Defined Alert Policy.
231
+ */
232
+ setName(name) {
233
+ this.name = name;
234
+ }
180
235
 
181
- /**
182
- * Returns Unique ID associated with the policy.
183
- * @return {string}
184
- */
185
- }, {
186
- key: "getPolicyId",
187
- value: function getPolicyId() {
188
- return this.policyId;
189
- }
236
+ /**
237
+ * Returns System-defined alert policy description.
238
+ * @return {string}
239
+ */
240
+ getDescription() {
241
+ return this.description;
242
+ }
190
243
 
191
- /**
192
- * Sets Unique ID associated with the policy.
193
- * @param {string} policyId Unique ID associated with the policy.
194
- */
195
- }, {
196
- key: "setPolicyId",
197
- value: function setPolicyId(policyId) {
198
- this.policyId = policyId;
199
- }
244
+ /**
245
+ * Sets System-defined alert policy description.
246
+ * @param {string} description System-defined alert policy description.
247
+ */
248
+ setDescription(description) {
249
+ this.description = description;
250
+ }
200
251
 
201
- /**
202
- * Returns Title of a System-Defined Alert Policy.
203
- * @return {string}
204
- */
205
- }, {
206
- key: "getTitle",
207
- value: function getTitle() {
208
- return this.title;
209
- }
252
+ /**
253
+ * Returns Unique ID associated with the policy.
254
+ * @return {string}
255
+ */
256
+ getPolicyId() {
257
+ return this.policyId;
258
+ }
210
259
 
211
- /**
212
- * Sets Title of a System-Defined Alert Policy.
213
- * @param {string} title Title of a System-Defined Alert Policy.
214
- */
215
- }, {
216
- key: "setTitle",
217
- value: function setTitle(title) {
218
- this.title = title;
219
- }
260
+ /**
261
+ * Sets Unique ID associated with the policy.
262
+ * @param {string} policyId Unique ID associated with the policy.
263
+ */
264
+ setPolicyId(policyId) {
265
+ this.policyId = policyId;
266
+ }
220
267
 
221
- /**
222
- * @return {SdaType}
223
- */
224
- }, {
225
- key: "getType",
226
- value: function getType() {
227
- return this.type;
228
- }
268
+ /**
269
+ * Returns Title of a System-Defined Alert Policy.
270
+ * @return {string}
271
+ */
272
+ getTitle() {
273
+ return this.title;
274
+ }
229
275
 
230
- /**
231
- * @param {SdaType} type
232
- */
233
- }, {
234
- key: "setType",
235
- value: function setType(type) {
236
- this.type = type;
237
- }
276
+ /**
277
+ * Sets Title of a System-Defined Alert Policy.
278
+ * @param {string} title Title of a System-Defined Alert Policy.
279
+ */
280
+ setTitle(title) {
281
+ this.title = title;
282
+ }
238
283
 
239
- /**
240
- * @return {SdaSubType}
241
- */
242
- }, {
243
- key: "getSubType",
244
- value: function getSubType() {
245
- return this.subType;
246
- }
284
+ /**
285
+ * @return {SdaType}
286
+ */
287
+ getType() {
288
+ return this.type;
289
+ }
247
290
 
248
- /**
249
- * @param {SdaSubType} subType
250
- */
251
- }, {
252
- key: "setSubType",
253
- value: function setSubType(subType) {
254
- this.subType = subType;
255
- }
291
+ /**
292
+ * @param {SdaType} type
293
+ */
294
+ setType(type) {
295
+ this.type = type;
296
+ }
256
297
 
257
- /**
258
- * @return {Scope}
259
- */
260
- }, {
261
- key: "getScope",
262
- value: function getScope() {
263
- return this.scope;
264
- }
298
+ /**
299
+ * @return {SdaSubType}
300
+ */
301
+ getSubType() {
302
+ return this.subType;
303
+ }
265
304
 
266
- /**
267
- * @param {Scope} scope
268
- */
269
- }, {
270
- key: "setScope",
271
- value: function setScope(scope) {
272
- this.scope = scope;
273
- }
305
+ /**
306
+ * @param {SdaSubType} subType
307
+ */
308
+ setSubType(subType) {
309
+ this.subType = subType;
310
+ }
274
311
 
275
- /**
276
- * @return {EntityType}
277
- */
278
- }, {
279
- key: "getEntityType",
280
- value: function getEntityType() {
281
- return this.entityType;
282
- }
312
+ /**
313
+ * @return {Scope}
314
+ */
315
+ getScope() {
316
+ return this.scope;
317
+ }
283
318
 
284
- /**
285
- * @param {EntityType} entityType
286
- */
287
- }, {
288
- key: "setEntityType",
289
- value: function setEntityType(entityType) {
290
- this.entityType = entityType;
291
- }
319
+ /**
320
+ * @param {Scope} scope
321
+ */
322
+ setScope(scope) {
323
+ this.scope = scope;
324
+ }
292
325
 
293
- /**
294
- * Returns Various categories into which this alert type can be classified. For example, hardware, storage, or license.
295
- * @return {string[]}
296
- */
297
- }, {
298
- key: "getClassifications",
299
- value: function getClassifications() {
300
- return this.classifications;
301
- }
326
+ /**
327
+ * @return {EntityType}
328
+ */
329
+ getEntityType() {
330
+ return this.entityType;
331
+ }
302
332
 
303
- /**
304
- * Sets Various categories into which this alert type can be classified. For example, hardware, storage, or license.
305
- * @param {string[]} classifications Various categories into which this alert type can be classified. For example, hardware, storage, or license.
306
- */
307
- }, {
308
- key: "setClassifications",
309
- value: function setClassifications(classifications) {
310
- this.classifications = classifications;
311
- }
333
+ /**
334
+ * @param {EntityType} entityType
335
+ */
336
+ setEntityType(entityType) {
337
+ this.entityType = entityType;
338
+ }
312
339
 
313
- /**
314
- * Returns Impact types to which this rule applies.
315
- * @return {ImpactType[]}
316
- */
317
- }, {
318
- key: "getImpactTypes",
319
- value: function getImpactTypes() {
320
- return this.impactTypes;
321
- }
340
+ /**
341
+ * Returns Various categories into which this alert type can be classified. For example, hardware, storage, or license.
342
+ * @return {string[]}
343
+ */
344
+ getClassifications() {
345
+ return this.classifications;
346
+ }
322
347
 
323
- /**
324
- * Sets Impact types to which this rule applies.
325
- * @param {ImpactType[]} impactTypes Impact types to which this rule applies.
326
- */
327
- }, {
328
- key: "setImpactTypes",
329
- value: function setImpactTypes(impactTypes) {
330
- this.impactTypes = impactTypes;
331
- }
348
+ /**
349
+ * Sets Various categories into which this alert type can be classified. For example, hardware, storage, or license.
350
+ * @param {string[]} classifications Various categories into which this alert type can be classified. For example, hardware, storage, or license.
351
+ */
352
+ setClassifications(classifications) {
353
+ this.classifications = classifications;
354
+ }
332
355
 
333
- /**
334
- * Returns List of knowledge base article numbers.
335
- * @return {string[]}
336
- */
337
- }, {
338
- key: "getKbArticles",
339
- value: function getKbArticles() {
340
- return this.kbArticles;
341
- }
356
+ /**
357
+ * Returns Impact types to which this rule applies.
358
+ * @return {ImpactType[]}
359
+ */
360
+ getImpactTypes() {
361
+ return this.impactTypes;
362
+ }
342
363
 
343
- /**
344
- * Sets List of knowledge base article numbers.
345
- * @param {string[]} kbArticles List of knowledge base article numbers.
346
- */
347
- }, {
348
- key: "setKbArticles",
349
- value: function setKbArticles(kbArticles) {
350
- this.kbArticles = kbArticles;
351
- }
364
+ /**
365
+ * Sets Impact types to which this rule applies.
366
+ * @param {ImpactType[]} impactTypes Impact types to which this rule applies.
367
+ */
368
+ setImpactTypes(impactTypes) {
369
+ this.impactTypes = impactTypes;
370
+ }
352
371
 
353
- /**
354
- * Returns Indicates the cluster type against which this policy can be executed.
355
- * @return {ClusterType[]}
356
- */
357
- }, {
358
- key: "getTargetClusters",
359
- value: function getTargetClusters() {
360
- return this.targetClusters;
361
- }
372
+ /**
373
+ * Returns List of knowledge base article links.
374
+ * @return {string[]}
375
+ */
376
+ getKbArticles() {
377
+ return this.kbArticles;
378
+ }
362
379
 
363
- /**
364
- * Sets Indicates the cluster type against which this policy can be executed.
365
- * @param {ClusterType[]} targetClusters Indicates the cluster type against which this policy can be executed.
366
- */
367
- }, {
368
- key: "setTargetClusters",
369
- value: function setTargetClusters(targetClusters) {
370
- this.targetClusters = targetClusters;
371
- }
380
+ /**
381
+ * Sets List of knowledge base article links.
382
+ * @param {string[]} kbArticles List of knowledge base article links.
383
+ */
384
+ setKbArticles(kbArticles) {
385
+ this.kbArticles = kbArticles;
386
+ }
372
387
 
373
- /**
374
- * Returns Publisher of the policy. For example, NCC for all health check policies.
375
- * @return {string}
376
- */
377
- }, {
378
- key: "getPublisher",
379
- value: function getPublisher() {
380
- return this.publisher;
381
- }
388
+ /**
389
+ * Returns Indicates the cluster type against which this policy can be executed.
390
+ * @return {ClusterType[]}
391
+ */
392
+ getTargetClusters() {
393
+ return this.targetClusters;
394
+ }
382
395
 
383
- /**
384
- * Sets Publisher of the policy. For example, NCC for all health check policies.
385
- * @param {string} publisher Publisher of the policy. For example, NCC for all health check policies.
386
- */
387
- }, {
388
- key: "setPublisher",
389
- value: function setPublisher(publisher) {
390
- this.publisher = publisher;
391
- }
396
+ /**
397
+ * Sets Indicates the cluster type against which this policy can be executed.
398
+ * @param {ClusterType[]} targetClusters Indicates the cluster type against which this policy can be executed.
399
+ */
400
+ setTargetClusters(targetClusters) {
401
+ this.targetClusters = targetClusters;
402
+ }
392
403
 
393
- /**
394
- * Returns SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
395
- * @return {ClusterConfig[]}
396
- */
397
- }, {
398
- key: "getClusterConfigs",
399
- value: function getClusterConfigs() {
400
- return this.clusterConfigs;
401
- }
404
+ /**
405
+ * Returns Publisher of the policy. For example, NCC for all health check policies.
406
+ * @return {string}
407
+ */
408
+ getPublisher() {
409
+ return this.publisher;
410
+ }
402
411
 
403
- /**
404
- * Sets SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
405
- * @param {ClusterConfig[]} clusterConfigs SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
406
- */
407
- }, {
408
- key: "setClusterConfigs",
409
- value: function setClusterConfigs(clusterConfigs) {
410
- this.clusterConfigs = clusterConfigs;
411
- }
412
- }, {
413
- key: "toJson",
414
- value: function toJson(forMutation) {
415
- if (forMutation === false) {
416
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
412
+ /**
413
+ * Sets Publisher of the policy. For example, NCC for all health check policies.
414
+ * @param {string} publisher Publisher of the policy. For example, NCC for all health check policies.
415
+ */
416
+ setPublisher(publisher) {
417
+ this.publisher = publisher;
418
+ }
419
+
420
+ /**
421
+ * Returns SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
422
+ * @return {ClusterConfig[]}
423
+ */
424
+ getClusterConfigs() {
425
+ return this.clusterConfigs;
426
+ }
427
+
428
+ /**
429
+ * Sets SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
430
+ * @param {ClusterConfig[]} clusterConfigs SDA policy parameters that may differ across clusters since each cluster can run on different NCC versions. Each cluster will have an individual entry.
431
+ */
432
+ setClusterConfigs(clusterConfigs) {
433
+ this.clusterConfigs = clusterConfigs;
434
+ }
435
+ toJson(forMutation) {
436
+ if (forMutation === false) {
437
+ return {
438
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
417
439
  'extId': this.getExtId()
418
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
419
- 'links': this.getLinks().map(function (item) {
420
- return item.toJson(false);
421
- })
422
- } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
440
+ } : {}),
441
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
442
+ 'links': this.getLinks().map(item => item.toJson(false))
443
+ } : {}),
444
+ ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
423
445
  'name': this.getName()
424
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
446
+ } : {}),
447
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
425
448
  'description': this.getDescription()
426
- } : {}), typeof this.getPolicyId() !== 'undefined' && this.getPolicyId() !== null ? {
449
+ } : {}),
450
+ ...(typeof this.getPolicyId() !== 'undefined' && this.getPolicyId() !== null ? {
427
451
  'policyId': this.getPolicyId()
428
- } : {}), typeof this.getTitle() !== 'undefined' && this.getTitle() !== null ? {
452
+ } : {}),
453
+ ...(typeof this.getTitle() !== 'undefined' && this.getTitle() !== null ? {
429
454
  'title': this.getTitle()
430
- } : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
455
+ } : {}),
456
+ ...(typeof this.getType() !== 'undefined' && this.getType() !== null ? {
431
457
  'type': this.getType()
432
- } : {}), typeof this.getSubType() !== 'undefined' && this.getSubType() !== null ? {
458
+ } : {}),
459
+ ...(typeof this.getSubType() !== 'undefined' && this.getSubType() !== null ? {
433
460
  'subType': this.getSubType()
434
- } : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
461
+ } : {}),
462
+ ...(typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
435
463
  'scope': this.getScope()
436
- } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
464
+ } : {}),
465
+ ...(typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
437
466
  'entityType': this.getEntityType()
438
- } : {}), typeof this.getClassifications() !== 'undefined' && this.getClassifications() !== null ? {
467
+ } : {}),
468
+ ...(typeof this.getClassifications() !== 'undefined' && this.getClassifications() !== null ? {
439
469
  'classifications': this.getClassifications()
440
- } : {}), typeof this.getImpactTypes() !== 'undefined' && this.getImpactTypes() !== null ? {
470
+ } : {}),
471
+ ...(typeof this.getImpactTypes() !== 'undefined' && this.getImpactTypes() !== null ? {
441
472
  'impactTypes': this.getImpactTypes()
442
- } : {}), typeof this.getKbArticles() !== 'undefined' && this.getKbArticles() !== null ? {
473
+ } : {}),
474
+ ...(typeof this.getKbArticles() !== 'undefined' && this.getKbArticles() !== null ? {
443
475
  'kbArticles': this.getKbArticles()
444
- } : {}), typeof this.getTargetClusters() !== 'undefined' && this.getTargetClusters() !== null ? {
476
+ } : {}),
477
+ ...(typeof this.getTargetClusters() !== 'undefined' && this.getTargetClusters() !== null ? {
445
478
  'targetClusters': this.getTargetClusters()
446
- } : {}), typeof this.getPublisher() !== 'undefined' && this.getPublisher() !== null ? {
479
+ } : {}),
480
+ ...(typeof this.getPublisher() !== 'undefined' && this.getPublisher() !== null ? {
447
481
  'publisher': this.getPublisher()
448
- } : {}), typeof this.getClusterConfigs() !== 'undefined' && this.getClusterConfigs() !== null ? {
449
- 'clusterConfigs': this.getClusterConfigs().map(function (item) {
450
- return item.toJson(false);
451
- })
452
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
482
+ } : {}),
483
+ ...(typeof this.getClusterConfigs() !== 'undefined' && this.getClusterConfigs() !== null ? {
484
+ 'clusterConfigs': this.getClusterConfigs().map(item => item.toJson(false))
485
+ } : {}),
486
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
453
487
  'tenantId': this.getTenantId()
454
- } : {}), {}, {
455
- '$reserved': this.get$Reserved(),
456
- '$objectType': this.get$ObjectType(),
457
- '$unknownFields': this.get$UnknownFields()
458
- });
459
- }
460
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
488
+ } : {}),
489
+ '$reserved': this.get$Reserved(),
490
+ '$objectType': this.get$ObjectType(),
491
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
492
+ '$unknownFields': {}
493
+ };
494
+ }
495
+ return {
496
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
461
497
  'extId': this.getExtId()
462
- } : {}), typeof this.getName() !== 'undefined' && this.getName() !== null ? {
498
+ } : {}),
499
+ ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
463
500
  'name': this.getName()
464
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
501
+ } : {}),
502
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
465
503
  'description': this.getDescription()
466
- } : {}), typeof this.getPolicyId() !== 'undefined' && this.getPolicyId() !== null ? {
504
+ } : {}),
505
+ ...(typeof this.getPolicyId() !== 'undefined' && this.getPolicyId() !== null ? {
467
506
  'policyId': this.getPolicyId()
468
- } : {}), typeof this.getTitle() !== 'undefined' && this.getTitle() !== null ? {
507
+ } : {}),
508
+ ...(typeof this.getTitle() !== 'undefined' && this.getTitle() !== null ? {
469
509
  'title': this.getTitle()
470
- } : {}), typeof this.getType() !== 'undefined' && this.getType() !== null ? {
510
+ } : {}),
511
+ ...(typeof this.getType() !== 'undefined' && this.getType() !== null ? {
471
512
  'type': this.getType()
472
- } : {}), typeof this.getSubType() !== 'undefined' && this.getSubType() !== null ? {
513
+ } : {}),
514
+ ...(typeof this.getSubType() !== 'undefined' && this.getSubType() !== null ? {
473
515
  'subType': this.getSubType()
474
- } : {}), typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
516
+ } : {}),
517
+ ...(typeof this.getScope() !== 'undefined' && this.getScope() !== null ? {
475
518
  'scope': this.getScope()
476
- } : {}), typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
519
+ } : {}),
520
+ ...(typeof this.getEntityType() !== 'undefined' && this.getEntityType() !== null ? {
477
521
  'entityType': this.getEntityType()
478
- } : {}), typeof this.getClassifications() !== 'undefined' && this.getClassifications() !== null ? {
522
+ } : {}),
523
+ ...(typeof this.getClassifications() !== 'undefined' && this.getClassifications() !== null ? {
479
524
  'classifications': this.getClassifications()
480
- } : {}), typeof this.getImpactTypes() !== 'undefined' && this.getImpactTypes() !== null ? {
525
+ } : {}),
526
+ ...(typeof this.getImpactTypes() !== 'undefined' && this.getImpactTypes() !== null ? {
481
527
  'impactTypes': this.getImpactTypes()
482
- } : {}), typeof this.getKbArticles() !== 'undefined' && this.getKbArticles() !== null ? {
528
+ } : {}),
529
+ ...(typeof this.getKbArticles() !== 'undefined' && this.getKbArticles() !== null ? {
483
530
  'kbArticles': this.getKbArticles()
484
- } : {}), typeof this.getTargetClusters() !== 'undefined' && this.getTargetClusters() !== null ? {
531
+ } : {}),
532
+ ...(typeof this.getTargetClusters() !== 'undefined' && this.getTargetClusters() !== null ? {
485
533
  'targetClusters': this.getTargetClusters()
486
- } : {}), typeof this.getPublisher() !== 'undefined' && this.getPublisher() !== null ? {
534
+ } : {}),
535
+ ...(typeof this.getPublisher() !== 'undefined' && this.getPublisher() !== null ? {
487
536
  'publisher': this.getPublisher()
488
- } : {}), typeof this.getClusterConfigs() !== 'undefined' && this.getClusterConfigs() !== null ? {
489
- 'clusterConfigs': this.getClusterConfigs().map(function (item) {
490
- return item.toJson(false);
491
- })
492
- } : {}), {}, {
493
- '$reserved': this.get$Reserved(),
494
- '$objectType': this.get$ObjectType(),
495
- '$unknownFields': this.get$UnknownFields()
496
- });
497
- }
498
- }, {
499
- key: "validate",
500
- value: function validate(scope, properties) {
501
- var _this2 = this;
502
- var propList = [];
503
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
504
- //cases validate() and validate(scope)
505
- propList = [];
506
- } else if (arguments.length === 1) {
507
- //case validate(properties)
508
- propList = arguments[0];
509
- scope = null;
537
+ } : {}),
538
+ ...(typeof this.getClusterConfigs() !== 'undefined' && this.getClusterConfigs() !== null ? {
539
+ 'clusterConfigs': this.getClusterConfigs().map(item => item.toJson(false))
540
+ } : {}),
541
+ '$reserved': this.get$Reserved(),
542
+ '$objectType': this.get$ObjectType(),
543
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
544
+ '$unknownFields': {}
545
+ };
546
+ }
547
+ validate(scope, properties) {
548
+ let propList = [];
549
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
550
+ //cases validate() and validate(scope)
551
+ propList = [];
552
+ } else if (arguments.length === 1) {
553
+ //case validate(properties)
554
+ propList = arguments[0];
555
+ scope = null;
556
+ } else {
557
+ //case validate(scope, properties)
558
+ propList = arguments[1];
559
+ }
560
+ let res = [];
561
+ let err = null;
562
+ propList.forEach(property => {
563
+ err = this.validateProperty(property, scope);
564
+ if (err) {
565
+ res.push(err);
566
+ }
567
+ });
568
+ return new Promise(function (resolve, reject) {
569
+ if (res.length !== 0) {
570
+ reject(err);
510
571
  } else {
511
- //case validate(scope, properties)
512
- propList = arguments[1];
513
- }
514
- var res = [];
515
- var err = null;
516
- propList.forEach(function (property) {
517
- err = _this2.validateProperty(property, scope);
518
- if (err) {
519
- res.push(err);
520
- }
521
- });
522
- return new Promise(function (resolve, reject) {
523
- if (res.length !== 0) {
524
- reject(err);
525
- } else {
526
- resolve();
527
- }
528
- });
572
+ resolve();
573
+ }
574
+ });
575
+ }
576
+ validateProperty(scope, property) {
577
+ if (property === "extId") {
578
+ if (typeof this.extId === 'undefined' || this.extId === null) {
579
+ return new _ValidationError.default("extId", "undefined or null");
580
+ }
581
+ if (!_ValidationUtils.default.validateMaxLength(this.extId, 100)) {
582
+ return new _ValidationError.default("extId", "does not satisfy required maxLength constraint: 100");
583
+ }
584
+ if (!_ValidationUtils.default.validatePattern(this.extId, /^\\d+$/)) {
585
+ return new _ValidationError.default("extId", "does not satisfy required pattern: /^\\d+$/");
586
+ }
529
587
  }
530
- }, {
531
- key: "validateProperty",
532
- value: function validateProperty(scope, property) {
533
- if (property === "extId") {
534
- if (typeof this.extId === 'undefined' || this.extId === null) {
535
- return new _ValidationError["default"]("extId", "undefined or null");
536
- }
537
- if (!_ValidationUtils["default"].validateMaxLength(this.extId, 100)) {
538
- return new _ValidationError["default"]("extId", "does not satisfy required maxLength constraint: 100");
539
- }
540
- if (!_ValidationUtils["default"].validatePattern(this.extId, /^\\d+$/)) {
541
- return new _ValidationError["default"]("extId", "does not satisfy required pattern: /^\\d+$/");
542
- }
588
+ if (property === "links") {
589
+ if (typeof this.links === 'undefined' || this.links === null) {
590
+ return new _ValidationError.default("links", "undefined or null");
543
591
  }
544
- if (property === "links") {
545
- if (typeof this.links === 'undefined' || this.links === null) {
546
- return new _ValidationError["default"]("links", "undefined or null");
547
- }
548
- if (!_ValidationUtils["default"].validateMaxItems(this.links, 20)) {
549
- return new _ValidationError["default"]("links", "does not satisfy required maxItems constraint: 20");
550
- }
592
+ if (!_ValidationUtils.default.validateMaxItems(this.links, 20)) {
593
+ return new _ValidationError.default("links", "does not satisfy required maxItems constraint: 20");
551
594
  }
552
- if (property === "name") {
553
- if (typeof this.name === 'undefined' || this.name === null) {
554
- return new _ValidationError["default"]("name", "undefined or null");
555
- }
556
- if (!_ValidationUtils["default"].validateMaxLength(this.name, 1000)) {
557
- return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 1000");
558
- }
595
+ }
596
+ if (property === "name") {
597
+ if (typeof this.name === 'undefined' || this.name === null) {
598
+ return new _ValidationError.default("name", "undefined or null");
559
599
  }
560
- if (property === "description") {
561
- if (typeof this.description === 'undefined' || this.description === null) {
562
- return new _ValidationError["default"]("description", "undefined or null");
563
- }
564
- if (!_ValidationUtils["default"].validateMaxLength(this.description, 400)) {
565
- return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 400");
566
- }
600
+ if (!_ValidationUtils.default.validateMaxLength(this.name, 1000)) {
601
+ return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 1000");
567
602
  }
568
- if (property === "policyId") {
569
- if (typeof this.policyId === 'undefined' || this.policyId === null) {
570
- return new _ValidationError["default"]("policyId", "undefined or null");
571
- }
572
- if (!_ValidationUtils["default"].validatePattern(this.policyId, /^{A}\\d+$/)) {
573
- return new _ValidationError["default"]("policyId", "does not satisfy required pattern: /^{A}\\d+$/");
574
- }
603
+ }
604
+ if (property === "description") {
605
+ if (typeof this.description === 'undefined' || this.description === null) {
606
+ return new _ValidationError.default("description", "undefined or null");
575
607
  }
576
- if (property === "title") {
577
- if (typeof this.title === 'undefined' || this.title === null) {
578
- return new _ValidationError["default"]("title", "undefined or null");
579
- }
580
- if (!_ValidationUtils["default"].validateMaxLength(this.title, 250)) {
581
- return new _ValidationError["default"]("title", "does not satisfy required maxLength constraint: 250");
582
- }
608
+ if (!_ValidationUtils.default.validateMaxLength(this.description, 400)) {
609
+ return new _ValidationError.default("description", "does not satisfy required maxLength constraint: 400");
583
610
  }
584
- if (property === "type") {
585
- if (typeof this.type === 'undefined' || this.type === null) {
586
- return new _ValidationError["default"]("type", "undefined or null");
587
- }
611
+ }
612
+ if (property === "policyId") {
613
+ if (typeof this.policyId === 'undefined' || this.policyId === null) {
614
+ return new _ValidationError.default("policyId", "undefined or null");
588
615
  }
589
- if (property === "subType") {
590
- if (typeof this.subType === 'undefined' || this.subType === null) {
591
- return new _ValidationError["default"]("subType", "undefined or null");
592
- }
616
+ if (!_ValidationUtils.default.validatePattern(this.policyId, /^{A}\\d+$/)) {
617
+ return new _ValidationError.default("policyId", "does not satisfy required pattern: /^{A}\\d+$/");
593
618
  }
594
- if (property === "scope") {
595
- if (typeof this.scope === 'undefined' || this.scope === null) {
596
- return new _ValidationError["default"]("scope", "undefined or null");
597
- }
619
+ }
620
+ if (property === "title") {
621
+ if (typeof this.title === 'undefined' || this.title === null) {
622
+ return new _ValidationError.default("title", "undefined or null");
598
623
  }
599
- if (property === "entityType") {
600
- if (typeof this.entityType === 'undefined' || this.entityType === null) {
601
- return new _ValidationError["default"]("entityType", "undefined or null");
602
- }
624
+ if (!_ValidationUtils.default.validateMaxLength(this.title, 250)) {
625
+ return new _ValidationError.default("title", "does not satisfy required maxLength constraint: 250");
603
626
  }
604
- if (property === "classifications") {
605
- if (typeof this.classifications === 'undefined' || this.classifications === null) {
606
- return new _ValidationError["default"]("classifications", "undefined or null");
607
- }
608
- if (!_ValidationUtils["default"].validateMaxItems(this.classifications, 15)) {
609
- return new _ValidationError["default"]("classifications", "does not satisfy required maxItems constraint: 15");
610
- }
627
+ }
628
+ if (property === "type") {
629
+ if (typeof this.type === 'undefined' || this.type === null) {
630
+ return new _ValidationError.default("type", "undefined or null");
611
631
  }
612
- if (property === "impactTypes") {
613
- if (typeof this.impactTypes === 'undefined' || this.impactTypes === null) {
614
- return new _ValidationError["default"]("impactTypes", "undefined or null");
615
- }
616
- if (!_ValidationUtils["default"].validateMaxItems(this.impactTypes, 8)) {
617
- return new _ValidationError["default"]("impactTypes", "does not satisfy required maxItems constraint: 8");
618
- }
632
+ }
633
+ if (property === "subType") {
634
+ if (typeof this.subType === 'undefined' || this.subType === null) {
635
+ return new _ValidationError.default("subType", "undefined or null");
619
636
  }
620
- if (property === "kbArticles") {
621
- if (typeof this.kbArticles === 'undefined' || this.kbArticles === null) {
622
- return new _ValidationError["default"]("kbArticles", "undefined or null");
623
- }
637
+ }
638
+ if (property === "scope") {
639
+ if (typeof this.scope === 'undefined' || this.scope === null) {
640
+ return new _ValidationError.default("scope", "undefined or null");
624
641
  }
625
- if (property === "targetClusters") {
626
- if (typeof this.targetClusters === 'undefined' || this.targetClusters === null) {
627
- return new _ValidationError["default"]("targetClusters", "undefined or null");
628
- }
629
- if (!_ValidationUtils["default"].validateMaxItems(this.targetClusters, 2)) {
630
- return new _ValidationError["default"]("targetClusters", "does not satisfy required maxItems constraint: 2");
631
- }
632
- if (!_ValidationUtils["default"].validateMinItems(this.targetClusters, 1)) {
633
- return new _ValidationError["default"]("targetClusters", "does not satisfy required minItems constraint: 1");
634
- }
642
+ }
643
+ if (property === "entityType") {
644
+ if (typeof this.entityType === 'undefined' || this.entityType === null) {
645
+ return new _ValidationError.default("entityType", "undefined or null");
635
646
  }
636
- if (property === "publisher") {
637
- if (typeof this.publisher === 'undefined' || this.publisher === null) {
638
- return new _ValidationError["default"]("publisher", "undefined or null");
639
- }
640
- if (!_ValidationUtils["default"].validateMinLength(this.publisher, 1)) {
641
- return new _ValidationError["default"]("publisher", "does not satisfy required minLength constraint: 1");
642
- }
647
+ }
648
+ if (property === "classifications") {
649
+ if (typeof this.classifications === 'undefined' || this.classifications === null) {
650
+ return new _ValidationError.default("classifications", "undefined or null");
643
651
  }
644
- if (property === "clusterConfigs") {
645
- if (typeof this.clusterConfigs === 'undefined' || this.clusterConfigs === null) {
646
- return new _ValidationError["default"]("clusterConfigs", "undefined or null");
647
- }
648
- if (!_ValidationUtils["default"].validateMaxItems(this.clusterConfigs, 350)) {
649
- return new _ValidationError["default"]("clusterConfigs", "does not satisfy required maxItems constraint: 350");
650
- }
651
- if (!_ValidationUtils["default"].validateMinItems(this.clusterConfigs, 1)) {
652
- return new _ValidationError["default"]("clusterConfigs", "does not satisfy required minItems constraint: 1");
653
- }
652
+ if (!_ValidationUtils.default.validateMaxItems(this.classifications, 15)) {
653
+ return new _ValidationError.default("classifications", "does not satisfy required maxItems constraint: 15");
654
654
  }
655
- return new _ValidationError["default"](property, "no such property exists");
656
655
  }
657
- }], [{
658
- key: "constructFromObject",
659
- value: function constructFromObject(data) {
660
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
661
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
662
- var items, item, i, itemArr, discriminator;
663
- if (data) {
664
- obj = obj || new SystemDefinedPolicy();
665
- _TenantAwareModel2["default"].constructFromObject(data, obj, true);
666
- if (data.hasOwnProperty('extId') && data.extId !== null && data.extId !== undefined) {
667
- obj.setExtId(data['extId']);
668
- }
669
- if (data.hasOwnProperty('links') && data.links !== null && data.links !== undefined) {
670
- itemArr = [];
671
- items = data.links;
672
- for (i = 0; i < items.length; i++) {
673
- item = _ApiLink["default"].constructFromObject(items[i], undefined);
674
- itemArr.push(item);
675
- }
676
- obj.setLinks(itemArr);
677
- }
678
- if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
679
- obj.setName(data['name']);
680
- }
681
- if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
682
- obj.setDescription(data['description']);
683
- }
684
- if (data.hasOwnProperty('policyId') && data.policyId !== null && data.policyId !== undefined) {
685
- obj.setPolicyId(data['policyId']);
686
- }
687
- if (data.hasOwnProperty('title') && data.title !== null && data.title !== undefined) {
688
- obj.setTitle(data['title']);
689
- }
690
- if (data.hasOwnProperty('type') && data.type !== null && data.type !== undefined) {
691
- obj.setType(_SdaType["default"].constructFromObject(data['type']));
692
- }
693
- if (data.hasOwnProperty('subType') && data.subType !== null && data.subType !== undefined) {
694
- obj.setSubType(_SdaSubType["default"].constructFromObject(data['subType']));
695
- }
696
- if (data.hasOwnProperty('scope') && data.scope !== null && data.scope !== undefined) {
697
- obj.setScope(_Scope["default"].constructFromObject(data['scope']));
698
- }
699
- if (data.hasOwnProperty('entityType') && data.entityType !== null && data.entityType !== undefined) {
700
- obj.setEntityType(_EntityType["default"].constructFromObject(data['entityType']));
701
- }
702
- if (data.hasOwnProperty('classifications') && data.classifications !== null && data.classifications !== undefined) {
703
- itemArr = [];
704
- items = data.classifications;
705
- for (i = 0; i < items.length; i++) {
706
- itemArr.push(items[i]);
707
- }
708
- obj.setClassifications(itemArr);
709
- }
710
- if (data.hasOwnProperty('impactTypes') && data.impactTypes !== null && data.impactTypes !== undefined) {
711
- itemArr = [];
712
- items = data.impactTypes;
713
- for (i = 0; i < items.length; i++) {
714
- item = _ImpactType["default"].constructFromObject(items[i], undefined);
715
- itemArr.push(item);
716
- }
717
- obj.setImpactTypes(itemArr);
718
- }
719
- if (data.hasOwnProperty('kbArticles') && data.kbArticles !== null && data.kbArticles !== undefined) {
720
- itemArr = [];
721
- items = data.kbArticles;
722
- for (i = 0; i < items.length; i++) {
723
- itemArr.push(items[i]);
724
- }
725
- obj.setKbArticles(itemArr);
726
- }
727
- if (data.hasOwnProperty('targetClusters') && data.targetClusters !== null && data.targetClusters !== undefined) {
728
- itemArr = [];
729
- items = data.targetClusters;
730
- for (i = 0; i < items.length; i++) {
731
- item = _ClusterType["default"].constructFromObject(items[i], undefined);
732
- itemArr.push(item);
733
- }
734
- obj.setTargetClusters(itemArr);
735
- }
736
- if (data.hasOwnProperty('publisher') && data.publisher !== null && data.publisher !== undefined) {
737
- obj.setPublisher(data['publisher']);
738
- }
739
- if (data.hasOwnProperty('clusterConfigs') && data.clusterConfigs !== null && data.clusterConfigs !== undefined) {
740
- itemArr = [];
741
- items = data.clusterConfigs;
742
- for (i = 0; i < items.length; i++) {
743
- item = _ClusterConfig["default"].constructFromObject(items[i], undefined);
744
- itemArr.push(item);
745
- }
746
- obj.setClusterConfigs(itemArr);
747
- }
748
- if (!callFromChild) {
749
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
750
- for (var property in data) {
751
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
752
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
753
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
754
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
755
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
756
- obj.$unknownFields[property] = data[property];
757
- }
758
- }
759
- }
656
+ if (property === "impactTypes") {
657
+ if (typeof this.impactTypes === 'undefined' || this.impactTypes === null) {
658
+ return new _ValidationError.default("impactTypes", "undefined or null");
659
+ }
660
+ if (!_ValidationUtils.default.validateMaxItems(this.impactTypes, 8)) {
661
+ return new _ValidationError.default("impactTypes", "does not satisfy required maxItems constraint: 8");
760
662
  }
761
- return obj;
762
663
  }
763
-
764
- /**
765
- * Converts a given snake_case string to camelCase.
766
- * @param {string} snakeStr - The input string in snake_case format.
767
- * @returns {string} - The converted string in camelCase format.
768
- */
769
- }, {
770
- key: "snakeToCamel",
771
- value: function snakeToCamel(snakeStr) {
772
- return snakeStr.replace(/(_\w)/g, function (match) {
773
- return match[1].toUpperCase();
774
- });
664
+ if (property === "kbArticles") {
665
+ if (typeof this.kbArticles === 'undefined' || this.kbArticles === null) {
666
+ return new _ValidationError.default("kbArticles", "undefined or null");
667
+ }
668
+ if (!_ValidationUtils.default.validateMaxItems(this.kbArticles, 10)) {
669
+ return new _ValidationError.default("kbArticles", "does not satisfy required maxItems constraint: 10");
670
+ }
775
671
  }
776
- }]);
777
- }(_TenantAwareModel2["default"]);
672
+ if (property === "targetClusters") {
673
+ if (typeof this.targetClusters === 'undefined' || this.targetClusters === null) {
674
+ return new _ValidationError.default("targetClusters", "undefined or null");
675
+ }
676
+ if (!_ValidationUtils.default.validateMaxItems(this.targetClusters, 2)) {
677
+ return new _ValidationError.default("targetClusters", "does not satisfy required maxItems constraint: 2");
678
+ }
679
+ if (!_ValidationUtils.default.validateMinItems(this.targetClusters, 1)) {
680
+ return new _ValidationError.default("targetClusters", "does not satisfy required minItems constraint: 1");
681
+ }
682
+ }
683
+ if (property === "publisher") {
684
+ if (typeof this.publisher === 'undefined' || this.publisher === null) {
685
+ return new _ValidationError.default("publisher", "undefined or null");
686
+ }
687
+ if (!_ValidationUtils.default.validateMinLength(this.publisher, 1)) {
688
+ return new _ValidationError.default("publisher", "does not satisfy required minLength constraint: 1");
689
+ }
690
+ }
691
+ if (property === "clusterConfigs") {
692
+ if (typeof this.clusterConfigs === 'undefined' || this.clusterConfigs === null) {
693
+ return new _ValidationError.default("clusterConfigs", "undefined or null");
694
+ }
695
+ if (!_ValidationUtils.default.validateMaxItems(this.clusterConfigs, 350)) {
696
+ return new _ValidationError.default("clusterConfigs", "does not satisfy required maxItems constraint: 350");
697
+ }
698
+ if (!_ValidationUtils.default.validateMinItems(this.clusterConfigs, 1)) {
699
+ return new _ValidationError.default("clusterConfigs", "does not satisfy required minItems constraint: 1");
700
+ }
701
+ }
702
+ return new _ValidationError.default(property, "no such property exists");
703
+ }
704
+ }
705
+
778
706
  /**
779
707
  * Unique ID of the System-Defined Alert Policy.
780
708
  * @memberof SystemDefinedPolicy
781
709
  */
710
+ exports.default = SystemDefinedPolicy;
782
711
  function _toJsonMapType(obj, forMutation) {
783
712
  if (obj instanceof Map) {
784
- return Object.fromEntries(Array.from(obj, function (_ref) {
785
- var _ref2 = _slicedToArray(_ref, 2),
786
- k = _ref2[0],
787
- v = _ref2[1];
788
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
789
- }));
790
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
791
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
713
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
714
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
715
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
792
716
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
793
717
  }));
794
718
  }
@@ -871,7 +795,7 @@ SystemDefinedPolicy.prototype.classifications = undefined;
871
795
  SystemDefinedPolicy.prototype.impactTypes = undefined;
872
796
 
873
797
  /**
874
- * List of knowledge base article numbers.
798
+ * List of knowledge base article links.
875
799
  * @memberof SystemDefinedPolicy
876
800
  */
877
801
  SystemDefinedPolicy.prototype.kbArticles = undefined;
@@ -900,5 +824,5 @@ SystemDefinedPolicy.prototype.clusterConfigs = undefined;
900
824
  * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
901
825
  * @memberof SystemDefinedPolicy
902
826
  */
903
- _TenantAwareModel2["default"].prototype.tenantId = undefined;
827
+ _TenantAwareModel.default.prototype.tenantId = undefined;
904
828
  // Implement OneOfmonitoring.v4.serviceability.GetSdaPolicyApiResponsedata interface: