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