@nutanix-scratch/opsmgmt-js-client 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/Ntnx-Opsmgmt-js-client-prod.js +1 -1
- package/dist/Ntnx-Opsmgmt-js-client.js +447 -441
- 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 +1 -1
- package/dist/es/apis/reportartifacts-endpoints.js +196 -210
- package/dist/es/apis/reportconfig-endpoints.d.ts +1 -1
- package/dist/es/apis/reportconfig-endpoints.js +210 -224
- package/dist/es/apis/reports-endpoints.d.ts +1 -1
- 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 +1 -1
- package/dist/lib/apis/reportartifacts-endpoints.js +196 -210
- package/dist/lib/apis/reportconfig-endpoints.d.ts +1 -1
- package/dist/lib/apis/reportconfig-endpoints.js +210 -224
- package/dist/lib/apis/reports-endpoints.d.ts +1 -1
- 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,38 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _RepeatCriteria = _interopRequireDefault(require("./RepeatCriteria"));
|
|
8
8
|
var _Row = _interopRequireDefault(require("./Row"));
|
|
9
9
|
var _TimeFilter = _interopRequireDefault(require("./TimeFilter"));
|
|
10
10
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
11
11
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
12
12
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
14
|
-
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); }
|
|
15
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
|
-
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."); }
|
|
17
|
-
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; } }
|
|
18
|
-
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; }
|
|
19
|
-
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; } }
|
|
20
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
|
-
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; }
|
|
24
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
25
|
-
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); } }
|
|
26
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
27
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
-
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); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
14
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
30
15
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
31
16
|
* Nutanix Cloud Management Platform APIs
|
|
32
17
|
*
|
|
33
|
-
* OpenAPI spec version: 4.0.
|
|
18
|
+
* OpenAPI spec version: 4.0.3
|
|
34
19
|
*
|
|
35
20
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
21
|
*
|
|
37
|
-
* Open API Dev Platform Codegen version: 17.
|
|
22
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
38
23
|
*
|
|
39
24
|
* Do not edit the class manually.
|
|
40
25
|
*
|
|
@@ -42,7 +27,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
42
27
|
/**
|
|
43
28
|
* The Section model module.
|
|
44
29
|
* @module Ntnx/Section
|
|
45
|
-
* @version 4.0.
|
|
30
|
+
* @version 4.0.3
|
|
46
31
|
* @class Section
|
|
47
32
|
*
|
|
48
33
|
* @param { string } name Name of the section.
|
|
@@ -50,7 +35,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
50
35
|
* @param { Row[] } rows List of row in the section.
|
|
51
36
|
*/
|
|
52
37
|
var _Section_brand = /*#__PURE__*/new WeakSet();
|
|
53
|
-
|
|
38
|
+
class Section {
|
|
54
39
|
/**
|
|
55
40
|
* Constructs a new <code>Section</code>.
|
|
56
41
|
* A section is a group of rows consisting of widgets.
|
|
@@ -60,8 +45,7 @@ var Section = exports["default"] = /*#__PURE__*/function () {
|
|
|
60
45
|
*
|
|
61
46
|
* @param { Row[] } rows List of row in the section.
|
|
62
47
|
*/
|
|
63
|
-
|
|
64
|
-
_classCallCheck(this, Section);
|
|
48
|
+
constructor(name, rows) {
|
|
65
49
|
/*
|
|
66
50
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
67
51
|
* @param {Object} obj
|
|
@@ -88,325 +72,290 @@ var Section = exports["default"] = /*#__PURE__*/function () {
|
|
|
88
72
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
89
73
|
* @return {module:Ntnx/Section} The populated <code>Section</code> instance.
|
|
90
74
|
*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
75
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
76
|
+
let items, item, i, itemArr, discriminator;
|
|
77
|
+
if (data) {
|
|
78
|
+
obj = obj || new Section();
|
|
79
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
80
|
+
obj.setName(data['name']);
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
83
|
+
obj.setDescription(data['description']);
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('rows') && data.rows !== null && data.rows !== undefined) {
|
|
86
|
+
itemArr = [];
|
|
87
|
+
items = data.rows;
|
|
88
|
+
for (i = 0; i < items.length; i++) {
|
|
89
|
+
item = _Row.default.constructFromObject(items[i], undefined);
|
|
90
|
+
itemArr.push(item);
|
|
91
|
+
}
|
|
92
|
+
obj.setRows(itemArr);
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('repeatCriteria') && data.repeatCriteria !== null && data.repeatCriteria !== undefined) {
|
|
95
|
+
obj.setRepeatCriteria(_RepeatCriteria.default.constructFromObject(data['repeatCriteria']));
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('timeFilter') && data.timeFilter !== null && data.timeFilter !== undefined) {
|
|
98
|
+
obj.setTimeFilter(_TimeFilter.default.constructFromObject(data['timeFilter']));
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
101
|
+
obj.$reserved = data['$reserved'];
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
104
|
+
obj.$objectType = data['$objectType'];
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
107
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
108
|
+
}
|
|
109
|
+
if (!callFromChild) {
|
|
110
|
+
obj.$unknownFields = {
|
|
111
|
+
...data.$unknownFields
|
|
112
|
+
};
|
|
113
|
+
for (const property in data) {
|
|
114
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
115
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
116
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
117
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
118
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
119
|
+
obj.$unknownFields[property] = data[property];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
100
123
|
}
|
|
124
|
+
return obj;
|
|
125
|
+
}
|
|
101
126
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
127
|
+
/**
|
|
128
|
+
* Converts a given snake_case string to camelCase.
|
|
129
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
130
|
+
* @returns {string} - The converted string in camelCase format.
|
|
131
|
+
*/
|
|
132
|
+
static snakeToCamel(snakeStr) {
|
|
133
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
134
|
+
}
|
|
111
135
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return this.description;
|
|
120
|
-
}
|
|
136
|
+
/**
|
|
137
|
+
* Returns Name of the section.
|
|
138
|
+
* @return {string}
|
|
139
|
+
*/
|
|
140
|
+
getName() {
|
|
141
|
+
return this.name;
|
|
142
|
+
}
|
|
121
143
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
this.description = description;
|
|
130
|
-
}
|
|
144
|
+
/**
|
|
145
|
+
* Sets Name of the section.
|
|
146
|
+
* @param {string} name Name of the section.
|
|
147
|
+
*/
|
|
148
|
+
setName(name) {
|
|
149
|
+
this.name = name;
|
|
150
|
+
}
|
|
131
151
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
return this.rows;
|
|
140
|
-
}
|
|
152
|
+
/**
|
|
153
|
+
* Returns Description of the section.
|
|
154
|
+
* @return {string}
|
|
155
|
+
*/
|
|
156
|
+
getDescription() {
|
|
157
|
+
return this.description;
|
|
158
|
+
}
|
|
141
159
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.rows = rows;
|
|
150
|
-
}
|
|
160
|
+
/**
|
|
161
|
+
* Sets Description of the section.
|
|
162
|
+
* @param {string} description Description of the section.
|
|
163
|
+
*/
|
|
164
|
+
setDescription(description) {
|
|
165
|
+
this.description = description;
|
|
166
|
+
}
|
|
151
167
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
168
|
+
/**
|
|
169
|
+
* Returns List of row in the section.
|
|
170
|
+
* @return {Row[]}
|
|
171
|
+
*/
|
|
172
|
+
getRows() {
|
|
173
|
+
return this.rows;
|
|
174
|
+
}
|
|
160
175
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
176
|
+
/**
|
|
177
|
+
* Sets List of row in the section.
|
|
178
|
+
* @param {Row[]} rows List of row in the section.
|
|
179
|
+
*/
|
|
180
|
+
setRows(rows) {
|
|
181
|
+
this.rows = rows;
|
|
182
|
+
}
|
|
169
183
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return this.timeFilter;
|
|
177
|
-
}
|
|
184
|
+
/**
|
|
185
|
+
* @return {RepeatCriteria}
|
|
186
|
+
*/
|
|
187
|
+
getRepeatCriteria() {
|
|
188
|
+
return this.repeatCriteria;
|
|
189
|
+
}
|
|
178
190
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
191
|
+
/**
|
|
192
|
+
* @param {RepeatCriteria} repeatCriteria
|
|
193
|
+
*/
|
|
194
|
+
setRepeatCriteria(repeatCriteria) {
|
|
195
|
+
this.repeatCriteria = repeatCriteria;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @return {TimeFilter}
|
|
200
|
+
*/
|
|
201
|
+
getTimeFilter() {
|
|
202
|
+
return this.timeFilter;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @param {TimeFilter} timeFilter
|
|
207
|
+
*/
|
|
208
|
+
setTimeFilter(timeFilter) {
|
|
209
|
+
this.timeFilter = timeFilter;
|
|
210
|
+
}
|
|
211
|
+
get$Reserved() {
|
|
212
|
+
return this.$reserved;
|
|
213
|
+
}
|
|
214
|
+
get$ObjectType() {
|
|
215
|
+
return this.$objectType;
|
|
216
|
+
}
|
|
217
|
+
get$UnknownFields() {
|
|
218
|
+
return this.$unknownFields;
|
|
219
|
+
}
|
|
220
|
+
toJson(forMutation) {
|
|
221
|
+
if (forMutation === false) {
|
|
222
|
+
return {
|
|
223
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
207
224
|
'name': this.getName()
|
|
208
|
-
} : {}),
|
|
225
|
+
} : {}),
|
|
226
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
209
227
|
'description': this.getDescription()
|
|
210
|
-
} : {}),
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
228
|
+
} : {}),
|
|
229
|
+
...(typeof this.getRows() !== 'undefined' && this.getRows() !== null ? {
|
|
230
|
+
'rows': this.getRows().map(item => item.toJson(false))
|
|
231
|
+
} : {}),
|
|
232
|
+
...(typeof this.getRepeatCriteria() !== 'undefined' && this.getRepeatCriteria() !== null ? {
|
|
215
233
|
'repeatCriteria': this.getRepeatCriteria().toJson(false)
|
|
216
|
-
} : {}),
|
|
234
|
+
} : {}),
|
|
235
|
+
...(typeof this.getTimeFilter() !== 'undefined' && this.getTimeFilter() !== null ? {
|
|
217
236
|
'timeFilter': this.getTimeFilter()
|
|
218
|
-
} : {}),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
237
|
+
} : {}),
|
|
238
|
+
'$reserved': this.get$Reserved(),
|
|
239
|
+
'$objectType': this.get$ObjectType(),
|
|
240
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
241
|
+
'$unknownFields': {}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
return {
|
|
245
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
225
246
|
'name': this.getName()
|
|
226
|
-
} : {}),
|
|
247
|
+
} : {}),
|
|
248
|
+
...(typeof this.getDescription() !== 'undefined' && this.getDescription() !== null ? {
|
|
227
249
|
'description': this.getDescription()
|
|
228
|
-
} : {}),
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
250
|
+
} : {}),
|
|
251
|
+
...(typeof this.getRows() !== 'undefined' && this.getRows() !== null ? {
|
|
252
|
+
'rows': this.getRows().map(item => item.toJson(false))
|
|
253
|
+
} : {}),
|
|
254
|
+
...(typeof this.getRepeatCriteria() !== 'undefined' && this.getRepeatCriteria() !== null ? {
|
|
233
255
|
'repeatCriteria': this.getRepeatCriteria().toJson(false)
|
|
234
|
-
} : {}),
|
|
256
|
+
} : {}),
|
|
257
|
+
...(typeof this.getTimeFilter() !== 'undefined' && this.getTimeFilter() !== null ? {
|
|
235
258
|
'timeFilter': this.getTimeFilter()
|
|
236
|
-
} : {}),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
259
|
+
} : {}),
|
|
260
|
+
'$reserved': this.get$Reserved(),
|
|
261
|
+
'$objectType': this.get$ObjectType(),
|
|
262
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
263
|
+
'$unknownFields': {}
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
validate(scope, properties) {
|
|
267
|
+
let propList = [];
|
|
268
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
269
|
+
//cases validate() and validate(scope)
|
|
270
|
+
propList = ["name", "rows"];
|
|
271
|
+
} else if (arguments.length === 1) {
|
|
272
|
+
//case validate(properties)
|
|
273
|
+
propList = arguments[0];
|
|
274
|
+
scope = null;
|
|
275
|
+
} else {
|
|
276
|
+
//case validate(scope, properties)
|
|
277
|
+
propList = arguments[1];
|
|
241
278
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
scope = null;
|
|
279
|
+
let res = [];
|
|
280
|
+
let err = null;
|
|
281
|
+
propList.forEach(property => {
|
|
282
|
+
err = this.validateProperty(property, scope);
|
|
283
|
+
if (err) {
|
|
284
|
+
res.push(err);
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
return new Promise(function (resolve, reject) {
|
|
288
|
+
if (res.length !== 0) {
|
|
289
|
+
reject(err);
|
|
254
290
|
} else {
|
|
255
|
-
|
|
256
|
-
|
|
291
|
+
resolve();
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
validateProperty(scope, property) {
|
|
296
|
+
if (property === "name") {
|
|
297
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
298
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
299
|
+
}
|
|
300
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 64)) {
|
|
301
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 64");
|
|
257
302
|
}
|
|
258
|
-
var res = [];
|
|
259
|
-
var err = null;
|
|
260
|
-
propList.forEach(function (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);
|
|
269
|
-
} else {
|
|
270
|
-
resolve();
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
303
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
if (property === "name") {
|
|
278
|
-
if (typeof this.name === 'undefined' || this.name === null) {
|
|
279
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
280
|
-
}
|
|
281
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 64)) {
|
|
282
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 64");
|
|
283
|
-
}
|
|
304
|
+
if (property === "description") {
|
|
305
|
+
if (typeof this.description === 'undefined' || this.description === null) {
|
|
306
|
+
return new _ValidationError.default("description", "undefined or null");
|
|
284
307
|
}
|
|
285
|
-
if (
|
|
286
|
-
|
|
287
|
-
return new _ValidationError["default"]("description", "undefined or null");
|
|
288
|
-
}
|
|
289
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.description, 1000)) {
|
|
290
|
-
return new _ValidationError["default"]("description", "does not satisfy required maxLength constraint: 1000");
|
|
291
|
-
}
|
|
308
|
+
if (!_ValidationUtils.default.validateMaxLength(this.description, 1000)) {
|
|
309
|
+
return new _ValidationError.default("description", "does not satisfy required maxLength constraint: 1000");
|
|
292
310
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.rows, 20)) {
|
|
298
|
-
return new _ValidationError["default"]("rows", "does not satisfy required maxItems constraint: 20");
|
|
299
|
-
}
|
|
311
|
+
}
|
|
312
|
+
if (property === "rows") {
|
|
313
|
+
if (typeof this.rows === 'undefined' || this.rows === null) {
|
|
314
|
+
return new _ValidationError.default("rows", "undefined or null");
|
|
300
315
|
}
|
|
301
|
-
if (
|
|
302
|
-
|
|
303
|
-
return new _ValidationError["default"]("repeatCriteria", "undefined or null");
|
|
304
|
-
}
|
|
316
|
+
if (!_ValidationUtils.default.validateMaxItems(this.rows, 20)) {
|
|
317
|
+
return new _ValidationError.default("rows", "does not satisfy required maxItems constraint: 20");
|
|
305
318
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
319
|
+
}
|
|
320
|
+
if (property === "repeatCriteria") {
|
|
321
|
+
if (typeof this.repeatCriteria === 'undefined' || this.repeatCriteria === null) {
|
|
322
|
+
return new _ValidationError.default("repeatCriteria", "undefined or null");
|
|
310
323
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
324
|
+
}
|
|
325
|
+
if (property === "timeFilter") {
|
|
326
|
+
if (typeof this.timeFilter === 'undefined' || this.timeFilter === null) {
|
|
327
|
+
return new _ValidationError.default("timeFilter", "undefined or null");
|
|
315
328
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
329
|
+
}
|
|
330
|
+
if (property === "$reserved") {
|
|
331
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
332
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
320
333
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
334
|
+
}
|
|
335
|
+
if (property === "$objectType") {
|
|
336
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
337
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
325
338
|
}
|
|
326
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
327
339
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
332
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
333
|
-
var items, item, i, itemArr, discriminator;
|
|
334
|
-
if (data) {
|
|
335
|
-
obj = obj || new Section();
|
|
336
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
337
|
-
obj.setName(data['name']);
|
|
338
|
-
}
|
|
339
|
-
if (data.hasOwnProperty('description') && data.description !== null && data.description !== undefined) {
|
|
340
|
-
obj.setDescription(data['description']);
|
|
341
|
-
}
|
|
342
|
-
if (data.hasOwnProperty('rows') && data.rows !== null && data.rows !== undefined) {
|
|
343
|
-
itemArr = [];
|
|
344
|
-
items = data.rows;
|
|
345
|
-
for (i = 0; i < items.length; i++) {
|
|
346
|
-
item = _Row["default"].constructFromObject(items[i], undefined);
|
|
347
|
-
itemArr.push(item);
|
|
348
|
-
}
|
|
349
|
-
obj.setRows(itemArr);
|
|
350
|
-
}
|
|
351
|
-
if (data.hasOwnProperty('repeatCriteria') && data.repeatCriteria !== null && data.repeatCriteria !== undefined) {
|
|
352
|
-
obj.setRepeatCriteria(_RepeatCriteria["default"].constructFromObject(data['repeatCriteria']));
|
|
353
|
-
}
|
|
354
|
-
if (data.hasOwnProperty('timeFilter') && data.timeFilter !== null && data.timeFilter !== undefined) {
|
|
355
|
-
obj.setTimeFilter(_TimeFilter["default"].constructFromObject(data['timeFilter']));
|
|
356
|
-
}
|
|
357
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
358
|
-
obj.$reserved = data['$reserved'];
|
|
359
|
-
}
|
|
360
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
361
|
-
obj.$objectType = data['$objectType'];
|
|
362
|
-
}
|
|
363
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
364
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
365
|
-
}
|
|
366
|
-
if (!callFromChild) {
|
|
367
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
368
|
-
for (var property in data) {
|
|
369
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
370
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
371
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
372
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
373
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
374
|
-
obj.$unknownFields[property] = data[property];
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
340
|
+
if (property === "$unknownFields") {
|
|
341
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
342
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
378
343
|
}
|
|
379
|
-
return obj;
|
|
380
344
|
}
|
|
345
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
346
|
+
}
|
|
347
|
+
}
|
|
381
348
|
|
|
382
|
-
/**
|
|
383
|
-
* Converts a given snake_case string to camelCase.
|
|
384
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
385
|
-
* @returns {string} - The converted string in camelCase format.
|
|
386
|
-
*/
|
|
387
|
-
}, {
|
|
388
|
-
key: "snakeToCamel",
|
|
389
|
-
value: function snakeToCamel(snakeStr) {
|
|
390
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
391
|
-
return match[1].toUpperCase();
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
}]);
|
|
395
|
-
}();
|
|
396
349
|
/**
|
|
397
350
|
* Name of the section.
|
|
398
351
|
* @memberof Section
|
|
399
352
|
*/
|
|
353
|
+
exports.default = Section;
|
|
400
354
|
function _toJsonMapType(obj, forMutation) {
|
|
401
355
|
if (obj instanceof Map) {
|
|
402
|
-
return Object.fromEntries(Array.from(obj,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
v = _ref2[1];
|
|
406
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
407
|
-
}));
|
|
408
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
409
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
356
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
357
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
358
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
410
359
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
411
360
|
}));
|
|
412
361
|
}
|