@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,38 +3,24 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
  var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
8
8
  var _ArchiveOpts = _interopRequireDefault(require("./ArchiveOpts"));
9
+ var _TagOpts = _interopRequireDefault(require("./TagOpts"));
9
10
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
10
11
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
11
12
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
14
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
15
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
23
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
24
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
25
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
26
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
28
14
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
29
15
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
30
16
  function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
31
17
  * Nutanix Monitoring APIs
32
18
  *
33
- * OpenAPI spec version: 4.1.1
19
+ * OpenAPI spec version: 4.2.2
34
20
  *
35
21
  * NOTE: This class is auto generated by the Open API Dev Platform.
36
22
  *
37
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
23
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
38
24
  *
39
25
  * Do not edit the class manually.
40
26
  *
@@ -42,7 +28,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
42
28
  /**
43
29
  * The LogCollectionSpec model module.
44
30
  * @module Ntnx/LogCollectionSpec
45
- * @version 4.1.1
31
+ * @version 4.2.2
46
32
  * @class LogCollectionSpec
47
33
  *
48
34
  * @param { Date } startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
@@ -52,7 +38,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
52
38
  * @param { ArchiveOpts } archiveOpts
53
39
  */
54
40
  var _LogCollectionSpec_brand = /*#__PURE__*/new WeakSet();
55
- var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
41
+ class LogCollectionSpec {
56
42
  /**
57
43
  * Constructs a new <code>LogCollectionSpec</code>.
58
44
  * Input parameters for collecting logs.
@@ -64,8 +50,7 @@ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
64
50
  *
65
51
  * @param { ArchiveOpts } archiveOpts
66
52
  */
67
- function LogCollectionSpec(startTime, endTime, archiveOpts) {
68
- _classCallCheck(this, LogCollectionSpec);
53
+ constructor(startTime, endTime, archiveOpts) {
69
54
  /*
70
55
  * toJson method for a map type which supports map with primitive keys and values of object types
71
56
  * @param {Object} obj
@@ -79,7 +64,7 @@ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
79
64
  this.$objectType = "monitoring.v4.serviceability.LogCollectionSpec";
80
65
  /** @type {object<string, any>} */
81
66
  this.$reserved = {
82
- '$fv': "v4.r1"
67
+ '$fv': "v4.r2"
83
68
  };
84
69
  /** @type {object<string, any>} */
85
70
  this.$unknownFields = {};
@@ -93,465 +78,450 @@ var LogCollectionSpec = exports["default"] = /*#__PURE__*/function () {
93
78
  * @param callFromChild {Boolean} Flag to recognise calling instance
94
79
  * @return {module:Ntnx/LogCollectionSpec} The populated <code>LogCollectionSpec</code> instance.
95
80
  */
96
- return _createClass(LogCollectionSpec, [{
97
- key: "getStartTime",
98
- value:
99
- /**
100
- * Returns The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
101
- * @return {Date}
102
- */
103
- function getStartTime() {
104
- return this.startTime;
81
+ static constructFromObject(data, obj = null, callFromChild = false) {
82
+ let items, item, i, itemArr, discriminator;
83
+ if (data) {
84
+ obj = obj || new LogCollectionSpec();
85
+ if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
86
+ obj.setStartTime(data['startTime']);
87
+ }
88
+ if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
89
+ obj.setEndTime(data['endTime']);
90
+ }
91
+ if (data.hasOwnProperty('includeTags') && data.includeTags !== null && data.includeTags !== undefined) {
92
+ itemArr = [];
93
+ items = data.includeTags;
94
+ for (i = 0; i < items.length; i++) {
95
+ itemArr.push(items[i]);
96
+ }
97
+ obj.setIncludeTags(itemArr);
98
+ }
99
+ if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
100
+ obj.setShouldAnonymize(data['shouldAnonymize']);
101
+ }
102
+ if (data.hasOwnProperty('nodeIpList') && data.nodeIpList !== null && data.nodeIpList !== undefined) {
103
+ itemArr = [];
104
+ items = data.nodeIpList;
105
+ for (i = 0; i < items.length; i++) {
106
+ item = _IPv4Address.default.constructFromObject(items[i], undefined);
107
+ itemArr.push(item);
108
+ }
109
+ obj.setNodeIpList(itemArr);
110
+ }
111
+ if (data.hasOwnProperty('shouldCollectFromDisabledNode') && data.shouldCollectFromDisabledNode !== null && data.shouldCollectFromDisabledNode !== undefined) {
112
+ obj.setShouldCollectFromDisabledNode(data['shouldCollectFromDisabledNode']);
113
+ }
114
+ if (data.hasOwnProperty('excludeTags') && data.excludeTags !== null && data.excludeTags !== undefined) {
115
+ itemArr = [];
116
+ items = data.excludeTags;
117
+ for (i = 0; i < items.length; i++) {
118
+ itemArr.push(items[i]);
119
+ }
120
+ obj.setExcludeTags(itemArr);
121
+ }
122
+ if (data.hasOwnProperty('archiveOpts') && data.archiveOpts !== null && data.archiveOpts !== undefined) {
123
+ obj.setArchiveOpts(_ArchiveOpts.default.constructFromObject(data['archiveOpts']));
124
+ }
125
+ if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
126
+ obj.setDescription(data['description']);
127
+ }
128
+ if (data.hasOwnProperty('tagOpts') && data.tagOpts !== null && data.tagOpts !== undefined) {
129
+ obj.setTagOpts(_TagOpts.default.constructFromObject(data['tagOpts']));
130
+ }
131
+ if (data.hasOwnProperty('$reserved')) {
132
+ obj.$reserved = data['$reserved'];
133
+ }
134
+ if (data.hasOwnProperty('$objectType')) {
135
+ obj.$objectType = data['$objectType'];
136
+ }
137
+ if (data.hasOwnProperty('$unknownFields')) {
138
+ obj.$unknownFields = data['$unknownFields'];
139
+ }
140
+ if (!callFromChild) {
141
+ obj.$unknownFields = {
142
+ ...data.$unknownFields
143
+ };
144
+ for (const property in data) {
145
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
146
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
147
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
148
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
149
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
150
+ obj.$unknownFields[property] = data[property];
151
+ }
152
+ }
153
+ }
105
154
  }
155
+ return obj;
156
+ }
106
157
 
107
- /**
108
- * Sets The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
109
- * @param {Date} startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
110
- */
111
- }, {
112
- key: "setStartTime",
113
- value: function setStartTime(startTime) {
114
- this.startTime = startTime;
115
- }
158
+ /**
159
+ * Converts a given snake_case string to camelCase.
160
+ * @param {string} snakeStr - The input string in snake_case format.
161
+ * @returns {string} - The converted string in camelCase format.
162
+ */
163
+ static snakeToCamel(snakeStr) {
164
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
165
+ }
116
166
 
117
- /**
118
- * Returns The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
119
- * @return {Date}
120
- */
121
- }, {
122
- key: "getEndTime",
123
- value: function getEndTime() {
124
- return this.endTime;
125
- }
167
+ /**
168
+ * Returns The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
169
+ * @return {Date}
170
+ */
171
+ getStartTime() {
172
+ return this.startTime;
173
+ }
126
174
 
127
- /**
128
- * Sets The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
129
- * @param {Date} endTime The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
130
- */
131
- }, {
132
- key: "setEndTime",
133
- value: function setEndTime(endTime) {
134
- this.endTime = endTime;
135
- }
175
+ /**
176
+ * Sets The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
177
+ * @param {Date} startTime The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
178
+ */
179
+ setStartTime(startTime) {
180
+ this.startTime = startTime;
181
+ }
136
182
 
137
- /**
138
- * Returns Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
139
- * @return {string[]}
140
- */
141
- }, {
142
- key: "getIncludeTags",
143
- value: function getIncludeTags() {
144
- return this.includeTags;
145
- }
183
+ /**
184
+ * Returns The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
185
+ * @return {Date}
186
+ */
187
+ getEndTime() {
188
+ return this.endTime;
189
+ }
146
190
 
147
- /**
148
- * Sets Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
149
- * @param {string[]} includeTags Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
150
- */
151
- }, {
152
- key: "setIncludeTags",
153
- value: function setIncludeTags(includeTags) {
154
- this.includeTags = includeTags;
155
- }
191
+ /**
192
+ * Sets The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
193
+ * @param {Date} endTime The time marking the end of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The end time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
194
+ */
195
+ setEndTime(endTime) {
196
+ this.endTime = endTime;
197
+ }
156
198
 
157
- /**
158
- * Returns Indicates whether to mask sensitive data in the collected logs or not.
159
- * @return {boolean}
160
- */
161
- }, {
162
- key: "getShouldAnonymize",
163
- value: function getShouldAnonymize() {
164
- return this.shouldAnonymize;
165
- }
199
+ /**
200
+ * Returns Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
201
+ * @return {string[]}
202
+ */
203
+ getIncludeTags() {
204
+ return this.includeTags;
205
+ }
166
206
 
167
- /**
168
- * Sets Indicates whether to mask sensitive data in the collected logs or not.
169
- * @param {boolean} shouldAnonymize Indicates whether to mask sensitive data in the collected logs or not.
170
- */
171
- }, {
172
- key: "setShouldAnonymize",
173
- value: function setShouldAnonymize(shouldAnonymize) {
174
- this.shouldAnonymize = shouldAnonymize;
175
- }
207
+ /**
208
+ * Sets Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
209
+ * @param {string[]} includeTags Collect items associated with the tag IDs. The tag ID can be fetched from the GET tags operation. If no tags are specified, all items will be collected by default, which will take a longer time. It is recommended that at least one tag is selected.
210
+ */
211
+ setIncludeTags(includeTags) {
212
+ this.includeTags = includeTags;
213
+ }
176
214
 
177
- /**
178
- * Returns List of node IP addresses from where the logs will be collected.
179
- * @return {IPv4Address[]}
180
- */
181
- }, {
182
- key: "getNodeIpList",
183
- value: function getNodeIpList() {
184
- return this.nodeIpList;
185
- }
215
+ /**
216
+ * Returns Indicates whether to mask sensitive data in the collected logs or not.
217
+ * @return {boolean}
218
+ */
219
+ getShouldAnonymize() {
220
+ return this.shouldAnonymize;
221
+ }
186
222
 
187
- /**
188
- * Sets List of node IP addresses from where the logs will be collected.
189
- * @param {IPv4Address[]} nodeIpList List of node IP addresses from where the logs will be collected.
190
- */
191
- }, {
192
- key: "setNodeIpList",
193
- value: function setNodeIpList(nodeIpList) {
194
- this.nodeIpList = nodeIpList;
195
- }
223
+ /**
224
+ * Sets Indicates whether to mask sensitive data in the collected logs or not.
225
+ * @param {boolean} shouldAnonymize Indicates whether to mask sensitive data in the collected logs or not.
226
+ */
227
+ setShouldAnonymize(shouldAnonymize) {
228
+ this.shouldAnonymize = shouldAnonymize;
229
+ }
196
230
 
197
- /**
198
- * Returns Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
199
- * @return {boolean}
200
- */
201
- }, {
202
- key: "getShouldCollectFromDisabledNode",
203
- value: function getShouldCollectFromDisabledNode() {
204
- return this.shouldCollectFromDisabledNode;
205
- }
231
+ /**
232
+ * Returns List of node IP addresses from where the logs will be collected.
233
+ * @return {IPv4Address[]}
234
+ */
235
+ getNodeIpList() {
236
+ return this.nodeIpList;
237
+ }
206
238
 
207
- /**
208
- * Sets Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
209
- * @param {boolean} shouldCollectFromDisabledNode Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
210
- */
211
- }, {
212
- key: "setShouldCollectFromDisabledNode",
213
- value: function setShouldCollectFromDisabledNode(shouldCollectFromDisabledNode) {
214
- this.shouldCollectFromDisabledNode = shouldCollectFromDisabledNode;
215
- }
239
+ /**
240
+ * Sets List of node IP addresses from where the logs will be collected.
241
+ * @param {IPv4Address[]} nodeIpList List of node IP addresses from where the logs will be collected.
242
+ */
243
+ setNodeIpList(nodeIpList) {
244
+ this.nodeIpList = nodeIpList;
245
+ }
216
246
 
217
- /**
218
- * Returns Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
219
- * @return {string[]}
220
- */
221
- }, {
222
- key: "getExcludeTags",
223
- value: function getExcludeTags() {
224
- return this.excludeTags;
225
- }
247
+ /**
248
+ * Returns Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
249
+ * @return {boolean}
250
+ */
251
+ getShouldCollectFromDisabledNode() {
252
+ return this.shouldCollectFromDisabledNode;
253
+ }
226
254
 
227
- /**
228
- * Sets Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
229
- * @param {string[]} excludeTags Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
230
- */
231
- }, {
232
- key: "setExcludeTags",
233
- value: function setExcludeTags(excludeTags) {
234
- this.excludeTags = excludeTags;
235
- }
255
+ /**
256
+ * Sets Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
257
+ * @param {boolean} shouldCollectFromDisabledNode Indicates whether to collect logs from a node where services are down or not. This feature is not supported on PC.
258
+ */
259
+ setShouldCollectFromDisabledNode(shouldCollectFromDisabledNode) {
260
+ this.shouldCollectFromDisabledNode = shouldCollectFromDisabledNode;
261
+ }
236
262
 
237
- /**
238
- * @return {ArchiveOpts}
239
- */
240
- }, {
241
- key: "getArchiveOpts",
242
- value: function getArchiveOpts() {
243
- return this.archiveOpts;
244
- }
263
+ /**
264
+ * Returns Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
265
+ * @return {string[]}
266
+ */
267
+ getExcludeTags() {
268
+ return this.excludeTags;
269
+ }
245
270
 
246
- /**
247
- * @param {ArchiveOpts} archiveOpts
248
- */
249
- }, {
250
- key: "setArchiveOpts",
251
- value: function setArchiveOpts(archiveOpts) {
252
- this.archiveOpts = archiveOpts;
253
- }
271
+ /**
272
+ * Sets Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
273
+ * @param {string[]} excludeTags Exclude items associated with the tag IDs. The tag ID can be fetched from the GET tags operation.
274
+ */
275
+ setExcludeTags(excludeTags) {
276
+ this.excludeTags = excludeTags;
277
+ }
254
278
 
255
- /**
256
- * Returns Description to be attached with the associated log collection task.
257
- * @return {string}
258
- */
259
- }, {
260
- key: "getDescription",
261
- value: function getDescription() {
262
- return this.description;
263
- }
279
+ /**
280
+ * @return {ArchiveOpts}
281
+ */
282
+ getArchiveOpts() {
283
+ return this.archiveOpts;
284
+ }
264
285
 
265
- /**
266
- * Sets Description to be attached with the associated log collection task.
267
- * @param {string} description Description to be attached with the associated log collection task.
268
- */
269
- }, {
270
- key: "setDescription",
271
- value: function setDescription(description) {
272
- this.description = description;
273
- }
274
- }, {
275
- key: "get$Reserved",
276
- value: function get$Reserved() {
277
- return this.$reserved;
278
- }
279
- }, {
280
- key: "get$ObjectType",
281
- value: function get$ObjectType() {
282
- return this.$objectType;
283
- }
284
- }, {
285
- key: "get$UnknownFields",
286
- value: function get$UnknownFields() {
287
- return this.$unknownFields;
288
- }
289
- }, {
290
- key: "toJson",
291
- value: function toJson(forMutation) {
292
- if (forMutation === false) {
293
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
286
+ /**
287
+ * @param {ArchiveOpts} archiveOpts
288
+ */
289
+ setArchiveOpts(archiveOpts) {
290
+ this.archiveOpts = archiveOpts;
291
+ }
292
+
293
+ /**
294
+ * Returns Description to be attached with the associated log collection task.
295
+ * @return {string}
296
+ */
297
+ getDescription() {
298
+ return this.description;
299
+ }
300
+
301
+ /**
302
+ * Sets Description to be attached with the associated log collection task.
303
+ * @param {string} description Description to be attached with the associated log collection task.
304
+ */
305
+ setDescription(description) {
306
+ this.description = description;
307
+ }
308
+
309
+ /**
310
+ * @return {TagOpts}
311
+ */
312
+ getTagOpts() {
313
+ return this.tagOpts;
314
+ }
315
+
316
+ /**
317
+ * @param {TagOpts} tagOpts
318
+ */
319
+ setTagOpts(tagOpts) {
320
+ this.tagOpts = tagOpts;
321
+ }
322
+ get$Reserved() {
323
+ return this.$reserved;
324
+ }
325
+ get$ObjectType() {
326
+ return this.$objectType;
327
+ }
328
+ get$UnknownFields() {
329
+ return this.$unknownFields;
330
+ }
331
+ toJson(forMutation) {
332
+ if (forMutation === false) {
333
+ return {
334
+ ...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
294
335
  'startTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getStartTime(), false)
295
- } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
336
+ } : {}),
337
+ ...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
296
338
  'endTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getEndTime(), false)
297
- } : {}), typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
339
+ } : {}),
340
+ ...(typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
298
341
  'includeTags': this.getIncludeTags()
299
- } : {}), typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
342
+ } : {}),
343
+ ...(typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
300
344
  'shouldAnonymize': this.getShouldAnonymize()
301
- } : {}), typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
302
- 'nodeIpList': this.getNodeIpList().map(function (item) {
303
- return item.toJson(false);
304
- })
305
- } : {}), typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
345
+ } : {}),
346
+ ...(typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
347
+ 'nodeIpList': this.getNodeIpList().map(item => item.toJson(false))
348
+ } : {}),
349
+ ...(typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
306
350
  'shouldCollectFromDisabledNode': this.getShouldCollectFromDisabledNode()
307
- } : {}), typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
351
+ } : {}),
352
+ ...(typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
308
353
  'excludeTags': this.getExcludeTags()
309
- } : {}), typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
354
+ } : {}),
355
+ ...(typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
310
356
  'archiveOpts': this.getArchiveOpts().toJson(false)
311
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
357
+ } : {}),
358
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
312
359
  'description': this.getDescription()
313
- } : {}), {}, {
314
- '$reserved': this.get$Reserved(),
315
- '$objectType': this.get$ObjectType(),
316
- '$unknownFields': this.get$UnknownFields()
317
- });
318
- }
319
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
360
+ } : {}),
361
+ ...(typeof this.getTagOpts() !== 'undefined' && this.getTagOpts() !== null ? {
362
+ 'tagOpts': this.getTagOpts().toJson(false)
363
+ } : {}),
364
+ '$reserved': this.get$Reserved(),
365
+ '$objectType': this.get$ObjectType(),
366
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
367
+ '$unknownFields': {}
368
+ };
369
+ }
370
+ return {
371
+ ...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
320
372
  'startTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getStartTime(), false)
321
- } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
373
+ } : {}),
374
+ ...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
322
375
  'endTime': _assertClassBrand(_LogCollectionSpec_brand, this, _handleDateType).call(this, this.getEndTime(), false)
323
- } : {}), typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
376
+ } : {}),
377
+ ...(typeof this.getIncludeTags() !== 'undefined' && this.getIncludeTags() !== null ? {
324
378
  'includeTags': this.getIncludeTags()
325
- } : {}), typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
379
+ } : {}),
380
+ ...(typeof this.getShouldAnonymize() !== 'undefined' && this.getShouldAnonymize() !== null ? {
326
381
  'shouldAnonymize': this.getShouldAnonymize()
327
- } : {}), typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
328
- 'nodeIpList': this.getNodeIpList().map(function (item) {
329
- return item.toJson(false);
330
- })
331
- } : {}), typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
382
+ } : {}),
383
+ ...(typeof this.getNodeIpList() !== 'undefined' && this.getNodeIpList() !== null ? {
384
+ 'nodeIpList': this.getNodeIpList().map(item => item.toJson(false))
385
+ } : {}),
386
+ ...(typeof this.getShouldCollectFromDisabledNode() !== 'undefined' && this.getShouldCollectFromDisabledNode() !== null ? {
332
387
  'shouldCollectFromDisabledNode': this.getShouldCollectFromDisabledNode()
333
- } : {}), typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
388
+ } : {}),
389
+ ...(typeof this.getExcludeTags() !== 'undefined' && this.getExcludeTags() !== null ? {
334
390
  'excludeTags': this.getExcludeTags()
335
- } : {}), typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
391
+ } : {}),
392
+ ...(typeof this.getArchiveOpts() !== 'undefined' && this.getArchiveOpts() !== null ? {
336
393
  'archiveOpts': this.getArchiveOpts().toJson(false)
337
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
394
+ } : {}),
395
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
338
396
  'description': this.getDescription()
339
- } : {}), {}, {
340
- '$reserved': this.get$Reserved(),
341
- '$objectType': this.get$ObjectType(),
342
- '$unknownFields': this.get$UnknownFields()
343
- });
397
+ } : {}),
398
+ ...(typeof this.getTagOpts() !== 'undefined' && this.getTagOpts() !== null ? {
399
+ 'tagOpts': this.getTagOpts().toJson(false)
400
+ } : {}),
401
+ '$reserved': this.get$Reserved(),
402
+ '$objectType': this.get$ObjectType(),
403
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
404
+ '$unknownFields': {}
405
+ };
406
+ }
407
+ validate(scope, properties) {
408
+ let propList = [];
409
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
410
+ //cases validate() and validate(scope)
411
+ propList = ["startTime", "endTime", "archiveOpts"];
412
+ } else if (arguments.length === 1) {
413
+ //case validate(properties)
414
+ propList = arguments[0];
415
+ scope = null;
416
+ } else {
417
+ //case validate(scope, properties)
418
+ propList = arguments[1];
344
419
  }
345
- }, {
346
- key: "validate",
347
- value: function validate(scope, properties) {
348
- var _this = this;
349
- var propList = [];
350
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
351
- //cases validate() and validate(scope)
352
- propList = ["startTime", "endTime", "archiveOpts"];
353
- } else if (arguments.length === 1) {
354
- //case validate(properties)
355
- propList = arguments[0];
356
- scope = null;
420
+ let res = [];
421
+ let err = null;
422
+ propList.forEach(property => {
423
+ err = this.validateProperty(property, scope);
424
+ if (err) {
425
+ res.push(err);
426
+ }
427
+ });
428
+ return new Promise(function (resolve, reject) {
429
+ if (res.length !== 0) {
430
+ reject(err);
357
431
  } else {
358
- //case validate(scope, properties)
359
- propList = arguments[1];
360
- }
361
- var res = [];
362
- var err = null;
363
- propList.forEach(function (property) {
364
- err = _this.validateProperty(property, scope);
365
- if (err) {
366
- res.push(err);
367
- }
368
- });
369
- return new Promise(function (resolve, reject) {
370
- if (res.length !== 0) {
371
- reject(err);
372
- } else {
373
- resolve();
374
- }
375
- });
432
+ resolve();
433
+ }
434
+ });
435
+ }
436
+ validateProperty(scope, property) {
437
+ if (property === "startTime") {
438
+ if (typeof this.startTime === 'undefined' || this.startTime === null) {
439
+ return new _ValidationError.default("startTime", "undefined or null");
440
+ }
376
441
  }
377
- }, {
378
- key: "validateProperty",
379
- value: function validateProperty(scope, property) {
380
- if (property === "startTime") {
381
- if (typeof this.startTime === 'undefined' || this.startTime === null) {
382
- return new _ValidationError["default"]("startTime", "undefined or null");
383
- }
442
+ if (property === "endTime") {
443
+ if (typeof this.endTime === 'undefined' || this.endTime === null) {
444
+ return new _ValidationError.default("endTime", "undefined or null");
384
445
  }
385
- if (property === "endTime") {
386
- if (typeof this.endTime === 'undefined' || this.endTime === null) {
387
- return new _ValidationError["default"]("endTime", "undefined or null");
388
- }
446
+ }
447
+ if (property === "includeTags") {
448
+ if (typeof this.includeTags === 'undefined' || this.includeTags === null) {
449
+ return new _ValidationError.default("includeTags", "undefined or null");
389
450
  }
390
- if (property === "includeTags") {
391
- if (typeof this.includeTags === 'undefined' || this.includeTags === null) {
392
- return new _ValidationError["default"]("includeTags", "undefined or null");
393
- }
394
- if (!_ValidationUtils["default"].validateMaxItems(this.includeTags, 300)) {
395
- return new _ValidationError["default"]("includeTags", "does not satisfy required maxItems constraint: 300");
396
- }
451
+ if (!_ValidationUtils.default.validateMaxItems(this.includeTags, 300)) {
452
+ return new _ValidationError.default("includeTags", "does not satisfy required maxItems constraint: 300");
397
453
  }
398
- if (property === "shouldAnonymize") {
399
- if (typeof this.shouldAnonymize === 'undefined' || this.shouldAnonymize === null) {
400
- return new _ValidationError["default"]("shouldAnonymize", "undefined or null");
401
- }
454
+ }
455
+ if (property === "shouldAnonymize") {
456
+ if (typeof this.shouldAnonymize === 'undefined' || this.shouldAnonymize === null) {
457
+ return new _ValidationError.default("shouldAnonymize", "undefined or null");
402
458
  }
403
- if (property === "nodeIpList") {
404
- if (typeof this.nodeIpList === 'undefined' || this.nodeIpList === null) {
405
- return new _ValidationError["default"]("nodeIpList", "undefined or null");
406
- }
407
- if (!_ValidationUtils["default"].validateMaxItems(this.nodeIpList, 48)) {
408
- return new _ValidationError["default"]("nodeIpList", "does not satisfy required maxItems constraint: 48");
409
- }
459
+ }
460
+ if (property === "nodeIpList") {
461
+ if (typeof this.nodeIpList === 'undefined' || this.nodeIpList === null) {
462
+ return new _ValidationError.default("nodeIpList", "undefined or null");
410
463
  }
411
- if (property === "shouldCollectFromDisabledNode") {
412
- if (typeof this.shouldCollectFromDisabledNode === 'undefined' || this.shouldCollectFromDisabledNode === null) {
413
- return new _ValidationError["default"]("shouldCollectFromDisabledNode", "undefined or null");
414
- }
464
+ if (!_ValidationUtils.default.validateMaxItems(this.nodeIpList, 48)) {
465
+ return new _ValidationError.default("nodeIpList", "does not satisfy required maxItems constraint: 48");
415
466
  }
416
- if (property === "excludeTags") {
417
- if (typeof this.excludeTags === 'undefined' || this.excludeTags === null) {
418
- return new _ValidationError["default"]("excludeTags", "undefined or null");
419
- }
420
- if (!_ValidationUtils["default"].validateMaxItems(this.excludeTags, 50)) {
421
- return new _ValidationError["default"]("excludeTags", "does not satisfy required maxItems constraint: 50");
422
- }
467
+ }
468
+ if (property === "shouldCollectFromDisabledNode") {
469
+ if (typeof this.shouldCollectFromDisabledNode === 'undefined' || this.shouldCollectFromDisabledNode === null) {
470
+ return new _ValidationError.default("shouldCollectFromDisabledNode", "undefined or null");
423
471
  }
424
- if (property === "archiveOpts") {
425
- if (typeof this.archiveOpts === 'undefined' || this.archiveOpts === null) {
426
- return new _ValidationError["default"]("archiveOpts", "undefined or null");
427
- }
472
+ }
473
+ if (property === "excludeTags") {
474
+ if (typeof this.excludeTags === 'undefined' || this.excludeTags === null) {
475
+ return new _ValidationError.default("excludeTags", "undefined or null");
428
476
  }
429
- if (property === "description") {
430
- if (typeof this.description === 'undefined' || this.description === null) {
431
- return new _ValidationError["default"]("description", "undefined or null");
432
- }
477
+ if (!_ValidationUtils.default.validateMaxItems(this.excludeTags, 50)) {
478
+ return new _ValidationError.default("excludeTags", "does not satisfy required maxItems constraint: 50");
433
479
  }
434
- if (property === "$reserved") {
435
- if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
436
- return new _ValidationError["default"]("$reserved", "undefined or null");
437
- }
480
+ }
481
+ if (property === "archiveOpts") {
482
+ if (typeof this.archiveOpts === 'undefined' || this.archiveOpts === null) {
483
+ return new _ValidationError.default("archiveOpts", "undefined or null");
438
484
  }
439
- if (property === "$objectType") {
440
- if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
441
- return new _ValidationError["default"]("$objectType", "undefined or null");
442
- }
485
+ }
486
+ if (property === "description") {
487
+ if (typeof this.description === 'undefined' || this.description === null) {
488
+ return new _ValidationError.default("description", "undefined or null");
443
489
  }
444
- if (property === "$unknownFields") {
445
- if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
446
- return new _ValidationError["default"]("$unknownFields", "undefined or null");
447
- }
490
+ }
491
+ if (property === "tagOpts") {
492
+ if (typeof this.tagOpts === 'undefined' || this.tagOpts === null) {
493
+ return new _ValidationError.default("tagOpts", "undefined or null");
448
494
  }
449
- return new _ValidationError["default"](property, "no such property exists");
450
495
  }
451
- }], [{
452
- key: "constructFromObject",
453
- value: function constructFromObject(data) {
454
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
455
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
456
- var items, item, i, itemArr, discriminator;
457
- if (data) {
458
- obj = obj || new LogCollectionSpec();
459
- if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
460
- obj.setStartTime(data['startTime']);
461
- }
462
- if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
463
- obj.setEndTime(data['endTime']);
464
- }
465
- if (data.hasOwnProperty('includeTags') && data.includeTags !== null && data.includeTags !== undefined) {
466
- itemArr = [];
467
- items = data.includeTags;
468
- for (i = 0; i < items.length; i++) {
469
- itemArr.push(items[i]);
470
- }
471
- obj.setIncludeTags(itemArr);
472
- }
473
- if (data.hasOwnProperty('shouldAnonymize') && data.shouldAnonymize !== null && data.shouldAnonymize !== undefined) {
474
- obj.setShouldAnonymize(data['shouldAnonymize']);
475
- }
476
- if (data.hasOwnProperty('nodeIpList') && data.nodeIpList !== null && data.nodeIpList !== undefined) {
477
- itemArr = [];
478
- items = data.nodeIpList;
479
- for (i = 0; i < items.length; i++) {
480
- item = _IPv4Address["default"].constructFromObject(items[i], undefined);
481
- itemArr.push(item);
482
- }
483
- obj.setNodeIpList(itemArr);
484
- }
485
- if (data.hasOwnProperty('shouldCollectFromDisabledNode') && data.shouldCollectFromDisabledNode !== null && data.shouldCollectFromDisabledNode !== undefined) {
486
- obj.setShouldCollectFromDisabledNode(data['shouldCollectFromDisabledNode']);
487
- }
488
- if (data.hasOwnProperty('excludeTags') && data.excludeTags !== null && data.excludeTags !== undefined) {
489
- itemArr = [];
490
- items = data.excludeTags;
491
- for (i = 0; i < items.length; i++) {
492
- itemArr.push(items[i]);
493
- }
494
- obj.setExcludeTags(itemArr);
495
- }
496
- if (data.hasOwnProperty('archiveOpts') && data.archiveOpts !== null && data.archiveOpts !== undefined) {
497
- obj.setArchiveOpts(_ArchiveOpts["default"].constructFromObject(data['archiveOpts']));
498
- }
499
- if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
500
- obj.setDescription(data['description']);
501
- }
502
- if (data.hasOwnProperty('$reserved')) {
503
- obj.$reserved = data['$reserved'];
504
- }
505
- if (data.hasOwnProperty('$objectType')) {
506
- obj.$objectType = data['$objectType'];
507
- }
508
- if (data.hasOwnProperty('$unknownFields')) {
509
- obj.$unknownFields = data['$unknownFields'];
510
- }
511
- if (!callFromChild) {
512
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
513
- for (var property in data) {
514
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
515
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
516
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
517
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
518
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
519
- obj.$unknownFields[property] = data[property];
520
- }
521
- }
522
- }
496
+ if (property === "$reserved") {
497
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
498
+ return new _ValidationError.default("$reserved", "undefined or null");
523
499
  }
524
- return obj;
525
500
  }
526
-
527
- /**
528
- * Converts a given snake_case string to camelCase.
529
- * @param {string} snakeStr - The input string in snake_case format.
530
- * @returns {string} - The converted string in camelCase format.
531
- */
532
- }, {
533
- key: "snakeToCamel",
534
- value: function snakeToCamel(snakeStr) {
535
- return snakeStr.replace(/(_\w)/g, function (match) {
536
- return match[1].toUpperCase();
537
- });
501
+ if (property === "$objectType") {
502
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
503
+ return new _ValidationError.default("$objectType", "undefined or null");
504
+ }
505
+ }
506
+ if (property === "$unknownFields") {
507
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
508
+ return new _ValidationError.default("$unknownFields", "undefined or null");
509
+ }
538
510
  }
539
- }]);
540
- }();
511
+ return new _ValidationError.default(property, "no such property exists");
512
+ }
513
+ }
514
+
541
515
  /**
542
516
  * The time marking the start of a log collection window. It should be in the following format: YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS+HH:MM or YYYY-MM-DDTHH:MM:SS-HH:MM. The start time of log collection should be within the past three months. For example: - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
543
517
  * @memberof LogCollectionSpec
544
518
  */
519
+ exports.default = LogCollectionSpec;
545
520
  function _toJsonMapType(obj, forMutation) {
546
521
  if (obj instanceof Map) {
547
- return Object.fromEntries(Array.from(obj, function (_ref) {
548
- var _ref2 = _slicedToArray(_ref, 2),
549
- k = _ref2[0],
550
- v = _ref2[1];
551
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
552
- }));
553
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
554
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
522
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
523
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
524
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
555
525
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
556
526
  }));
557
527
  }
@@ -620,6 +590,11 @@ LogCollectionSpec.prototype.archiveOpts = undefined;
620
590
  * @default 'Log collection via V4 API'
621
591
  */
622
592
  LogCollectionSpec.prototype.description = 'Log collection via V4 API';
593
+
594
+ /**
595
+ * @memberof LogCollectionSpec
596
+ */
597
+ LogCollectionSpec.prototype.tagOpts = undefined;
623
598
  LogCollectionSpec.prototype.$reserved = undefined;
624
599
  LogCollectionSpec.prototype.$objectType = undefined;
625
600
  LogCollectionSpec.prototype.$unknownFields = undefined;