@nutanix-scratch/opsmgmt-js-client 4.0.2 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/Ntnx-Opsmgmt-js-client-prod.js +1 -1
- package/dist/Ntnx-Opsmgmt-js-client.js +453 -447
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/globalreportsetting-endpoints.d.ts +1 -1
- package/dist/es/apis/globalreportsetting-endpoints.js +94 -111
- package/dist/es/apis/reportartifacts-endpoints.d.ts +2 -2
- package/dist/es/apis/reportartifacts-endpoints.js +196 -210
- package/dist/es/apis/reportconfig-endpoints.d.ts +2 -2
- package/dist/es/apis/reportconfig-endpoints.js +210 -224
- package/dist/es/apis/reports-endpoints.d.ts +2 -2
- package/dist/es/apis/reports-endpoints.js +243 -258
- package/dist/es/index.js +239 -239
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
- package/dist/es/models/opsmgmt/v4/config/DataCriteria.js +280 -333
- package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
- package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
- package/dist/es/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/EntitySelection.js +172 -213
- package/dist/es/models/opsmgmt/v4/config/EntityType.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
- package/dist/es/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
- package/dist/es/models/opsmgmt/v4/config/GlobalReportSetting.js +201 -249
- package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
- package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/Recipient.js +170 -211
- package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
- package/dist/es/models/opsmgmt/v4/config/Report.d.ts +1 -35
- package/dist/es/models/opsmgmt/v4/config/Report.js +506 -581
- package/dist/es/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
- package/dist/es/models/opsmgmt/v4/config/ReportConfig.js +514 -594
- package/dist/es/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
- package/dist/es/models/opsmgmt/v4/config/ReportFormat.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
- package/dist/es/models/opsmgmt/v4/config/ReportNotificationSpec.js +174 -222
- package/dist/es/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
- package/dist/es/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
- package/dist/es/models/opsmgmt/v4/config/Row.d.ts +2 -12
- package/dist/es/models/opsmgmt/v4/config/Row.js +148 -191
- package/dist/es/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/Section.d.ts +2 -27
- package/dist/es/models/opsmgmt/v4/config/Section.js +251 -302
- package/dist/es/models/opsmgmt/v4/config/SortKey.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/SortOrder.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/TimeFilter.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/config/Widget.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/config/Widget.js +154 -197
- package/dist/es/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
- package/dist/es/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
- package/dist/es/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/config/WidgetField.js +195 -238
- package/dist/es/models/opsmgmt/v4/config/WidgetSize.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
- package/dist/es/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
- package/dist/es/models/opsmgmt/v4/config/WidgetType.js +7 -9
- package/dist/es/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
- package/dist/es/models/opsmgmt/v4/content/ArtifactType.js +7 -9
- package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
- package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
- package/dist/es/models/opsmgmt/v4/content/ReportArtifact.js +149 -193
- package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
- package/dist/es/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
- package/dist/es/models/opsmgmt/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/opsmgmt/v4/error/AppMessage.js +263 -312
- package/dist/es/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/error/ErrorResponse.js +174 -217
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
- package/dist/es/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
- package/dist/es/models/opsmgmt/v4/reporting/CustomView.js +394 -455
- package/dist/es/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/reporting/Field.js +195 -238
- package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/reporting/FileWrapper.js +139 -178
- package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/reporting/ImportExportParams.js +144 -183
- package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
- package/dist/es/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
- package/dist/es/models/opsmgmt/v4/reporting/Operator.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
- package/dist/es/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
- package/dist/es/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
- package/dist/es/models/opsmgmt/v4/reporting/Recipient.js +170 -211
- package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
- package/dist/es/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
- package/dist/es/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/View.d.ts +1 -18
- package/dist/es/models/opsmgmt/v4/reporting/View.js +202 -252
- package/dist/es/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
- package/dist/es/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
- package/dist/es/models/opsmgmt/v4/reporting/ViewReport.js +275 -331
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/globalreportsetting-endpoints.d.ts +1 -1
- package/dist/lib/apis/globalreportsetting-endpoints.js +94 -111
- package/dist/lib/apis/reportartifacts-endpoints.d.ts +2 -2
- package/dist/lib/apis/reportartifacts-endpoints.js +196 -210
- package/dist/lib/apis/reportconfig-endpoints.d.ts +2 -2
- package/dist/lib/apis/reportconfig-endpoints.js +210 -224
- package/dist/lib/apis/reports-endpoints.d.ts +2 -2
- package/dist/lib/apis/reports-endpoints.js +243 -258
- package/dist/lib/index.js +239 -239
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/opsmgmt/v4/config/AggregateFunction.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/CreateReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/CreateReportConfigApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/DataCriteria.d.ts +2 -18
- package/dist/lib/models/opsmgmt/v4/config/DataCriteria.js +280 -333
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportApiResponse.js +188 -243
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/DeleteReportConfigApiResponse.js +188 -243
- package/dist/lib/models/opsmgmt/v4/config/EntitySelection.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/EntitySelection.js +172 -213
- package/dist/lib/models/opsmgmt/v4/config/EntityType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/GetGlobalReportSettingApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.d.ts +2 -46
- package/dist/lib/models/opsmgmt/v4/config/GetReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/GetReportConfigApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.d.ts +1 -28
- package/dist/lib/models/opsmgmt/v4/config/GlobalReportSetting.js +201 -249
- package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/ListReportConfigsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/ListReportsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/config/NotificationPolicy.js +242 -291
- package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/NotifyReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/Recipient.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/Recipient.js +170 -211
- package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/RepeatCriteria.js +165 -206
- package/dist/lib/models/opsmgmt/v4/config/Report.d.ts +1 -35
- package/dist/lib/models/opsmgmt/v4/config/Report.js +506 -581
- package/dist/lib/models/opsmgmt/v4/config/ReportConfig.d.ts +1 -70
- package/dist/lib/models/opsmgmt/v4/config/ReportConfig.js +514 -594
- package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/config/ReportCustomization.js +217 -262
- package/dist/lib/models/opsmgmt/v4/config/ReportFormat.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.d.ts +1 -17
- package/dist/lib/models/opsmgmt/v4/config/ReportNotificationSpec.js +174 -222
- package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/config/ReportSchedule.js +213 -258
- package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/config/RetentionConfig.js +165 -206
- package/dist/lib/models/opsmgmt/v4/config/Row.d.ts +2 -12
- package/dist/lib/models/opsmgmt/v4/config/Row.js +148 -191
- package/dist/lib/models/opsmgmt/v4/config/ScheduleInterval.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/Section.d.ts +2 -27
- package/dist/lib/models/opsmgmt/v4/config/Section.js +251 -302
- package/dist/lib/models/opsmgmt/v4/config/SortKey.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/SortOrder.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/TimeFilter.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/UpdateGlobalReportSettingsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/config/UpdateReportConfigApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/config/Widget.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/config/Widget.js +154 -197
- package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.d.ts +2 -51
- package/dist/lib/models/opsmgmt/v4/config/WidgetConfig.js +343 -402
- package/dist/lib/models/opsmgmt/v4/config/WidgetField.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/config/WidgetField.js +195 -238
- package/dist/lib/models/opsmgmt/v4/config/WidgetSize.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/config/WidgetTemplate.js +137 -176
- package/dist/lib/models/opsmgmt/v4/config/WidgetTemplateType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/config/WidgetType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/content/ArtifactFileType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/content/ArtifactType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/CreateReportArtifactApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/DownloadArtifactileApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/DownloadReportApiResponse.js +185 -240
- package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/ListReportArtifactsApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.d.ts +1 -17
- package/dist/lib/models/opsmgmt/v4/content/ReportArtifact.js +149 -193
- package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.d.ts +2 -43
- package/dist/lib/models/opsmgmt/v4/content/UploadArtifactApiResponse.js +207 -262
- package/dist/lib/models/opsmgmt/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/opsmgmt/v4/error/AppMessage.js +263 -312
- package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/error/ErrorResponse.js +174 -217
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationError.js +248 -299
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/error/SchemaValidationErrorMessage.js +190 -233
- package/dist/lib/models/opsmgmt/v4/reporting/CustomView.d.ts +2 -23
- package/dist/lib/models/opsmgmt/v4/reporting/CustomView.js +394 -455
- package/dist/lib/models/opsmgmt/v4/reporting/Field.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/reporting/Field.js +195 -238
- package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/reporting/FileWrapper.js +139 -178
- package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/reporting/ImportExportParams.js +144 -183
- package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.d.ts +2 -9
- package/dist/lib/models/opsmgmt/v4/reporting/NotificationPolicy.js +208 -255
- package/dist/lib/models/opsmgmt/v4/reporting/Operator.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/PredefinedType.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.d.ts +2 -7
- package/dist/lib/models/opsmgmt/v4/reporting/PredefinedView.js +137 -176
- package/dist/lib/models/opsmgmt/v4/reporting/Recipient.d.ts +2 -8
- package/dist/lib/models/opsmgmt/v4/reporting/Recipient.js +170 -211
- package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.d.ts +2 -10
- package/dist/lib/models/opsmgmt/v4/reporting/ReportCustomization.js +217 -262
- package/dist/lib/models/opsmgmt/v4/reporting/ReportFormat.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/SortOrder.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/View.d.ts +1 -18
- package/dist/lib/models/opsmgmt/v4/reporting/View.js +202 -252
- package/dist/lib/models/opsmgmt/v4/reporting/ViewFormat.js +7 -9
- package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.d.ts +1 -37
- package/dist/lib/models/opsmgmt/v4/reporting/ViewReport.js +275 -331
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
|
@@ -3,37 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ScheduleInterval = _interopRequireDefault(require("./ScheduleInterval"));
|
|
8
8
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
9
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
10
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
12
|
-
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); }
|
|
13
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
14
|
-
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."); }
|
|
15
|
-
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; } }
|
|
16
|
-
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; }
|
|
17
|
-
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; } }
|
|
18
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
23
|
-
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); } }
|
|
24
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
|
-
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); }
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
27
12
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
28
13
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
29
14
|
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"); } /*
|
|
30
15
|
* Nutanix Cloud Management Platform APIs
|
|
31
16
|
*
|
|
32
|
-
* OpenAPI spec version: 4.0.
|
|
17
|
+
* OpenAPI spec version: 4.0.4
|
|
33
18
|
*
|
|
34
19
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
35
20
|
*
|
|
36
|
-
* Open API Dev Platform Codegen version: 17.
|
|
21
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
37
22
|
*
|
|
38
23
|
* Do not edit the class manually.
|
|
39
24
|
*
|
|
@@ -41,7 +26,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
41
26
|
/**
|
|
42
27
|
* The ReportSchedule model module.
|
|
43
28
|
* @module Ntnx/ReportSchedule
|
|
44
|
-
* @version 4.0.
|
|
29
|
+
* @version 4.0.4
|
|
45
30
|
* @class ReportSchedule
|
|
46
31
|
*
|
|
47
32
|
* @param { ScheduleInterval } scheduleInterval
|
|
@@ -51,7 +36,7 @@ function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.h
|
|
|
51
36
|
* @param { Date } startTime Start time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
52
37
|
*/
|
|
53
38
|
var _ReportSchedule_brand = /*#__PURE__*/new WeakSet();
|
|
54
|
-
|
|
39
|
+
class ReportSchedule {
|
|
55
40
|
/**
|
|
56
41
|
* Constructs a new <code>ReportSchedule</code>.
|
|
57
42
|
* Defines the parameters for schdeuling report creation from the report configuration.
|
|
@@ -63,8 +48,7 @@ var ReportSchedule = exports["default"] = /*#__PURE__*/function () {
|
|
|
63
48
|
*
|
|
64
49
|
* @param { Date } startTime Start time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
65
50
|
*/
|
|
66
|
-
|
|
67
|
-
_classCallCheck(this, ReportSchedule);
|
|
51
|
+
constructor(scheduleInterval, frequency, startTime) {
|
|
68
52
|
/*
|
|
69
53
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
70
54
|
* @param {Object} obj
|
|
@@ -92,275 +76,246 @@ var ReportSchedule = exports["default"] = /*#__PURE__*/function () {
|
|
|
92
76
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
93
77
|
* @return {module:Ntnx/ReportSchedule} The populated <code>ReportSchedule</code> instance.
|
|
94
78
|
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
79
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
80
|
+
let items, item, i, itemArr, discriminator;
|
|
81
|
+
if (data) {
|
|
82
|
+
obj = obj || new ReportSchedule();
|
|
83
|
+
if (data.hasOwnProperty('scheduleInterval') && data.scheduleInterval !== null && data.scheduleInterval !== undefined) {
|
|
84
|
+
obj.setScheduleInterval(_ScheduleInterval.default.constructFromObject(data['scheduleInterval']));
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('frequency') && data.frequency !== null && data.frequency !== undefined) {
|
|
87
|
+
obj.setFrequency(data['frequency']);
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
90
|
+
obj.setStartTime(data['startTime']);
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
93
|
+
obj.setEndTime(data['endTime']);
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
96
|
+
obj.$reserved = data['$reserved'];
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
99
|
+
obj.$objectType = data['$objectType'];
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
102
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
103
|
+
}
|
|
104
|
+
if (!callFromChild) {
|
|
105
|
+
obj.$unknownFields = {
|
|
106
|
+
...data.$unknownFields
|
|
107
|
+
};
|
|
108
|
+
for (const property in data) {
|
|
109
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
110
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
111
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
112
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
113
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
114
|
+
obj.$unknownFields[property] = data[property];
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
103
118
|
}
|
|
119
|
+
return obj;
|
|
120
|
+
}
|
|
104
121
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
122
|
+
/**
|
|
123
|
+
* Converts a given snake_case string to camelCase.
|
|
124
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
125
|
+
* @returns {string} - The converted string in camelCase format.
|
|
126
|
+
*/
|
|
127
|
+
static snakeToCamel(snakeStr) {
|
|
128
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
129
|
+
}
|
|
113
130
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
value: function getFrequency() {
|
|
121
|
-
return this.frequency;
|
|
122
|
-
}
|
|
131
|
+
/**
|
|
132
|
+
* @return {ScheduleInterval}
|
|
133
|
+
*/
|
|
134
|
+
getScheduleInterval() {
|
|
135
|
+
return this.scheduleInterval;
|
|
136
|
+
}
|
|
123
137
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
value: function setFrequency(frequency) {
|
|
131
|
-
this.frequency = frequency;
|
|
132
|
-
}
|
|
138
|
+
/**
|
|
139
|
+
* @param {ScheduleInterval} scheduleInterval
|
|
140
|
+
*/
|
|
141
|
+
setScheduleInterval(scheduleInterval) {
|
|
142
|
+
this.scheduleInterval = scheduleInterval;
|
|
143
|
+
}
|
|
133
144
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return this.startTime;
|
|
142
|
-
}
|
|
145
|
+
/**
|
|
146
|
+
* Returns Multiple of scheduleInterval. For example, if the scheduleInterval is set to daily and frequency is set to 2, the schedule will run every 2 days.
|
|
147
|
+
* @return {Number}
|
|
148
|
+
*/
|
|
149
|
+
getFrequency() {
|
|
150
|
+
return this.frequency;
|
|
151
|
+
}
|
|
143
152
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
this.startTime = startTime;
|
|
152
|
-
}
|
|
153
|
+
/**
|
|
154
|
+
* Sets Multiple of scheduleInterval. For example, if the scheduleInterval is set to daily and frequency is set to 2, the schedule will run every 2 days.
|
|
155
|
+
* @param {Number} frequency Multiple of scheduleInterval. For example, if the scheduleInterval is set to daily and frequency is set to 2, the schedule will run every 2 days.
|
|
156
|
+
*/
|
|
157
|
+
setFrequency(frequency) {
|
|
158
|
+
this.frequency = frequency;
|
|
159
|
+
}
|
|
153
160
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
return this.endTime;
|
|
162
|
-
}
|
|
161
|
+
/**
|
|
162
|
+
* Returns Start time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
163
|
+
* @return {Date}
|
|
164
|
+
*/
|
|
165
|
+
getStartTime() {
|
|
166
|
+
return this.startTime;
|
|
167
|
+
}
|
|
163
168
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
169
|
+
/**
|
|
170
|
+
* Sets Start time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
171
|
+
* @param {Date} startTime Start time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
172
|
+
*/
|
|
173
|
+
setStartTime(startTime) {
|
|
174
|
+
this.startTime = startTime;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Returns End time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
179
|
+
* @return {Date}
|
|
180
|
+
*/
|
|
181
|
+
getEndTime() {
|
|
182
|
+
return this.endTime;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Sets End time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
187
|
+
* @param {Date} endTime End time of the schedule. The value should be in extended ISO-8601 format. For example, 2022-04-23T01:23:45.678+09:00 represents 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
|
|
188
|
+
*/
|
|
189
|
+
setEndTime(endTime) {
|
|
190
|
+
this.endTime = endTime;
|
|
191
|
+
}
|
|
192
|
+
get$Reserved() {
|
|
193
|
+
return this.$reserved;
|
|
194
|
+
}
|
|
195
|
+
get$ObjectType() {
|
|
196
|
+
return this.$objectType;
|
|
197
|
+
}
|
|
198
|
+
get$UnknownFields() {
|
|
199
|
+
return this.$unknownFields;
|
|
200
|
+
}
|
|
201
|
+
toJson(forMutation) {
|
|
202
|
+
if (forMutation === false) {
|
|
203
|
+
return {
|
|
204
|
+
...(typeof this.getScheduleInterval() !== 'undefined' && this.getScheduleInterval() !== null ? {
|
|
193
205
|
'scheduleInterval': this.getScheduleInterval()
|
|
194
|
-
} : {}),
|
|
206
|
+
} : {}),
|
|
207
|
+
...(typeof this.getFrequency() !== 'undefined' && this.getFrequency() !== null ? {
|
|
195
208
|
'frequency': this.getFrequency()
|
|
196
|
-
} : {}),
|
|
209
|
+
} : {}),
|
|
210
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
197
211
|
'startTime': _assertClassBrand(_ReportSchedule_brand, this, _handleDateType).call(this, this.getStartTime(), false)
|
|
198
|
-
} : {}),
|
|
212
|
+
} : {}),
|
|
213
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
199
214
|
'endTime': _assertClassBrand(_ReportSchedule_brand, this, _handleDateType).call(this, this.getEndTime(), false)
|
|
200
|
-
} : {}),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
215
|
+
} : {}),
|
|
216
|
+
'$reserved': this.get$Reserved(),
|
|
217
|
+
'$objectType': this.get$ObjectType(),
|
|
218
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
219
|
+
'$unknownFields': {}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
...(typeof this.getScheduleInterval() !== 'undefined' && this.getScheduleInterval() !== null ? {
|
|
207
224
|
'scheduleInterval': this.getScheduleInterval()
|
|
208
|
-
} : {}),
|
|
225
|
+
} : {}),
|
|
226
|
+
...(typeof this.getFrequency() !== 'undefined' && this.getFrequency() !== null ? {
|
|
209
227
|
'frequency': this.getFrequency()
|
|
210
|
-
} : {}),
|
|
228
|
+
} : {}),
|
|
229
|
+
...(typeof this.getStartTime() !== 'undefined' && this.getStartTime() !== null ? {
|
|
211
230
|
'startTime': _assertClassBrand(_ReportSchedule_brand, this, _handleDateType).call(this, this.getStartTime(), false)
|
|
212
|
-
} : {}),
|
|
231
|
+
} : {}),
|
|
232
|
+
...(typeof this.getEndTime() !== 'undefined' && this.getEndTime() !== null ? {
|
|
213
233
|
'endTime': _assertClassBrand(_ReportSchedule_brand, this, _handleDateType).call(this, this.getEndTime(), false)
|
|
214
|
-
} : {}),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
234
|
+
} : {}),
|
|
235
|
+
'$reserved': this.get$Reserved(),
|
|
236
|
+
'$objectType': this.get$ObjectType(),
|
|
237
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
238
|
+
'$unknownFields': {}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
validate(scope, properties) {
|
|
242
|
+
let propList = [];
|
|
243
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
244
|
+
//cases validate() and validate(scope)
|
|
245
|
+
propList = ["scheduleInterval", "frequency", "startTime"];
|
|
246
|
+
} else if (arguments.length === 1) {
|
|
247
|
+
//case validate(properties)
|
|
248
|
+
propList = arguments[0];
|
|
249
|
+
scope = null;
|
|
250
|
+
} else {
|
|
251
|
+
//case validate(scope, properties)
|
|
252
|
+
propList = arguments[1];
|
|
219
253
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
//cases validate() and validate(scope)
|
|
227
|
-
propList = ["scheduleInterval", "frequency", "startTime"];
|
|
228
|
-
} else if (arguments.length === 1) {
|
|
229
|
-
//case validate(properties)
|
|
230
|
-
propList = arguments[0];
|
|
231
|
-
scope = null;
|
|
232
|
-
} else {
|
|
233
|
-
//case validate(scope, properties)
|
|
234
|
-
propList = arguments[1];
|
|
254
|
+
let res = [];
|
|
255
|
+
let err = null;
|
|
256
|
+
propList.forEach(property => {
|
|
257
|
+
err = this.validateProperty(property, scope);
|
|
258
|
+
if (err) {
|
|
259
|
+
res.push(err);
|
|
235
260
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
err
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
return new Promise(function (resolve, reject) {
|
|
245
|
-
if (res.length !== 0) {
|
|
246
|
-
reject(err);
|
|
247
|
-
} else {
|
|
248
|
-
resolve();
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
}, {
|
|
253
|
-
key: "validateProperty",
|
|
254
|
-
value: function validateProperty(scope, property) {
|
|
255
|
-
if (property === "scheduleInterval") {
|
|
256
|
-
if (typeof this.scheduleInterval === 'undefined' || this.scheduleInterval === null) {
|
|
257
|
-
return new _ValidationError["default"]("scheduleInterval", "undefined or null");
|
|
258
|
-
}
|
|
261
|
+
});
|
|
262
|
+
return new Promise(function (resolve, reject) {
|
|
263
|
+
if (res.length !== 0) {
|
|
264
|
+
reject(err);
|
|
265
|
+
} else {
|
|
266
|
+
resolve();
|
|
259
267
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
validateProperty(scope, property) {
|
|
271
|
+
if (property === "scheduleInterval") {
|
|
272
|
+
if (typeof this.scheduleInterval === 'undefined' || this.scheduleInterval === null) {
|
|
273
|
+
return new _ValidationError.default("scheduleInterval", "undefined or null");
|
|
264
274
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
275
|
+
}
|
|
276
|
+
if (property === "frequency") {
|
|
277
|
+
if (typeof this.frequency === 'undefined' || this.frequency === null) {
|
|
278
|
+
return new _ValidationError.default("frequency", "undefined or null");
|
|
269
279
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
280
|
+
}
|
|
281
|
+
if (property === "startTime") {
|
|
282
|
+
if (typeof this.startTime === 'undefined' || this.startTime === null) {
|
|
283
|
+
return new _ValidationError.default("startTime", "undefined or null");
|
|
274
284
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
285
|
+
}
|
|
286
|
+
if (property === "endTime") {
|
|
287
|
+
if (typeof this.endTime === 'undefined' || this.endTime === null) {
|
|
288
|
+
return new _ValidationError.default("endTime", "undefined or null");
|
|
279
289
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
290
|
+
}
|
|
291
|
+
if (property === "$reserved") {
|
|
292
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
293
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
284
294
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
295
|
+
}
|
|
296
|
+
if (property === "$objectType") {
|
|
297
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
298
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
289
299
|
}
|
|
290
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
291
300
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
296
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
297
|
-
var items, item, i, itemArr, discriminator;
|
|
298
|
-
if (data) {
|
|
299
|
-
obj = obj || new ReportSchedule();
|
|
300
|
-
if (data.hasOwnProperty('scheduleInterval') && data.scheduleInterval !== null && data.scheduleInterval !== undefined) {
|
|
301
|
-
obj.setScheduleInterval(_ScheduleInterval["default"].constructFromObject(data['scheduleInterval']));
|
|
302
|
-
}
|
|
303
|
-
if (data.hasOwnProperty('frequency') && data.frequency !== null && data.frequency !== undefined) {
|
|
304
|
-
obj.setFrequency(data['frequency']);
|
|
305
|
-
}
|
|
306
|
-
if (data.hasOwnProperty('startTime') && data.startTime !== null && data.startTime !== undefined) {
|
|
307
|
-
obj.setStartTime(data['startTime']);
|
|
308
|
-
}
|
|
309
|
-
if (data.hasOwnProperty('endTime') && data.endTime !== null && data.endTime !== undefined) {
|
|
310
|
-
obj.setEndTime(data['endTime']);
|
|
311
|
-
}
|
|
312
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
313
|
-
obj.$reserved = data['$reserved'];
|
|
314
|
-
}
|
|
315
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
316
|
-
obj.$objectType = data['$objectType'];
|
|
317
|
-
}
|
|
318
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
319
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
320
|
-
}
|
|
321
|
-
if (!callFromChild) {
|
|
322
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
323
|
-
for (var property in data) {
|
|
324
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
325
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
326
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
327
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
328
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
329
|
-
obj.$unknownFields[property] = data[property];
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
301
|
+
if (property === "$unknownFields") {
|
|
302
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
303
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
333
304
|
}
|
|
334
|
-
return obj;
|
|
335
305
|
}
|
|
306
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
307
|
+
}
|
|
308
|
+
}
|
|
336
309
|
|
|
337
|
-
/**
|
|
338
|
-
* Converts a given snake_case string to camelCase.
|
|
339
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
340
|
-
* @returns {string} - The converted string in camelCase format.
|
|
341
|
-
*/
|
|
342
|
-
}, {
|
|
343
|
-
key: "snakeToCamel",
|
|
344
|
-
value: function snakeToCamel(snakeStr) {
|
|
345
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
346
|
-
return match[1].toUpperCase();
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
}]);
|
|
350
|
-
}();
|
|
351
310
|
/**
|
|
352
311
|
* @memberof ReportSchedule
|
|
353
312
|
*/
|
|
313
|
+
exports.default = ReportSchedule;
|
|
354
314
|
function _toJsonMapType(obj, forMutation) {
|
|
355
315
|
if (obj instanceof Map) {
|
|
356
|
-
return Object.fromEntries(Array.from(obj,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
v = _ref2[1];
|
|
360
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
361
|
-
}));
|
|
362
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
363
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
316
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
317
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
318
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
364
319
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
365
320
|
}));
|
|
366
321
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The RetentionConfig model module.
|
|
3
3
|
* @module Ntnx/RetentionConfig
|
|
4
|
-
* @version 4.0.
|
|
4
|
+
* @version 4.0.4
|
|
5
5
|
* @class RetentionConfig
|
|
6
6
|
*/
|
|
7
7
|
export default class RetentionConfig {
|
|
@@ -50,13 +50,7 @@ export default class RetentionConfig {
|
|
|
50
50
|
get$Reserved(): any;
|
|
51
51
|
get$ObjectType(): string;
|
|
52
52
|
get$UnknownFields(): any;
|
|
53
|
-
toJson(forMutation: any):
|
|
54
|
-
$reserved: any;
|
|
55
|
-
$objectType: string;
|
|
56
|
-
$unknownFields: any;
|
|
57
|
-
retentionCount?: number;
|
|
58
|
-
retentionPeriodSeconds?: number;
|
|
59
|
-
};
|
|
53
|
+
toJson(forMutation: any): any;
|
|
60
54
|
validate(scope: any, properties: any, ...args: any[]): Promise<any>;
|
|
61
55
|
validateProperty(scope: any, property: any): ValidationError;
|
|
62
56
|
#private;
|