@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,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
8
8
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
9
9
|
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
@@ -13,38 +13,16 @@ var _View = _interopRequireDefault(require("./View"));
|
|
|
13
13
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
14
14
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
15
15
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
17
|
-
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); }
|
|
18
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
|
-
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."); }
|
|
20
|
-
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; } }
|
|
21
|
-
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; }
|
|
22
|
-
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; } }
|
|
23
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
|
-
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; }
|
|
25
|
-
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; }
|
|
26
|
-
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; }
|
|
27
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
28
|
-
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); } }
|
|
29
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
30
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
|
-
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); }
|
|
32
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
33
|
-
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); }
|
|
34
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
35
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
37
|
-
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); }
|
|
38
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
39
17
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
40
18
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
41
19
|
* Nutanix Cloud Management Platform APIs
|
|
42
20
|
*
|
|
43
|
-
* OpenAPI spec version: 4.0.
|
|
21
|
+
* OpenAPI spec version: 4.0.3
|
|
44
22
|
*
|
|
45
23
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
46
24
|
*
|
|
47
|
-
* Open API Dev Platform Codegen version: 17.
|
|
25
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
48
26
|
*
|
|
49
27
|
* Do not edit the class manually.
|
|
50
28
|
*
|
|
@@ -52,7 +30,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
52
30
|
/**
|
|
53
31
|
* The ViewReport model module.
|
|
54
32
|
* @module Ntnx/ViewReport
|
|
55
|
-
* @version 4.0.
|
|
33
|
+
* @version 4.0.3
|
|
56
34
|
* @class ViewReport
|
|
57
35
|
* @extends ExternalizableAbstractModel
|
|
58
36
|
*
|
|
@@ -61,7 +39,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
61
39
|
* @param { View[] } views List of views used to generate a report. Number of views must be in the range of 1 to 50.
|
|
62
40
|
*/
|
|
63
41
|
var _ViewReport_brand = /*#__PURE__*/new WeakSet();
|
|
64
|
-
|
|
42
|
+
class ViewReport extends _ExternalizableAbstractModel.default {
|
|
65
43
|
/**
|
|
66
44
|
* Constructs a new <code>ViewReport</code>.
|
|
67
45
|
* Generated report instance from given list of views.
|
|
@@ -72,27 +50,24 @@ var ViewReport = exports["default"] = /*#__PURE__*/function (_ExternalizableAbst
|
|
|
72
50
|
*
|
|
73
51
|
* @param { View[] } views List of views used to generate a report. Number of views must be in the range of 1 to 50.
|
|
74
52
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
_classCallCheck(this, ViewReport);
|
|
78
|
-
_this = _callSuper(this, ViewReport);
|
|
53
|
+
constructor(name, views) {
|
|
54
|
+
super();
|
|
79
55
|
/*
|
|
80
56
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
81
57
|
* @param {Object} obj
|
|
82
58
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
83
59
|
* Otherwise, just returns the input object.
|
|
84
60
|
*/
|
|
85
|
-
_classPrivateMethodInitSpec(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
61
|
+
_classPrivateMethodInitSpec(this, _ViewReport_brand);
|
|
62
|
+
this.name = name;
|
|
63
|
+
this.views = views;
|
|
64
|
+
this.$objectType = "opsmgmt.v4.reporting.ViewReport";
|
|
89
65
|
/** @type {object<string, any>} */
|
|
90
|
-
|
|
66
|
+
this.$reserved = {
|
|
91
67
|
'$fv': "v4.r0"
|
|
92
68
|
};
|
|
93
69
|
/** @type {object<string, any>} */
|
|
94
|
-
|
|
95
|
-
return _this;
|
|
70
|
+
this.$unknownFields = {};
|
|
96
71
|
}
|
|
97
72
|
|
|
98
73
|
/**
|
|
@@ -103,339 +78,308 @@ var ViewReport = exports["default"] = /*#__PURE__*/function (_ExternalizableAbst
|
|
|
103
78
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
104
79
|
* @return {module:Ntnx/ViewReport} The populated <code>ViewReport</code> instance.
|
|
105
80
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
81
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
82
|
+
let items, item, i, itemArr, discriminator;
|
|
83
|
+
if (data) {
|
|
84
|
+
obj = obj || new ViewReport();
|
|
85
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
86
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
87
|
+
obj.setName(data['name']);
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('views') && data.views !== null && data.views !== undefined) {
|
|
90
|
+
itemArr = [];
|
|
91
|
+
items = data.views;
|
|
92
|
+
for (i = 0; i < items.length; i++) {
|
|
93
|
+
item = _View.default.constructFromObject(items[i], undefined);
|
|
94
|
+
itemArr.push(item);
|
|
95
|
+
}
|
|
96
|
+
obj.setViews(itemArr);
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('reportFormat') && data.reportFormat !== null && data.reportFormat !== undefined) {
|
|
99
|
+
itemArr = [];
|
|
100
|
+
items = data.reportFormat;
|
|
101
|
+
for (i = 0; i < items.length; i++) {
|
|
102
|
+
item = _ReportFormat.default.constructFromObject(items[i], undefined);
|
|
103
|
+
itemArr.push(item);
|
|
104
|
+
}
|
|
105
|
+
obj.setReportFormat(itemArr);
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('notificationPolicy') && data.notificationPolicy !== null && data.notificationPolicy !== undefined) {
|
|
108
|
+
obj.setNotificationPolicy(_NotificationPolicy.default.constructFromObject(data['notificationPolicy']));
|
|
109
|
+
}
|
|
110
|
+
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
111
|
+
obj.setStartTime(data['startTime']);
|
|
112
|
+
}
|
|
113
|
+
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
114
|
+
obj.setEndTime(data['endTime']);
|
|
115
|
+
}
|
|
116
|
+
if (!callFromChild) {
|
|
117
|
+
obj.$unknownFields = {
|
|
118
|
+
...data.$unknownFields
|
|
119
|
+
};
|
|
120
|
+
for (const property in data) {
|
|
121
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
122
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
123
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
124
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
125
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
126
|
+
obj.$unknownFields[property] = data[property];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
116
130
|
}
|
|
131
|
+
return obj;
|
|
132
|
+
}
|
|
117
133
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
134
|
+
/**
|
|
135
|
+
* Converts a given snake_case string to camelCase.
|
|
136
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
137
|
+
* @returns {string} - The converted string in camelCase format.
|
|
138
|
+
*/
|
|
139
|
+
static snakeToCamel(snakeStr) {
|
|
140
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
141
|
+
}
|
|
127
142
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
return this.views;
|
|
136
|
-
}
|
|
143
|
+
/**
|
|
144
|
+
* Returns Name of the report generated.
|
|
145
|
+
* @return {string}
|
|
146
|
+
*/
|
|
147
|
+
getName() {
|
|
148
|
+
return this.name;
|
|
149
|
+
}
|
|
137
150
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
this.views = views;
|
|
146
|
-
}
|
|
151
|
+
/**
|
|
152
|
+
* Sets Name of the report generated.
|
|
153
|
+
* @param {string} name Name of the report generated.
|
|
154
|
+
*/
|
|
155
|
+
setName(name) {
|
|
156
|
+
this.name = name;
|
|
157
|
+
}
|
|
147
158
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return this.reportFormat;
|
|
156
|
-
}
|
|
159
|
+
/**
|
|
160
|
+
* Returns List of views used to generate a report. Number of views must be in the range of 1 to 50.
|
|
161
|
+
* @return {View[]}
|
|
162
|
+
*/
|
|
163
|
+
getViews() {
|
|
164
|
+
return this.views;
|
|
165
|
+
}
|
|
157
166
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this.reportFormat = reportFormat;
|
|
166
|
-
}
|
|
167
|
+
/**
|
|
168
|
+
* Sets List of views used to generate a report. Number of views must be in the range of 1 to 50.
|
|
169
|
+
* @param {View[]} views List of views used to generate a report. Number of views must be in the range of 1 to 50.
|
|
170
|
+
*/
|
|
171
|
+
setViews(views) {
|
|
172
|
+
this.views = views;
|
|
173
|
+
}
|
|
167
174
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
175
|
+
/**
|
|
176
|
+
* Returns List specifying the formats in which the report will be created.
|
|
177
|
+
* @return {ReportFormat[]}
|
|
178
|
+
*/
|
|
179
|
+
getReportFormat() {
|
|
180
|
+
return this.reportFormat;
|
|
181
|
+
}
|
|
176
182
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
183
|
+
/**
|
|
184
|
+
* Sets List specifying the formats in which the report will be created.
|
|
185
|
+
* @param {ReportFormat[]} reportFormat List specifying the formats in which the report will be created.
|
|
186
|
+
*/
|
|
187
|
+
setReportFormat(reportFormat) {
|
|
188
|
+
this.reportFormat = reportFormat;
|
|
189
|
+
}
|
|
185
190
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
value: function getStartTime() {
|
|
193
|
-
return this.startTime;
|
|
194
|
-
}
|
|
191
|
+
/**
|
|
192
|
+
* @return {NotificationPolicy}
|
|
193
|
+
*/
|
|
194
|
+
getNotificationPolicy() {
|
|
195
|
+
return this.notificationPolicy;
|
|
196
|
+
}
|
|
195
197
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
value: function setStartTime(startTime) {
|
|
203
|
-
this.startTime = startTime;
|
|
204
|
-
}
|
|
198
|
+
/**
|
|
199
|
+
* @param {NotificationPolicy} notificationPolicy
|
|
200
|
+
*/
|
|
201
|
+
setNotificationPolicy(notificationPolicy) {
|
|
202
|
+
this.notificationPolicy = notificationPolicy;
|
|
203
|
+
}
|
|
205
204
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
return this.endTime;
|
|
214
|
-
}
|
|
205
|
+
/**
|
|
206
|
+
* Returns The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
207
|
+
* @return {string}
|
|
208
|
+
*/
|
|
209
|
+
getStartTime() {
|
|
210
|
+
return this.startTime;
|
|
211
|
+
}
|
|
215
212
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
213
|
+
/**
|
|
214
|
+
* Sets The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
215
|
+
* @param {string} startTime The start time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, start time of 2022-04-23T01:23:45.678+09:00 would consider all stats starting at 1:23:45.678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
216
|
+
*/
|
|
217
|
+
setStartTime(startTime) {
|
|
218
|
+
this.startTime = startTime;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Returns The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
223
|
+
* @return {string}
|
|
224
|
+
*/
|
|
225
|
+
getEndTime() {
|
|
226
|
+
return this.endTime;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Sets The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
231
|
+
* @param {string} endTime The end time of the period for which stats should be reported. The value should be in extended ISO-8601 format. For example, end time of 2022-04-23T013:23:45.678+09:00 would consider all stats till 13:23:45 .678 on the 23rd of April 2022. Details around ISO-8601 format can be found at https://www.iso.org/standard/70907.html
|
|
232
|
+
*/
|
|
233
|
+
setEndTime(endTime) {
|
|
234
|
+
this.endTime = endTime;
|
|
235
|
+
}
|
|
236
|
+
toJson(forMutation) {
|
|
237
|
+
if (forMutation === false) {
|
|
238
|
+
return {
|
|
239
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
230
240
|
'name': this.getName()
|
|
231
|
-
} : {}),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
} : {}),
|
|
242
|
+
...(typeof this.getViews() !== 'undefined' && this.getViews() !== null ? {
|
|
243
|
+
'views': this.getViews().map(item => item.toJson(false))
|
|
244
|
+
} : {}),
|
|
245
|
+
...(typeof this.getReportFormat() !== 'undefined' && this.getReportFormat() !== null ? {
|
|
236
246
|
'reportFormat': this.getReportFormat()
|
|
237
|
-
} : {}),
|
|
247
|
+
} : {}),
|
|
248
|
+
...(typeof this.getNotificationPolicy() !== 'undefined' && this.getNotificationPolicy() !== null ? {
|
|
238
249
|
'notificationPolicy': this.getNotificationPolicy().toJson(false)
|
|
239
|
-
} : {}),
|
|
250
|
+
} : {}),
|
|
251
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
240
252
|
'startTime': this.getStartTime()
|
|
241
|
-
} : {}),
|
|
253
|
+
} : {}),
|
|
254
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
242
255
|
'endTime': this.getEndTime()
|
|
243
|
-
} : {}),
|
|
256
|
+
} : {}),
|
|
257
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
244
258
|
'extId': this.getExtId()
|
|
245
|
-
} : {}),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
259
|
+
} : {}),
|
|
260
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
261
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
262
|
+
} : {}),
|
|
263
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
250
264
|
'tenantId': this.getTenantId()
|
|
251
|
-
} : {}),
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
265
|
+
} : {}),
|
|
266
|
+
'$reserved': this.get$Reserved(),
|
|
267
|
+
'$objectType': this.get$ObjectType(),
|
|
268
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
269
|
+
'$unknownFields': {}
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
return {
|
|
273
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
258
274
|
'name': this.getName()
|
|
259
|
-
} : {}),
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
275
|
+
} : {}),
|
|
276
|
+
...(typeof this.getViews() !== 'undefined' && this.getViews() !== null ? {
|
|
277
|
+
'views': this.getViews().map(item => item.toJson(false))
|
|
278
|
+
} : {}),
|
|
279
|
+
...(typeof this.getReportFormat() !== 'undefined' && this.getReportFormat() !== null ? {
|
|
264
280
|
'reportFormat': this.getReportFormat()
|
|
265
|
-
} : {}),
|
|
281
|
+
} : {}),
|
|
282
|
+
...(typeof this.getNotificationPolicy() !== 'undefined' && this.getNotificationPolicy() !== null ? {
|
|
266
283
|
'notificationPolicy': this.getNotificationPolicy().toJson(false)
|
|
267
|
-
} : {}),
|
|
284
|
+
} : {}),
|
|
285
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
268
286
|
'startTime': this.getStartTime()
|
|
269
|
-
} : {}),
|
|
287
|
+
} : {}),
|
|
288
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
270
289
|
'endTime': this.getEndTime()
|
|
271
|
-
} : {}),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
290
|
+
} : {}),
|
|
291
|
+
'$reserved': this.get$Reserved(),
|
|
292
|
+
'$objectType': this.get$ObjectType(),
|
|
293
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
294
|
+
'$unknownFields': {}
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
validate(scope, properties) {
|
|
298
|
+
let propList = [];
|
|
299
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
300
|
+
//cases validate() and validate(scope)
|
|
301
|
+
propList = ["name", "views"];
|
|
302
|
+
} else if (arguments.length === 1) {
|
|
303
|
+
//case validate(properties)
|
|
304
|
+
propList = arguments[0];
|
|
305
|
+
scope = null;
|
|
306
|
+
} else {
|
|
307
|
+
//case validate(scope, properties)
|
|
308
|
+
propList = arguments[1];
|
|
276
309
|
}
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
scope = null;
|
|
310
|
+
let res = [];
|
|
311
|
+
let err = null;
|
|
312
|
+
propList.forEach(property => {
|
|
313
|
+
err = this.validateProperty(property, scope);
|
|
314
|
+
if (err) {
|
|
315
|
+
res.push(err);
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
return new Promise(function (resolve, reject) {
|
|
319
|
+
if (res.length !== 0) {
|
|
320
|
+
reject(err);
|
|
289
321
|
} else {
|
|
290
|
-
|
|
291
|
-
|
|
322
|
+
resolve();
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
validateProperty(scope, property) {
|
|
327
|
+
if (property === "name") {
|
|
328
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
329
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
330
|
+
}
|
|
331
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 100)) {
|
|
332
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 100");
|
|
333
|
+
}
|
|
334
|
+
if (!_ValidationUtils.default.validateMinLength(this.name, 1)) {
|
|
335
|
+
return new _ValidationError.default("name", "does not satisfy required minLength constraint: 1");
|
|
292
336
|
}
|
|
293
|
-
var res = [];
|
|
294
|
-
var err = null;
|
|
295
|
-
propList.forEach(function (property) {
|
|
296
|
-
err = _this2.validateProperty(property, scope);
|
|
297
|
-
if (err) {
|
|
298
|
-
res.push(err);
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
return new Promise(function (resolve, reject) {
|
|
302
|
-
if (res.length !== 0) {
|
|
303
|
-
reject(err);
|
|
304
|
-
} else {
|
|
305
|
-
resolve();
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
337
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
if (property === "name") {
|
|
313
|
-
if (typeof this.name === 'undefined' || this.name === null) {
|
|
314
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
315
|
-
}
|
|
316
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 100)) {
|
|
317
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 100");
|
|
318
|
-
}
|
|
319
|
-
if (!_ValidationUtils["default"].validateMinLength(this.name, 1)) {
|
|
320
|
-
return new _ValidationError["default"]("name", "does not satisfy required minLength constraint: 1");
|
|
321
|
-
}
|
|
338
|
+
if (property === "views") {
|
|
339
|
+
if (typeof this.views === 'undefined' || this.views === null) {
|
|
340
|
+
return new _ValidationError.default("views", "undefined or null");
|
|
322
341
|
}
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
return new _ValidationError["default"]("views", "undefined or null");
|
|
326
|
-
}
|
|
327
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.views, 50)) {
|
|
328
|
-
return new _ValidationError["default"]("views", "does not satisfy required maxItems constraint: 50");
|
|
329
|
-
}
|
|
330
|
-
if (!_ValidationUtils["default"].validateMinItems(this.views, 1)) {
|
|
331
|
-
return new _ValidationError["default"]("views", "does not satisfy required minItems constraint: 1");
|
|
332
|
-
}
|
|
342
|
+
if (!_ValidationUtils.default.validateMaxItems(this.views, 50)) {
|
|
343
|
+
return new _ValidationError.default("views", "does not satisfy required maxItems constraint: 50");
|
|
333
344
|
}
|
|
334
|
-
if (
|
|
335
|
-
|
|
336
|
-
return new _ValidationError["default"]("reportFormat", "undefined or null");
|
|
337
|
-
}
|
|
345
|
+
if (!_ValidationUtils.default.validateMinItems(this.views, 1)) {
|
|
346
|
+
return new _ValidationError.default("views", "does not satisfy required minItems constraint: 1");
|
|
338
347
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
348
|
+
}
|
|
349
|
+
if (property === "reportFormat") {
|
|
350
|
+
if (typeof this.reportFormat === 'undefined' || this.reportFormat === null) {
|
|
351
|
+
return new _ValidationError.default("reportFormat", "undefined or null");
|
|
343
352
|
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
353
|
+
}
|
|
354
|
+
if (property === "notificationPolicy") {
|
|
355
|
+
if (typeof this.notificationPolicy === 'undefined' || this.notificationPolicy === null) {
|
|
356
|
+
return new _ValidationError.default("notificationPolicy", "undefined or null");
|
|
348
357
|
}
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
358
|
+
}
|
|
359
|
+
if (property === "startTime") {
|
|
360
|
+
if (typeof this.startTime === 'undefined' || this.startTime === null) {
|
|
361
|
+
return new _ValidationError.default("startTime", "undefined or null");
|
|
353
362
|
}
|
|
354
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
355
363
|
}
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
360
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
361
|
-
var items, item, i, itemArr, discriminator;
|
|
362
|
-
if (data) {
|
|
363
|
-
obj = obj || new ViewReport();
|
|
364
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
365
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
366
|
-
obj.setName(data['name']);
|
|
367
|
-
}
|
|
368
|
-
if (data.hasOwnProperty('views') && data.views !== null && data.views !== undefined) {
|
|
369
|
-
itemArr = [];
|
|
370
|
-
items = data.views;
|
|
371
|
-
for (i = 0; i < items.length; i++) {
|
|
372
|
-
item = _View["default"].constructFromObject(items[i], undefined);
|
|
373
|
-
itemArr.push(item);
|
|
374
|
-
}
|
|
375
|
-
obj.setViews(itemArr);
|
|
376
|
-
}
|
|
377
|
-
if (data.hasOwnProperty('reportFormat') && data.reportFormat !== null && data.reportFormat !== undefined) {
|
|
378
|
-
itemArr = [];
|
|
379
|
-
items = data.reportFormat;
|
|
380
|
-
for (i = 0; i < items.length; i++) {
|
|
381
|
-
item = _ReportFormat["default"].constructFromObject(items[i], undefined);
|
|
382
|
-
itemArr.push(item);
|
|
383
|
-
}
|
|
384
|
-
obj.setReportFormat(itemArr);
|
|
385
|
-
}
|
|
386
|
-
if (data.hasOwnProperty('notificationPolicy') && data.notificationPolicy !== null && data.notificationPolicy !== undefined) {
|
|
387
|
-
obj.setNotificationPolicy(_NotificationPolicy["default"].constructFromObject(data['notificationPolicy']));
|
|
388
|
-
}
|
|
389
|
-
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
390
|
-
obj.setStartTime(data['startTime']);
|
|
391
|
-
}
|
|
392
|
-
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
393
|
-
obj.setEndTime(data['endTime']);
|
|
394
|
-
}
|
|
395
|
-
if (!callFromChild) {
|
|
396
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
397
|
-
for (var property in data) {
|
|
398
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
399
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
400
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
401
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
402
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
403
|
-
obj.$unknownFields[property] = data[property];
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
364
|
+
if (property === "endTime") {
|
|
365
|
+
if (typeof this.endTime === 'undefined' || this.endTime === null) {
|
|
366
|
+
return new _ValidationError.default("endTime", "undefined or null");
|
|
407
367
|
}
|
|
408
|
-
return obj;
|
|
409
368
|
}
|
|
369
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
370
|
+
}
|
|
371
|
+
}
|
|
410
372
|
|
|
411
|
-
/**
|
|
412
|
-
* Converts a given snake_case string to camelCase.
|
|
413
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
414
|
-
* @returns {string} - The converted string in camelCase format.
|
|
415
|
-
*/
|
|
416
|
-
}, {
|
|
417
|
-
key: "snakeToCamel",
|
|
418
|
-
value: function snakeToCamel(snakeStr) {
|
|
419
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
420
|
-
return match[1].toUpperCase();
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
}]);
|
|
424
|
-
}(_ExternalizableAbstractModel["default"]);
|
|
425
373
|
/**
|
|
426
374
|
* Name of the report generated.
|
|
427
375
|
* @memberof ViewReport
|
|
428
376
|
*/
|
|
377
|
+
exports.default = ViewReport;
|
|
429
378
|
function _toJsonMapType(obj, forMutation) {
|
|
430
379
|
if (obj instanceof Map) {
|
|
431
|
-
return Object.fromEntries(Array.from(obj,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
v = _ref2[1];
|
|
435
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
436
|
-
}));
|
|
437
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
438
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
380
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
381
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
382
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
439
383
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
440
384
|
}));
|
|
441
385
|
}
|
|
@@ -488,14 +432,14 @@ ViewReport.prototype.endTime = undefined;
|
|
|
488
432
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
489
433
|
* @memberof ViewReport
|
|
490
434
|
*/
|
|
491
|
-
_ExternalizableAbstractModel
|
|
435
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
492
436
|
/**
|
|
493
437
|
* 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.
|
|
494
438
|
* @memberof ViewReport
|
|
495
439
|
*/
|
|
496
|
-
_ExternalizableAbstractModel
|
|
440
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
497
441
|
/**
|
|
498
442
|
* 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).
|
|
499
443
|
* @memberof ViewReport
|
|
500
444
|
*/
|
|
501
|
-
_TenantAwareModel
|
|
445
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|