@nutanix-scratch/opsmgmt-js-client 4.0.1 → 4.0.3

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 (338) hide show
  1. package/README.md +31 -18
  2. package/dist/Ntnx-Opsmgmt-js-client-prod.js +1 -1
  3. package/dist/Ntnx-Opsmgmt-js-client.js +453 -524
  4. package/dist/es/ApiClient.d.ts +35 -7
  5. package/dist/es/ApiClient.js +862 -684
  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 -11
  11. package/dist/es/apis/reportartifacts-endpoints.js +196 -218
  12. package/dist/es/apis/reportconfig-endpoints.d.ts +3 -29
  13. package/dist/es/apis/reportconfig-endpoints.js +210 -249
  14. package/dist/es/apis/reports-endpoints.d.ts +3 -27
  15. package/dist/es/apis/reports-endpoints.js +243 -281
  16. package/dist/es/index.d.ts +1 -15
  17. package/dist/es/index.js +239 -295
  18. package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
  19. package/dist/es/models/common/v1/config/Flag.js +170 -211
  20. package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
  21. package/dist/es/models/common/v1/config/KVPair.js +225 -270
  22. package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  23. package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
  24. package/dist/es/models/common/v1/config/Message.d.ts +2 -10
  25. package/dist/es/models/common/v1/config/Message.js +213 -258
  26. package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
  27. package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +5 -10
  28. package/dist/es/models/common/v1/config/TenantAwareModel.js +138 -178
  29. package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
  30. package/dist/es/models/common/v1/response/ApiLink.js +165 -206
  31. package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  32. package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
  33. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  34. package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
  35. package/dist/es/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
  36. package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
  37. package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
  38. package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
  39. package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
  40. package/dist/es/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
  41. package/dist/es/models/opsmgmt/v4/config/DataCriteria.js +280 -333
  42. package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
  43. package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
  44. package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
  45. package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
  46. package/dist/es/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
  47. package/dist/es/models/opsmgmt/v4/config/EntitySelection.js +172 -213
  48. package/dist/es/models/opsmgmt/v4/config/EntityType.js +7 -9
  49. package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
  50. package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
  51. package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
  52. package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
  53. package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
  54. package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
  55. package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
  56. package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.js +202 -250
  57. package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
  58. package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
  59. package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
  60. package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
  61. package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
  62. package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
  63. package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
  64. package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
  65. package/dist/es/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
  66. package/dist/es/models/opsmgmt/v4/config/Recipient.js +170 -211
  67. package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
  68. package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
  69. package/dist/es/models/opsmgmt/v4/config/Report.d.ts +1 -35
  70. package/dist/es/models/opsmgmt/v4/config/Report.js +507 -582
  71. package/dist/es/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
  72. package/dist/es/models/opsmgmt/v4/config/ReportConfig.js +515 -595
  73. package/dist/es/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
  74. package/dist/es/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
  75. package/dist/es/models/opsmgmt/v4/config/ReportFormat.js +7 -9
  76. package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
  77. package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.js +175 -223
  78. package/dist/es/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
  79. package/dist/es/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
  80. package/dist/es/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
  81. package/dist/es/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
  82. package/dist/es/models/opsmgmt/v4/config/Row.d.ts +2 -12
  83. package/dist/es/models/opsmgmt/v4/config/Row.js +148 -191
  84. package/dist/es/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
  85. package/dist/es/models/opsmgmt/v4/config/Section.d.ts +2 -27
  86. package/dist/es/models/opsmgmt/v4/config/Section.js +251 -302
  87. package/dist/es/models/opsmgmt/v4/config/SortKey.js +7 -9
  88. package/dist/es/models/opsmgmt/v4/config/SortOrder.js +7 -9
  89. package/dist/es/models/opsmgmt/v4/config/TimeFilter.js +7 -9
  90. package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
  91. package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
  92. package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
  93. package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
  94. package/dist/es/models/opsmgmt/v4/config/Widget.d.ts +2 -7
  95. package/dist/es/models/opsmgmt/v4/config/Widget.js +154 -197
  96. package/dist/es/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
  97. package/dist/es/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
  98. package/dist/es/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
  99. package/dist/es/models/opsmgmt/v4/config/WidgetField.js +195 -238
  100. package/dist/es/models/opsmgmt/v4/config/WidgetSize.js +7 -9
  101. package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
  102. package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
  103. package/dist/es/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
  104. package/dist/es/models/opsmgmt/v4/config/WidgetType.js +7 -9
  105. package/dist/es/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
  106. package/dist/es/models/opsmgmt/v4/content/ArtifactType.js +7 -9
  107. package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
  108. package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
  109. package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
  110. package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
  111. package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
  112. package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
  113. package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
  114. package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
  115. package/dist/es/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
  116. package/dist/es/models/opsmgmt/v4/content/ReportArtifact.js +150 -194
  117. package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
  118. package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
  119. package/dist/es/models/opsmgmt/v4/error/AppMessage.d.ts +5 -15
  120. package/dist/es/models/opsmgmt/v4/error/AppMessage.js +264 -313
  121. package/dist/es/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
  122. package/dist/es/models/opsmgmt/v4/error/ErrorResponse.js +175 -225
  123. package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
  124. package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
  125. package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  126. package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
  127. package/dist/es/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
  128. package/dist/es/models/opsmgmt/v4/reporting/CustomView.js +394 -455
  129. package/dist/es/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
  130. package/dist/es/models/opsmgmt/v4/reporting/Field.js +195 -238
  131. package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
  132. package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.js +140 -181
  133. package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
  134. package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.js +145 -186
  135. package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
  136. package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
  137. package/dist/es/models/opsmgmt/v4/reporting/Operator.js +7 -9
  138. package/dist/es/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
  139. package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
  140. package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
  141. package/dist/es/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
  142. package/dist/es/models/opsmgmt/v4/reporting/Recipient.js +170 -211
  143. package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
  144. package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
  145. package/dist/es/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
  146. package/dist/es/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
  147. package/dist/es/models/opsmgmt/v4/reporting/View.d.ts +1 -18
  148. package/dist/es/models/opsmgmt/v4/reporting/View.js +203 -254
  149. package/dist/es/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
  150. package/dist/es/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
  151. package/dist/es/models/opsmgmt/v4/reporting/ViewReport.js +276 -332
  152. package/dist/es/models/prism/v4/config/TaskReference.d.ts +5 -10
  153. package/dist/es/models/prism/v4/config/TaskReference.js +143 -185
  154. package/dist/es/models/validation/ValidationError.js +26 -42
  155. package/dist/es/models/validation/ValidationScopes.js +3 -3
  156. package/dist/es/utils/ValidationUtils.js +39 -69
  157. package/dist/lib/ApiClient.d.ts +35 -7
  158. package/dist/lib/ApiClient.js +862 -684
  159. package/dist/lib/Paginable.d.ts +1 -1
  160. package/dist/lib/Paginable.js +144 -183
  161. package/dist/lib/apis/globalreportsetting-endpoints.d.ts +1 -1
  162. package/dist/lib/apis/globalreportsetting-endpoints.js +94 -111
  163. package/dist/lib/apis/reportartifacts-endpoints.d.ts +2 -11
  164. package/dist/lib/apis/reportartifacts-endpoints.js +196 -218
  165. package/dist/lib/apis/reportconfig-endpoints.d.ts +3 -29
  166. package/dist/lib/apis/reportconfig-endpoints.js +210 -249
  167. package/dist/lib/apis/reports-endpoints.d.ts +3 -27
  168. package/dist/lib/apis/reports-endpoints.js +243 -281
  169. package/dist/lib/index.d.ts +1 -15
  170. package/dist/lib/index.js +239 -295
  171. package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
  172. package/dist/lib/models/common/v1/config/Flag.js +170 -211
  173. package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
  174. package/dist/lib/models/common/v1/config/KVPair.js +225 -270
  175. package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
  176. package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
  177. package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
  178. package/dist/lib/models/common/v1/config/Message.js +213 -258
  179. package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
  180. package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +5 -10
  181. package/dist/lib/models/common/v1/config/TenantAwareModel.js +138 -178
  182. package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
  183. package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
  184. package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
  185. package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
  186. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
  187. package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +155 -203
  188. package/dist/lib/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
  189. package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
  190. package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
  191. package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
  192. package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
  193. package/dist/lib/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
  194. package/dist/lib/models/opsmgmt/v4/config/DataCriteria.js +280 -333
  195. package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
  196. package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
  197. package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
  198. package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
  199. package/dist/lib/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
  200. package/dist/lib/models/opsmgmt/v4/config/EntitySelection.js +172 -213
  201. package/dist/lib/models/opsmgmt/v4/config/EntityType.js +7 -9
  202. package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
  203. package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
  204. package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
  205. package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
  206. package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
  207. package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
  208. package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
  209. package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.js +202 -250
  210. package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
  211. package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
  212. package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
  213. package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
  214. package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
  215. package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
  216. package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
  217. package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
  218. package/dist/lib/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
  219. package/dist/lib/models/opsmgmt/v4/config/Recipient.js +170 -211
  220. package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
  221. package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
  222. package/dist/lib/models/opsmgmt/v4/config/Report.d.ts +1 -35
  223. package/dist/lib/models/opsmgmt/v4/config/Report.js +507 -582
  224. package/dist/lib/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
  225. package/dist/lib/models/opsmgmt/v4/config/ReportConfig.js +515 -595
  226. package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
  227. package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
  228. package/dist/lib/models/opsmgmt/v4/config/ReportFormat.js +7 -9
  229. package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
  230. package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.js +175 -223
  231. package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
  232. package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
  233. package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
  234. package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
  235. package/dist/lib/models/opsmgmt/v4/config/Row.d.ts +2 -12
  236. package/dist/lib/models/opsmgmt/v4/config/Row.js +148 -191
  237. package/dist/lib/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
  238. package/dist/lib/models/opsmgmt/v4/config/Section.d.ts +2 -27
  239. package/dist/lib/models/opsmgmt/v4/config/Section.js +251 -302
  240. package/dist/lib/models/opsmgmt/v4/config/SortKey.js +7 -9
  241. package/dist/lib/models/opsmgmt/v4/config/SortOrder.js +7 -9
  242. package/dist/lib/models/opsmgmt/v4/config/TimeFilter.js +7 -9
  243. package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
  244. package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
  245. package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
  246. package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
  247. package/dist/lib/models/opsmgmt/v4/config/Widget.d.ts +2 -7
  248. package/dist/lib/models/opsmgmt/v4/config/Widget.js +154 -197
  249. package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
  250. package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
  251. package/dist/lib/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
  252. package/dist/lib/models/opsmgmt/v4/config/WidgetField.js +195 -238
  253. package/dist/lib/models/opsmgmt/v4/config/WidgetSize.js +7 -9
  254. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
  255. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
  256. package/dist/lib/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
  257. package/dist/lib/models/opsmgmt/v4/config/WidgetType.js +7 -9
  258. package/dist/lib/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
  259. package/dist/lib/models/opsmgmt/v4/content/ArtifactType.js +7 -9
  260. package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
  261. package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
  262. package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
  263. package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
  264. package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
  265. package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
  266. package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
  267. package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
  268. package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
  269. package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.js +150 -194
  270. package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
  271. package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
  272. package/dist/lib/models/opsmgmt/v4/error/AppMessage.d.ts +5 -15
  273. package/dist/lib/models/opsmgmt/v4/error/AppMessage.js +264 -313
  274. package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
  275. package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.js +175 -225
  276. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
  277. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
  278. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
  279. package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
  280. package/dist/lib/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
  281. package/dist/lib/models/opsmgmt/v4/reporting/CustomView.js +394 -455
  282. package/dist/lib/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
  283. package/dist/lib/models/opsmgmt/v4/reporting/Field.js +195 -238
  284. package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
  285. package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.js +140 -181
  286. package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
  287. package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.js +145 -186
  288. package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
  289. package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
  290. package/dist/lib/models/opsmgmt/v4/reporting/Operator.js +7 -9
  291. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
  292. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
  293. package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
  294. package/dist/lib/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
  295. package/dist/lib/models/opsmgmt/v4/reporting/Recipient.js +170 -211
  296. package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
  297. package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
  298. package/dist/lib/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
  299. package/dist/lib/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
  300. package/dist/lib/models/opsmgmt/v4/reporting/View.d.ts +1 -18
  301. package/dist/lib/models/opsmgmt/v4/reporting/View.js +203 -254
  302. package/dist/lib/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
  303. package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
  304. package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.js +276 -332
  305. package/dist/lib/models/prism/v4/config/TaskReference.d.ts +5 -10
  306. package/dist/lib/models/prism/v4/config/TaskReference.js +143 -185
  307. package/dist/lib/models/validation/ValidationError.js +26 -42
  308. package/dist/lib/models/validation/ValidationScopes.js +3 -3
  309. package/dist/lib/utils/ValidationUtils.js +39 -69
  310. package/package.json +2 -2
  311. package/dist/es/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.d.ts +0 -98
  312. package/dist/es/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.js +0 -345
  313. package/dist/es/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.d.ts +0 -99
  314. package/dist/es/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.js +0 -343
  315. package/dist/es/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.d.ts +0 -99
  316. package/dist/es/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.js +0 -343
  317. package/dist/es/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.d.ts +0 -102
  318. package/dist/es/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.js +0 -343
  319. package/dist/es/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.d.ts +0 -99
  320. package/dist/es/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.js +0 -343
  321. package/dist/es/models/opsmgmt/v4/reporting/ViewApiResponse.d.ts +0 -99
  322. package/dist/es/models/opsmgmt/v4/reporting/ViewApiResponse.js +0 -343
  323. package/dist/es/models/opsmgmt/v4/reporting/ViewConfigApiResponse.d.ts +0 -99
  324. package/dist/es/models/opsmgmt/v4/reporting/ViewConfigApiResponse.js +0 -343
  325. package/dist/lib/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.d.ts +0 -98
  326. package/dist/lib/models/opsmgmt/v4/reporting/DeleteReportViewApiResponse.js +0 -345
  327. package/dist/lib/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.d.ts +0 -99
  328. package/dist/lib/models/opsmgmt/v4/reporting/ExportReportConfigApiResponse.js +0 -343
  329. package/dist/lib/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.d.ts +0 -99
  330. package/dist/lib/models/opsmgmt/v4/reporting/GenerateReportFromViewApiResponse.js +0 -343
  331. package/dist/lib/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.d.ts +0 -102
  332. package/dist/lib/models/opsmgmt/v4/reporting/ImportReportConfigApiResponse.js +0 -343
  333. package/dist/lib/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.d.ts +0 -99
  334. package/dist/lib/models/opsmgmt/v4/reporting/NotifyReportFromViewApiResponse.js +0 -343
  335. package/dist/lib/models/opsmgmt/v4/reporting/ViewApiResponse.d.ts +0 -99
  336. package/dist/lib/models/opsmgmt/v4/reporting/ViewApiResponse.js +0 -343
  337. package/dist/lib/models/opsmgmt/v4/reporting/ViewConfigApiResponse.d.ts +0 -99
  338. package/dist/lib/models/opsmgmt/v4/reporting/ViewConfigApiResponse.js +0 -343
@@ -3,37 +3,22 @@
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 _Recipient = _interopRequireDefault(require("./Recipient"));
8
8
  var _ReportFormat = _interopRequireDefault(require("./ReportFormat"));
9
9
  var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
10
10
  var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
11
11
  var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
12
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
14
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
15
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
20
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
23
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
24
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
25
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
26
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
27
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
28
13
  function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
29
14
  function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
30
15
  * Nutanix Cloud Management Platform APIs
31
16
  *
32
- * OpenAPI spec version: 4.0.1
17
+ * OpenAPI spec version: 4.0.3
33
18
  *
34
19
  * NOTE: This class is auto generated by the Open API Dev Platform.
35
20
  *
36
- * Open API Dev Platform Codegen version: 16.9.0.8546-RELEASE
21
+ * Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
37
22
  *
38
23
  * Do not edit the class manually.
39
24
  *
@@ -41,13 +26,13 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
41
26
  /**
42
27
  * The NotificationPolicy model module.
43
28
  * @module Ntnx/NotificationPolicy
44
- * @version 4.0.1
29
+ * @version 4.0.3
45
30
  * @class NotificationPolicy
46
31
  *
47
32
  * @param { Recipient[] } recipients Email recipients list.
48
33
  */
49
34
  var _NotificationPolicy_brand = /*#__PURE__*/new WeakSet();
50
- var NotificationPolicy = exports["default"] = /*#__PURE__*/function () {
35
+ class NotificationPolicy {
51
36
  /**
52
37
  * Constructs a new <code>NotificationPolicy</code>.
53
38
  * Notification policy for sending the email of the generated report.
@@ -55,8 +40,7 @@ var NotificationPolicy = exports["default"] = /*#__PURE__*/function () {
55
40
  *
56
41
  * @param { Recipient[] } recipients Email recipients list.
57
42
  */
58
- function NotificationPolicy(recipients) {
59
- _classCallCheck(this, NotificationPolicy);
43
+ constructor(recipients) {
60
44
  /*
61
45
  * toJson method for a map type which supports map with primitive keys and values of object types
62
46
  * @param {Object} obj
@@ -82,309 +66,276 @@ var NotificationPolicy = exports["default"] = /*#__PURE__*/function () {
82
66
  * @param callFromChild {Boolean} Flag to recognise calling instance
83
67
  * @return {module:Ntnx/NotificationPolicy} The populated <code>NotificationPolicy</code> instance.
84
68
  */
85
- return _createClass(NotificationPolicy, [{
86
- key: "getRecipientFormats",
87
- value:
88
- /**
89
- * Returns List specifying the formats in which the report is to be sent.
90
- * @return {ReportFormat[]}
91
- */
92
- function getRecipientFormats() {
93
- return this.recipientFormats;
69
+ static constructFromObject(data, obj = null, callFromChild = false) {
70
+ let items, item, i, itemArr, discriminator;
71
+ if (data) {
72
+ obj = obj || new NotificationPolicy();
73
+ if (data.hasOwnProperty('recipientFormats') && data.recipientFormats !== null && data.recipientFormats !== undefined) {
74
+ itemArr = [];
75
+ items = data.recipientFormats;
76
+ for (i = 0; i < items.length; i++) {
77
+ item = _ReportFormat.default.constructFromObject(items[i], undefined);
78
+ itemArr.push(item);
79
+ }
80
+ obj.setRecipientFormats(itemArr);
81
+ }
82
+ if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
83
+ itemArr = [];
84
+ items = data.recipients;
85
+ for (i = 0; i < items.length; i++) {
86
+ item = _Recipient.default.constructFromObject(items[i], undefined);
87
+ itemArr.push(item);
88
+ }
89
+ obj.setRecipients(itemArr);
90
+ }
91
+ if (data.hasOwnProperty('emailSubject') && data.emailSubject !== null && data.emailSubject !== undefined) {
92
+ obj.setEmailSubject(data['emailSubject']);
93
+ }
94
+ if (data.hasOwnProperty('emailBody') && data.emailBody !== null && data.emailBody !== undefined) {
95
+ obj.setEmailBody(data['emailBody']);
96
+ }
97
+ if (data.hasOwnProperty('$reserved')) {
98
+ obj.$reserved = data['$reserved'];
99
+ }
100
+ if (data.hasOwnProperty('$objectType')) {
101
+ obj.$objectType = data['$objectType'];
102
+ }
103
+ if (data.hasOwnProperty('$unknownFields')) {
104
+ obj.$unknownFields = data['$unknownFields'];
105
+ }
106
+ if (!callFromChild) {
107
+ obj.$unknownFields = {
108
+ ...data.$unknownFields
109
+ };
110
+ for (const property in data) {
111
+ // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
112
+ // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
113
+ // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
114
+ // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
115
+ if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
116
+ obj.$unknownFields[property] = data[property];
117
+ }
118
+ }
119
+ }
94
120
  }
121
+ return obj;
122
+ }
95
123
 
96
- /**
97
- * Sets List specifying the formats in which the report is to be sent.
98
- * @param {ReportFormat[]} recipientFormats List specifying the formats in which the report is to be sent.
99
- */
100
- }, {
101
- key: "setRecipientFormats",
102
- value: function setRecipientFormats(recipientFormats) {
103
- this.recipientFormats = recipientFormats;
104
- }
124
+ /**
125
+ * Converts a given snake_case string to camelCase.
126
+ * @param {string} snakeStr - The input string in snake_case format.
127
+ * @returns {string} - The converted string in camelCase format.
128
+ */
129
+ static snakeToCamel(snakeStr) {
130
+ return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
131
+ }
105
132
 
106
- /**
107
- * Returns Email recipients list.
108
- * @return {Recipient[]}
109
- */
110
- }, {
111
- key: "getRecipients",
112
- value: function getRecipients() {
113
- return this.recipients;
114
- }
133
+ /**
134
+ * Returns List specifying the formats in which the report is to be sent.
135
+ * @return {ReportFormat[]}
136
+ */
137
+ getRecipientFormats() {
138
+ return this.recipientFormats;
139
+ }
115
140
 
116
- /**
117
- * Sets Email recipients list.
118
- * @param {Recipient[]} recipients Email recipients list.
119
- */
120
- }, {
121
- key: "setRecipients",
122
- value: function setRecipients(recipients) {
123
- this.recipients = recipients;
124
- }
141
+ /**
142
+ * Sets List specifying the formats in which the report is to be sent.
143
+ * @param {ReportFormat[]} recipientFormats List specifying the formats in which the report is to be sent.
144
+ */
145
+ setRecipientFormats(recipientFormats) {
146
+ this.recipientFormats = recipientFormats;
147
+ }
125
148
 
126
- /**
127
- * Returns Subject of the email to be sent for the report.
128
- * @return {string}
129
- */
130
- }, {
131
- key: "getEmailSubject",
132
- value: function getEmailSubject() {
133
- return this.emailSubject;
134
- }
149
+ /**
150
+ * Returns Email recipients list.
151
+ * @return {Recipient[]}
152
+ */
153
+ getRecipients() {
154
+ return this.recipients;
155
+ }
135
156
 
136
- /**
137
- * Sets Subject of the email to be sent for the report.
138
- * @param {string} emailSubject Subject of the email to be sent for the report.
139
- */
140
- }, {
141
- key: "setEmailSubject",
142
- value: function setEmailSubject(emailSubject) {
143
- this.emailSubject = emailSubject;
144
- }
157
+ /**
158
+ * Sets Email recipients list.
159
+ * @param {Recipient[]} recipients Email recipients list.
160
+ */
161
+ setRecipients(recipients) {
162
+ this.recipients = recipients;
163
+ }
145
164
 
146
- /**
147
- * Returns Content of the email body.
148
- * @return {string}
149
- */
150
- }, {
151
- key: "getEmailBody",
152
- value: function getEmailBody() {
153
- return this.emailBody;
154
- }
165
+ /**
166
+ * Returns Subject of the email to be sent for the report.
167
+ * @return {string}
168
+ */
169
+ getEmailSubject() {
170
+ return this.emailSubject;
171
+ }
155
172
 
156
- /**
157
- * Sets Content of the email body.
158
- * @param {string} emailBody Content of the email body.
159
- */
160
- }, {
161
- key: "setEmailBody",
162
- value: function setEmailBody(emailBody) {
163
- this.emailBody = emailBody;
164
- }
165
- }, {
166
- key: "get$Reserved",
167
- value: function get$Reserved() {
168
- return this.$reserved;
169
- }
170
- }, {
171
- key: "get$ObjectType",
172
- value: function get$ObjectType() {
173
- return this.$objectType;
174
- }
175
- }, {
176
- key: "get$UnknownFields",
177
- value: function get$UnknownFields() {
178
- return this.$unknownFields;
179
- }
180
- }, {
181
- key: "toJson",
182
- value: function toJson(forMutation) {
183
- if (forMutation === false) {
184
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
173
+ /**
174
+ * Sets Subject of the email to be sent for the report.
175
+ * @param {string} emailSubject Subject of the email to be sent for the report.
176
+ */
177
+ setEmailSubject(emailSubject) {
178
+ this.emailSubject = emailSubject;
179
+ }
180
+
181
+ /**
182
+ * Returns Content of the email body.
183
+ * @return {string}
184
+ */
185
+ getEmailBody() {
186
+ return this.emailBody;
187
+ }
188
+
189
+ /**
190
+ * Sets Content of the email body.
191
+ * @param {string} emailBody Content of the email body.
192
+ */
193
+ setEmailBody(emailBody) {
194
+ this.emailBody = emailBody;
195
+ }
196
+ get$Reserved() {
197
+ return this.$reserved;
198
+ }
199
+ get$ObjectType() {
200
+ return this.$objectType;
201
+ }
202
+ get$UnknownFields() {
203
+ return this.$unknownFields;
204
+ }
205
+ toJson(forMutation) {
206
+ if (forMutation === false) {
207
+ return {
208
+ ...(typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
185
209
  'recipientFormats': this.getRecipientFormats()
186
- } : {}), typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
187
- 'recipients': this.getRecipients().map(function (item) {
188
- return item.toJson(false);
189
- })
190
- } : {}), typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
210
+ } : {}),
211
+ ...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
212
+ 'recipients': this.getRecipients().map(item => item.toJson(false))
213
+ } : {}),
214
+ ...(typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
191
215
  'emailSubject': this.getEmailSubject()
192
- } : {}), typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
216
+ } : {}),
217
+ ...(typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
193
218
  'emailBody': this.getEmailBody()
194
- } : {}), {}, {
195
- '$reserved': this.get$Reserved(),
196
- '$objectType': this.get$ObjectType(),
197
- '$unknownFields': this.get$UnknownFields()
198
- });
199
- }
200
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
219
+ } : {}),
220
+ '$reserved': this.get$Reserved(),
221
+ '$objectType': this.get$ObjectType(),
222
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
223
+ '$unknownFields': {}
224
+ };
225
+ }
226
+ return {
227
+ ...(typeof this.getRecipientFormats() !== 'undefined' && this.getRecipientFormats() !== null ? {
201
228
  'recipientFormats': this.getRecipientFormats()
202
- } : {}), typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
203
- 'recipients': this.getRecipients().map(function (item) {
204
- return item.toJson(false);
205
- })
206
- } : {}), typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
229
+ } : {}),
230
+ ...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
231
+ 'recipients': this.getRecipients().map(item => item.toJson(false))
232
+ } : {}),
233
+ ...(typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
207
234
  'emailSubject': this.getEmailSubject()
208
- } : {}), typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
235
+ } : {}),
236
+ ...(typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
209
237
  'emailBody': this.getEmailBody()
210
- } : {}), {}, {
211
- '$reserved': this.get$Reserved(),
212
- '$objectType': this.get$ObjectType(),
213
- '$unknownFields': this.get$UnknownFields()
214
- });
238
+ } : {}),
239
+ '$reserved': this.get$Reserved(),
240
+ '$objectType': this.get$ObjectType(),
241
+ ...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
242
+ '$unknownFields': {}
243
+ };
244
+ }
245
+ validate(scope, properties) {
246
+ let propList = [];
247
+ if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
248
+ //cases validate() and validate(scope)
249
+ propList = ["recipients"];
250
+ } else if (arguments.length === 1) {
251
+ //case validate(properties)
252
+ propList = arguments[0];
253
+ scope = null;
254
+ } else {
255
+ //case validate(scope, properties)
256
+ propList = arguments[1];
215
257
  }
216
- }, {
217
- key: "validate",
218
- value: function validate(scope, properties) {
219
- var _this = this;
220
- var propList = [];
221
- if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes["default"]) {
222
- //cases validate() and validate(scope)
223
- propList = ["recipients"];
224
- } else if (arguments.length === 1) {
225
- //case validate(properties)
226
- propList = arguments[0];
227
- scope = null;
258
+ let res = [];
259
+ let err = null;
260
+ propList.forEach(property => {
261
+ err = this.validateProperty(property, scope);
262
+ if (err) {
263
+ res.push(err);
264
+ }
265
+ });
266
+ return new Promise(function (resolve, reject) {
267
+ if (res.length !== 0) {
268
+ reject(err);
228
269
  } else {
229
- //case validate(scope, properties)
230
- propList = arguments[1];
270
+ resolve();
271
+ }
272
+ });
273
+ }
274
+ validateProperty(scope, property) {
275
+ if (property === "recipientFormats") {
276
+ if (typeof this.recipientFormats === 'undefined' || this.recipientFormats === null) {
277
+ return new _ValidationError.default("recipientFormats", "undefined or null");
278
+ }
279
+ if (!_ValidationUtils.default.validateMaxItems(this.recipientFormats, 2)) {
280
+ return new _ValidationError.default("recipientFormats", "does not satisfy required maxItems constraint: 2");
231
281
  }
232
- var res = [];
233
- var err = null;
234
- propList.forEach(function (property) {
235
- err = _this.validateProperty(property, scope);
236
- if (err) {
237
- res.push(err);
238
- }
239
- });
240
- return new Promise(function (resolve, reject) {
241
- if (res.length !== 0) {
242
- reject(err);
243
- } else {
244
- resolve();
245
- }
246
- });
247
282
  }
248
- }, {
249
- key: "validateProperty",
250
- value: function validateProperty(scope, property) {
251
- if (property === "recipientFormats") {
252
- if (typeof this.recipientFormats === 'undefined' || this.recipientFormats === null) {
253
- return new _ValidationError["default"]("recipientFormats", "undefined or null");
254
- }
255
- if (!_ValidationUtils["default"].validateMaxItems(this.recipientFormats, 2)) {
256
- return new _ValidationError["default"]("recipientFormats", "does not satisfy required maxItems constraint: 2");
257
- }
283
+ if (property === "recipients") {
284
+ if (typeof this.recipients === 'undefined' || this.recipients === null) {
285
+ return new _ValidationError.default("recipients", "undefined or null");
258
286
  }
259
- if (property === "recipients") {
260
- if (typeof this.recipients === 'undefined' || this.recipients === null) {
261
- return new _ValidationError["default"]("recipients", "undefined or null");
262
- }
263
- if (!_ValidationUtils["default"].validateMaxItems(this.recipients, 100)) {
264
- return new _ValidationError["default"]("recipients", "does not satisfy required maxItems constraint: 100");
265
- }
266
- if (!_ValidationUtils["default"].validateMinItems(this.recipients, 1)) {
267
- return new _ValidationError["default"]("recipients", "does not satisfy required minItems constraint: 1");
268
- }
287
+ if (!_ValidationUtils.default.validateMaxItems(this.recipients, 100)) {
288
+ return new _ValidationError.default("recipients", "does not satisfy required maxItems constraint: 100");
269
289
  }
270
- if (property === "emailSubject") {
271
- if (typeof this.emailSubject === 'undefined' || this.emailSubject === null) {
272
- return new _ValidationError["default"]("emailSubject", "undefined or null");
273
- }
274
- if (!_ValidationUtils["default"].validateMaxLength(this.emailSubject, 100)) {
275
- return new _ValidationError["default"]("emailSubject", "does not satisfy required maxLength constraint: 100");
276
- }
290
+ if (!_ValidationUtils.default.validateMinItems(this.recipients, 1)) {
291
+ return new _ValidationError.default("recipients", "does not satisfy required minItems constraint: 1");
277
292
  }
278
- if (property === "emailBody") {
279
- if (typeof this.emailBody === 'undefined' || this.emailBody === null) {
280
- return new _ValidationError["default"]("emailBody", "undefined or null");
281
- }
282
- if (!_ValidationUtils["default"].validateMaxLength(this.emailBody, 1000)) {
283
- return new _ValidationError["default"]("emailBody", "does not satisfy required maxLength constraint: 1000");
284
- }
293
+ }
294
+ if (property === "emailSubject") {
295
+ if (typeof this.emailSubject === 'undefined' || this.emailSubject === null) {
296
+ return new _ValidationError.default("emailSubject", "undefined or null");
285
297
  }
286
- if (property === "$reserved") {
287
- if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
288
- return new _ValidationError["default"]("$reserved", "undefined or null");
289
- }
298
+ if (!_ValidationUtils.default.validateMaxLength(this.emailSubject, 100)) {
299
+ return new _ValidationError.default("emailSubject", "does not satisfy required maxLength constraint: 100");
290
300
  }
291
- if (property === "$objectType") {
292
- if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
293
- return new _ValidationError["default"]("$objectType", "undefined or null");
294
- }
301
+ }
302
+ if (property === "emailBody") {
303
+ if (typeof this.emailBody === 'undefined' || this.emailBody === null) {
304
+ return new _ValidationError.default("emailBody", "undefined or null");
295
305
  }
296
- if (property === "$unknownFields") {
297
- if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
298
- return new _ValidationError["default"]("$unknownFields", "undefined or null");
299
- }
306
+ if (!_ValidationUtils.default.validateMaxLength(this.emailBody, 1000)) {
307
+ return new _ValidationError.default("emailBody", "does not satisfy required maxLength constraint: 1000");
300
308
  }
301
- return new _ValidationError["default"](property, "no such property exists");
302
309
  }
303
- }], [{
304
- key: "constructFromObject",
305
- value: function constructFromObject(data) {
306
- var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
307
- var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
308
- var items, item, i, itemArr, discriminator;
309
- if (data) {
310
- obj = obj || new NotificationPolicy();
311
- if (data.hasOwnProperty('recipientFormats') && data.recipientFormats !== null && data.recipientFormats !== undefined) {
312
- itemArr = [];
313
- items = data.recipientFormats;
314
- for (i = 0; i < items.length; i++) {
315
- item = _ReportFormat["default"].constructFromObject(items[i], undefined);
316
- itemArr.push(item);
317
- }
318
- obj.setRecipientFormats(itemArr);
319
- }
320
- if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
321
- itemArr = [];
322
- items = data.recipients;
323
- for (i = 0; i < items.length; i++) {
324
- item = _Recipient["default"].constructFromObject(items[i], undefined);
325
- itemArr.push(item);
326
- }
327
- obj.setRecipients(itemArr);
328
- }
329
- if (data.hasOwnProperty('emailSubject') && data.emailSubject !== null && data.emailSubject !== undefined) {
330
- obj.setEmailSubject(data['emailSubject']);
331
- }
332
- if (data.hasOwnProperty('emailBody') && data.emailBody !== null && data.emailBody !== undefined) {
333
- obj.setEmailBody(data['emailBody']);
334
- }
335
- if (data.hasOwnProperty('$reserved')) {
336
- obj.$reserved = data['$reserved'];
337
- }
338
- if (data.hasOwnProperty('$objectType')) {
339
- obj.$objectType = data['$objectType'];
340
- }
341
- if (data.hasOwnProperty('$unknownFields')) {
342
- obj.$unknownFields = data['$unknownFields'];
343
- }
344
- if (!callFromChild) {
345
- obj.$unknownFields = _objectSpread({}, data.$unknownFields);
346
- for (var property in data) {
347
- // Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
348
- // as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
349
- // Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
350
- // If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
351
- if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
352
- obj.$unknownFields[property] = data[property];
353
- }
354
- }
355
- }
310
+ if (property === "$reserved") {
311
+ if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
312
+ return new _ValidationError.default("$reserved", "undefined or null");
356
313
  }
357
- return obj;
358
314
  }
359
-
360
- /**
361
- * Converts a given snake_case string to camelCase.
362
- * @param {string} snakeStr - The input string in snake_case format.
363
- * @returns {string} - The converted string in camelCase format.
364
- */
365
- }, {
366
- key: "snakeToCamel",
367
- value: function snakeToCamel(snakeStr) {
368
- return snakeStr.replace(/(_\w)/g, function (match) {
369
- return match[1].toUpperCase();
370
- });
315
+ if (property === "$objectType") {
316
+ if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
317
+ return new _ValidationError.default("$objectType", "undefined or null");
318
+ }
371
319
  }
372
- }]);
373
- }();
320
+ if (property === "$unknownFields") {
321
+ if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
322
+ return new _ValidationError.default("$unknownFields", "undefined or null");
323
+ }
324
+ }
325
+ return new _ValidationError.default(property, "no such property exists");
326
+ }
327
+ }
328
+
374
329
  /**
375
330
  * List specifying the formats in which the report is to be sent.
376
331
  * @memberof NotificationPolicy
377
332
  */
333
+ exports.default = NotificationPolicy;
378
334
  function _toJsonMapType(obj, forMutation) {
379
335
  if (obj instanceof Map) {
380
- return Object.fromEntries(Array.from(obj, function (_ref) {
381
- var _ref2 = _slicedToArray(_ref, 2),
382
- k = _ref2[0],
383
- v = _ref2[1];
384
- return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
385
- }));
386
- } else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
387
- return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
336
+ return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
337
+ } else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
338
+ return Object.fromEntries(Array.from(Object.entries(obj), entry => {
388
339
  return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
389
340
  }));
390
341
  }