@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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The ReportNotificationSpec model module.
3
3
  * @module Ntnx/ReportNotificationSpec
4
- * @version 4.0.2
4
+ * @version 4.0.4
5
5
  * @class ReportNotificationSpec
6
6
  * @extends ExternalizableAbstractModel
7
7
  *
@@ -42,22 +42,6 @@ export default class ReportNotificationSpec extends ExternalizableAbstractModel
42
42
  * @param {Recipient[]} recipients Recipients to notify with the report.
43
43
  */
44
44
  setRecipients(recipients: Recipient[]): void;
45
- toJson(forMutation: any): {
46
- $reserved: any;
47
- $objectType: string;
48
- $unknownFields: any;
49
- tenantId?: string;
50
- links?: {
51
- $reserved: any;
52
- $objectType: string;
53
- $unknownFields: any;
54
- rel?: string;
55
- href?: string;
56
- }[];
57
- extId?: string;
58
- recipients?: any[];
59
- recipientFormats?: ReportFormat[];
60
- };
61
45
  #private;
62
46
  }
63
47
  import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel";
@@ -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"));
@@ -12,38 +12,16 @@ var _ReportFormat = _interopRequireDefault(require("./ReportFormat"));
12
12
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
13
13
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
14
14
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
- 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); }
17
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
18
- 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."); }
19
- 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; } }
20
- 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; }
21
- 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; } }
22
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
23
- 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; }
24
- 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; }
25
- 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; }
26
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
27
- 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); } }
28
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
29
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
30
- 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); }
31
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
32
- 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); }
33
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
34
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
36
- 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); }
37
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
38
16
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
39
17
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
40
18
  * Nutanix Cloud Management Platform APIs
41
19
  *
42
- * OpenAPI spec version: 4.0.2
20
+ * OpenAPI spec version: 4.0.4
43
21
  *
44
22
  * NOTE: This class is auto generated by the Open API Dev Platform.
45
23
  *
46
- * Open API Dev Platform Codegen version: 17.4.0.8851-RELEASE
24
+ * Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
47
25
  *
48
26
  * Do not edit the class manually.
49
27
  *
@@ -51,7 +29,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
51
29
  /**
52
30
  * The ReportNotificationSpec model module.
53
31
  * @module Ntnx/ReportNotificationSpec
54
- * @version 4.0.2
32
+ * @version 4.0.4
55
33
  * @class ReportNotificationSpec
56
34
  * @extends ExternalizableAbstractModel
57
35
  *
@@ -60,7 +38,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
60
38
  * @param { Recipient[] } recipients Recipients to notify with the report.
61
39
  */
62
40
  var _ReportNotificationSpec_brand = /*#__PURE__*/new WeakSet();
63
- var ReportNotificationSpec = exports["default"] = /*#__PURE__*/function (_ExternalizableAbstra) {
41
+ class ReportNotificationSpec extends _ExternalizableAbstractModel.default {
64
42
  /**
65
43
  * Constructs a new <code>ReportNotificationSpec</code>.
66
44
  * @alias module:Ntnx/ReportNotificationSpec
@@ -70,27 +48,24 @@ var ReportNotificationSpec = exports["default"] = /*#__PURE__*/function (_Extern
70
48
  *
71
49
  * @param { Recipient[] } recipients Recipients to notify with the report.
72
50
  */
73
- function ReportNotificationSpec(recipientFormats, recipients) {
74
- var _this;
75
- _classCallCheck(this, ReportNotificationSpec);
76
- _this = _callSuper(this, ReportNotificationSpec);
51
+ constructor(recipientFormats, recipients) {
52
+ super();
77
53
  /*
78
54
  * toJson method for a map type which supports map with primitive keys and values of object types
79
55
  * @param {Object} obj
80
56
  * @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
81
57
  * Otherwise, just returns the input object.
82
58
  */
83
- _classPrivateMethodInitSpec(_this, _ReportNotificationSpec_brand);
84
- _this.recipientFormats = recipientFormats;
85
- _this.recipients = recipients;
86
- _this.$objectType = "opsmgmt.v4.config.ReportNotificationSpec";
59
+ _classPrivateMethodInitSpec(this, _ReportNotificationSpec_brand);
60
+ this.recipientFormats = recipientFormats;
61
+ this.recipients = recipients;
62
+ this.$objectType = "opsmgmt.v4.config.ReportNotificationSpec";
87
63
  /** @type {object<string, any>} */
88
- _this.$reserved = {
64
+ this.$reserved = {
89
65
  '$fv': "v4.r0"
90
66
  };
91
67
  /** @type {object<string, any>} */
92
- _this.$unknownFields = {};
93
- return _this;
68
+ this.$unknownFields = {};
94
69
  }
95
70
 
96
71
  /**
@@ -101,210 +76,187 @@ var ReportNotificationSpec = exports["default"] = /*#__PURE__*/function (_Extern
101
76
  * @param callFromChild {Boolean} Flag to recognise calling instance
102
77
  * @return {module:Ntnx/ReportNotificationSpec} The populated <code>ReportNotificationSpec</code> instance.
103
78
  */
104
- _inherits(ReportNotificationSpec, _ExternalizableAbstra);
105
- return _createClass(ReportNotificationSpec, [{
106
- key: "getRecipientFormats",
107
- value:
108
- /**
109
- * Returns List specifying the formats in which the report is to be sent.
110
- * @return {ReportFormat[]}
111
- */
112
- function getRecipientFormats() {
113
- return this.recipientFormats;
79
+ static constructFromObject(data, obj = null, callFromChild = false) {
80
+ let items, item, i, itemArr, discriminator;
81
+ if (data) {
82
+ obj = obj || new ReportNotificationSpec();
83
+ _ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
84
+ if (data.hasOwnProperty('recipientFormats') && data.recipientFormats !== null && data.recipientFormats !== undefined) {
85
+ itemArr = [];
86
+ items = data.recipientFormats;
87
+ for (i = 0; i < items.length; i++) {
88
+ item = _ReportFormat.default.constructFromObject(items[i], undefined);
89
+ itemArr.push(item);
90
+ }
91
+ obj.setRecipientFormats(itemArr);
92
+ }
93
+ if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
94
+ itemArr = [];
95
+ items = data.recipients;
96
+ for (i = 0; i < items.length; i++) {
97
+ item = _Recipient.default.constructFromObject(items[i], undefined);
98
+ itemArr.push(item);
99
+ }
100
+ obj.setRecipients(itemArr);
101
+ }
102
+ if (!callFromChild) {
103
+ obj.$unknownFields = {
104
+ ...data.$unknownFields
105
+ };
106
+ for (const property in data) {
107
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
108
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
109
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
110
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
111
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
112
+ obj.$unknownFields[property] = data[property];
113
+ }
114
+ }
115
+ }
114
116
  }
117
+ return obj;
118
+ }
115
119
 
116
- /**
117
- * Sets List specifying the formats in which the report is to be sent.
118
- * @param {ReportFormat[]} recipientFormats List specifying the formats in which the report is to be sent.
119
- */
120
- }, {
121
- key: "setRecipientFormats",
122
- value: function setRecipientFormats(recipientFormats) {
123
- this.recipientFormats = recipientFormats;
124
- }
120
+ /**
121
+ * Converts a given snake_case string to camelCase.
122
+ * @param {string} snakeStr - The input string in snake_case format.
123
+ * @returns {string} - The converted string in camelCase format.
124
+ */
125
+ static snakeToCamel(snakeStr) {
126
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
127
+ }
125
128
 
126
- /**
127
- * Returns Recipients to notify with the report.
128
- * @return {Recipient[]}
129
- */
130
- }, {
131
- key: "getRecipients",
132
- value: function getRecipients() {
133
- return this.recipients;
134
- }
129
+ /**
130
+ * Returns List specifying the formats in which the report is to be sent.
131
+ * @return {ReportFormat[]}
132
+ */
133
+ getRecipientFormats() {
134
+ return this.recipientFormats;
135
+ }
135
136
 
136
- /**
137
- * Sets Recipients to notify with the report.
138
- * @param {Recipient[]} recipients Recipients to notify with the report.
139
- */
140
- }, {
141
- key: "setRecipients",
142
- value: function setRecipients(recipients) {
143
- this.recipients = recipients;
144
- }
145
- }, {
146
- key: "toJson",
147
- value: function toJson(forMutation) {
148
- if (forMutation === false) {
149
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
137
+ /**
138
+ * Sets List specifying the formats in which the report is to be sent.
139
+ * @param {ReportFormat[]} recipientFormats List specifying the formats in which the report is to be sent.
140
+ */
141
+ setRecipientFormats(recipientFormats) {
142
+ this.recipientFormats = recipientFormats;
143
+ }
144
+
145
+ /**
146
+ * Returns Recipients to notify with the report.
147
+ * @return {Recipient[]}
148
+ */
149
+ getRecipients() {
150
+ return this.recipients;
151
+ }
152
+
153
+ /**
154
+ * Sets Recipients to notify with the report.
155
+ * @param {Recipient[]} recipients Recipients to notify with the report.
156
+ */
157
+ setRecipients(recipients) {
158
+ this.recipients = recipients;
159
+ }
160
+ toJson(forMutation) {
161
+ if (forMutation === false) {
162
+ return {
163
+ ...(typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
150
164
  'recipientFormats': this.getRecipientFormats()
151
- } : {}), typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
152
- 'recipients': this.getRecipients().map(function (item) {
153
- return item.toJson(false);
154
- })
155
- } : {}), typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
165
+ } : {}),
166
+ ...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
167
+ 'recipients': this.getRecipients().map(item => item.toJson(false))
168
+ } : {}),
169
+ ...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
156
170
  'extId': this.getExtId()
157
- } : {}), typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
158
- 'links': this.getLinks().map(function (item) {
159
- return item.toJson(false);
160
- })
161
- } : {}), typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
171
+ } : {}),
172
+ ...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
173
+ 'links': this.getLinks().map(item => item.toJson(false))
174
+ } : {}),
175
+ ...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
162
176
  'tenantId': this.getTenantId()
163
- } : {}), {}, {
164
- '$reserved': this.get$Reserved(),
165
- '$objectType': this.get$ObjectType(),
166
- '$unknownFields': this.get$UnknownFields()
167
- });
168
- }
169
- return _objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
170
- 'recipientFormats': this.getRecipientFormats()
171
- } : {}), typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
172
- 'recipients': this.getRecipients().map(function (item) {
173
- return item.toJson(false);
174
- })
175
- } : {}), {}, {
177
+ } : {}),
176
178
  '$reserved': this.get$Reserved(),
177
179
  '$objectType': this.get$ObjectType(),
178
- '$unknownFields': this.get$UnknownFields()
179
- });
180
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
181
+ '$unknownFields': {}
182
+ };
180
183
  }
181
- }, {
182
- key: "validate",
183
- value: function validate(scope, properties) {
184
- var _this2 = this;
185
- var propList = [];
186
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
187
- //cases validate() and validate(scope)
188
- propList = ["recipientFormats", "recipients"];
189
- } else if (arguments.length === 1) {
190
- //case validate(properties)
191
- propList = arguments[0];
192
- scope = null;
184
+ return {
185
+ ...(typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
186
+ 'recipientFormats': this.getRecipientFormats()
187
+ } : {}),
188
+ ...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
189
+ 'recipients': this.getRecipients().map(item => item.toJson(false))
190
+ } : {}),
191
+ '$reserved': this.get$Reserved(),
192
+ '$objectType': this.get$ObjectType(),
193
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
194
+ '$unknownFields': {}
195
+ };
196
+ }
197
+ validate(scope, properties) {
198
+ let propList = [];
199
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
200
+ //cases validate() and validate(scope)
201
+ propList = ["recipientFormats", "recipients"];
202
+ } else if (arguments.length === 1) {
203
+ //case validate(properties)
204
+ propList = arguments[0];
205
+ scope = null;
206
+ } else {
207
+ //case validate(scope, properties)
208
+ propList = arguments[1];
209
+ }
210
+ let res = [];
211
+ let err = null;
212
+ propList.forEach(property => {
213
+ err = this.validateProperty(property, scope);
214
+ if (err) {
215
+ res.push(err);
216
+ }
217
+ });
218
+ return new Promise(function (resolve, reject) {
219
+ if (res.length !== 0) {
220
+ reject(err);
193
221
  } else {
194
- //case validate(scope, properties)
195
- propList = arguments[1];
222
+ resolve();
196
223
  }
197
- var res = [];
198
- var err = null;
199
- propList.forEach(function (property) {
200
- err = _this2.validateProperty(property, scope);
201
- if (err) {
202
- res.push(err);
203
- }
204
- });
205
- return new Promise(function (resolve, reject) {
206
- if (res.length !== 0) {
207
- reject(err);
208
- } else {
209
- resolve();
210
- }
211
- });
212
- }
213
- }, {
214
- key: "validateProperty",
215
- value: function validateProperty(scope, property) {
216
- if (property === "recipientFormats") {
217
- if (typeof this.recipientFormats === 'undefined' || this.recipientFormats === null) {
218
- return new _ValidationError["default"]("recipientFormats", "undefined or null");
219
- }
220
- if (!_ValidationUtils["default"].validateMaxItems(this.recipientFormats, 2)) {
221
- return new _ValidationError["default"]("recipientFormats", "does not satisfy required maxItems constraint: 2");
222
- }
224
+ });
225
+ }
226
+ validateProperty(scope, property) {
227
+ if (property === "recipientFormats") {
228
+ if (typeof this.recipientFormats === 'undefined' || this.recipientFormats === null) {
229
+ return new _ValidationError.default("recipientFormats", "undefined or null");
223
230
  }
224
- if (property === "recipients") {
225
- if (typeof this.recipients === 'undefined' || this.recipients === null) {
226
- return new _ValidationError["default"]("recipients", "undefined or null");
227
- }
228
- if (!_ValidationUtils["default"].validateMaxItems(this.recipients, 100)) {
229
- return new _ValidationError["default"]("recipients", "does not satisfy required maxItems constraint: 100");
230
- }
231
- if (!_ValidationUtils["default"].validateMinItems(this.recipients, 1)) {
232
- return new _ValidationError["default"]("recipients", "does not satisfy required minItems constraint: 1");
233
- }
231
+ if (!_ValidationUtils.default.validateMaxItems(this.recipientFormats, 2)) {
232
+ return new _ValidationError.default("recipientFormats", "does not satisfy required maxItems constraint: 2");
234
233
  }
235
- return new _ValidationError["default"](property, "no such property exists");
236
234
  }
237
- }], [{
238
- key: "constructFromObject",
239
- value: function constructFromObject(data) {
240
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
241
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
242
- var items, item, i, itemArr, discriminator;
243
- if (data) {
244
- obj = obj || new ReportNotificationSpec();
245
- _ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
246
- if (data.hasOwnProperty('recipientFormats') && data.recipientFormats !== null && data.recipientFormats !== undefined) {
247
- itemArr = [];
248
- items = data.recipientFormats;
249
- for (i = 0; i < items.length; i++) {
250
- item = _ReportFormat["default"].constructFromObject(items[i], undefined);
251
- itemArr.push(item);
252
- }
253
- obj.setRecipientFormats(itemArr);
254
- }
255
- if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
256
- itemArr = [];
257
- items = data.recipients;
258
- for (i = 0; i < items.length; i++) {
259
- item = _Recipient["default"].constructFromObject(items[i], undefined);
260
- itemArr.push(item);
261
- }
262
- obj.setRecipients(itemArr);
263
- }
264
- if (!callFromChild) {
265
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
266
- for (var property in data) {
267
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
268
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
269
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
270
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
271
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
272
- obj.$unknownFields[property] = data[property];
273
- }
274
- }
275
- }
235
+ if (property === "recipients") {
236
+ if (typeof this.recipients === 'undefined' || this.recipients === null) {
237
+ return new _ValidationError.default("recipients", "undefined or null");
238
+ }
239
+ if (!_ValidationUtils.default.validateMaxItems(this.recipients, 100)) {
240
+ return new _ValidationError.default("recipients", "does not satisfy required maxItems constraint: 100");
241
+ }
242
+ if (!_ValidationUtils.default.validateMinItems(this.recipients, 1)) {
243
+ return new _ValidationError.default("recipients", "does not satisfy required minItems constraint: 1");
276
244
  }
277
- return obj;
278
245
  }
246
+ return new _ValidationError.default(property, "no such property exists");
247
+ }
248
+ }
279
249
 
280
- /**
281
- * Converts a given snake_case string to camelCase.
282
- * @param {string} snakeStr - The input string in snake_case format.
283
- * @returns {string} - The converted string in camelCase format.
284
- */
285
- }, {
286
- key: "snakeToCamel",
287
- value: function snakeToCamel(snakeStr) {
288
- return snakeStr.replace(/(_\w)/g, function (match) {
289
- return match[1].toUpperCase();
290
- });
291
- }
292
- }]);
293
- }(_ExternalizableAbstractModel["default"]);
294
250
  /**
295
251
  * List specifying the formats in which the report is to be sent.
296
252
  * @memberof ReportNotificationSpec
297
253
  */
254
+ exports.default = ReportNotificationSpec;
298
255
  function _toJsonMapType(obj, forMutation) {
299
256
  if (obj instanceof Map) {
300
- return Object.fromEntries(Array.from(obj, function (_ref) {
301
- var _ref2 = _slicedToArray(_ref, 2),
302
- k = _ref2[0],
303
- v = _ref2[1];
304
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
305
- }));
306
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
307
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
257
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
258
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
259
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
308
260
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
309
261
  }));
310
262
  }
@@ -334,14 +286,14 @@ ReportNotificationSpec.prototype.recipients = undefined;
334
286
  * A globally unique identifier of an instance that is suitable for external consumption.
335
287
  * @memberof ReportNotificationSpec
336
288
  */
337
- _ExternalizableAbstractModel["default"].prototype.extId = undefined;
289
+ _ExternalizableAbstractModel.default.prototype.extId = undefined;
338
290
  /**
339
291
  * 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.
340
292
  * @memberof ReportNotificationSpec
341
293
  */
342
- _ExternalizableAbstractModel["default"].prototype.links = undefined;
294
+ _ExternalizableAbstractModel.default.prototype.links = undefined;
343
295
  /**
344
296
  * 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).
345
297
  * @memberof ReportNotificationSpec
346
298
  */
347
- _TenantAwareModel["default"].prototype.tenantId = undefined;
299
+ _TenantAwareModel.default.prototype.tenantId = undefined;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The ReportSchedule model module.
3
3
  * @module Ntnx/ReportSchedule
4
- * @version 4.0.2
4
+ * @version 4.0.4
5
5
  * @class ReportSchedule
6
6
  *
7
7
  * @param { ScheduleInterval } scheduleInterval
@@ -88,15 +88,7 @@ export default class ReportSchedule {
88
88
  get$Reserved(): any;
89
89
  get$ObjectType(): string;
90
90
  get$UnknownFields(): any;
91
- toJson(forMutation: any): {
92
- $reserved: any;
93
- $objectType: string;
94
- $unknownFields: any;
95
- endTime?: any;
96
- startTime?: any;
97
- frequency?: number;
98
- scheduleInterval?: string;
99
- };
91
+ toJson(forMutation: any): any;
100
92
  validate(scope: any, properties: any, ...args: any[]): Promise<any>;
101
93
  validateProperty(scope: any, property: any): ValidationError;
102
94
  #private;