@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,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
8
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
9
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
@@ -17,39 +17,17 @@ var _Section = _interopRequireDefault(require("./Section"));
|
|
|
17
17
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
18
18
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
19
19
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
20
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
21
|
-
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); }
|
|
22
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
23
|
-
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."); }
|
|
24
|
-
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; } }
|
|
25
|
-
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; }
|
|
26
|
-
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; } }
|
|
27
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
28
|
-
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; }
|
|
29
|
-
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; }
|
|
30
|
-
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; }
|
|
31
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
32
|
-
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); } }
|
|
33
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
34
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
35
|
-
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); }
|
|
36
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
37
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
38
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
39
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
40
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
41
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
42
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
43
21
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
44
22
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
45
23
|
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
46
24
|
* Nutanix Cloud Management Platform APIs
|
|
47
25
|
*
|
|
48
|
-
* OpenAPI spec version: 4.0.
|
|
26
|
+
* OpenAPI spec version: 4.0.4
|
|
49
27
|
*
|
|
50
28
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
51
29
|
*
|
|
52
|
-
* Open API Dev Platform Codegen version: 17.
|
|
30
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
53
31
|
*
|
|
54
32
|
* Do not edit the class manually.
|
|
55
33
|
*
|
|
@@ -57,7 +35,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
57
35
|
/**
|
|
58
36
|
* The ReportConfig model module.
|
|
59
37
|
* @module Ntnx/ReportConfig
|
|
60
|
-
* @version 4.0.
|
|
38
|
+
* @version 4.0.4
|
|
61
39
|
* @class ReportConfig
|
|
62
40
|
* @extends ExternalizableAbstractModel
|
|
63
41
|
*
|
|
@@ -66,7 +44,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
66
44
|
* @param { Section[] } sections List of sections in the report.
|
|
67
45
|
*/
|
|
68
46
|
var _ReportConfig_brand = /*#__PURE__*/new WeakSet();
|
|
69
|
-
|
|
47
|
+
class ReportConfig extends _ExternalizableAbstractModel.default {
|
|
70
48
|
/**
|
|
71
49
|
* Constructs a new <code>ReportConfig</code>.
|
|
72
50
|
* @alias module:Ntnx/ReportConfig
|
|
@@ -76,27 +54,24 @@ var ReportConfig = exports["default"] = /*#__PURE__*/function (_ExternalizableAb
|
|
|
76
54
|
*
|
|
77
55
|
* @param { Section[] } sections List of sections in the report.
|
|
78
56
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
_classCallCheck(this, ReportConfig);
|
|
82
|
-
_this = _callSuper(this, ReportConfig);
|
|
57
|
+
constructor(name, sections) {
|
|
58
|
+
super();
|
|
83
59
|
/*
|
|
84
60
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
85
61
|
* @param {Object} obj
|
|
86
62
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
87
63
|
* Otherwise, just returns the input object.
|
|
88
64
|
*/
|
|
89
|
-
_classPrivateMethodInitSpec(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
65
|
+
_classPrivateMethodInitSpec(this, _ReportConfig_brand);
|
|
66
|
+
this.name = name;
|
|
67
|
+
this.sections = sections;
|
|
68
|
+
this.$objectType = "opsmgmt.v4.config.ReportConfig";
|
|
93
69
|
/** @type {object<string, any>} */
|
|
94
|
-
|
|
70
|
+
this.$reserved = {
|
|
95
71
|
'$fv': "v4.r0"
|
|
96
72
|
};
|
|
97
73
|
/** @type {object<string, any>} */
|
|
98
|
-
|
|
99
|
-
return _this;
|
|
74
|
+
this.$unknownFields = {};
|
|
100
75
|
}
|
|
101
76
|
|
|
102
77
|
/**
|
|
@@ -107,646 +82,591 @@ var ReportConfig = exports["default"] = /*#__PURE__*/function (_ExternalizableAb
|
|
|
107
82
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
108
83
|
* @return {module:Ntnx/ReportConfig} The populated <code>ReportConfig</code> instance.
|
|
109
84
|
*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
85
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
86
|
+
let items, item, i, itemArr, discriminator;
|
|
87
|
+
if (data) {
|
|
88
|
+
obj = obj || new ReportConfig();
|
|
89
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
90
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
91
|
+
obj.setName(data['name']);
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
94
|
+
obj.setDescription(data['description']);
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('schedule') && data.schedule !== null && data.schedule !== undefined) {
|
|
97
|
+
obj.setSchedule(_ReportSchedule.default.constructFromObject(data['schedule']));
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('retentionConfig') && data.retentionConfig !== null && data.retentionConfig !== undefined) {
|
|
100
|
+
obj.setRetentionConfig(_RetentionConfig.default.constructFromObject(data['retentionConfig']));
|
|
101
|
+
}
|
|
102
|
+
if (data.hasOwnProperty('sections') && data.sections !== null && data.sections !== undefined) {
|
|
103
|
+
itemArr = [];
|
|
104
|
+
items = data.sections;
|
|
105
|
+
for (i = 0; i < items.length; i++) {
|
|
106
|
+
item = _Section.default.constructFromObject(items[i], undefined);
|
|
107
|
+
itemArr.push(item);
|
|
108
|
+
}
|
|
109
|
+
obj.setSections(itemArr);
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('supportedFormats') && data.supportedFormats !== null && data.supportedFormats !== undefined) {
|
|
112
|
+
itemArr = [];
|
|
113
|
+
items = data.supportedFormats;
|
|
114
|
+
for (i = 0; i < items.length; i++) {
|
|
115
|
+
item = _ReportFormat.default.constructFromObject(items[i], undefined);
|
|
116
|
+
itemArr.push(item);
|
|
117
|
+
}
|
|
118
|
+
obj.setSupportedFormats(itemArr);
|
|
119
|
+
}
|
|
120
|
+
if (data.hasOwnProperty('timezone') && data.timezone !== null && data.timezone !== undefined) {
|
|
121
|
+
obj.setTimezone(data['timezone']);
|
|
122
|
+
}
|
|
123
|
+
if (data.hasOwnProperty('notificationPolicy') && data.notificationPolicy !== null && data.notificationPolicy !== undefined) {
|
|
124
|
+
obj.setNotificationPolicy(_NotificationPolicy.default.constructFromObject(data['notificationPolicy']));
|
|
125
|
+
}
|
|
126
|
+
if (data.hasOwnProperty('isSystemDefined') && data.isSystemDefined !== null && data.isSystemDefined !== undefined) {
|
|
127
|
+
obj.setIsSystemDefined(data['isSystemDefined']);
|
|
128
|
+
}
|
|
129
|
+
if (data.hasOwnProperty('isPrivate') && data.isPrivate !== null && data.isPrivate !== undefined) {
|
|
130
|
+
obj.setIsPrivate(data['isPrivate']);
|
|
131
|
+
}
|
|
132
|
+
if (data.hasOwnProperty('isImported') && data.isImported !== null && data.isImported !== undefined) {
|
|
133
|
+
obj.setIsImported(data['isImported']);
|
|
134
|
+
}
|
|
135
|
+
if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {
|
|
136
|
+
obj.setCreationTime(data['creationTime']);
|
|
137
|
+
}
|
|
138
|
+
if (data.hasOwnProperty('startTimeOffsetSecs') && data.startTimeOffsetSecs !== null && data.startTimeOffsetSecs !== undefined) {
|
|
139
|
+
obj.setStartTimeOffsetSecs(data['startTimeOffsetSecs']);
|
|
140
|
+
}
|
|
141
|
+
if (data.hasOwnProperty('endTimeOffsetSecs') && data.endTimeOffsetSecs !== null && data.endTimeOffsetSecs !== undefined) {
|
|
142
|
+
obj.setEndTimeOffsetSecs(data['endTimeOffsetSecs']);
|
|
143
|
+
}
|
|
144
|
+
if (data.hasOwnProperty('reportCustomization') && data.reportCustomization !== null && data.reportCustomization !== undefined) {
|
|
145
|
+
obj.setReportCustomization(_ReportCustomization.default.constructFromObject(data['reportCustomization']));
|
|
146
|
+
}
|
|
147
|
+
if (data.hasOwnProperty('defaultSectionEntityType') && data.defaultSectionEntityType !== null && data.defaultSectionEntityType !== undefined) {
|
|
148
|
+
obj.setDefaultSectionEntityType(_EntityType.default.constructFromObject(data['defaultSectionEntityType']));
|
|
149
|
+
}
|
|
150
|
+
if (!callFromChild) {
|
|
151
|
+
obj.$unknownFields = {
|
|
152
|
+
...data.$unknownFields
|
|
153
|
+
};
|
|
154
|
+
for (const property in data) {
|
|
155
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
156
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
157
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
158
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
159
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
160
|
+
obj.$unknownFields[property] = data[property];
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
120
164
|
}
|
|
165
|
+
return obj;
|
|
166
|
+
}
|
|
121
167
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
168
|
+
/**
|
|
169
|
+
* Converts a given snake_case string to camelCase.
|
|
170
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
171
|
+
* @returns {string} - The converted string in camelCase format.
|
|
172
|
+
*/
|
|
173
|
+
static snakeToCamel(snakeStr) {
|
|
174
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
175
|
+
}
|
|
131
176
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return this.description;
|
|
140
|
-
}
|
|
177
|
+
/**
|
|
178
|
+
* Returns Name of the report configuration.
|
|
179
|
+
* @return {string}
|
|
180
|
+
*/
|
|
181
|
+
getName() {
|
|
182
|
+
return this.name;
|
|
183
|
+
}
|
|
141
184
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.description = description;
|
|
150
|
-
}
|
|
185
|
+
/**
|
|
186
|
+
* Sets Name of the report configuration.
|
|
187
|
+
* @param {string} name Name of the report configuration.
|
|
188
|
+
*/
|
|
189
|
+
setName(name) {
|
|
190
|
+
this.name = name;
|
|
191
|
+
}
|
|
151
192
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
193
|
+
/**
|
|
194
|
+
* Returns Description of the report configuration.
|
|
195
|
+
* @return {string}
|
|
196
|
+
*/
|
|
197
|
+
getDescription() {
|
|
198
|
+
return this.description;
|
|
199
|
+
}
|
|
160
200
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
201
|
+
/**
|
|
202
|
+
* Sets Description of the report configuration.
|
|
203
|
+
* @param {string} description Description of the report configuration.
|
|
204
|
+
*/
|
|
205
|
+
setDescription(description) {
|
|
206
|
+
this.description = description;
|
|
207
|
+
}
|
|
169
208
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return this.retentionConfig;
|
|
177
|
-
}
|
|
209
|
+
/**
|
|
210
|
+
* @return {ReportSchedule}
|
|
211
|
+
*/
|
|
212
|
+
getSchedule() {
|
|
213
|
+
return this.schedule;
|
|
214
|
+
}
|
|
178
215
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
this.retentionConfig = retentionConfig;
|
|
186
|
-
}
|
|
216
|
+
/**
|
|
217
|
+
* @param {ReportSchedule} schedule
|
|
218
|
+
*/
|
|
219
|
+
setSchedule(schedule) {
|
|
220
|
+
this.schedule = schedule;
|
|
221
|
+
}
|
|
187
222
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
value: function getSections() {
|
|
195
|
-
return this.sections;
|
|
196
|
-
}
|
|
223
|
+
/**
|
|
224
|
+
* @return {RetentionConfig}
|
|
225
|
+
*/
|
|
226
|
+
getRetentionConfig() {
|
|
227
|
+
return this.retentionConfig;
|
|
228
|
+
}
|
|
197
229
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
value: function setSections(sections) {
|
|
205
|
-
this.sections = sections;
|
|
206
|
-
}
|
|
230
|
+
/**
|
|
231
|
+
* @param {RetentionConfig} retentionConfig
|
|
232
|
+
*/
|
|
233
|
+
setRetentionConfig(retentionConfig) {
|
|
234
|
+
this.retentionConfig = retentionConfig;
|
|
235
|
+
}
|
|
207
236
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return this.supportedFormats;
|
|
216
|
-
}
|
|
237
|
+
/**
|
|
238
|
+
* Returns List of sections in the report.
|
|
239
|
+
* @return {Section[]}
|
|
240
|
+
*/
|
|
241
|
+
getSections() {
|
|
242
|
+
return this.sections;
|
|
243
|
+
}
|
|
217
244
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
this.supportedFormats = supportedFormats;
|
|
226
|
-
}
|
|
245
|
+
/**
|
|
246
|
+
* Sets List of sections in the report.
|
|
247
|
+
* @param {Section[]} sections List of sections in the report.
|
|
248
|
+
*/
|
|
249
|
+
setSections(sections) {
|
|
250
|
+
this.sections = sections;
|
|
251
|
+
}
|
|
227
252
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return this.timezone;
|
|
236
|
-
}
|
|
253
|
+
/**
|
|
254
|
+
* Returns List specifying the formats in which the report will be created.
|
|
255
|
+
* @return {ReportFormat[]}
|
|
256
|
+
*/
|
|
257
|
+
getSupportedFormats() {
|
|
258
|
+
return this.supportedFormats;
|
|
259
|
+
}
|
|
237
260
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
this.timezone = timezone;
|
|
246
|
-
}
|
|
261
|
+
/**
|
|
262
|
+
* Sets List specifying the formats in which the report will be created.
|
|
263
|
+
* @param {ReportFormat[]} supportedFormats List specifying the formats in which the report will be created.
|
|
264
|
+
*/
|
|
265
|
+
setSupportedFormats(supportedFormats) {
|
|
266
|
+
this.supportedFormats = supportedFormats;
|
|
267
|
+
}
|
|
247
268
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
269
|
+
/**
|
|
270
|
+
* Returns The timezone in which the report will be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
|
|
271
|
+
* @return {string}
|
|
272
|
+
*/
|
|
273
|
+
getTimezone() {
|
|
274
|
+
return this.timezone;
|
|
275
|
+
}
|
|
256
276
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
277
|
+
/**
|
|
278
|
+
* Sets The timezone in which the report will be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
|
|
279
|
+
* @param {string} timezone The timezone in which the report will be generated. This is the list supported by pytz.all_timezones. For more info, check http://pytz.sourceforge.net
|
|
280
|
+
*/
|
|
281
|
+
setTimezone(timezone) {
|
|
282
|
+
this.timezone = timezone;
|
|
283
|
+
}
|
|
265
284
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
value: function getIsSystemDefined() {
|
|
273
|
-
return this.isSystemDefined;
|
|
274
|
-
}
|
|
285
|
+
/**
|
|
286
|
+
* @return {NotificationPolicy}
|
|
287
|
+
*/
|
|
288
|
+
getNotificationPolicy() {
|
|
289
|
+
return this.notificationPolicy;
|
|
290
|
+
}
|
|
275
291
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
value: function setIsSystemDefined(isSystemDefined) {
|
|
283
|
-
this.isSystemDefined = isSystemDefined;
|
|
284
|
-
}
|
|
292
|
+
/**
|
|
293
|
+
* @param {NotificationPolicy} notificationPolicy
|
|
294
|
+
*/
|
|
295
|
+
setNotificationPolicy(notificationPolicy) {
|
|
296
|
+
this.notificationPolicy = notificationPolicy;
|
|
297
|
+
}
|
|
285
298
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return this.isPrivate;
|
|
294
|
-
}
|
|
299
|
+
/**
|
|
300
|
+
* Returns Flag specifying if the report configuration is pre-defined.
|
|
301
|
+
* @return {boolean}
|
|
302
|
+
*/
|
|
303
|
+
getIsSystemDefined() {
|
|
304
|
+
return this.isSystemDefined;
|
|
305
|
+
}
|
|
295
306
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
this.isPrivate = isPrivate;
|
|
304
|
-
}
|
|
307
|
+
/**
|
|
308
|
+
* Sets Flag specifying if the report configuration is pre-defined.
|
|
309
|
+
* @param {boolean} isSystemDefined Flag specifying if the report configuration is pre-defined.
|
|
310
|
+
*/
|
|
311
|
+
setIsSystemDefined(isSystemDefined) {
|
|
312
|
+
this.isSystemDefined = isSystemDefined;
|
|
313
|
+
}
|
|
305
314
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return this.isImported;
|
|
314
|
-
}
|
|
315
|
+
/**
|
|
316
|
+
* Returns Flag specifying if the report configuration is private.
|
|
317
|
+
* @return {boolean}
|
|
318
|
+
*/
|
|
319
|
+
getIsPrivate() {
|
|
320
|
+
return this.isPrivate;
|
|
321
|
+
}
|
|
315
322
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
this.isImported = isImported;
|
|
324
|
-
}
|
|
323
|
+
/**
|
|
324
|
+
* Sets Flag specifying if the report configuration is private.
|
|
325
|
+
* @param {boolean} isPrivate Flag specifying if the report configuration is private.
|
|
326
|
+
*/
|
|
327
|
+
setIsPrivate(isPrivate) {
|
|
328
|
+
this.isPrivate = isPrivate;
|
|
329
|
+
}
|
|
325
330
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
return this.creationTime;
|
|
334
|
-
}
|
|
331
|
+
/**
|
|
332
|
+
* Returns Flag specifying if the report configuration is imported.
|
|
333
|
+
* @return {boolean}
|
|
334
|
+
*/
|
|
335
|
+
getIsImported() {
|
|
336
|
+
return this.isImported;
|
|
337
|
+
}
|
|
335
338
|
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
this.creationTime = creationTime;
|
|
344
|
-
}
|
|
339
|
+
/**
|
|
340
|
+
* Sets Flag specifying if the report configuration is imported.
|
|
341
|
+
* @param {boolean} isImported Flag specifying if the report configuration is imported.
|
|
342
|
+
*/
|
|
343
|
+
setIsImported(isImported) {
|
|
344
|
+
this.isImported = isImported;
|
|
345
|
+
}
|
|
345
346
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
return this.startTimeOffsetSecs;
|
|
354
|
-
}
|
|
347
|
+
/**
|
|
348
|
+
* Returns Time in ISO 8601 format when the report configuration was created.
|
|
349
|
+
* @return {Date}
|
|
350
|
+
*/
|
|
351
|
+
getCreationTime() {
|
|
352
|
+
return this.creationTime;
|
|
353
|
+
}
|
|
355
354
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
this.startTimeOffsetSecs = startTimeOffsetSecs;
|
|
364
|
-
}
|
|
355
|
+
/**
|
|
356
|
+
* Sets Time in ISO 8601 format when the report configuration was created.
|
|
357
|
+
* @param {Date} creationTime Time in ISO 8601 format when the report configuration was created.
|
|
358
|
+
*/
|
|
359
|
+
setCreationTime(creationTime) {
|
|
360
|
+
this.creationTime = creationTime;
|
|
361
|
+
}
|
|
365
362
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
return this.endTimeOffsetSecs;
|
|
374
|
-
}
|
|
363
|
+
/**
|
|
364
|
+
* Returns Offset for start time for data collection during report generation.
|
|
365
|
+
* @return {Number}
|
|
366
|
+
*/
|
|
367
|
+
getStartTimeOffsetSecs() {
|
|
368
|
+
return this.startTimeOffsetSecs;
|
|
369
|
+
}
|
|
375
370
|
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
this.endTimeOffsetSecs = endTimeOffsetSecs;
|
|
384
|
-
}
|
|
371
|
+
/**
|
|
372
|
+
* Sets Offset for start time for data collection during report generation.
|
|
373
|
+
* @param {Number} startTimeOffsetSecs Offset for start time for data collection during report generation.
|
|
374
|
+
*/
|
|
375
|
+
setStartTimeOffsetSecs(startTimeOffsetSecs) {
|
|
376
|
+
this.startTimeOffsetSecs = startTimeOffsetSecs;
|
|
377
|
+
}
|
|
385
378
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
379
|
+
/**
|
|
380
|
+
* Returns Offset for end time for data collection during report generation.
|
|
381
|
+
* @return {Number}
|
|
382
|
+
*/
|
|
383
|
+
getEndTimeOffsetSecs() {
|
|
384
|
+
return this.endTimeOffsetSecs;
|
|
385
|
+
}
|
|
394
386
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
}
|
|
387
|
+
/**
|
|
388
|
+
* Sets Offset for end time for data collection during report generation.
|
|
389
|
+
* @param {Number} endTimeOffsetSecs Offset for end time for data collection during report generation.
|
|
390
|
+
*/
|
|
391
|
+
setEndTimeOffsetSecs(endTimeOffsetSecs) {
|
|
392
|
+
this.endTimeOffsetSecs = endTimeOffsetSecs;
|
|
393
|
+
}
|
|
403
394
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
return this.defaultSectionEntityType;
|
|
411
|
-
}
|
|
395
|
+
/**
|
|
396
|
+
* @return {ReportCustomization}
|
|
397
|
+
*/
|
|
398
|
+
getReportCustomization() {
|
|
399
|
+
return this.reportCustomization;
|
|
400
|
+
}
|
|
412
401
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
402
|
+
/**
|
|
403
|
+
* @param {ReportCustomization} reportCustomization
|
|
404
|
+
*/
|
|
405
|
+
setReportCustomization(reportCustomization) {
|
|
406
|
+
this.reportCustomization = reportCustomization;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @return {EntityType}
|
|
411
|
+
*/
|
|
412
|
+
getDefaultSectionEntityType() {
|
|
413
|
+
return this.defaultSectionEntityType;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* @param {EntityType} defaultSectionEntityType
|
|
418
|
+
*/
|
|
419
|
+
setDefaultSectionEntityType(defaultSectionEntityType) {
|
|
420
|
+
this.defaultSectionEntityType = defaultSectionEntityType;
|
|
421
|
+
}
|
|
422
|
+
toJson(forMutation) {
|
|
423
|
+
if (forMutation === false) {
|
|
424
|
+
return {
|
|
425
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
426
426
|
'name': this.getName()
|
|
427
|
-
} : {}),
|
|
427
|
+
} : {}),
|
|
428
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
428
429
|
'description': this.getDescription()
|
|
429
|
-
} : {}),
|
|
430
|
+
} : {}),
|
|
431
|
+
...(typeof this.getSchedule() !== 'undefined' && this.getSchedule() !== null ? {
|
|
430
432
|
'schedule': this.getSchedule().toJson(false)
|
|
431
|
-
} : {}),
|
|
433
|
+
} : {}),
|
|
434
|
+
...(typeof this.getRetentionConfig() !== 'undefined' && this.getRetentionConfig() !== null ? {
|
|
432
435
|
'retentionConfig': this.getRetentionConfig().toJson(false)
|
|
433
|
-
} : {}),
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
436
|
+
} : {}),
|
|
437
|
+
...(typeof this.getSections() !== 'undefined' && this.getSections() !== null ? {
|
|
438
|
+
'sections': this.getSections().map(item => item.toJson(false))
|
|
439
|
+
} : {}),
|
|
440
|
+
...(typeof this.getSupportedFormats() !== 'undefined' && this.getSupportedFormats() !== null ? {
|
|
438
441
|
'supportedFormats': this.getSupportedFormats()
|
|
439
|
-
} : {}),
|
|
442
|
+
} : {}),
|
|
443
|
+
...(typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
|
|
440
444
|
'timezone': this.getTimezone()
|
|
441
|
-
} : {}),
|
|
445
|
+
} : {}),
|
|
446
|
+
...(typeof this.getNotificationPolicy() !== 'undefined' && this.getNotificationPolicy() !== null ? {
|
|
442
447
|
'notificationPolicy': this.getNotificationPolicy().toJson(false)
|
|
443
|
-
} : {}),
|
|
448
|
+
} : {}),
|
|
449
|
+
...(typeof this.getIsSystemDefined() !== 'undefined' && this.getIsSystemDefined() !== null ? {
|
|
444
450
|
'isSystemDefined': this.getIsSystemDefined()
|
|
445
|
-
} : {}),
|
|
451
|
+
} : {}),
|
|
452
|
+
...(typeof this.getIsPrivate() !== 'undefined' && this.getIsPrivate() !== null ? {
|
|
446
453
|
'isPrivate': this.getIsPrivate()
|
|
447
|
-
} : {}),
|
|
454
|
+
} : {}),
|
|
455
|
+
...(typeof this.getIsImported() !== 'undefined' && this.getIsImported() !== null ? {
|
|
448
456
|
'isImported': this.getIsImported()
|
|
449
|
-
} : {}),
|
|
457
|
+
} : {}),
|
|
458
|
+
...(typeof this.getCreationTime() !== 'undefined' && this.getCreationTime() !== null ? {
|
|
450
459
|
'creationTime': _assertClassBrand(_ReportConfig_brand, this, _handleDateType).call(this, this.getCreationTime(), false)
|
|
451
|
-
} : {}),
|
|
460
|
+
} : {}),
|
|
461
|
+
...(typeof this.getStartTimeOffsetSecs() !== 'undefined' && this.getStartTimeOffsetSecs() !== null ? {
|
|
452
462
|
'startTimeOffsetSecs': this.getStartTimeOffsetSecs()
|
|
453
|
-
} : {}),
|
|
463
|
+
} : {}),
|
|
464
|
+
...(typeof this.getEndTimeOffsetSecs() !== 'undefined' && this.getEndTimeOffsetSecs() !== null ? {
|
|
454
465
|
'endTimeOffsetSecs': this.getEndTimeOffsetSecs()
|
|
455
|
-
} : {}),
|
|
466
|
+
} : {}),
|
|
467
|
+
...(typeof this.getReportCustomization() !== 'undefined' && this.getReportCustomization() !== null ? {
|
|
456
468
|
'reportCustomization': this.getReportCustomization().toJson(false)
|
|
457
|
-
} : {}),
|
|
469
|
+
} : {}),
|
|
470
|
+
...(typeof this.getDefaultSectionEntityType() !== 'undefined' && this.getDefaultSectionEntityType() !== null ? {
|
|
458
471
|
'defaultSectionEntityType': this.getDefaultSectionEntityType()
|
|
459
|
-
} : {}),
|
|
472
|
+
} : {}),
|
|
473
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
460
474
|
'extId': this.getExtId()
|
|
461
|
-
} : {}),
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
475
|
+
} : {}),
|
|
476
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
477
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
478
|
+
} : {}),
|
|
479
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
466
480
|
'tenantId': this.getTenantId()
|
|
467
|
-
} : {}),
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
|
|
481
|
+
} : {}),
|
|
482
|
+
'$reserved': this.get$Reserved(),
|
|
483
|
+
'$objectType': this.get$ObjectType(),
|
|
484
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
485
|
+
'$unknownFields': {}
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
return {
|
|
489
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
474
490
|
'name': this.getName()
|
|
475
|
-
} : {}),
|
|
491
|
+
} : {}),
|
|
492
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
476
493
|
'description': this.getDescription()
|
|
477
|
-
} : {}),
|
|
494
|
+
} : {}),
|
|
495
|
+
...(typeof this.getSchedule() !== 'undefined' && this.getSchedule() !== null ? {
|
|
478
496
|
'schedule': this.getSchedule().toJson(false)
|
|
479
|
-
} : {}),
|
|
497
|
+
} : {}),
|
|
498
|
+
...(typeof this.getRetentionConfig() !== 'undefined' && this.getRetentionConfig() !== null ? {
|
|
480
499
|
'retentionConfig': this.getRetentionConfig().toJson(false)
|
|
481
|
-
} : {}),
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
500
|
+
} : {}),
|
|
501
|
+
...(typeof this.getSections() !== 'undefined' && this.getSections() !== null ? {
|
|
502
|
+
'sections': this.getSections().map(item => item.toJson(false))
|
|
503
|
+
} : {}),
|
|
504
|
+
...(typeof this.getSupportedFormats() !== 'undefined' && this.getSupportedFormats() !== null ? {
|
|
486
505
|
'supportedFormats': this.getSupportedFormats()
|
|
487
|
-
} : {}),
|
|
506
|
+
} : {}),
|
|
507
|
+
...(typeof this.getTimezone() !== 'undefined' && this.getTimezone() !== null ? {
|
|
488
508
|
'timezone': this.getTimezone()
|
|
489
|
-
} : {}),
|
|
509
|
+
} : {}),
|
|
510
|
+
...(typeof this.getNotificationPolicy() !== 'undefined' && this.getNotificationPolicy() !== null ? {
|
|
490
511
|
'notificationPolicy': this.getNotificationPolicy().toJson(false)
|
|
491
|
-
} : {}),
|
|
512
|
+
} : {}),
|
|
513
|
+
...(typeof this.getStartTimeOffsetSecs() !== 'undefined' && this.getStartTimeOffsetSecs() !== null ? {
|
|
492
514
|
'startTimeOffsetSecs': this.getStartTimeOffsetSecs()
|
|
493
|
-
} : {}),
|
|
515
|
+
} : {}),
|
|
516
|
+
...(typeof this.getEndTimeOffsetSecs() !== 'undefined' && this.getEndTimeOffsetSecs() !== null ? {
|
|
494
517
|
'endTimeOffsetSecs': this.getEndTimeOffsetSecs()
|
|
495
|
-
} : {}),
|
|
518
|
+
} : {}),
|
|
519
|
+
...(typeof this.getReportCustomization() !== 'undefined' && this.getReportCustomization() !== null ? {
|
|
496
520
|
'reportCustomization': this.getReportCustomization().toJson(false)
|
|
497
|
-
} : {}),
|
|
521
|
+
} : {}),
|
|
522
|
+
...(typeof this.getDefaultSectionEntityType() !== 'undefined' && this.getDefaultSectionEntityType() !== null ? {
|
|
498
523
|
'defaultSectionEntityType': this.getDefaultSectionEntityType()
|
|
499
|
-
} : {}),
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
524
|
+
} : {}),
|
|
525
|
+
'$reserved': this.get$Reserved(),
|
|
526
|
+
'$objectType': this.get$ObjectType(),
|
|
527
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
528
|
+
'$unknownFields': {}
|
|
529
|
+
};
|
|
530
|
+
}
|
|
531
|
+
validate(scope, properties) {
|
|
532
|
+
let propList = [];
|
|
533
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
534
|
+
//cases validate() and validate(scope)
|
|
535
|
+
propList = ["name", "sections"];
|
|
536
|
+
} else if (arguments.length === 1) {
|
|
537
|
+
//case validate(properties)
|
|
538
|
+
propList = arguments[0];
|
|
539
|
+
scope = null;
|
|
540
|
+
} else {
|
|
541
|
+
//case validate(scope, properties)
|
|
542
|
+
propList = arguments[1];
|
|
543
|
+
}
|
|
544
|
+
let res = [];
|
|
545
|
+
let err = null;
|
|
546
|
+
propList.forEach(property => {
|
|
547
|
+
err = this.validateProperty(property, scope);
|
|
548
|
+
if (err) {
|
|
549
|
+
res.push(err);
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
return new Promise(function (resolve, reject) {
|
|
553
|
+
if (res.length !== 0) {
|
|
554
|
+
reject(err);
|
|
517
555
|
} else {
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
if (res.length !== 0) {
|
|
531
|
-
reject(err);
|
|
532
|
-
} else {
|
|
533
|
-
resolve();
|
|
534
|
-
}
|
|
535
|
-
});
|
|
556
|
+
resolve();
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
validateProperty(scope, property) {
|
|
561
|
+
if (property === "name") {
|
|
562
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
563
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
564
|
+
}
|
|
565
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 64)) {
|
|
566
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 64");
|
|
567
|
+
}
|
|
536
568
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
if (property === "name") {
|
|
541
|
-
if (typeof this.name === 'undefined' || this.name === null) {
|
|
542
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
543
|
-
}
|
|
544
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 64)) {
|
|
545
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 64");
|
|
546
|
-
}
|
|
569
|
+
if (property === "description") {
|
|
570
|
+
if (typeof this.description === 'undefined' || this.description === null) {
|
|
571
|
+
return new _ValidationError.default("description", "undefined or null");
|
|
547
572
|
}
|
|
548
|
-
if (
|
|
549
|
-
|
|
550
|
-
return new _ValidationError["default"]("description", "undefined or null");
|
|
551
|
-
}
|
|
552
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.description, 1000)) {
|
|
553
|
-
return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 1000");
|
|
554
|
-
}
|
|
573
|
+
if (!_ValidationUtils.default.validateMaxLength(this.description, 1000)) {
|
|
574
|
+
return new _ValidationError.default("description", "does not satisfy required maxLength constraint: 1000");
|
|
555
575
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
576
|
+
}
|
|
577
|
+
if (property === "schedule") {
|
|
578
|
+
if (typeof this.schedule === 'undefined' || this.schedule === null) {
|
|
579
|
+
return new _ValidationError.default("schedule", "undefined or null");
|
|
560
580
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
581
|
+
}
|
|
582
|
+
if (property === "retentionConfig") {
|
|
583
|
+
if (typeof this.retentionConfig === 'undefined' || this.retentionConfig === null) {
|
|
584
|
+
return new _ValidationError.default("retentionConfig", "undefined or null");
|
|
565
585
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.sections, 10)) {
|
|
571
|
-
return new _ValidationError["default"]("sections", "does not satisfy required maxItems constraint: 10");
|
|
572
|
-
}
|
|
586
|
+
}
|
|
587
|
+
if (property === "sections") {
|
|
588
|
+
if (typeof this.sections === 'undefined' || this.sections === null) {
|
|
589
|
+
return new _ValidationError.default("sections", "undefined or null");
|
|
573
590
|
}
|
|
574
|
-
if (
|
|
575
|
-
|
|
576
|
-
return new _ValidationError["default"]("supportedFormats", "undefined or null");
|
|
577
|
-
}
|
|
578
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.supportedFormats, 2)) {
|
|
579
|
-
return new _ValidationError["default"]("supportedFormats", "does not satisfy required maxItems constraint: 2");
|
|
580
|
-
}
|
|
591
|
+
if (!_ValidationUtils.default.validateMaxItems(this.sections, 10)) {
|
|
592
|
+
return new _ValidationError.default("sections", "does not satisfy required maxItems constraint: 10");
|
|
581
593
|
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
if (!_ValidationUtils["default"].validatePattern(this.timezone, /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/)) {
|
|
587
|
-
return new _ValidationError["default"]("timezone", "does not satisfy required pattern: /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/");
|
|
588
|
-
}
|
|
594
|
+
}
|
|
595
|
+
if (property === "supportedFormats") {
|
|
596
|
+
if (typeof this.supportedFormats === 'undefined' || this.supportedFormats === null) {
|
|
597
|
+
return new _ValidationError.default("supportedFormats", "undefined or null");
|
|
589
598
|
}
|
|
590
|
-
if (
|
|
591
|
-
|
|
592
|
-
return new _ValidationError["default"]("notificationPolicy", "undefined or null");
|
|
593
|
-
}
|
|
599
|
+
if (!_ValidationUtils.default.validateMaxItems(this.supportedFormats, 2)) {
|
|
600
|
+
return new _ValidationError.default("supportedFormats", "does not satisfy required maxItems constraint: 2");
|
|
594
601
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
602
|
+
}
|
|
603
|
+
if (property === "timezone") {
|
|
604
|
+
if (typeof this.timezone === 'undefined' || this.timezone === null) {
|
|
605
|
+
return new _ValidationError.default("timezone", "undefined or null");
|
|
599
606
|
}
|
|
600
|
-
if (
|
|
601
|
-
|
|
602
|
-
return new _ValidationError["default"]("isPrivate", "undefined or null");
|
|
603
|
-
}
|
|
607
|
+
if (!_ValidationUtils.default.validatePattern(this.timezone, /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/)) {
|
|
608
|
+
return new _ValidationError.default("timezone", "does not satisfy required pattern: /^[a-zA-Z]+(\/[a-zA-Z_]+)?$/");
|
|
604
609
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
610
|
+
}
|
|
611
|
+
if (property === "notificationPolicy") {
|
|
612
|
+
if (typeof this.notificationPolicy === 'undefined' || this.notificationPolicy === null) {
|
|
613
|
+
return new _ValidationError.default("notificationPolicy", "undefined or null");
|
|
609
614
|
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
615
|
+
}
|
|
616
|
+
if (property === "isSystemDefined") {
|
|
617
|
+
if (typeof this.isSystemDefined === 'undefined' || this.isSystemDefined === null) {
|
|
618
|
+
return new _ValidationError.default("isSystemDefined", "undefined or null");
|
|
614
619
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
620
|
+
}
|
|
621
|
+
if (property === "isPrivate") {
|
|
622
|
+
if (typeof this.isPrivate === 'undefined' || this.isPrivate === null) {
|
|
623
|
+
return new _ValidationError.default("isPrivate", "undefined or null");
|
|
619
624
|
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
625
|
+
}
|
|
626
|
+
if (property === "isImported") {
|
|
627
|
+
if (typeof this.isImported === 'undefined' || this.isImported === null) {
|
|
628
|
+
return new _ValidationError.default("isImported", "undefined or null");
|
|
624
629
|
}
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
630
|
+
}
|
|
631
|
+
if (property === "creationTime") {
|
|
632
|
+
if (typeof this.creationTime === 'undefined' || this.creationTime === null) {
|
|
633
|
+
return new _ValidationError.default("creationTime", "undefined or null");
|
|
629
634
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
635
|
+
}
|
|
636
|
+
if (property === "startTimeOffsetSecs") {
|
|
637
|
+
if (typeof this.startTimeOffsetSecs === 'undefined' || this.startTimeOffsetSecs === null) {
|
|
638
|
+
return new _ValidationError.default("startTimeOffsetSecs", "undefined or null");
|
|
634
639
|
}
|
|
635
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
636
640
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
641
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
642
|
-
var items, item, i, itemArr, discriminator;
|
|
643
|
-
if (data) {
|
|
644
|
-
obj = obj || new ReportConfig();
|
|
645
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
646
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
647
|
-
obj.setName(data['name']);
|
|
648
|
-
}
|
|
649
|
-
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
650
|
-
obj.setDescription(data['description']);
|
|
651
|
-
}
|
|
652
|
-
if (data.hasOwnProperty('schedule') && data.schedule !== null && data.schedule !== undefined) {
|
|
653
|
-
obj.setSchedule(_ReportSchedule["default"].constructFromObject(data['schedule']));
|
|
654
|
-
}
|
|
655
|
-
if (data.hasOwnProperty('retentionConfig') && data.retentionConfig !== null && data.retentionConfig !== undefined) {
|
|
656
|
-
obj.setRetentionConfig(_RetentionConfig["default"].constructFromObject(data['retentionConfig']));
|
|
657
|
-
}
|
|
658
|
-
if (data.hasOwnProperty('sections') && data.sections !== null && data.sections !== undefined) {
|
|
659
|
-
itemArr = [];
|
|
660
|
-
items = data.sections;
|
|
661
|
-
for (i = 0; i < items.length; i++) {
|
|
662
|
-
item = _Section["default"].constructFromObject(items[i], undefined);
|
|
663
|
-
itemArr.push(item);
|
|
664
|
-
}
|
|
665
|
-
obj.setSections(itemArr);
|
|
666
|
-
}
|
|
667
|
-
if (data.hasOwnProperty('supportedFormats') && data.supportedFormats !== null && data.supportedFormats !== undefined) {
|
|
668
|
-
itemArr = [];
|
|
669
|
-
items = data.supportedFormats;
|
|
670
|
-
for (i = 0; i < items.length; i++) {
|
|
671
|
-
item = _ReportFormat["default"].constructFromObject(items[i], undefined);
|
|
672
|
-
itemArr.push(item);
|
|
673
|
-
}
|
|
674
|
-
obj.setSupportedFormats(itemArr);
|
|
675
|
-
}
|
|
676
|
-
if (data.hasOwnProperty('timezone') && data.timezone !== null && data.timezone !== undefined) {
|
|
677
|
-
obj.setTimezone(data['timezone']);
|
|
678
|
-
}
|
|
679
|
-
if (data.hasOwnProperty('notificationPolicy') && data.notificationPolicy !== null && data.notificationPolicy !== undefined) {
|
|
680
|
-
obj.setNotificationPolicy(_NotificationPolicy["default"].constructFromObject(data['notificationPolicy']));
|
|
681
|
-
}
|
|
682
|
-
if (data.hasOwnProperty('isSystemDefined') && data.isSystemDefined !== null && data.isSystemDefined !== undefined) {
|
|
683
|
-
obj.setIsSystemDefined(data['isSystemDefined']);
|
|
684
|
-
}
|
|
685
|
-
if (data.hasOwnProperty('isPrivate') && data.isPrivate !== null && data.isPrivate !== undefined) {
|
|
686
|
-
obj.setIsPrivate(data['isPrivate']);
|
|
687
|
-
}
|
|
688
|
-
if (data.hasOwnProperty('isImported') && data.isImported !== null && data.isImported !== undefined) {
|
|
689
|
-
obj.setIsImported(data['isImported']);
|
|
690
|
-
}
|
|
691
|
-
if (data.hasOwnProperty('creationTime') && data.creationTime !== null && data.creationTime !== undefined) {
|
|
692
|
-
obj.setCreationTime(data['creationTime']);
|
|
693
|
-
}
|
|
694
|
-
if (data.hasOwnProperty('startTimeOffsetSecs') && data.startTimeOffsetSecs !== null && data.startTimeOffsetSecs !== undefined) {
|
|
695
|
-
obj.setStartTimeOffsetSecs(data['startTimeOffsetSecs']);
|
|
696
|
-
}
|
|
697
|
-
if (data.hasOwnProperty('endTimeOffsetSecs') && data.endTimeOffsetSecs !== null && data.endTimeOffsetSecs !== undefined) {
|
|
698
|
-
obj.setEndTimeOffsetSecs(data['endTimeOffsetSecs']);
|
|
699
|
-
}
|
|
700
|
-
if (data.hasOwnProperty('reportCustomization') && data.reportCustomization !== null && data.reportCustomization !== undefined) {
|
|
701
|
-
obj.setReportCustomization(_ReportCustomization["default"].constructFromObject(data['reportCustomization']));
|
|
702
|
-
}
|
|
703
|
-
if (data.hasOwnProperty('defaultSectionEntityType') && data.defaultSectionEntityType !== null && data.defaultSectionEntityType !== undefined) {
|
|
704
|
-
obj.setDefaultSectionEntityType(_EntityType["default"].constructFromObject(data['defaultSectionEntityType']));
|
|
705
|
-
}
|
|
706
|
-
if (!callFromChild) {
|
|
707
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
708
|
-
for (var property in data) {
|
|
709
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
710
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
711
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
712
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
713
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
714
|
-
obj.$unknownFields[property] = data[property];
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
641
|
+
if (property === "endTimeOffsetSecs") {
|
|
642
|
+
if (typeof this.endTimeOffsetSecs === 'undefined' || this.endTimeOffsetSecs === null) {
|
|
643
|
+
return new _ValidationError.default("endTimeOffsetSecs", "undefined or null");
|
|
718
644
|
}
|
|
719
|
-
return obj;
|
|
720
645
|
}
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
731
|
-
return match[1].toUpperCase();
|
|
732
|
-
});
|
|
646
|
+
if (property === "reportCustomization") {
|
|
647
|
+
if (typeof this.reportCustomization === 'undefined' || this.reportCustomization === null) {
|
|
648
|
+
return new _ValidationError.default("reportCustomization", "undefined or null");
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
if (property === "defaultSectionEntityType") {
|
|
652
|
+
if (typeof this.defaultSectionEntityType === 'undefined' || this.defaultSectionEntityType === null) {
|
|
653
|
+
return new _ValidationError.default("defaultSectionEntityType", "undefined or null");
|
|
654
|
+
}
|
|
733
655
|
}
|
|
734
|
-
|
|
735
|
-
}
|
|
656
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
736
660
|
/**
|
|
737
661
|
* Name of the report configuration.
|
|
738
662
|
* @memberof ReportConfig
|
|
739
663
|
*/
|
|
664
|
+
exports.default = ReportConfig;
|
|
740
665
|
function _toJsonMapType(obj, forMutation) {
|
|
741
666
|
if (obj instanceof Map) {
|
|
742
|
-
return Object.fromEntries(Array.from(obj,
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
v = _ref2[1];
|
|
746
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
747
|
-
}));
|
|
748
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
749
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
667
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
668
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
669
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
750
670
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
751
671
|
}));
|
|
752
672
|
}
|
|
@@ -855,15 +775,15 @@ ReportConfig.prototype.defaultSectionEntityType = undefined;
|
|
|
855
775
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
856
776
|
* @memberof ReportConfig
|
|
857
777
|
*/
|
|
858
|
-
_ExternalizableAbstractModel
|
|
778
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
859
779
|
/**
|
|
860
780
|
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
861
781
|
* @memberof ReportConfig
|
|
862
782
|
*/
|
|
863
|
-
_ExternalizableAbstractModel
|
|
783
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
864
784
|
/**
|
|
865
785
|
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
866
786
|
* @memberof ReportConfig
|
|
867
787
|
*/
|
|
868
|
-
_TenantAwareModel
|
|
788
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|
|
869
789
|
// Implement OneOfopsmgmt.v4.config.GetReportConfigApiResponsedata interface:
|