@nutanix-scratch/opsmgmt-js-client 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/LICENSE.txt +202 -0
  2. package/README.md +211 -0
  3. package/dist/Ntnx-Opsmgmt-js-client-prod.js +1 -0
  4. package/dist/Ntnx-Opsmgmt-js-client.js +1388 -0
  5. package/dist/es/ApiClient.d.ts +166 -0
  6. package/dist/es/ApiClient.js +1271 -0
  7. package/dist/es/Paginable.d.ts +95 -0
  8. package/dist/es/Paginable.js +287 -0
  9. package/dist/es/apis/globalreportsetting-endpoints.d.ts +43 -0
  10. package/dist/es/apis/globalreportsetting-endpoints.js +155 -0
  11. package/dist/es/apis/reportartifacts-endpoints.d.ts +82 -0
  12. package/dist/es/apis/reportartifacts-endpoints.js +275 -0
  13. package/dist/es/apis/reportconfig-endpoints.d.ts +110 -0
  14. package/dist/es/apis/reportconfig-endpoints.js +306 -0
  15. package/dist/es/apis/reports-endpoints.d.ts +118 -0
  16. package/dist/es/apis/reports-endpoints.js +342 -0
  17. package/dist/es/index.d.ts +182 -0
  18. package/dist/es/index.js +724 -0
  19. package/dist/es/models/common/v1/config/Flag.d.ts +64 -0
  20. package/dist/es/models/common/v1/config/Flag.js +319 -0
  21. package/dist/es/models/common/v1/config/KVPair.d.ts +71 -0
  22. package/dist/es/models/common/v1/config/KVPair.js +378 -0
  23. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  24. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
  25. package/dist/es/models/common/v1/config/Message.d.ts +87 -0
  26. package/dist/es/models/common/v1/config/Message.js +386 -0
  27. package/dist/es/models/common/v1/config/MessageSeverity.d.ts +19 -0
  28. package/dist/es/models/common/v1/config/MessageSeverity.js +91 -0
  29. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +52 -0
  30. package/dist/es/models/common/v1/config/TenantAwareModel.js +275 -0
  31. package/dist/es/models/common/v1/response/ApiLink.d.ts +64 -0
  32. package/dist/es/models/common/v1/response/ApiLink.js +312 -0
  33. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
  34. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +482 -0
  35. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
  36. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
  37. package/dist/es/models/opsmgmt/v4/config/AggregateFunction.d.ts +19 -0
  38. package/dist/es/models/opsmgmt/v4/config/AggregateFunction.js +109 -0
  39. package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +99 -0
  40. package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.js +343 -0
  41. package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +99 -0
  42. package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +343 -0
  43. package/dist/es/models/opsmgmt/v4/config/DataCriteria.d.ts +117 -0
  44. package/dist/es/models/opsmgmt/v4/config/DataCriteria.js +484 -0
  45. package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +98 -0
  46. package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.js +345 -0
  47. package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +98 -0
  48. package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +345 -0
  49. package/dist/es/models/opsmgmt/v4/config/EntitySelection.d.ts +77 -0
  50. package/dist/es/models/opsmgmt/v4/config/EntitySelection.js +331 -0
  51. package/dist/es/models/opsmgmt/v4/config/EntityType.d.ts +19 -0
  52. package/dist/es/models/opsmgmt/v4/config/EntityType.js +169 -0
  53. package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +99 -0
  54. package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +343 -0
  55. package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +102 -0
  56. package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.js +343 -0
  57. package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +99 -0
  58. package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +343 -0
  59. package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +87 -0
  60. package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.js +392 -0
  61. package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +99 -0
  62. package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +365 -0
  63. package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +99 -0
  64. package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.js +365 -0
  65. package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.d.ts +98 -0
  66. package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.js +426 -0
  67. package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +99 -0
  68. package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.js +343 -0
  69. package/dist/es/models/opsmgmt/v4/config/Recipient.d.ts +74 -0
  70. package/dist/es/models/opsmgmt/v4/config/Recipient.js +323 -0
  71. package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.d.ts +73 -0
  72. package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.js +318 -0
  73. package/dist/es/models/opsmgmt/v4/config/Report.d.ts +220 -0
  74. package/dist/es/models/opsmgmt/v4/config/Report.js +843 -0
  75. package/dist/es/models/opsmgmt/v4/config/ReportConfig.d.ts +264 -0
  76. package/dist/es/models/opsmgmt/v4/config/ReportConfig.js +869 -0
  77. package/dist/es/models/opsmgmt/v4/config/ReportCustomization.d.ts +88 -0
  78. package/dist/es/models/opsmgmt/v4/config/ReportCustomization.js +391 -0
  79. package/dist/es/models/opsmgmt/v4/config/ReportFormat.d.ts +19 -0
  80. package/dist/es/models/opsmgmt/v4/config/ReportFormat.js +85 -0
  81. package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +63 -0
  82. package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.js +347 -0
  83. package/dist/es/models/opsmgmt/v4/config/ReportSchedule.d.ts +105 -0
  84. package/dist/es/models/opsmgmt/v4/config/ReportSchedule.js +402 -0
  85. package/dist/es/models/opsmgmt/v4/config/RetentionConfig.d.ts +64 -0
  86. package/dist/es/models/opsmgmt/v4/config/RetentionConfig.js +312 -0
  87. package/dist/es/models/opsmgmt/v4/config/Row.d.ts +68 -0
  88. package/dist/es/models/opsmgmt/v4/config/Row.js +293 -0
  89. package/dist/es/models/opsmgmt/v4/config/ScheduleInterval.d.ts +19 -0
  90. package/dist/es/models/opsmgmt/v4/config/ScheduleInterval.js +103 -0
  91. package/dist/es/models/opsmgmt/v4/config/Section.d.ts +129 -0
  92. package/dist/es/models/opsmgmt/v4/config/Section.js +452 -0
  93. package/dist/es/models/opsmgmt/v4/config/SortKey.d.ts +19 -0
  94. package/dist/es/models/opsmgmt/v4/config/SortKey.js +103 -0
  95. package/dist/es/models/opsmgmt/v4/config/SortOrder.d.ts +19 -0
  96. package/dist/es/models/opsmgmt/v4/config/SortOrder.js +85 -0
  97. package/dist/es/models/opsmgmt/v4/config/TimeFilter.d.ts +19 -0
  98. package/dist/es/models/opsmgmt/v4/config/TimeFilter.js +85 -0
  99. package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +99 -0
  100. package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +365 -0
  101. package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +99 -0
  102. package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +343 -0
  103. package/dist/es/models/opsmgmt/v4/config/Widget.d.ts +64 -0
  104. package/dist/es/models/opsmgmt/v4/config/Widget.js +300 -0
  105. package/dist/es/models/opsmgmt/v4/config/WidgetConfig.d.ts +193 -0
  106. package/dist/es/models/opsmgmt/v4/config/WidgetConfig.js +598 -0
  107. package/dist/es/models/opsmgmt/v4/config/WidgetField.d.ts +89 -0
  108. package/dist/es/models/opsmgmt/v4/config/WidgetField.js +367 -0
  109. package/dist/es/models/opsmgmt/v4/config/WidgetSize.d.ts +19 -0
  110. package/dist/es/models/opsmgmt/v4/config/WidgetSize.js +91 -0
  111. package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.d.ts +51 -0
  112. package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.js +274 -0
  113. package/dist/es/models/opsmgmt/v4/config/WidgetTemplateType.d.ts +19 -0
  114. package/dist/es/models/opsmgmt/v4/config/WidgetTemplateType.js +223 -0
  115. package/dist/es/models/opsmgmt/v4/config/WidgetType.d.ts +19 -0
  116. package/dist/es/models/opsmgmt/v4/config/WidgetType.js +127 -0
  117. package/dist/es/models/opsmgmt/v4/content/ArtifactFileType.d.ts +19 -0
  118. package/dist/es/models/opsmgmt/v4/content/ArtifactFileType.js +85 -0
  119. package/dist/es/models/opsmgmt/v4/content/ArtifactType.d.ts +19 -0
  120. package/dist/es/models/opsmgmt/v4/content/ArtifactType.js +79 -0
  121. package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +99 -0
  122. package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +343 -0
  123. package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +98 -0
  124. package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +342 -0
  125. package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +98 -0
  126. package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.js +342 -0
  127. package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +99 -0
  128. package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +365 -0
  129. package/dist/es/models/opsmgmt/v4/content/ReportArtifact.d.ts +61 -0
  130. package/dist/es/models/opsmgmt/v4/content/ReportArtifact.js +317 -0
  131. package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +99 -0
  132. package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +365 -0
  133. package/dist/es/models/opsmgmt/v4/error/AppMessage.d.ts +117 -0
  134. package/dist/es/models/opsmgmt/v4/error/AppMessage.js +464 -0
  135. package/dist/es/models/opsmgmt/v4/error/ErrorResponse.d.ts +52 -0
  136. package/dist/es/models/opsmgmt/v4/error/ErrorResponse.js +339 -0
  137. package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.d.ts +108 -0
  138. package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.js +440 -0
  139. package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
  140. package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +350 -0
  141. package/dist/es/models/opsmgmt/v4/reporting/CustomView.d.ts +182 -0
  142. package/dist/es/models/opsmgmt/v4/reporting/CustomView.js +661 -0
  143. package/dist/es/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.d.ts +98 -0
  144. package/dist/es/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.js +345 -0
  145. package/dist/es/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.d.ts +99 -0
  146. package/dist/es/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.js +343 -0
  147. package/dist/es/models/opsmgmt/v4/reporting/Field.d.ts +85 -0
  148. package/dist/es/models/opsmgmt/v4/reporting/Field.js +362 -0
  149. package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.d.ts +62 -0
  150. package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.js +281 -0
  151. package/dist/es/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.d.ts +99 -0
  152. package/dist/es/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.js +343 -0
  153. package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +62 -0
  154. package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.js +286 -0
  155. package/dist/es/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.d.ts +102 -0
  156. package/dist/es/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.js +343 -0
  157. package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +86 -0
  158. package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.js +378 -0
  159. package/dist/es/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.d.ts +99 -0
  160. package/dist/es/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.js +343 -0
  161. package/dist/es/models/opsmgmt/v4/reporting/Operator.d.ts +19 -0
  162. package/dist/es/models/opsmgmt/v4/reporting/Operator.js +109 -0
  163. package/dist/es/models/opsmgmt/v4/reporting/PredefinedType.d.ts +19 -0
  164. package/dist/es/models/opsmgmt/v4/reporting/PredefinedType.js +199 -0
  165. package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.d.ts +51 -0
  166. package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.js +273 -0
  167. package/dist/es/models/opsmgmt/v4/reporting/Recipient.d.ts +74 -0
  168. package/dist/es/models/opsmgmt/v4/reporting/Recipient.js +323 -0
  169. package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +88 -0
  170. package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.js +391 -0
  171. package/dist/es/models/opsmgmt/v4/reporting/ReportFormat.d.ts +19 -0
  172. package/dist/es/models/opsmgmt/v4/reporting/ReportFormat.js +85 -0
  173. package/dist/es/models/opsmgmt/v4/reporting/SortOrder.d.ts +19 -0
  174. package/dist/es/models/opsmgmt/v4/reporting/SortOrder.js +85 -0
  175. package/dist/es/models/opsmgmt/v4/reporting/View.d.ts +78 -0
  176. package/dist/es/models/opsmgmt/v4/reporting/View.js +389 -0
  177. package/dist/es/models/opsmgmt/v4/reporting/ViewApiResponse.d.ts +99 -0
  178. package/dist/es/models/opsmgmt/v4/reporting/ViewApiResponse.js +343 -0
  179. package/dist/es/models/opsmgmt/v4/reporting/ViewConfigApiResponse.d.ts +99 -0
  180. package/dist/es/models/opsmgmt/v4/reporting/ViewConfigApiResponse.js +343 -0
  181. package/dist/es/models/opsmgmt/v4/reporting/ViewFormat.d.ts +19 -0
  182. package/dist/es/models/opsmgmt/v4/reporting/ViewFormat.js +109 -0
  183. package/dist/es/models/opsmgmt/v4/reporting/ViewReport.d.ts +127 -0
  184. package/dist/es/models/opsmgmt/v4/reporting/ViewReport.js +501 -0
  185. package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
  186. package/dist/es/models/prism/v4/config/TaskReference.js +285 -0
  187. package/dist/es/models/validation/ValidationError.d.ts +13 -0
  188. package/dist/es/models/validation/ValidationError.js +60 -0
  189. package/dist/es/models/validation/ValidationScopes.d.ts +9 -0
  190. package/dist/es/models/validation/ValidationScopes.js +38 -0
  191. package/dist/es/utils/ValidationUtils.d.ts +13 -0
  192. package/dist/es/utils/ValidationUtils.js +85 -0
  193. package/dist/lib/ApiClient.d.ts +166 -0
  194. package/dist/lib/ApiClient.js +1271 -0
  195. package/dist/lib/Paginable.d.ts +95 -0
  196. package/dist/lib/Paginable.js +287 -0
  197. package/dist/lib/apis/globalreportsetting-endpoints.d.ts +43 -0
  198. package/dist/lib/apis/globalreportsetting-endpoints.js +155 -0
  199. package/dist/lib/apis/reportartifacts-endpoints.d.ts +82 -0
  200. package/dist/lib/apis/reportartifacts-endpoints.js +275 -0
  201. package/dist/lib/apis/reportconfig-endpoints.d.ts +110 -0
  202. package/dist/lib/apis/reportconfig-endpoints.js +306 -0
  203. package/dist/lib/apis/reports-endpoints.d.ts +118 -0
  204. package/dist/lib/apis/reports-endpoints.js +342 -0
  205. package/dist/lib/index.d.ts +182 -0
  206. package/dist/lib/index.js +724 -0
  207. package/dist/lib/models/common/v1/config/Flag.d.ts +64 -0
  208. package/dist/lib/models/common/v1/config/Flag.js +319 -0
  209. package/dist/lib/models/common/v1/config/KVPair.d.ts +71 -0
  210. package/dist/lib/models/common/v1/config/KVPair.js +378 -0
  211. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
  212. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
  213. package/dist/lib/models/common/v1/config/Message.d.ts +87 -0
  214. package/dist/lib/models/common/v1/config/Message.js +386 -0
  215. package/dist/lib/models/common/v1/config/MessageSeverity.d.ts +19 -0
  216. package/dist/lib/models/common/v1/config/MessageSeverity.js +91 -0
  217. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +52 -0
  218. package/dist/lib/models/common/v1/config/TenantAwareModel.js +275 -0
  219. package/dist/lib/models/common/v1/response/ApiLink.d.ts +64 -0
  220. package/dist/lib/models/common/v1/response/ApiLink.js +312 -0
  221. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +133 -0
  222. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +482 -0
  223. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +48 -0
  224. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +310 -0
  225. package/dist/lib/models/opsmgmt/v4/config/AggregateFunction.d.ts +19 -0
  226. package/dist/lib/models/opsmgmt/v4/config/AggregateFunction.js +109 -0
  227. package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +99 -0
  228. package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.js +343 -0
  229. package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +99 -0
  230. package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +343 -0
  231. package/dist/lib/models/opsmgmt/v4/config/DataCriteria.d.ts +117 -0
  232. package/dist/lib/models/opsmgmt/v4/config/DataCriteria.js +484 -0
  233. package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +98 -0
  234. package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.js +345 -0
  235. package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +98 -0
  236. package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +345 -0
  237. package/dist/lib/models/opsmgmt/v4/config/EntitySelection.d.ts +77 -0
  238. package/dist/lib/models/opsmgmt/v4/config/EntitySelection.js +331 -0
  239. package/dist/lib/models/opsmgmt/v4/config/EntityType.d.ts +19 -0
  240. package/dist/lib/models/opsmgmt/v4/config/EntityType.js +169 -0
  241. package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +99 -0
  242. package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +343 -0
  243. package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +102 -0
  244. package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.js +343 -0
  245. package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +99 -0
  246. package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +343 -0
  247. package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +87 -0
  248. package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.js +392 -0
  249. package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +99 -0
  250. package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +365 -0
  251. package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +99 -0
  252. package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.js +365 -0
  253. package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.d.ts +98 -0
  254. package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.js +426 -0
  255. package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +99 -0
  256. package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.js +343 -0
  257. package/dist/lib/models/opsmgmt/v4/config/Recipient.d.ts +74 -0
  258. package/dist/lib/models/opsmgmt/v4/config/Recipient.js +323 -0
  259. package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.d.ts +73 -0
  260. package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.js +318 -0
  261. package/dist/lib/models/opsmgmt/v4/config/Report.d.ts +220 -0
  262. package/dist/lib/models/opsmgmt/v4/config/Report.js +843 -0
  263. package/dist/lib/models/opsmgmt/v4/config/ReportConfig.d.ts +264 -0
  264. package/dist/lib/models/opsmgmt/v4/config/ReportConfig.js +869 -0
  265. package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.d.ts +88 -0
  266. package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.js +391 -0
  267. package/dist/lib/models/opsmgmt/v4/config/ReportFormat.d.ts +19 -0
  268. package/dist/lib/models/opsmgmt/v4/config/ReportFormat.js +85 -0
  269. package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +63 -0
  270. package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.js +347 -0
  271. package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.d.ts +105 -0
  272. package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.js +402 -0
  273. package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.d.ts +64 -0
  274. package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.js +312 -0
  275. package/dist/lib/models/opsmgmt/v4/config/Row.d.ts +68 -0
  276. package/dist/lib/models/opsmgmt/v4/config/Row.js +293 -0
  277. package/dist/lib/models/opsmgmt/v4/config/ScheduleInterval.d.ts +19 -0
  278. package/dist/lib/models/opsmgmt/v4/config/ScheduleInterval.js +103 -0
  279. package/dist/lib/models/opsmgmt/v4/config/Section.d.ts +129 -0
  280. package/dist/lib/models/opsmgmt/v4/config/Section.js +452 -0
  281. package/dist/lib/models/opsmgmt/v4/config/SortKey.d.ts +19 -0
  282. package/dist/lib/models/opsmgmt/v4/config/SortKey.js +103 -0
  283. package/dist/lib/models/opsmgmt/v4/config/SortOrder.d.ts +19 -0
  284. package/dist/lib/models/opsmgmt/v4/config/SortOrder.js +85 -0
  285. package/dist/lib/models/opsmgmt/v4/config/TimeFilter.d.ts +19 -0
  286. package/dist/lib/models/opsmgmt/v4/config/TimeFilter.js +85 -0
  287. package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +99 -0
  288. package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +365 -0
  289. package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +99 -0
  290. package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +343 -0
  291. package/dist/lib/models/opsmgmt/v4/config/Widget.d.ts +64 -0
  292. package/dist/lib/models/opsmgmt/v4/config/Widget.js +300 -0
  293. package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.d.ts +193 -0
  294. package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.js +598 -0
  295. package/dist/lib/models/opsmgmt/v4/config/WidgetField.d.ts +89 -0
  296. package/dist/lib/models/opsmgmt/v4/config/WidgetField.js +367 -0
  297. package/dist/lib/models/opsmgmt/v4/config/WidgetSize.d.ts +19 -0
  298. package/dist/lib/models/opsmgmt/v4/config/WidgetSize.js +91 -0
  299. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.d.ts +51 -0
  300. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.js +274 -0
  301. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplateType.d.ts +19 -0
  302. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplateType.js +223 -0
  303. package/dist/lib/models/opsmgmt/v4/config/WidgetType.d.ts +19 -0
  304. package/dist/lib/models/opsmgmt/v4/config/WidgetType.js +127 -0
  305. package/dist/lib/models/opsmgmt/v4/content/ArtifactFileType.d.ts +19 -0
  306. package/dist/lib/models/opsmgmt/v4/content/ArtifactFileType.js +85 -0
  307. package/dist/lib/models/opsmgmt/v4/content/ArtifactType.d.ts +19 -0
  308. package/dist/lib/models/opsmgmt/v4/content/ArtifactType.js +79 -0
  309. package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +99 -0
  310. package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +343 -0
  311. package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +98 -0
  312. package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +342 -0
  313. package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +98 -0
  314. package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.js +342 -0
  315. package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +99 -0
  316. package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +365 -0
  317. package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.d.ts +61 -0
  318. package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.js +317 -0
  319. package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +99 -0
  320. package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +365 -0
  321. package/dist/lib/models/opsmgmt/v4/error/AppMessage.d.ts +117 -0
  322. package/dist/lib/models/opsmgmt/v4/error/AppMessage.js +464 -0
  323. package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.d.ts +52 -0
  324. package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.js +339 -0
  325. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.d.ts +108 -0
  326. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.js +440 -0
  327. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +76 -0
  328. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +350 -0
  329. package/dist/lib/models/opsmgmt/v4/reporting/CustomView.d.ts +182 -0
  330. package/dist/lib/models/opsmgmt/v4/reporting/CustomView.js +661 -0
  331. package/dist/lib/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.d.ts +98 -0
  332. package/dist/lib/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.js +345 -0
  333. package/dist/lib/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.d.ts +99 -0
  334. package/dist/lib/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.js +343 -0
  335. package/dist/lib/models/opsmgmt/v4/reporting/Field.d.ts +85 -0
  336. package/dist/lib/models/opsmgmt/v4/reporting/Field.js +362 -0
  337. package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.d.ts +62 -0
  338. package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.js +281 -0
  339. package/dist/lib/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.d.ts +99 -0
  340. package/dist/lib/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.js +343 -0
  341. package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +62 -0
  342. package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.js +286 -0
  343. package/dist/lib/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.d.ts +102 -0
  344. package/dist/lib/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.js +343 -0
  345. package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +86 -0
  346. package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.js +378 -0
  347. package/dist/lib/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.d.ts +99 -0
  348. package/dist/lib/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.js +343 -0
  349. package/dist/lib/models/opsmgmt/v4/reporting/Operator.d.ts +19 -0
  350. package/dist/lib/models/opsmgmt/v4/reporting/Operator.js +109 -0
  351. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedType.d.ts +19 -0
  352. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedType.js +199 -0
  353. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.d.ts +51 -0
  354. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.js +273 -0
  355. package/dist/lib/models/opsmgmt/v4/reporting/Recipient.d.ts +74 -0
  356. package/dist/lib/models/opsmgmt/v4/reporting/Recipient.js +323 -0
  357. package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +88 -0
  358. package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.js +391 -0
  359. package/dist/lib/models/opsmgmt/v4/reporting/ReportFormat.d.ts +19 -0
  360. package/dist/lib/models/opsmgmt/v4/reporting/ReportFormat.js +85 -0
  361. package/dist/lib/models/opsmgmt/v4/reporting/SortOrder.d.ts +19 -0
  362. package/dist/lib/models/opsmgmt/v4/reporting/SortOrder.js +85 -0
  363. package/dist/lib/models/opsmgmt/v4/reporting/View.d.ts +78 -0
  364. package/dist/lib/models/opsmgmt/v4/reporting/View.js +389 -0
  365. package/dist/lib/models/opsmgmt/v4/reporting/ViewApiResponse.d.ts +99 -0
  366. package/dist/lib/models/opsmgmt/v4/reporting/ViewApiResponse.js +343 -0
  367. package/dist/lib/models/opsmgmt/v4/reporting/ViewConfigApiResponse.d.ts +99 -0
  368. package/dist/lib/models/opsmgmt/v4/reporting/ViewConfigApiResponse.js +343 -0
  369. package/dist/lib/models/opsmgmt/v4/reporting/ViewFormat.d.ts +19 -0
  370. package/dist/lib/models/opsmgmt/v4/reporting/ViewFormat.js +109 -0
  371. package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.d.ts +127 -0
  372. package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.js +501 -0
  373. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
  374. package/dist/lib/models/prism/v4/config/TaskReference.js +285 -0
  375. package/dist/lib/models/validation/ValidationError.d.ts +13 -0
  376. package/dist/lib/models/validation/ValidationError.js +60 -0
  377. package/dist/lib/models/validation/ValidationScopes.d.ts +9 -0
  378. package/dist/lib/models/validation/ValidationScopes.js +38 -0
  379. package/dist/lib/utils/ValidationUtils.d.ts +13 -0
  380. package/dist/lib/utils/ValidationUtils.js +85 -0
  381. package/package.json +53 -0
@@ -0,0 +1,843 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
8
+ var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
9
+ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
10
+ var _EntitySelection = _interopRequireDefault(require("./EntitySelection"));
11
+ var _Recipient = _interopRequireDefault(require("./Recipient"));
12
+ var _ReportFormat = _interopRequireDefault(require("./ReportFormat"));
13
+ var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
14
+ var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
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); }
39
+ function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
40
+ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
41
+ 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
+ * Nutanix Cloud Management Platform APIs
43
+ *
44
+ * OpenAPI spec version: 4.0.1
45
+ *
46
+ * NOTE: This class is auto generated by the Open API Dev Platform.
47
+ *
48
+ * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
49
+ *
50
+ * Do not edit the class manually.
51
+ *
52
+ */
53
+ /**
54
+ * The Report model module.
55
+ * @module Ntnx/Report
56
+ * @version 4.0.1
57
+ * @class Report
58
+ * @extends ExternalizableAbstractModel
59
+ *
60
+ * @param { string } name Report instance name
61
+ *
62
+ * @param { string } configExtId UUID for the report configuration for which report needs to be generated.
63
+ *
64
+ * @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
65
+ *
66
+ * @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
+ */
68
+ var _Report_brand = /*#__PURE__*/new WeakSet();
69
+ var Report = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
70
+ /**
71
+ * Constructs a new <code>Report</code>.
72
+ * @alias module:Ntnx/Report
73
+ * @extends module:Ntnx/ExternalizableAbstractModel
74
+ *
75
+ * @param { string } name Report instance name
76
+ *
77
+ * @param { string } configExtId UUID for the report configuration for which report needs to be generated.
78
+ *
79
+ * @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
80
+ *
81
+ * @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
+ */
83
+ function Report(name, configExtId, startTime, endTime) {
84
+ var _this;
85
+ _classCallCheck(this, Report);
86
+ _this = _callSuper(this, Report);
87
+ /*
88
+ * toJson method for a map type which supports map with primitive keys and values of object types
89
+ * @param {Object} obj
90
+ * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
91
+ * Otherwise, just returns the input object.
92
+ */
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";
99
+ /** @type {object<string, any>} */
100
+ _this.$reserved = {
101
+ '$fv': "v4.r0"
102
+ };
103
+ /** @type {object<string, any>} */
104
+ _this.$unknownFields = {};
105
+ return _this;
106
+ }
107
+
108
+ /**
109
+ * Constructs a <code>Report</code> from a plain JavaScript object, optionally creating a new instance.
110
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
111
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
112
+ * @param {module:Ntnx/Report} obj Optional instance to populate.
113
+ * @param callFromChild {Boolean} Flag to recognise calling instance
114
+ * @return {module:Ntnx/Report} The populated <code>Report</code> instance.
115
+ */
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;
126
+ }
127
+
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
+ }
137
+
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
+ }
147
+
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
+ }
157
+
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
+ }
167
+
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
+ }
177
+
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
+ }
187
+
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
+ }
197
+
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
+ }
207
+
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
+ }
217
+
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
+ }
227
+
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
+ }
237
+
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
+ }
247
+
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
+ }
257
+
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
+ }
267
+
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
+ }
277
+
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
+ }
287
+
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
+ }
297
+
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
+ }
307
+
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
+ }
317
+
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
+ }
327
+
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
+ }
337
+
338
+ /**
339
+ * @return {EntitySelection}
340
+ */
341
+ }, {
342
+ key: "getEntitySelection",
343
+ value: function getEntitySelection() {
344
+ return this.entitySelection;
345
+ }
346
+
347
+ /**
348
+ * @param {EntitySelection} entitySelection
349
+ */
350
+ }, {
351
+ key: "setEntitySelection",
352
+ value: function setEntitySelection(entitySelection) {
353
+ this.entitySelection = entitySelection;
354
+ }
355
+
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
+ /**
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
+ }
375
+
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
+ }
385
+
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 ? {
400
+ 'name': this.getName()
401
+ } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
402
+ 'description': this.getDescription()
403
+ } : {}), typeof this.getConfigExtId() !== 'undefined' && this.getConfigExtId() !== null ? {
404
+ 'configExtId': this.getConfigExtId()
405
+ } : {}), typeof this.getIsPersistent() !== 'undefined' && this.getIsPersistent() !== null ? {
406
+ 'isPersistent': this.getIsPersistent()
407
+ } : {}), typeof this.getOverrideSupportedFormats() !== 'undefined' && this.getOverrideSupportedFormats() !== null ? {
408
+ 'overrideSupportedFormats': this.getOverrideSupportedFormats()
409
+ } : {}), typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
410
+ 'startTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getStartTime(), false)
411
+ } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
412
+ 'endTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getEndTime(), false)
413
+ } : {}), typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
414
+ '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 ? {
420
+ 'creationTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getCreationTime(), false)
421
+ } : {}), typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
422
+ 'timezone': this.getTimezone()
423
+ } : {}), typeof this.getEntitySelection() !== 'undefined' && this.getEntitySelection() !== null ? {
424
+ 'entitySelection': this.getEntitySelection().toJson(false)
425
+ } : {}), typeof this.getOwnerExtId() !== 'undefined' && this.getOwnerExtId() !== null ? {
426
+ 'ownerExtId': this.getOwnerExtId()
427
+ } : {}), typeof this.getAvailableFormats() !== 'undefined' && this.getAvailableFormats() !== null ? {
428
+ 'availableFormats': this.getAvailableFormats()
429
+ } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
430
+ '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 ? {
436
+ '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 ? {
444
+ 'name': this.getName()
445
+ } : {}), typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
446
+ 'description': this.getDescription()
447
+ } : {}), typeof this.getConfigExtId() !== 'undefined' && this.getConfigExtId() !== null ? {
448
+ 'configExtId': this.getConfigExtId()
449
+ } : {}), typeof this.getIsPersistent() !== 'undefined' && this.getIsPersistent() !== null ? {
450
+ 'isPersistent': this.getIsPersistent()
451
+ } : {}), typeof this.getOverrideSupportedFormats() !== 'undefined' && this.getOverrideSupportedFormats() !== null ? {
452
+ 'overrideSupportedFormats': this.getOverrideSupportedFormats()
453
+ } : {}), typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
454
+ 'startTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getStartTime(), false)
455
+ } : {}), typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
456
+ 'endTime': _assertClassBrand(_Report_brand, this, _handleDateType).call(this, this.getEndTime(), false)
457
+ } : {}), typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
458
+ '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 ? {
464
+ 'timezone': this.getTimezone()
465
+ } : {}), typeof this.getEntitySelection() !== 'undefined' && this.getEntitySelection() !== null ? {
466
+ '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;
485
+ } 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
+ });
504
+ }
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
+ }
518
+ }
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
+ }
526
+ }
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
+ }
534
+ }
535
+ if (property === "isPersistent") {
536
+ if (typeof this.isPersistent === 'undefined' || this.isPersistent === null) {
537
+ return new _ValidationError["default"]("isPersistent", "undefined or null");
538
+ }
539
+ }
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
+ }
547
+ }
548
+ if (property === "startTime") {
549
+ if (typeof this.startTime === 'undefined' || this.startTime === null) {
550
+ return new _ValidationError["default"]("startTime", "undefined or null");
551
+ }
552
+ }
553
+ if (property === "endTime") {
554
+ if (typeof this.endTime === 'undefined' || this.endTime === null) {
555
+ return new _ValidationError["default"]("endTime", "undefined or null");
556
+ }
557
+ }
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
+ }
565
+ }
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
+ }
576
+ }
577
+ if (property === "creationTime") {
578
+ if (typeof this.creationTime === 'undefined' || this.creationTime === null) {
579
+ return new _ValidationError["default"]("creationTime", "undefined or null");
580
+ }
581
+ }
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
+ }
589
+ }
590
+ if (property === "entitySelection") {
591
+ if (typeof this.entitySelection === 'undefined' || this.entitySelection === null) {
592
+ return new _ValidationError["default"]("entitySelection", "undefined or null");
593
+ }
594
+ }
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
+ }
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
+ }
610
+ }
611
+ return new _ValidationError["default"](property, "no such property exists");
612
+ }
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
+ }
700
+ }
701
+ return obj;
702
+ }
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
+ });
715
+ }
716
+ }]);
717
+ }(_ExternalizableAbstractModel["default"]);
718
+ /**
719
+ * Report instance name
720
+ * @memberof Report
721
+ */
722
+ function _toJsonMapType(obj, forMutation) {
723
+ 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) {
732
+ return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
733
+ }));
734
+ }
735
+ return obj;
736
+ }
737
+ /*
738
+ * toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
739
+ * @param {Object} obj Object to serialize
740
+ * @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
741
+ * @returns {Object|string} Returns serialized date object or original input object
742
+ */
743
+ function _handleDateType(obj, isDateOnly) {
744
+ if (obj instanceof Date && isDateOnly !== undefined) {
745
+ return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
746
+ }
747
+ return obj;
748
+ }
749
+ Report.prototype.name = undefined;
750
+
751
+ /**
752
+ * Description of the report. This will be part of generated report.
753
+ * @memberof Report
754
+ */
755
+ Report.prototype.description = undefined;
756
+
757
+ /**
758
+ * UUID for the report configuration for which report needs to be generated.
759
+ * @memberof Report
760
+ */
761
+ Report.prototype.configExtId = undefined;
762
+
763
+ /**
764
+ * Generated report saved or not
765
+ * @memberof Report
766
+ */
767
+ Report.prototype.isPersistent = undefined;
768
+
769
+ /**
770
+ * List specifying the formats in which report is to be created. This overrides the supportedFormats defined in the report configuration.
771
+ * @memberof Report
772
+ */
773
+ Report.prototype.overrideSupportedFormats = undefined;
774
+
775
+ /**
776
+ * UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection start point. Eg:- 2023-10-23 11:34:45
777
+ * @memberof Report
778
+ */
779
+ Report.prototype.startTime = undefined;
780
+
781
+ /**
782
+ * UTC date and time in \"%Y-%m-%d %H:%M:%S\" format for data collection end point. Eg:- 2023-10-23 11:34:45
783
+ * @memberof Report
784
+ */
785
+ Report.prototype.endTime = undefined;
786
+
787
+ /**
788
+ * List specifying the formats in which the report is to be sent.
789
+ * @memberof Report
790
+ */
791
+ Report.prototype.recipientFormats = undefined;
792
+
793
+ /**
794
+ * Recipients in addition to the ones specified on the report configuration.
795
+ * @memberof Report
796
+ */
797
+ Report.prototype.recipients = undefined;
798
+
799
+ /**
800
+ * Time in ISO 8601 format when the report instance was created.
801
+ * @memberof Report
802
+ */
803
+ Report.prototype.creationTime = undefined;
804
+
805
+ /**
806
+ * 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
807
+ * @memberof Report
808
+ */
809
+ Report.prototype.timezone = undefined;
810
+
811
+ /**
812
+ * @memberof Report
813
+ */
814
+ Report.prototype.entitySelection = undefined;
815
+
816
+ /**
817
+ * Owner UUID for the report instance.\"
818
+ * @memberof Report
819
+ */
820
+ Report.prototype.ownerExtId = undefined;
821
+
822
+ /**
823
+ * List of formats in which report generation was successful.
824
+ * @memberof Report
825
+ */
826
+ Report.prototype.availableFormats = undefined;
827
+
828
+ /**
829
+ * A globally unique identifier of an instance that is suitable for external consumption.
830
+ * @memberof Report
831
+ */
832
+ _ExternalizableAbstractModel["default"].prototype.extId = undefined;
833
+ /**
834
+ * 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
+ * @memberof Report
836
+ */
837
+ _ExternalizableAbstractModel["default"].prototype.links = undefined;
838
+ /**
839
+ * 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
+ * @memberof Report
841
+ */
842
+ _TenantAwareModel["default"].prototype.tenantId = undefined;
843
+ // Implement OneOfopsmgmt.v4.config.GetReportApiResponsedata interface: