@nutanix-scratch/opsmgmt-js-client 4.0.2 → 4.0.4

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 (308) hide show
  1. package/README.md +15 -3
  2. package/dist/Ntnx-Opsmgmt-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Opsmgmt-js-client.js +453 -447
  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/globalreportsetting-endpoints.d.ts +1 -1
  9. package/dist/es/apis/globalreportsetting-endpoints.js +94 -111
  10. package/dist/es/apis/reportartifacts-endpoints.d.ts +2 -2
  11. package/dist/es/apis/reportartifacts-endpoints.js +196 -210
  12. package/dist/es/apis/reportconfig-endpoints.d.ts +2 -2
  13. package/dist/es/apis/reportconfig-endpoints.js +210 -224
  14. package/dist/es/apis/reports-endpoints.d.ts +2 -2
  15. package/dist/es/apis/reports-endpoints.js +243 -258
  16. package/dist/es/index.js +239 -239
  17. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  18. package/dist/es/models/common/v1/config/Flag.js +170 -211
  19. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  20. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  21. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  22. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  23. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  24. package/dist/es/models/common/v1/config/Message.js +213 -258
  25. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  26. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  27. package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
  28. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  29. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  30. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  31. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  32. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  33. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  34. package/dist/es/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
  35. package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
  36. package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
  37. package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
  38. package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
  39. package/dist/es/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
  40. package/dist/es/models/opsmgmt/v4/config/DataCriteria.js +280 -333
  41. package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
  42. package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
  43. package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
  44. package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
  45. package/dist/es/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
  46. package/dist/es/models/opsmgmt/v4/config/EntitySelection.js +172 -213
  47. package/dist/es/models/opsmgmt/v4/config/EntityType.js +7 -9
  48. package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
  49. package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
  50. package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
  51. package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
  52. package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
  53. package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
  54. package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
  55. package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.js +201 -249
  56. package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
  57. package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
  58. package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
  59. package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
  60. package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
  61. package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
  62. package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
  63. package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
  64. package/dist/es/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
  65. package/dist/es/models/opsmgmt/v4/config/Recipient.js +170 -211
  66. package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
  67. package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
  68. package/dist/es/models/opsmgmt/v4/config/Report.d.ts +1 -35
  69. package/dist/es/models/opsmgmt/v4/config/Report.js +506 -581
  70. package/dist/es/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
  71. package/dist/es/models/opsmgmt/v4/config/ReportConfig.js +514 -594
  72. package/dist/es/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
  73. package/dist/es/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
  74. package/dist/es/models/opsmgmt/v4/config/ReportFormat.js +7 -9
  75. package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
  76. package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.js +174 -222
  77. package/dist/es/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
  78. package/dist/es/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
  79. package/dist/es/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
  80. package/dist/es/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
  81. package/dist/es/models/opsmgmt/v4/config/Row.d.ts +2 -12
  82. package/dist/es/models/opsmgmt/v4/config/Row.js +148 -191
  83. package/dist/es/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
  84. package/dist/es/models/opsmgmt/v4/config/Section.d.ts +2 -27
  85. package/dist/es/models/opsmgmt/v4/config/Section.js +251 -302
  86. package/dist/es/models/opsmgmt/v4/config/SortKey.js +7 -9
  87. package/dist/es/models/opsmgmt/v4/config/SortOrder.js +7 -9
  88. package/dist/es/models/opsmgmt/v4/config/TimeFilter.js +7 -9
  89. package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
  90. package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
  91. package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
  92. package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
  93. package/dist/es/models/opsmgmt/v4/config/Widget.d.ts +2 -7
  94. package/dist/es/models/opsmgmt/v4/config/Widget.js +154 -197
  95. package/dist/es/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
  96. package/dist/es/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
  97. package/dist/es/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
  98. package/dist/es/models/opsmgmt/v4/config/WidgetField.js +195 -238
  99. package/dist/es/models/opsmgmt/v4/config/WidgetSize.js +7 -9
  100. package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
  101. package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
  102. package/dist/es/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
  103. package/dist/es/models/opsmgmt/v4/config/WidgetType.js +7 -9
  104. package/dist/es/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
  105. package/dist/es/models/opsmgmt/v4/content/ArtifactType.js +7 -9
  106. package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
  107. package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
  108. package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
  109. package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
  110. package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
  111. package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
  112. package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
  113. package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
  114. package/dist/es/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
  115. package/dist/es/models/opsmgmt/v4/content/ReportArtifact.js +149 -193
  116. package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
  117. package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
  118. package/dist/es/models/opsmgmt/v4/error/AppMessage.d.ts +2 -12
  119. package/dist/es/models/opsmgmt/v4/error/AppMessage.js +263 -312
  120. package/dist/es/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
  121. package/dist/es/models/opsmgmt/v4/error/ErrorResponse.js +174 -217
  122. package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
  123. package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
  124. package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  125. package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
  126. package/dist/es/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
  127. package/dist/es/models/opsmgmt/v4/reporting/CustomView.js +394 -455
  128. package/dist/es/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
  129. package/dist/es/models/opsmgmt/v4/reporting/Field.js +195 -238
  130. package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
  131. package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.js +139 -178
  132. package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
  133. package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.js +144 -183
  134. package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
  135. package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
  136. package/dist/es/models/opsmgmt/v4/reporting/Operator.js +7 -9
  137. package/dist/es/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
  138. package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
  139. package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
  140. package/dist/es/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
  141. package/dist/es/models/opsmgmt/v4/reporting/Recipient.js +170 -211
  142. package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
  143. package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
  144. package/dist/es/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
  145. package/dist/es/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
  146. package/dist/es/models/opsmgmt/v4/reporting/View.d.ts +1 -18
  147. package/dist/es/models/opsmgmt/v4/reporting/View.js +202 -252
  148. package/dist/es/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
  149. package/dist/es/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
  150. package/dist/es/models/opsmgmt/v4/reporting/ViewReport.js +275 -331
  151. package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
  152. package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
  153. package/dist/es/models/validation/ValidationError.js +26 -42
  154. package/dist/es/models/validation/ValidationScopes.js +3 -3
  155. package/dist/es/utils/ValidationUtils.js +39 -69
  156. package/dist/lib/ApiClient.d.ts +29 -7
  157. package/dist/lib/ApiClient.js +854 -667
  158. package/dist/lib/Paginable.d.ts +1 -1
  159. package/dist/lib/Paginable.js +144 -183
  160. package/dist/lib/apis/globalreportsetting-endpoints.d.ts +1 -1
  161. package/dist/lib/apis/globalreportsetting-endpoints.js +94 -111
  162. package/dist/lib/apis/reportartifacts-endpoints.d.ts +2 -2
  163. package/dist/lib/apis/reportartifacts-endpoints.js +196 -210
  164. package/dist/lib/apis/reportconfig-endpoints.d.ts +2 -2
  165. package/dist/lib/apis/reportconfig-endpoints.js +210 -224
  166. package/dist/lib/apis/reports-endpoints.d.ts +2 -2
  167. package/dist/lib/apis/reports-endpoints.js +243 -258
  168. package/dist/lib/index.js +239 -239
  169. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  170. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  171. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  172. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  173. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  174. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  175. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  176. package/dist/lib/models/common/v1/config/Message.js +213 -258
  177. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  178. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
  179. package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
  180. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  181. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  182. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  183. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  184. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  185. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
  186. package/dist/lib/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
  187. package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
  188. package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
  189. package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
  190. package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
  191. package/dist/lib/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
  192. package/dist/lib/models/opsmgmt/v4/config/DataCriteria.js +280 -333
  193. package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
  194. package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
  195. package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
  196. package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
  197. package/dist/lib/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
  198. package/dist/lib/models/opsmgmt/v4/config/EntitySelection.js +172 -213
  199. package/dist/lib/models/opsmgmt/v4/config/EntityType.js +7 -9
  200. package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
  201. package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
  202. package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
  203. package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
  204. package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
  205. package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
  206. package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
  207. package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.js +201 -249
  208. package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
  209. package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
  210. package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
  211. package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
  212. package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
  213. package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
  214. package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
  215. package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
  216. package/dist/lib/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
  217. package/dist/lib/models/opsmgmt/v4/config/Recipient.js +170 -211
  218. package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
  219. package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
  220. package/dist/lib/models/opsmgmt/v4/config/Report.d.ts +1 -35
  221. package/dist/lib/models/opsmgmt/v4/config/Report.js +506 -581
  222. package/dist/lib/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
  223. package/dist/lib/models/opsmgmt/v4/config/ReportConfig.js +514 -594
  224. package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
  225. package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
  226. package/dist/lib/models/opsmgmt/v4/config/ReportFormat.js +7 -9
  227. package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
  228. package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.js +174 -222
  229. package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
  230. package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
  231. package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
  232. package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
  233. package/dist/lib/models/opsmgmt/v4/config/Row.d.ts +2 -12
  234. package/dist/lib/models/opsmgmt/v4/config/Row.js +148 -191
  235. package/dist/lib/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
  236. package/dist/lib/models/opsmgmt/v4/config/Section.d.ts +2 -27
  237. package/dist/lib/models/opsmgmt/v4/config/Section.js +251 -302
  238. package/dist/lib/models/opsmgmt/v4/config/SortKey.js +7 -9
  239. package/dist/lib/models/opsmgmt/v4/config/SortOrder.js +7 -9
  240. package/dist/lib/models/opsmgmt/v4/config/TimeFilter.js +7 -9
  241. package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
  242. package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
  243. package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
  244. package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
  245. package/dist/lib/models/opsmgmt/v4/config/Widget.d.ts +2 -7
  246. package/dist/lib/models/opsmgmt/v4/config/Widget.js +154 -197
  247. package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
  248. package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
  249. package/dist/lib/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
  250. package/dist/lib/models/opsmgmt/v4/config/WidgetField.js +195 -238
  251. package/dist/lib/models/opsmgmt/v4/config/WidgetSize.js +7 -9
  252. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
  253. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
  254. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
  255. package/dist/lib/models/opsmgmt/v4/config/WidgetType.js +7 -9
  256. package/dist/lib/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
  257. package/dist/lib/models/opsmgmt/v4/content/ArtifactType.js +7 -9
  258. package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
  259. package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
  260. package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
  261. package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
  262. package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
  263. package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
  264. package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
  265. package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
  266. package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
  267. package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.js +149 -193
  268. package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
  269. package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
  270. package/dist/lib/models/opsmgmt/v4/error/AppMessage.d.ts +2 -12
  271. package/dist/lib/models/opsmgmt/v4/error/AppMessage.js +263 -312
  272. package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
  273. package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.js +174 -217
  274. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
  275. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
  276. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  277. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
  278. package/dist/lib/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
  279. package/dist/lib/models/opsmgmt/v4/reporting/CustomView.js +394 -455
  280. package/dist/lib/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
  281. package/dist/lib/models/opsmgmt/v4/reporting/Field.js +195 -238
  282. package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
  283. package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.js +139 -178
  284. package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
  285. package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.js +144 -183
  286. package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
  287. package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
  288. package/dist/lib/models/opsmgmt/v4/reporting/Operator.js +7 -9
  289. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
  290. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
  291. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
  292. package/dist/lib/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
  293. package/dist/lib/models/opsmgmt/v4/reporting/Recipient.js +170 -211
  294. package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
  295. package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
  296. package/dist/lib/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
  297. package/dist/lib/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
  298. package/dist/lib/models/opsmgmt/v4/reporting/View.d.ts +1 -18
  299. package/dist/lib/models/opsmgmt/v4/reporting/View.js +202 -252
  300. package/dist/lib/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
  301. package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
  302. package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.js +275 -331
  303. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
  304. package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
  305. package/dist/lib/models/validation/ValidationError.js +26 -42
  306. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  307. package/dist/lib/utils/ValidationUtils.js +39 -69
  308. package/package.json +1 -1
@@ -3,7 +3,7 @@
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 _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
8
8
  var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
9
9
  var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
@@ -13,39 +13,17 @@ var _ReportFormat = _interopRequireDefault(require("./ReportFormat"));
13
13
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
14
14
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
15
15
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
16
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
- 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); }
18
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
19
- 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."); }
20
- 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; } }
21
- 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; }
22
- 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; } }
23
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
24
- 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; }
25
- 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; }
26
- 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; }
27
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
28
- 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); } }
29
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
30
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
31
- 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); }
32
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
33
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
34
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
35
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
36
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
37
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
38
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
39
17
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
40
18
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
41
19
  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"); } /*
42
20
  * Nutanix Cloud Management Platform APIs
43
21
  *
44
- * OpenAPI spec version: 4.0.2
22
+ * OpenAPI spec version: 4.0.4
45
23
  *
46
24
  * NOTE: This class is auto generated by the Open API Dev Platform.
47
25
  *
48
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
26
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
49
27
  *
50
28
  * Do not edit the class manually.
51
29
  *
@@ -53,7 +31,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
53
31
  /**
54
32
  * The Report model module.
55
33
  * @module Ntnx/Report
56
- * @version 4.0.2
34
+ * @version 4.0.4
57
35
  * @class Report
58
36
  * @extends ExternalizableAbstractModel
59
37
  *
@@ -66,7 +44,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
66
44
  * @param { Date } endTime UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
67
45
  */
68
46
  var _Report_brand = /*#__PURE__*/new WeakSet();
69
- var Report = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
47
+ class Report extends _ExternalizableAbstractModel.default {
70
48
  /**
71
49
  * Constructs a new <code>Report</code>.
72
50
  * @alias module:Ntnx/Report
@@ -80,29 +58,26 @@ var Report = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra)
80
58
  *
81
59
  * @param { Date } endTime UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
82
60
  */
83
- function Report(name, configExtId, startTime, endTime) {
84
- var _this;
85
- _classCallCheck(this, Report);
86
- _this = _callSuper(this, Report);
61
+ constructor(name, configExtId, startTime, endTime) {
62
+ super();
87
63
  /*
88
64
  * toJson method for a map type which supports map with primitive keys and values of object types
89
65
  * @param {Object} obj
90
66
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
91
67
  * Otherwise, just returns the input object.
92
68
  */
93
- _classPrivateMethodInitSpec(_this, _Report_brand);
94
- _this.name = name;
95
- _this.configExtId = configExtId;
96
- _this.startTime = startTime;
97
- _this.endTime = endTime;
98
- _this.$objectType = "opsmgmt.v4.config.Report";
69
+ _classPrivateMethodInitSpec(this, _Report_brand);
70
+ this.name = name;
71
+ this.configExtId = configExtId;
72
+ this.startTime = startTime;
73
+ this.endTime = endTime;
74
+ this.$objectType = "opsmgmt.v4.config.Report";
99
75
  /** @type {object<string, any>} */
100
- _this.$reserved = {
76
+ this.$reserved = {
101
77
  '$fv': "v4.r0"
102
78
  };
103
79
  /** @type {object<string, any>} */
104
- _this.$unknownFields = {};
105
- return _this;
80
+ this.$unknownFields = {};
106
81
  }
107
82
 
108
83
  /**
@@ -113,622 +88,572 @@ var Report = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra)
113
88
  * @param callFromChild {Boolean} Flag to recognise calling instance
114
89
  * @return {module:Ntnx/Report} The populated <code>Report</code> instance.
115
90
  */
116
- _inherits(Report, _ExternalizableAbstra);
117
- return _createClass(Report, [{
118
- key: "getName",
119
- value:
120
- /**
121
- * Returns Report instance name
122
- * @return {string}
123
- */
124
- function getName() {
125
- return this.name;
91
+ static constructFromObject(data, obj = null, callFromChild = false) {
92
+ let items, item, i, itemArr, discriminator;
93
+ if (data) {
94
+ obj = obj || new Report();
95
+ _ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
96
+ if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
97
+ obj.setName(data['name']);
98
+ }
99
+ if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
100
+ obj.setDescription(data['description']);
101
+ }
102
+ if (data.hasOwnProperty('configExtId') && data.configExtId !== null && data.configExtId !== undefined) {
103
+ obj.setConfigExtId(data['configExtId']);
104
+ }
105
+ if (data.hasOwnProperty('isPersistent') && data.isPersistent !== null && data.isPersistent !== undefined) {
106
+ obj.setIsPersistent(data['isPersistent']);
107
+ }
108
+ if (data.hasOwnProperty('overrideSupportedFormats') && data.overrideSupportedFormats !== null && data.overrideSupportedFormats !== undefined) {
109
+ itemArr = [];
110
+ items = data.overrideSupportedFormats;
111
+ for (i = 0; i < items.length; i++) {
112
+ item = _ReportFormat.default.constructFromObject(items[i], undefined);
113
+ itemArr.push(item);
114
+ }
115
+ obj.setOverrideSupportedFormats(itemArr);
116
+ }
117
+ if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
118
+ obj.setStartTime(data['startTime']);
119
+ }
120
+ if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
121
+ obj.setEndTime(data['endTime']);
122
+ }
123
+ if (data.hasOwnProperty('recipientFormats') && data.recipientFormats !== null && data.recipientFormats !== undefined) {
124
+ itemArr = [];
125
+ items = data.recipientFormats;
126
+ for (i = 0; i < items.length; i++) {
127
+ item = _ReportFormat.default.constructFromObject(items[i], undefined);
128
+ itemArr.push(item);
129
+ }
130
+ obj.setRecipientFormats(itemArr);
131
+ }
132
+ if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
133
+ itemArr = [];
134
+ items = data.recipients;
135
+ for (i = 0; i < items.length; i++) {
136
+ item = _Recipient.default.constructFromObject(items[i], undefined);
137
+ itemArr.push(item);
138
+ }
139
+ obj.setRecipients(itemArr);
140
+ }
141
+ if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {
142
+ obj.setCreationTime(data['creationTime']);
143
+ }
144
+ if (data.hasOwnProperty('timezone') && data.timezone !== null && data.timezone !== undefined) {
145
+ obj.setTimezone(data['timezone']);
146
+ }
147
+ if (data.hasOwnProperty('entitySelection') && data.entitySelection !== null && data.entitySelection !== undefined) {
148
+ obj.setEntitySelection(_EntitySelection.default.constructFromObject(data['entitySelection']));
149
+ }
150
+ if (data.hasOwnProperty('ownerExtId') && data.ownerExtId !== null && data.ownerExtId !== undefined) {
151
+ obj.setOwnerExtId(data['ownerExtId']);
152
+ }
153
+ if (data.hasOwnProperty('availableFormats') && data.availableFormats !== null && data.availableFormats !== undefined) {
154
+ itemArr = [];
155
+ items = data.availableFormats;
156
+ for (i = 0; i < items.length; i++) {
157
+ item = _ReportFormat.default.constructFromObject(items[i], undefined);
158
+ itemArr.push(item);
159
+ }
160
+ obj.setAvailableFormats(itemArr);
161
+ }
162
+ if (!callFromChild) {
163
+ obj.$unknownFields = {
164
+ ...data.$unknownFields
165
+ };
166
+ for (const property in data) {
167
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
168
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
169
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
170
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
171
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
172
+ obj.$unknownFields[property] = data[property];
173
+ }
174
+ }
175
+ }
126
176
  }
177
+ return obj;
178
+ }
127
179
 
128
- /**
129
- * Sets Report instance name
130
- * @param {string} name Report instance name
131
- */
132
- }, {
133
- key: "setName",
134
- value: function setName(name) {
135
- this.name = name;
136
- }
180
+ /**
181
+ * Converts a given snake_case string to camelCase.
182
+ * @param {string} snakeStr - The input string in snake_case format.
183
+ * @returns {string} - The converted string in camelCase format.
184
+ */
185
+ static snakeToCamel(snakeStr) {
186
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
187
+ }
137
188
 
138
- /**
139
- * Returns Description of the report. This will be part of generated report.
140
- * @return {string}
141
- */
142
- }, {
143
- key: "getDescription",
144
- value: function getDescription() {
145
- return this.description;
146
- }
189
+ /**
190
+ * Returns Report instance name
191
+ * @return {string}
192
+ */
193
+ getName() {
194
+ return this.name;
195
+ }
147
196
 
148
- /**
149
- * Sets Description of the report. This will be part of generated report.
150
- * @param {string} description Description of the report. This will be part of generated report.
151
- */
152
- }, {
153
- key: "setDescription",
154
- value: function setDescription(description) {
155
- this.description = description;
156
- }
197
+ /**
198
+ * Sets Report instance name
199
+ * @param {string} name Report instance name
200
+ */
201
+ setName(name) {
202
+ this.name = name;
203
+ }
157
204
 
158
- /**
159
- * Returns UUID for the report configuration for which report needs to be generated.
160
- * @return {string}
161
- */
162
- }, {
163
- key: "getConfigExtId",
164
- value: function getConfigExtId() {
165
- return this.configExtId;
166
- }
205
+ /**
206
+ * Returns Description of the report. This will be part of generated report.
207
+ * @return {string}
208
+ */
209
+ getDescription() {
210
+ return this.description;
211
+ }
167
212
 
168
- /**
169
- * Sets UUID for the report configuration for which report needs to be generated.
170
- * @param {string} configExtId UUID for the report configuration for which report needs to be generated.
171
- */
172
- }, {
173
- key: "setConfigExtId",
174
- value: function setConfigExtId(configExtId) {
175
- this.configExtId = configExtId;
176
- }
213
+ /**
214
+ * Sets Description of the report. This will be part of generated report.
215
+ * @param {string} description Description of the report. This will be part of generated report.
216
+ */
217
+ setDescription(description) {
218
+ this.description = description;
219
+ }
177
220
 
178
- /**
179
- * Returns Generated report saved or not
180
- * @return {boolean}
181
- */
182
- }, {
183
- key: "getIsPersistent",
184
- value: function getIsPersistent() {
185
- return this.isPersistent;
186
- }
221
+ /**
222
+ * Returns UUID for the report configuration for which report needs to be generated.
223
+ * @return {string}
224
+ */
225
+ getConfigExtId() {
226
+ return this.configExtId;
227
+ }
187
228
 
188
- /**
189
- * Sets Generated report saved or not
190
- * @param {boolean} isPersistent Generated report saved or not
191
- */
192
- }, {
193
- key: "setIsPersistent",
194
- value: function setIsPersistent(isPersistent) {
195
- this.isPersistent = isPersistent;
196
- }
229
+ /**
230
+ * Sets UUID for the report configuration for which report needs to be generated.
231
+ * @param {string} configExtId UUID for the report configuration for which report needs to be generated.
232
+ */
233
+ setConfigExtId(configExtId) {
234
+ this.configExtId = configExtId;
235
+ }
197
236
 
198
- /**
199
- * Returns List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
200
- * @return {ReportFormat[]}
201
- */
202
- }, {
203
- key: "getOverrideSupportedFormats",
204
- value: function getOverrideSupportedFormats() {
205
- return this.overrideSupportedFormats;
206
- }
237
+ /**
238
+ * Returns Generated report saved or not
239
+ * @return {boolean}
240
+ */
241
+ getIsPersistent() {
242
+ return this.isPersistent;
243
+ }
207
244
 
208
- /**
209
- * Sets List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
210
- * @param {ReportFormat[]} overrideSupportedFormats List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
211
- */
212
- }, {
213
- key: "setOverrideSupportedFormats",
214
- value: function setOverrideSupportedFormats(overrideSupportedFormats) {
215
- this.overrideSupportedFormats = overrideSupportedFormats;
216
- }
245
+ /**
246
+ * Sets Generated report saved or not
247
+ * @param {boolean} isPersistent Generated report saved or not
248
+ */
249
+ setIsPersistent(isPersistent) {
250
+ this.isPersistent = isPersistent;
251
+ }
217
252
 
218
- /**
219
- * Returns UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
220
- * @return {Date}
221
- */
222
- }, {
223
- key: "getStartTime",
224
- value: function getStartTime() {
225
- return this.startTime;
226
- }
253
+ /**
254
+ * Returns List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
255
+ * @return {ReportFormat[]}
256
+ */
257
+ getOverrideSupportedFormats() {
258
+ return this.overrideSupportedFormats;
259
+ }
227
260
 
228
- /**
229
- * Sets UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
230
- * @param {Date} startTime UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
231
- */
232
- }, {
233
- key: "setStartTime",
234
- value: function setStartTime(startTime) {
235
- this.startTime = startTime;
236
- }
261
+ /**
262
+ * Sets List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
263
+ * @param {ReportFormat[]} overrideSupportedFormats List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
264
+ */
265
+ setOverrideSupportedFormats(overrideSupportedFormats) {
266
+ this.overrideSupportedFormats = overrideSupportedFormats;
267
+ }
237
268
 
238
- /**
239
- * Returns UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
240
- * @return {Date}
241
- */
242
- }, {
243
- key: "getEndTime",
244
- value: function getEndTime() {
245
- return this.endTime;
246
- }
269
+ /**
270
+ * Returns UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
271
+ * @return {Date}
272
+ */
273
+ getStartTime() {
274
+ return this.startTime;
275
+ }
247
276
 
248
- /**
249
- * Sets UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
250
- * @param {Date} endTime UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
251
- */
252
- }, {
253
- key: "setEndTime",
254
- value: function setEndTime(endTime) {
255
- this.endTime = endTime;
256
- }
277
+ /**
278
+ * Sets UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
279
+ * @param {Date} startTime UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
280
+ */
281
+ setStartTime(startTime) {
282
+ this.startTime = startTime;
283
+ }
257
284
 
258
- /**
259
- * Returns List specifying the formats in which the report is to be sent.
260
- * @return {ReportFormat[]}
261
- */
262
- }, {
263
- key: "getRecipientFormats",
264
- value: function getRecipientFormats() {
265
- return this.recipientFormats;
266
- }
285
+ /**
286
+ * Returns UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
287
+ * @return {Date}
288
+ */
289
+ getEndTime() {
290
+ return this.endTime;
291
+ }
267
292
 
268
- /**
269
- * Sets List specifying the formats in which the report is to be sent.
270
- * @param {ReportFormat[]} recipientFormats List specifying the formats in which the report is to be sent.
271
- */
272
- }, {
273
- key: "setRecipientFormats",
274
- value: function setRecipientFormats(recipientFormats) {
275
- this.recipientFormats = recipientFormats;
276
- }
293
+ /**
294
+ * Sets UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
295
+ * @param {Date} endTime UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
296
+ */
297
+ setEndTime(endTime) {
298
+ this.endTime = endTime;
299
+ }
277
300
 
278
- /**
279
- * Returns Recipients in addition to the ones specified on the report configuration.
280
- * @return {Recipient[]}
281
- */
282
- }, {
283
- key: "getRecipients",
284
- value: function getRecipients() {
285
- return this.recipients;
286
- }
301
+ /**
302
+ * Returns List specifying the formats in which the report is to be sent.
303
+ * @return {ReportFormat[]}
304
+ */
305
+ getRecipientFormats() {
306
+ return this.recipientFormats;
307
+ }
287
308
 
288
- /**
289
- * Sets Recipients in addition to the ones specified on the report configuration.
290
- * @param {Recipient[]} recipients Recipients in addition to the ones specified on the report configuration.
291
- */
292
- }, {
293
- key: "setRecipients",
294
- value: function setRecipients(recipients) {
295
- this.recipients = recipients;
296
- }
309
+ /**
310
+ * Sets List specifying the formats in which the report is to be sent.
311
+ * @param {ReportFormat[]} recipientFormats List specifying the formats in which the report is to be sent.
312
+ */
313
+ setRecipientFormats(recipientFormats) {
314
+ this.recipientFormats = recipientFormats;
315
+ }
297
316
 
298
- /**
299
- * Returns Time in ISO 8601 format when the report instance was created.
300
- * @return {Date}
301
- */
302
- }, {
303
- key: "getCreationTime",
304
- value: function getCreationTime() {
305
- return this.creationTime;
306
- }
317
+ /**
318
+ * Returns Recipients in addition to the ones specified on the report configuration.
319
+ * @return {Recipient[]}
320
+ */
321
+ getRecipients() {
322
+ return this.recipients;
323
+ }
307
324
 
308
- /**
309
- * Sets Time in ISO 8601 format when the report instance was created.
310
- * @param {Date} creationTime Time in ISO 8601 format when the report instance was created.
311
- */
312
- }, {
313
- key: "setCreationTime",
314
- value: function setCreationTime(creationTime) {
315
- this.creationTime = creationTime;
316
- }
325
+ /**
326
+ * Sets Recipients in addition to the ones specified on the report configuration.
327
+ * @param {Recipient[]} recipients Recipients in addition to the ones specified on the report configuration.
328
+ */
329
+ setRecipients(recipients) {
330
+ this.recipients = recipients;
331
+ }
317
332
 
318
- /**
319
- * Returns Timezone in which report is to be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
320
- * @return {string}
321
- */
322
- }, {
323
- key: "getTimezone",
324
- value: function getTimezone() {
325
- return this.timezone;
326
- }
333
+ /**
334
+ * Returns Time in ISO 8601 format when the report instance was created.
335
+ * @return {Date}
336
+ */
337
+ getCreationTime() {
338
+ return this.creationTime;
339
+ }
327
340
 
328
- /**
329
- * Sets Timezone in which report is to be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
330
- * @param {string} timezone Timezone in which report is to be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
331
- */
332
- }, {
333
- key: "setTimezone",
334
- value: function setTimezone(timezone) {
335
- this.timezone = timezone;
336
- }
341
+ /**
342
+ * Sets Time in ISO 8601 format when the report instance was created.
343
+ * @param {Date} creationTime Time in ISO 8601 format when the report instance was created.
344
+ */
345
+ setCreationTime(creationTime) {
346
+ this.creationTime = creationTime;
347
+ }
337
348
 
338
- /**
339
- * @return {EntitySelection}
340
- */
341
- }, {
342
- key: "getEntitySelection",
343
- value: function getEntitySelection() {
344
- return this.entitySelection;
345
- }
349
+ /**
350
+ * Returns Timezone in which report is to be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
351
+ * @return {string}
352
+ */
353
+ getTimezone() {
354
+ return this.timezone;
355
+ }
346
356
 
347
- /**
348
- * @param {EntitySelection} entitySelection
349
- */
350
- }, {
351
- key: "setEntitySelection",
352
- value: function setEntitySelection(entitySelection) {
353
- this.entitySelection = entitySelection;
354
- }
357
+ /**
358
+ * Sets Timezone in which report is to be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
359
+ * @param {string} timezone Timezone in which report is to be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
360
+ */
361
+ setTimezone(timezone) {
362
+ this.timezone = timezone;
363
+ }
355
364
 
356
- /**
357
- * Returns Owner UUID for the report instance.\"
358
- * @return {string}
359
- */
360
- }, {
361
- key: "getOwnerExtId",
362
- value: function getOwnerExtId() {
363
- return this.ownerExtId;
364
- }
365
+ /**
366
+ * @return {EntitySelection}
367
+ */
368
+ getEntitySelection() {
369
+ return this.entitySelection;
370
+ }
365
371
 
366
- /**
367
- * Sets Owner UUID for the report instance.\"
368
- * @param {string} ownerExtId Owner UUID for the report instance.\"
369
- */
370
- }, {
371
- key: "setOwnerExtId",
372
- value: function setOwnerExtId(ownerExtId) {
373
- this.ownerExtId = ownerExtId;
374
- }
372
+ /**
373
+ * @param {EntitySelection} entitySelection
374
+ */
375
+ setEntitySelection(entitySelection) {
376
+ this.entitySelection = entitySelection;
377
+ }
375
378
 
376
- /**
377
- * Returns List of formats in which report generation was successful.
378
- * @return {ReportFormat[]}
379
- */
380
- }, {
381
- key: "getAvailableFormats",
382
- value: function getAvailableFormats() {
383
- return this.availableFormats;
384
- }
379
+ /**
380
+ * Returns Owner UUID for the report instance.\"
381
+ * @return {string}
382
+ */
383
+ getOwnerExtId() {
384
+ return this.ownerExtId;
385
+ }
385
386
 
386
- /**
387
- * Sets List of formats in which report generation was successful.
388
- * @param {ReportFormat[]} availableFormats List of formats in which report generation was successful.
389
- */
390
- }, {
391
- key: "setAvailableFormats",
392
- value: function setAvailableFormats(availableFormats) {
393
- this.availableFormats = availableFormats;
394
- }
395
- }, {
396
- key: "toJson",
397
- value: function toJson(forMutation) {
398
- if (forMutation === false) {
399
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
387
+ /**
388
+ * Sets Owner UUID for the report instance.\"
389
+ * @param {string} ownerExtId Owner UUID for the report instance.\"
390
+ */
391
+ setOwnerExtId(ownerExtId) {
392
+ this.ownerExtId = ownerExtId;
393
+ }
394
+
395
+ /**
396
+ * Returns List of formats in which report generation was successful.
397
+ * @return {ReportFormat[]}
398
+ */
399
+ getAvailableFormats() {
400
+ return this.availableFormats;
401
+ }
402
+
403
+ /**
404
+ * Sets List of formats in which report generation was successful.
405
+ * @param {ReportFormat[]} availableFormats List of formats in which report generation was successful.
406
+ */
407
+ setAvailableFormats(availableFormats) {
408
+ this.availableFormats = availableFormats;
409
+ }
410
+ toJson(forMutation) {
411
+ if (forMutation === false) {
412
+ return {
413
+ ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
400
414
  'name': this.getName()
401
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
415
+ } : {}),
416
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
402
417
  'description': this.getDescription()
403
- } : {}), typeof this.getConfigExtId() !== 'undefined' && this.getConfigExtId() !== null ? {
418
+ } : {}),
419
+ ...(typeof this.getConfigExtId() !== 'undefined' && this.getConfigExtId() !== null ? {
404
420
  'configExtId': this.getConfigExtId()
405
- } : {}), typeof this.getIsPersistent() !== 'undefined' && this.getIsPersistent() !== null ? {
421
+ } : {}),
422
+ ...(typeof this.getIsPersistent() !== 'undefined' && this.getIsPersistent() !== null ? {
406
423
  'isPersistent': this.getIsPersistent()
407
- } : {}), typeof this.getOverrideSupportedFormats() !== 'undefined' && this.getOverrideSupportedFormats() !== null ? {
424
+ } : {}),
425
+ ...(typeof this.getOverrideSupportedFormats() !== 'undefined' && this.getOverrideSupportedFormats() !== null ? {
408
426
  'overrideSupportedFormats': this.getOverrideSupportedFormats()
409
- } : {}), typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
427
+ } : {}),
428
+ ...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
410
429
  'startTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getStartTime(), false)
411
- } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
430
+ } : {}),
431
+ ...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
412
432
  'endTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getEndTime(), false)
413
- } : {}), typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
433
+ } : {}),
434
+ ...(typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
414
435
  'recipientFormats': this.getRecipientFormats()
415
- } : {}), typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
416
- 'recipients': this.getRecipients().map(function (item) {
417
- return item.toJson(false);
418
- })
419
- } : {}), typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
436
+ } : {}),
437
+ ...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
438
+ 'recipients': this.getRecipients().map(item => item.toJson(false))
439
+ } : {}),
440
+ ...(typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
420
441
  'creationTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getCreationTime(), false)
421
- } : {}), typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
442
+ } : {}),
443
+ ...(typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
422
444
  'timezone': this.getTimezone()
423
- } : {}), typeof this.getEntitySelection() !== 'undefined' && this.getEntitySelection() !== null ? {
445
+ } : {}),
446
+ ...(typeof this.getEntitySelection() !== 'undefined' && this.getEntitySelection() !== null ? {
424
447
  'entitySelection': this.getEntitySelection().toJson(false)
425
- } : {}), typeof this.getOwnerExtId() !== 'undefined' && this.getOwnerExtId() !== null ? {
448
+ } : {}),
449
+ ...(typeof this.getOwnerExtId() !== 'undefined' && this.getOwnerExtId() !== null ? {
426
450
  'ownerExtId': this.getOwnerExtId()
427
- } : {}), typeof this.getAvailableFormats() !== 'undefined' && this.getAvailableFormats() !== null ? {
451
+ } : {}),
452
+ ...(typeof this.getAvailableFormats() !== 'undefined' && this.getAvailableFormats() !== null ? {
428
453
  'availableFormats': this.getAvailableFormats()
429
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
454
+ } : {}),
455
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
430
456
  'extId': this.getExtId()
431
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
432
- 'links': this.getLinks().map(function (item) {
433
- return item.toJson(false);
434
- })
435
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
457
+ } : {}),
458
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
459
+ 'links': this.getLinks().map(item => item.toJson(false))
460
+ } : {}),
461
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
436
462
  'tenantId': this.getTenantId()
437
- } : {}), {}, {
438
- '$reserved': this.get$Reserved(),
439
- '$objectType': this.get$ObjectType(),
440
- '$unknownFields': this.get$UnknownFields()
441
- });
442
- }
443
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getName() !== 'undefined' && this.getName() !== null ? {
463
+ } : {}),
464
+ '$reserved': this.get$Reserved(),
465
+ '$objectType': this.get$ObjectType(),
466
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
467
+ '$unknownFields': {}
468
+ };
469
+ }
470
+ return {
471
+ ...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
444
472
  'name': this.getName()
445
- } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
473
+ } : {}),
474
+ ...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
446
475
  'description': this.getDescription()
447
- } : {}), typeof this.getConfigExtId() !== 'undefined' && this.getConfigExtId() !== null ? {
476
+ } : {}),
477
+ ...(typeof this.getConfigExtId() !== 'undefined' && this.getConfigExtId() !== null ? {
448
478
  'configExtId': this.getConfigExtId()
449
- } : {}), typeof this.getIsPersistent() !== 'undefined' && this.getIsPersistent() !== null ? {
479
+ } : {}),
480
+ ...(typeof this.getIsPersistent() !== 'undefined' && this.getIsPersistent() !== null ? {
450
481
  'isPersistent': this.getIsPersistent()
451
- } : {}), typeof this.getOverrideSupportedFormats() !== 'undefined' && this.getOverrideSupportedFormats() !== null ? {
482
+ } : {}),
483
+ ...(typeof this.getOverrideSupportedFormats() !== 'undefined' && this.getOverrideSupportedFormats() !== null ? {
452
484
  'overrideSupportedFormats': this.getOverrideSupportedFormats()
453
- } : {}), typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
485
+ } : {}),
486
+ ...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
454
487
  'startTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getStartTime(), false)
455
- } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
488
+ } : {}),
489
+ ...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
456
490
  'endTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getEndTime(), false)
457
- } : {}), typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
491
+ } : {}),
492
+ ...(typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
458
493
  'recipientFormats': this.getRecipientFormats()
459
- } : {}), typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
460
- 'recipients': this.getRecipients().map(function (item) {
461
- return item.toJson(false);
462
- })
463
- } : {}), typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
494
+ } : {}),
495
+ ...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
496
+ 'recipients': this.getRecipients().map(item => item.toJson(false))
497
+ } : {}),
498
+ ...(typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
464
499
  'timezone': this.getTimezone()
465
- } : {}), typeof this.getEntitySelection() !== 'undefined' && this.getEntitySelection() !== null ? {
500
+ } : {}),
501
+ ...(typeof this.getEntitySelection() !== 'undefined' && this.getEntitySelection() !== null ? {
466
502
  'entitySelection': this.getEntitySelection().toJson(false)
467
- } : {}), {}, {
468
- '$reserved': this.get$Reserved(),
469
- '$objectType': this.get$ObjectType(),
470
- '$unknownFields': this.get$UnknownFields()
471
- });
472
- }
473
- }, {
474
- key: "validate",
475
- value: function validate(scope, properties) {
476
- var _this2 = this;
477
- var propList = [];
478
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
479
- //cases validate() and validate(scope)
480
- propList = ["name", "configExtId", "startTime", "endTime"];
481
- } else if (arguments.length === 1) {
482
- //case validate(properties)
483
- propList = arguments[0];
484
- scope = null;
503
+ } : {}),
504
+ '$reserved': this.get$Reserved(),
505
+ '$objectType': this.get$ObjectType(),
506
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
507
+ '$unknownFields': {}
508
+ };
509
+ }
510
+ validate(scope, properties) {
511
+ let propList = [];
512
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
513
+ //cases validate() and validate(scope)
514
+ propList = ["name", "configExtId", "startTime", "endTime"];
515
+ } else if (arguments.length === 1) {
516
+ //case validate(properties)
517
+ propList = arguments[0];
518
+ scope = null;
519
+ } else {
520
+ //case validate(scope, properties)
521
+ propList = arguments[1];
522
+ }
523
+ let res = [];
524
+ let err = null;
525
+ propList.forEach(property => {
526
+ err = this.validateProperty(property, scope);
527
+ if (err) {
528
+ res.push(err);
529
+ }
530
+ });
531
+ return new Promise(function (resolve, reject) {
532
+ if (res.length !== 0) {
533
+ reject(err);
485
534
  } else {
486
- //case validate(scope, properties)
487
- propList = arguments[1];
488
- }
489
- var res = [];
490
- var err = null;
491
- propList.forEach(function (property) {
492
- err = _this2.validateProperty(property, scope);
493
- if (err) {
494
- res.push(err);
495
- }
496
- });
497
- return new Promise(function (resolve, reject) {
498
- if (res.length !== 0) {
499
- reject(err);
500
- } else {
501
- resolve();
502
- }
503
- });
535
+ resolve();
536
+ }
537
+ });
538
+ }
539
+ validateProperty(scope, property) {
540
+ if (property === "name") {
541
+ if (typeof this.name === 'undefined' || this.name === null) {
542
+ return new _ValidationError.default("name", "undefined or null");
543
+ }
544
+ if (!_ValidationUtils.default.validateMaxLength(this.name, 256)) {
545
+ return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 256");
546
+ }
547
+ if (!_ValidationUtils.default.validateMinLength(this.name, 1)) {
548
+ return new _ValidationError.default("name", "does not satisfy required minLength constraint: 1");
549
+ }
504
550
  }
505
- }, {
506
- key: "validateProperty",
507
- value: function validateProperty(scope, property) {
508
- if (property === "name") {
509
- if (typeof this.name === 'undefined' || this.name === null) {
510
- return new _ValidationError["default"]("name", "undefined or null");
511
- }
512
- if (!_ValidationUtils["default"].validateMaxLength(this.name, 256)) {
513
- return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 256");
514
- }
515
- if (!_ValidationUtils["default"].validateMinLength(this.name, 1)) {
516
- return new _ValidationError["default"]("name", "does not satisfy required minLength constraint: 1");
517
- }
551
+ if (property === "description") {
552
+ if (typeof this.description === 'undefined' || this.description === null) {
553
+ return new _ValidationError.default("description", "undefined or null");
518
554
  }
519
- if (property === "description") {
520
- if (typeof this.description === 'undefined' || this.description === null) {
521
- return new _ValidationError["default"]("description", "undefined or null");
522
- }
523
- if (!_ValidationUtils["default"].validateMaxLength(this.description, 256)) {
524
- return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 256");
525
- }
555
+ if (!_ValidationUtils.default.validateMaxLength(this.description, 256)) {
556
+ return new _ValidationError.default("description", "does not satisfy required maxLength constraint: 256");
526
557
  }
527
- if (property === "configExtId") {
528
- if (typeof this.configExtId === 'undefined' || this.configExtId === null) {
529
- return new _ValidationError["default"]("configExtId", "undefined or null");
530
- }
531
- if (!_ValidationUtils["default"].validatePattern(this.configExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
532
- return new _ValidationError["default"]("configExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
533
- }
558
+ }
559
+ if (property === "configExtId") {
560
+ if (typeof this.configExtId === 'undefined' || this.configExtId === null) {
561
+ return new _ValidationError.default("configExtId", "undefined or null");
534
562
  }
535
- if (property === "isPersistent") {
536
- if (typeof this.isPersistent === 'undefined' || this.isPersistent === null) {
537
- return new _ValidationError["default"]("isPersistent", "undefined or null");
538
- }
563
+ if (!_ValidationUtils.default.validatePattern(this.configExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
564
+ return new _ValidationError.default("configExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
539
565
  }
540
- if (property === "overrideSupportedFormats") {
541
- if (typeof this.overrideSupportedFormats === 'undefined' || this.overrideSupportedFormats === null) {
542
- return new _ValidationError["default"]("overrideSupportedFormats", "undefined or null");
543
- }
544
- if (!_ValidationUtils["default"].validateMaxItems(this.overrideSupportedFormats, 2)) {
545
- return new _ValidationError["default"]("overrideSupportedFormats", "does not satisfy required maxItems constraint: 2");
546
- }
566
+ }
567
+ if (property === "isPersistent") {
568
+ if (typeof this.isPersistent === 'undefined' || this.isPersistent === null) {
569
+ return new _ValidationError.default("isPersistent", "undefined or null");
547
570
  }
548
- if (property === "startTime") {
549
- if (typeof this.startTime === 'undefined' || this.startTime === null) {
550
- return new _ValidationError["default"]("startTime", "undefined or null");
551
- }
571
+ }
572
+ if (property === "overrideSupportedFormats") {
573
+ if (typeof this.overrideSupportedFormats === 'undefined' || this.overrideSupportedFormats === null) {
574
+ return new _ValidationError.default("overrideSupportedFormats", "undefined or null");
552
575
  }
553
- if (property === "endTime") {
554
- if (typeof this.endTime === 'undefined' || this.endTime === null) {
555
- return new _ValidationError["default"]("endTime", "undefined or null");
556
- }
576
+ if (!_ValidationUtils.default.validateMaxItems(this.overrideSupportedFormats, 2)) {
577
+ return new _ValidationError.default("overrideSupportedFormats", "does not satisfy required maxItems constraint: 2");
557
578
  }
558
- if (property === "recipientFormats") {
559
- if (typeof this.recipientFormats === 'undefined' || this.recipientFormats === null) {
560
- return new _ValidationError["default"]("recipientFormats", "undefined or null");
561
- }
562
- if (!_ValidationUtils["default"].validateMaxItems(this.recipientFormats, 2)) {
563
- return new _ValidationError["default"]("recipientFormats", "does not satisfy required maxItems constraint: 2");
564
- }
579
+ }
580
+ if (property === "startTime") {
581
+ if (typeof this.startTime === 'undefined' || this.startTime === null) {
582
+ return new _ValidationError.default("startTime", "undefined or null");
565
583
  }
566
- if (property === "recipients") {
567
- if (typeof this.recipients === 'undefined' || this.recipients === null) {
568
- return new _ValidationError["default"]("recipients", "undefined or null");
569
- }
570
- if (!_ValidationUtils["default"].validateMaxItems(this.recipients, 100)) {
571
- return new _ValidationError["default"]("recipients", "does not satisfy required maxItems constraint: 100");
572
- }
573
- if (!_ValidationUtils["default"].validateMinItems(this.recipients, 1)) {
574
- return new _ValidationError["default"]("recipients", "does not satisfy required minItems constraint: 1");
575
- }
584
+ }
585
+ if (property === "endTime") {
586
+ if (typeof this.endTime === 'undefined' || this.endTime === null) {
587
+ return new _ValidationError.default("endTime", "undefined or null");
576
588
  }
577
- if (property === "creationTime") {
578
- if (typeof this.creationTime === 'undefined' || this.creationTime === null) {
579
- return new _ValidationError["default"]("creationTime", "undefined or null");
580
- }
589
+ }
590
+ if (property === "recipientFormats") {
591
+ if (typeof this.recipientFormats === 'undefined' || this.recipientFormats === null) {
592
+ return new _ValidationError.default("recipientFormats", "undefined or null");
581
593
  }
582
- if (property === "timezone") {
583
- if (typeof this.timezone === 'undefined' || this.timezone === null) {
584
- return new _ValidationError["default"]("timezone", "undefined or null");
585
- }
586
- if (!_ValidationUtils["default"].validatePattern(this.timezone, /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/)) {
587
- return new _ValidationError["default"]("timezone", "does not satisfy required pattern: /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/");
588
- }
594
+ if (!_ValidationUtils.default.validateMaxItems(this.recipientFormats, 2)) {
595
+ return new _ValidationError.default("recipientFormats", "does not satisfy required maxItems constraint: 2");
589
596
  }
590
- if (property === "entitySelection") {
591
- if (typeof this.entitySelection === 'undefined' || this.entitySelection === null) {
592
- return new _ValidationError["default"]("entitySelection", "undefined or null");
593
- }
597
+ }
598
+ if (property === "recipients") {
599
+ if (typeof this.recipients === 'undefined' || this.recipients === null) {
600
+ return new _ValidationError.default("recipients", "undefined or null");
594
601
  }
595
- if (property === "ownerExtId") {
596
- if (typeof this.ownerExtId === 'undefined' || this.ownerExtId === null) {
597
- return new _ValidationError["default"]("ownerExtId", "undefined or null");
598
- }
599
- if (!_ValidationUtils["default"].validatePattern(this.ownerExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
600
- return new _ValidationError["default"]("ownerExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
601
- }
602
+ if (!_ValidationUtils.default.validateMaxItems(this.recipients, 100)) {
603
+ return new _ValidationError.default("recipients", "does not satisfy required maxItems constraint: 100");
602
604
  }
603
- if (property === "availableFormats") {
604
- if (typeof this.availableFormats === 'undefined' || this.availableFormats === null) {
605
- return new _ValidationError["default"]("availableFormats", "undefined or null");
606
- }
607
- if (!_ValidationUtils["default"].validateMaxItems(this.availableFormats, 2)) {
608
- return new _ValidationError["default"]("availableFormats", "does not satisfy required maxItems constraint: 2");
609
- }
605
+ if (!_ValidationUtils.default.validateMinItems(this.recipients, 1)) {
606
+ return new _ValidationError.default("recipients", "does not satisfy required minItems constraint: 1");
610
607
  }
611
- return new _ValidationError["default"](property, "no such property exists");
612
608
  }
613
- }], [{
614
- key: "constructFromObject",
615
- value: function constructFromObject(data) {
616
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
617
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
618
- var items, item, i, itemArr, discriminator;
619
- if (data) {
620
- obj = obj || new Report();
621
- _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
622
- if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
623
- obj.setName(data['name']);
624
- }
625
- if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
626
- obj.setDescription(data['description']);
627
- }
628
- if (data.hasOwnProperty('configExtId') && data.configExtId !== null && data.configExtId !== undefined) {
629
- obj.setConfigExtId(data['configExtId']);
630
- }
631
- if (data.hasOwnProperty('isPersistent') && data.isPersistent !== null && data.isPersistent !== undefined) {
632
- obj.setIsPersistent(data['isPersistent']);
633
- }
634
- if (data.hasOwnProperty('overrideSupportedFormats') && data.overrideSupportedFormats !== null && data.overrideSupportedFormats !== undefined) {
635
- itemArr = [];
636
- items = data.overrideSupportedFormats;
637
- for (i = 0; i < items.length; i++) {
638
- item = _ReportFormat["default"].constructFromObject(items[i], undefined);
639
- itemArr.push(item);
640
- }
641
- obj.setOverrideSupportedFormats(itemArr);
642
- }
643
- if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
644
- obj.setStartTime(data['startTime']);
645
- }
646
- if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
647
- obj.setEndTime(data['endTime']);
648
- }
649
- if (data.hasOwnProperty('recipientFormats') && data.recipientFormats !== null && data.recipientFormats !== undefined) {
650
- itemArr = [];
651
- items = data.recipientFormats;
652
- for (i = 0; i < items.length; i++) {
653
- item = _ReportFormat["default"].constructFromObject(items[i], undefined);
654
- itemArr.push(item);
655
- }
656
- obj.setRecipientFormats(itemArr);
657
- }
658
- if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
659
- itemArr = [];
660
- items = data.recipients;
661
- for (i = 0; i < items.length; i++) {
662
- item = _Recipient["default"].constructFromObject(items[i], undefined);
663
- itemArr.push(item);
664
- }
665
- obj.setRecipients(itemArr);
666
- }
667
- if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {
668
- obj.setCreationTime(data['creationTime']);
669
- }
670
- if (data.hasOwnProperty('timezone') && data.timezone !== null && data.timezone !== undefined) {
671
- obj.setTimezone(data['timezone']);
672
- }
673
- if (data.hasOwnProperty('entitySelection') && data.entitySelection !== null && data.entitySelection !== undefined) {
674
- obj.setEntitySelection(_EntitySelection["default"].constructFromObject(data['entitySelection']));
675
- }
676
- if (data.hasOwnProperty('ownerExtId') && data.ownerExtId !== null && data.ownerExtId !== undefined) {
677
- obj.setOwnerExtId(data['ownerExtId']);
678
- }
679
- if (data.hasOwnProperty('availableFormats') && data.availableFormats !== null && data.availableFormats !== undefined) {
680
- itemArr = [];
681
- items = data.availableFormats;
682
- for (i = 0; i < items.length; i++) {
683
- item = _ReportFormat["default"].constructFromObject(items[i], undefined);
684
- itemArr.push(item);
685
- }
686
- obj.setAvailableFormats(itemArr);
687
- }
688
- if (!callFromChild) {
689
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
690
- for (var property in data) {
691
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
692
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
693
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
694
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
695
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
696
- obj.$unknownFields[property] = data[property];
697
- }
698
- }
699
- }
609
+ if (property === "creationTime") {
610
+ if (typeof this.creationTime === 'undefined' || this.creationTime === null) {
611
+ return new _ValidationError.default("creationTime", "undefined or null");
700
612
  }
701
- return obj;
702
613
  }
703
-
704
- /**
705
- * Converts a given snake_case string to camelCase.
706
- * @param {string} snakeStr - The input string in snake_case format.
707
- * @returns {string} - The converted string in camelCase format.
708
- */
709
- }, {
710
- key: "snakeToCamel",
711
- value: function snakeToCamel(snakeStr) {
712
- return snakeStr.replace(/(_\w)/g, function (match) {
713
- return match[1].toUpperCase();
714
- });
614
+ if (property === "timezone") {
615
+ if (typeof this.timezone === 'undefined' || this.timezone === null) {
616
+ return new _ValidationError.default("timezone", "undefined or null");
617
+ }
618
+ if (!_ValidationUtils.default.validatePattern(this.timezone, /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/)) {
619
+ return new _ValidationError.default("timezone", "does not satisfy required pattern: /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/");
620
+ }
621
+ }
622
+ if (property === "entitySelection") {
623
+ if (typeof this.entitySelection === 'undefined' || this.entitySelection === null) {
624
+ return new _ValidationError.default("entitySelection", "undefined or null");
625
+ }
715
626
  }
716
- }]);
717
- }(_ExternalizableAbstractModel["default"]);
627
+ if (property === "ownerExtId") {
628
+ if (typeof this.ownerExtId === 'undefined' || this.ownerExtId === null) {
629
+ return new _ValidationError.default("ownerExtId", "undefined or null");
630
+ }
631
+ if (!_ValidationUtils.default.validatePattern(this.ownerExtId, /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)) {
632
+ return new _ValidationError.default("ownerExtId", "does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/");
633
+ }
634
+ }
635
+ if (property === "availableFormats") {
636
+ if (typeof this.availableFormats === 'undefined' || this.availableFormats === null) {
637
+ return new _ValidationError.default("availableFormats", "undefined or null");
638
+ }
639
+ if (!_ValidationUtils.default.validateMaxItems(this.availableFormats, 2)) {
640
+ return new _ValidationError.default("availableFormats", "does not satisfy required maxItems constraint: 2");
641
+ }
642
+ }
643
+ return new _ValidationError.default(property, "no such property exists");
644
+ }
645
+ }
646
+
718
647
  /**
719
648
  * Report instance name
720
649
  * @memberof Report
721
650
  */
651
+ exports.default = Report;
722
652
  function _toJsonMapType(obj, forMutation) {
723
653
  if (obj instanceof Map) {
724
- return Object.fromEntries(Array.from(obj, function (_ref) {
725
- var _ref2 = _slicedToArray(_ref, 2),
726
- k = _ref2[0],
727
- v = _ref2[1];
728
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
729
- }));
730
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
731
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
654
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
655
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
656
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
732
657
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
733
658
  }));
734
659
  }
@@ -829,15 +754,15 @@ Report.prototype.availableFormats = undefined;
829
754
  * A globally unique identifier of an instance that is suitable for external consumption.
830
755
  * @memberof Report
831
756
  */
832
- _ExternalizableAbstractModel["default"].prototype.extId = undefined;
757
+ _ExternalizableAbstractModel.default.prototype.extId = undefined;
833
758
  /**
834
759
  * A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
835
760
  * @memberof Report
836
761
  */
837
- _ExternalizableAbstractModel["default"].prototype.links = undefined;
762
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
838
763
  /**
839
764
  * A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
840
765
  * @memberof Report
841
766
  */
842
- _TenantAwareModel["default"].prototype.tenantId = undefined;
767
+ _TenantAwareModel.default.prototype.tenantId = undefined;
843
768
  // Implement OneOfopsmgmt.v4.config.GetReportApiResponsedata interface: