@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.
- package/README.md +15 -3
- package/dist/Ntnx-Opsmgmt-js-client-prod.js +1 -1
- package/dist/Ntnx-Opsmgmt-js-client.js +453 -447
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/globalreportsetting-endpoints.d.ts +1 -1
- package/dist/es/apis/globalreportsetting-endpoints.js +94 -111
- package/dist/es/apis/reportartifacts-endpoints.d.ts +2 -2
- package/dist/es/apis/reportartifacts-endpoints.js +196 -210
- package/dist/es/apis/reportconfig-endpoints.d.ts +2 -2
- package/dist/es/apis/reportconfig-endpoints.js +210 -224
- package/dist/es/apis/reports-endpoints.d.ts +2 -2
- package/dist/es/apis/reports-endpoints.js +243 -258
- package/dist/es/index.js +239 -239
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
- package/dist/es/models/opsmgmt/v4/config/DataCriteria.js +280 -333
- package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
- package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
- package/dist/es/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/EntitySelection.js +172 -213
- package/dist/es/models/opsmgmt/v4/config/EntityType.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
- package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
- package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.js +201 -249
- package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
- package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/Recipient.js +170 -211
- package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
- package/dist/es/models/opsmgmt/v4/config/Report.d.ts +1 -35
- package/dist/es/models/opsmgmt/v4/config/Report.js +506 -581
- package/dist/es/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
- package/dist/es/models/opsmgmt/v4/config/ReportConfig.js +514 -594
- package/dist/es/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
- package/dist/es/models/opsmgmt/v4/config/ReportFormat.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
- package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.js +174 -222
- package/dist/es/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
- package/dist/es/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
- package/dist/es/models/opsmgmt/v4/config/Row.d.ts +2 -12
- package/dist/es/models/opsmgmt/v4/config/Row.js +148 -191
- package/dist/es/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/Section.d.ts +2 -27
- package/dist/es/models/opsmgmt/v4/config/Section.js +251 -302
- package/dist/es/models/opsmgmt/v4/config/SortKey.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/SortOrder.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/TimeFilter.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/Widget.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/config/Widget.js +154 -197
- package/dist/es/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
- package/dist/es/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
- package/dist/es/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/config/WidgetField.js +195 -238
- package/dist/es/models/opsmgmt/v4/config/WidgetSize.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
- package/dist/es/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/WidgetType.js +7 -9
- package/dist/es/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
- package/dist/es/models/opsmgmt/v4/content/ArtifactType.js +7 -9
- package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
- package/dist/es/models/opsmgmt/v4/content/ReportArtifact.js +149 -193
- package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/opsmgmt/v4/error/AppMessage.js +263 -312
- package/dist/es/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/error/ErrorResponse.js +174 -217
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
- package/dist/es/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
- package/dist/es/models/opsmgmt/v4/reporting/CustomView.js +394 -455
- package/dist/es/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/reporting/Field.js +195 -238
- package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.js +139 -178
- package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.js +144 -183
- package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
- package/dist/es/models/opsmgmt/v4/reporting/Operator.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
- package/dist/es/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/reporting/Recipient.js +170 -211
- package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
- package/dist/es/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/View.d.ts +1 -18
- package/dist/es/models/opsmgmt/v4/reporting/View.js +202 -252
- package/dist/es/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
- package/dist/es/models/opsmgmt/v4/reporting/ViewReport.js +275 -331
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/globalreportsetting-endpoints.d.ts +1 -1
- package/dist/lib/apis/globalreportsetting-endpoints.js +94 -111
- package/dist/lib/apis/reportartifacts-endpoints.d.ts +2 -2
- package/dist/lib/apis/reportartifacts-endpoints.js +196 -210
- package/dist/lib/apis/reportconfig-endpoints.d.ts +2 -2
- package/dist/lib/apis/reportconfig-endpoints.js +210 -224
- package/dist/lib/apis/reports-endpoints.d.ts +2 -2
- package/dist/lib/apis/reports-endpoints.js +243 -258
- package/dist/lib/index.js +239 -239
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
- package/dist/lib/models/opsmgmt/v4/config/DataCriteria.js +280 -333
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
- package/dist/lib/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/EntitySelection.js +172 -213
- package/dist/lib/models/opsmgmt/v4/config/EntityType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
- package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
- package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.js +201 -249
- package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
- package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/Recipient.js +170 -211
- package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
- package/dist/lib/models/opsmgmt/v4/config/Report.d.ts +1 -35
- package/dist/lib/models/opsmgmt/v4/config/Report.js +506 -581
- package/dist/lib/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
- package/dist/lib/models/opsmgmt/v4/config/ReportConfig.js +514 -594
- package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
- package/dist/lib/models/opsmgmt/v4/config/ReportFormat.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
- package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.js +174 -222
- package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
- package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
- package/dist/lib/models/opsmgmt/v4/config/Row.d.ts +2 -12
- package/dist/lib/models/opsmgmt/v4/config/Row.js +148 -191
- package/dist/lib/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/Section.d.ts +2 -27
- package/dist/lib/models/opsmgmt/v4/config/Section.js +251 -302
- package/dist/lib/models/opsmgmt/v4/config/SortKey.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/SortOrder.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/TimeFilter.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/Widget.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/config/Widget.js +154 -197
- package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
- package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
- package/dist/lib/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/config/WidgetField.js +195 -238
- package/dist/lib/models/opsmgmt/v4/config/WidgetSize.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
- package/dist/lib/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/WidgetType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/content/ArtifactType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
- package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.js +149 -193
- package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/opsmgmt/v4/error/AppMessage.js +263 -312
- package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.js +174 -217
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
- package/dist/lib/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
- package/dist/lib/models/opsmgmt/v4/reporting/CustomView.js +394 -455
- package/dist/lib/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/reporting/Field.js +195 -238
- package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.js +139 -178
- package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.js +144 -183
- package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
- package/dist/lib/models/opsmgmt/v4/reporting/Operator.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
- package/dist/lib/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/reporting/Recipient.js +170 -211
- package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
- package/dist/lib/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/View.d.ts +1 -18
- package/dist/lib/models/opsmgmt/v4/reporting/View.js +202 -252
- package/dist/lib/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
- package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.js +275 -331
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
|
@@ -3,37 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
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 : {
|
|
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.
|
|
17
|
+
* OpenAPI spec version: 4.0.4
|
|
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: 17.
|
|
21
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-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.
|
|
29
|
+
* @version 4.0.4
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
} : {}),
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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
|
-
} : {}),
|
|
216
|
+
} : {}),
|
|
217
|
+
...(typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
|
|
193
218
|
'emailBody': this.getEmailBody()
|
|
194
|
-
} : {}),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
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
|
-
} : {}),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
} : {}),
|
|
235
|
+
} : {}),
|
|
236
|
+
...(typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
|
|
209
237
|
'emailBody': this.getEmailBody()
|
|
210
|
-
} : {}),
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
|
|
230
|
-
|
|
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
|
-
|
|
250
|
-
|
|
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 (
|
|
260
|
-
|
|
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 (
|
|
271
|
-
|
|
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
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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 (
|
|
287
|
-
|
|
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
|
-
|
|
292
|
-
|
|
293
|
-
|
|
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 (
|
|
297
|
-
|
|
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
|
-
|
|
305
|
-
|
|
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
|
-
|
|
362
|
-
|
|
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,
|
|
381
|
-
|
|
382
|
-
|
|
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
|
}
|