@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,36 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _Recipient = _interopRequireDefault(require("./Recipient"));
|
|
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
|
* Nutanix Cloud Management Platform APIs
|
|
30
15
|
*
|
|
31
|
-
* OpenAPI spec version: 4.0.
|
|
16
|
+
* OpenAPI spec version: 4.0.3
|
|
32
17
|
*
|
|
33
18
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
19
|
*
|
|
35
|
-
* Open API Dev Platform Codegen version: 17.
|
|
20
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
36
21
|
*
|
|
37
22
|
* Do not edit the class manually.
|
|
38
23
|
*
|
|
@@ -40,13 +25,13 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
40
25
|
/**
|
|
41
26
|
* The NotificationPolicy model module.
|
|
42
27
|
* @module Ntnx/NotificationPolicy
|
|
43
|
-
* @version 4.0.
|
|
28
|
+
* @version 4.0.3
|
|
44
29
|
* @class NotificationPolicy
|
|
45
30
|
*
|
|
46
31
|
* @param { Recipient[] } recipients Email recipients list.
|
|
47
32
|
*/
|
|
48
33
|
var _NotificationPolicy_brand = /*#__PURE__*/new WeakSet();
|
|
49
|
-
|
|
34
|
+
class NotificationPolicy {
|
|
50
35
|
/**
|
|
51
36
|
* Constructs a new <code>NotificationPolicy</code>.
|
|
52
37
|
* Notification policy for sending the email of the generated report.
|
|
@@ -54,8 +39,7 @@ var NotificationPolicy = exports["default"] = /*#__PURE__*/function () {
|
|
|
54
39
|
*
|
|
55
40
|
* @param { Recipient[] } recipients Email recipients list.
|
|
56
41
|
*/
|
|
57
|
-
|
|
58
|
-
_classCallCheck(this, NotificationPolicy);
|
|
42
|
+
constructor(recipients) {
|
|
59
43
|
/*
|
|
60
44
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
61
45
|
* @param {Object} obj
|
|
@@ -81,268 +65,237 @@ var NotificationPolicy = exports["default"] = /*#__PURE__*/function () {
|
|
|
81
65
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
82
66
|
* @return {module:Ntnx/NotificationPolicy} The populated <code>NotificationPolicy</code> instance.
|
|
83
67
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
68
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
69
|
+
let items, item, i, itemArr, discriminator;
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new NotificationPolicy();
|
|
72
|
+
if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
|
|
73
|
+
itemArr = [];
|
|
74
|
+
items = data.recipients;
|
|
75
|
+
for (i = 0; i < items.length; i++) {
|
|
76
|
+
item = _Recipient.default.constructFromObject(items[i], undefined);
|
|
77
|
+
itemArr.push(item);
|
|
78
|
+
}
|
|
79
|
+
obj.setRecipients(itemArr);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('emailSubject') && data.emailSubject !== null && data.emailSubject !== undefined) {
|
|
82
|
+
obj.setEmailSubject(data['emailSubject']);
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('emailBody') && data.emailBody !== null && data.emailBody !== undefined) {
|
|
85
|
+
obj.setEmailBody(data['emailBody']);
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
88
|
+
obj.$reserved = data['$reserved'];
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
91
|
+
obj.$objectType = data['$objectType'];
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
94
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
95
|
+
}
|
|
96
|
+
if (!callFromChild) {
|
|
97
|
+
obj.$unknownFields = {
|
|
98
|
+
...data.$unknownFields
|
|
99
|
+
};
|
|
100
|
+
for (const property in data) {
|
|
101
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
102
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
103
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
104
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
105
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
106
|
+
obj.$unknownFields[property] = data[property];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
93
110
|
}
|
|
111
|
+
return obj;
|
|
112
|
+
}
|
|
94
113
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
114
|
+
/**
|
|
115
|
+
* Converts a given snake_case string to camelCase.
|
|
116
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
117
|
+
* @returns {string} - The converted string in camelCase format.
|
|
118
|
+
*/
|
|
119
|
+
static snakeToCamel(snakeStr) {
|
|
120
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
121
|
+
}
|
|
104
122
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
return this.emailSubject;
|
|
113
|
-
}
|
|
123
|
+
/**
|
|
124
|
+
* Returns Email recipients list.
|
|
125
|
+
* @return {Recipient[]}
|
|
126
|
+
*/
|
|
127
|
+
getRecipients() {
|
|
128
|
+
return this.recipients;
|
|
129
|
+
}
|
|
114
130
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
this.emailSubject = emailSubject;
|
|
123
|
-
}
|
|
131
|
+
/**
|
|
132
|
+
* Sets Email recipients list.
|
|
133
|
+
* @param {Recipient[]} recipients Email recipients list.
|
|
134
|
+
*/
|
|
135
|
+
setRecipients(recipients) {
|
|
136
|
+
this.recipients = recipients;
|
|
137
|
+
}
|
|
124
138
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return this.emailBody;
|
|
133
|
-
}
|
|
139
|
+
/**
|
|
140
|
+
* Returns Subject of the email to be sent for the report.
|
|
141
|
+
* @return {string}
|
|
142
|
+
*/
|
|
143
|
+
getEmailSubject() {
|
|
144
|
+
return this.emailSubject;
|
|
145
|
+
}
|
|
134
146
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Sets Subject of the email to be sent for the report.
|
|
149
|
+
* @param {string} emailSubject Subject of the email to be sent for the report.
|
|
150
|
+
*/
|
|
151
|
+
setEmailSubject(emailSubject) {
|
|
152
|
+
this.emailSubject = emailSubject;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Returns Content of the email body.
|
|
157
|
+
* @return {string}
|
|
158
|
+
*/
|
|
159
|
+
getEmailBody() {
|
|
160
|
+
return this.emailBody;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Sets Content of the email body.
|
|
165
|
+
* @param {string} emailBody Content of the email body.
|
|
166
|
+
*/
|
|
167
|
+
setEmailBody(emailBody) {
|
|
168
|
+
this.emailBody = emailBody;
|
|
169
|
+
}
|
|
170
|
+
get$Reserved() {
|
|
171
|
+
return this.$reserved;
|
|
172
|
+
}
|
|
173
|
+
get$ObjectType() {
|
|
174
|
+
return this.$objectType;
|
|
175
|
+
}
|
|
176
|
+
get$UnknownFields() {
|
|
177
|
+
return this.$unknownFields;
|
|
178
|
+
}
|
|
179
|
+
toJson(forMutation) {
|
|
180
|
+
if (forMutation === false) {
|
|
181
|
+
return {
|
|
182
|
+
...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
|
|
183
|
+
'recipients': this.getRecipients().map(item => item.toJson(false))
|
|
184
|
+
} : {}),
|
|
185
|
+
...(typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
|
|
168
186
|
'emailSubject': this.getEmailSubject()
|
|
169
|
-
} : {}),
|
|
187
|
+
} : {}),
|
|
188
|
+
...(typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
|
|
170
189
|
'emailBody': this.getEmailBody()
|
|
171
|
-
} : {}),
|
|
172
|
-
'$reserved': this.get$Reserved(),
|
|
173
|
-
'$objectType': this.get$ObjectType(),
|
|
174
|
-
'$unknownFields': this.get$UnknownFields()
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
|
|
178
|
-
'recipients': this.getRecipients().map(function (item) {
|
|
179
|
-
return item.toJson(false);
|
|
180
|
-
})
|
|
181
|
-
} : {}), typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
|
|
182
|
-
'emailSubject': this.getEmailSubject()
|
|
183
|
-
} : {}), typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
|
|
184
|
-
'emailBody': this.getEmailBody()
|
|
185
|
-
} : {}), {}, {
|
|
190
|
+
} : {}),
|
|
186
191
|
'$reserved': this.get$Reserved(),
|
|
187
192
|
'$objectType': this.get$ObjectType(),
|
|
188
|
-
|
|
189
|
-
|
|
193
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
194
|
+
'$unknownFields': {}
|
|
195
|
+
};
|
|
190
196
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
197
|
+
return {
|
|
198
|
+
...(typeof this.getRecipients() !== 'undefined' && this.getRecipients() !== null ? {
|
|
199
|
+
'recipients': this.getRecipients().map(item => item.toJson(false))
|
|
200
|
+
} : {}),
|
|
201
|
+
...(typeof this.getEmailSubject() !== 'undefined' && this.getEmailSubject() !== null ? {
|
|
202
|
+
'emailSubject': this.getEmailSubject()
|
|
203
|
+
} : {}),
|
|
204
|
+
...(typeof this.getEmailBody() !== 'undefined' && this.getEmailBody() !== null ? {
|
|
205
|
+
'emailBody': this.getEmailBody()
|
|
206
|
+
} : {}),
|
|
207
|
+
'$reserved': this.get$Reserved(),
|
|
208
|
+
'$objectType': this.get$ObjectType(),
|
|
209
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
210
|
+
'$unknownFields': {}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
validate(scope, properties) {
|
|
214
|
+
let propList = [];
|
|
215
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
216
|
+
//cases validate() and validate(scope)
|
|
217
|
+
propList = ["recipients"];
|
|
218
|
+
} else if (arguments.length === 1) {
|
|
219
|
+
//case validate(properties)
|
|
220
|
+
propList = arguments[0];
|
|
221
|
+
scope = null;
|
|
222
|
+
} else {
|
|
223
|
+
//case validate(scope, properties)
|
|
224
|
+
propList = arguments[1];
|
|
225
|
+
}
|
|
226
|
+
let res = [];
|
|
227
|
+
let err = null;
|
|
228
|
+
propList.forEach(property => {
|
|
229
|
+
err = this.validateProperty(property, scope);
|
|
230
|
+
if (err) {
|
|
231
|
+
res.push(err);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return new Promise(function (resolve, reject) {
|
|
235
|
+
if (res.length !== 0) {
|
|
236
|
+
reject(err);
|
|
203
237
|
} else {
|
|
204
|
-
|
|
205
|
-
|
|
238
|
+
resolve();
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
validateProperty(scope, property) {
|
|
243
|
+
if (property === "recipients") {
|
|
244
|
+
if (typeof this.recipients === 'undefined' || this.recipients === null) {
|
|
245
|
+
return new _ValidationError.default("recipients", "undefined or null");
|
|
246
|
+
}
|
|
247
|
+
if (!_ValidationUtils.default.validateMaxItems(this.recipients, 100)) {
|
|
248
|
+
return new _ValidationError.default("recipients", "does not satisfy required maxItems constraint: 100");
|
|
249
|
+
}
|
|
250
|
+
if (!_ValidationUtils.default.validateMinItems(this.recipients, 1)) {
|
|
251
|
+
return new _ValidationError.default("recipients", "does not satisfy required minItems constraint: 1");
|
|
206
252
|
}
|
|
207
|
-
var res = [];
|
|
208
|
-
var err = null;
|
|
209
|
-
propList.forEach(function (property) {
|
|
210
|
-
err = _this.validateProperty(property, scope);
|
|
211
|
-
if (err) {
|
|
212
|
-
res.push(err);
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
return new Promise(function (resolve, reject) {
|
|
216
|
-
if (res.length !== 0) {
|
|
217
|
-
reject(err);
|
|
218
|
-
} else {
|
|
219
|
-
resolve();
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
253
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
if (property === "recipients") {
|
|
227
|
-
if (typeof this.recipients === 'undefined' || this.recipients === null) {
|
|
228
|
-
return new _ValidationError["default"]("recipients", "undefined or null");
|
|
229
|
-
}
|
|
230
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.recipients, 100)) {
|
|
231
|
-
return new _ValidationError["default"]("recipients", "does not satisfy required maxItems constraint: 100");
|
|
232
|
-
}
|
|
233
|
-
if (!_ValidationUtils["default"].validateMinItems(this.recipients, 1)) {
|
|
234
|
-
return new _ValidationError["default"]("recipients", "does not satisfy required minItems constraint: 1");
|
|
235
|
-
}
|
|
254
|
+
if (property === "emailSubject") {
|
|
255
|
+
if (typeof this.emailSubject === 'undefined' || this.emailSubject === null) {
|
|
256
|
+
return new _ValidationError.default("emailSubject", "undefined or null");
|
|
236
257
|
}
|
|
237
|
-
if (
|
|
238
|
-
|
|
239
|
-
return new _ValidationError["default"]("emailSubject", "undefined or null");
|
|
240
|
-
}
|
|
241
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.emailSubject, 100)) {
|
|
242
|
-
return new _ValidationError["default"]("emailSubject", "does not satisfy required maxLength constraint: 100");
|
|
243
|
-
}
|
|
258
|
+
if (!_ValidationUtils.default.validateMaxLength(this.emailSubject, 100)) {
|
|
259
|
+
return new _ValidationError.default("emailSubject", "does not satisfy required maxLength constraint: 100");
|
|
244
260
|
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.emailBody, 1000)) {
|
|
250
|
-
return new _ValidationError["default"]("emailBody", "does not satisfy required maxLength constraint: 1000");
|
|
251
|
-
}
|
|
261
|
+
}
|
|
262
|
+
if (property === "emailBody") {
|
|
263
|
+
if (typeof this.emailBody === 'undefined' || this.emailBody === null) {
|
|
264
|
+
return new _ValidationError.default("emailBody", "undefined or null");
|
|
252
265
|
}
|
|
253
|
-
if (
|
|
254
|
-
|
|
255
|
-
return new _ValidationError["default"]("$reserved", "undefined or null");
|
|
256
|
-
}
|
|
266
|
+
if (!_ValidationUtils.default.validateMaxLength(this.emailBody, 1000)) {
|
|
267
|
+
return new _ValidationError.default("emailBody", "does not satisfy required maxLength constraint: 1000");
|
|
257
268
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
269
|
+
}
|
|
270
|
+
if (property === "$reserved") {
|
|
271
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
272
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
262
273
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
274
|
+
}
|
|
275
|
+
if (property === "$objectType") {
|
|
276
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
277
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
267
278
|
}
|
|
268
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
269
279
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
274
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
275
|
-
var items, item, i, itemArr, discriminator;
|
|
276
|
-
if (data) {
|
|
277
|
-
obj = obj || new NotificationPolicy();
|
|
278
|
-
if (data.hasOwnProperty('recipients') && data.recipients !== null && data.recipients !== undefined) {
|
|
279
|
-
itemArr = [];
|
|
280
|
-
items = data.recipients;
|
|
281
|
-
for (i = 0; i < items.length; i++) {
|
|
282
|
-
item = _Recipient["default"].constructFromObject(items[i], undefined);
|
|
283
|
-
itemArr.push(item);
|
|
284
|
-
}
|
|
285
|
-
obj.setRecipients(itemArr);
|
|
286
|
-
}
|
|
287
|
-
if (data.hasOwnProperty('emailSubject') && data.emailSubject !== null && data.emailSubject !== undefined) {
|
|
288
|
-
obj.setEmailSubject(data['emailSubject']);
|
|
289
|
-
}
|
|
290
|
-
if (data.hasOwnProperty('emailBody') && data.emailBody !== null && data.emailBody !== undefined) {
|
|
291
|
-
obj.setEmailBody(data['emailBody']);
|
|
292
|
-
}
|
|
293
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
294
|
-
obj.$reserved = data['$reserved'];
|
|
295
|
-
}
|
|
296
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
297
|
-
obj.$objectType = data['$objectType'];
|
|
298
|
-
}
|
|
299
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
300
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
301
|
-
}
|
|
302
|
-
if (!callFromChild) {
|
|
303
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
304
|
-
for (var property in data) {
|
|
305
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
306
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
307
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
308
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
309
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
310
|
-
obj.$unknownFields[property] = data[property];
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
280
|
+
if (property === "$unknownFields") {
|
|
281
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
282
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
314
283
|
}
|
|
315
|
-
return obj;
|
|
316
284
|
}
|
|
285
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
286
|
+
}
|
|
287
|
+
}
|
|
317
288
|
|
|
318
|
-
/**
|
|
319
|
-
* Converts a given snake_case string to camelCase.
|
|
320
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
321
|
-
* @returns {string} - The converted string in camelCase format.
|
|
322
|
-
*/
|
|
323
|
-
}, {
|
|
324
|
-
key: "snakeToCamel",
|
|
325
|
-
value: function snakeToCamel(snakeStr) {
|
|
326
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
327
|
-
return match[1].toUpperCase();
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
}]);
|
|
331
|
-
}();
|
|
332
289
|
/**
|
|
333
290
|
* Email recipients list.
|
|
334
291
|
* @memberof NotificationPolicy
|
|
335
292
|
*/
|
|
293
|
+
exports.default = NotificationPolicy;
|
|
336
294
|
function _toJsonMapType(obj, forMutation) {
|
|
337
295
|
if (obj instanceof Map) {
|
|
338
|
-
return Object.fromEntries(Array.from(obj,
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
v = _ref2[1];
|
|
342
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
343
|
-
}));
|
|
344
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
345
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
296
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
297
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
298
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
346
299
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
347
300
|
}));
|
|
348
301
|
}
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
8
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
9
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
/*
|
|
12
12
|
* Nutanix Cloud Management Platform APIs
|
|
13
13
|
*
|
|
14
|
-
* OpenAPI spec version: 4.0.
|
|
14
|
+
* OpenAPI spec version: 4.0.3
|
|
15
15
|
*
|
|
16
16
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
17
|
*
|
|
18
|
-
* Open API Dev Platform Codegen version: 17.
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
19
19
|
*
|
|
20
20
|
* Do not edit the class manually.
|
|
21
21
|
*
|
|
@@ -26,7 +26,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
|
|
|
26
26
|
* @enum {string}
|
|
27
27
|
* @readonly
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
const Operator = {
|
|
30
30
|
/**
|
|
31
31
|
* Unknown value.
|
|
32
32
|
* @const
|
|
@@ -76,9 +76,7 @@ var Operator = {
|
|
|
76
76
|
*/
|
|
77
77
|
Operator.constructFromObject = function (obj) {
|
|
78
78
|
if (typeof obj === 'string' || obj instanceof String) {
|
|
79
|
-
|
|
80
|
-
return Operator[key] === obj;
|
|
81
|
-
});
|
|
79
|
+
let enumVal = Object.keys(Operator).find(key => Operator[key] === obj);
|
|
82
80
|
return enumVal === undefined || enumVal === null ? Operator.$UNKNOWN : Operator[enumVal];
|
|
83
81
|
} else {
|
|
84
82
|
throw new Error("Received object name is not an instance of String");
|
|
@@ -106,4 +104,4 @@ Operator.validate = function (obj) {
|
|
|
106
104
|
}
|
|
107
105
|
};
|
|
108
106
|
Object.freeze(Operator);
|
|
109
|
-
var _default = exports
|
|
107
|
+
var _default = exports.default = Operator;
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
8
8
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
9
9
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
/*
|
|
12
12
|
* Nutanix Cloud Management Platform APIs
|
|
13
13
|
*
|
|
14
|
-
* OpenAPI spec version: 4.0.
|
|
14
|
+
* OpenAPI spec version: 4.0.3
|
|
15
15
|
*
|
|
16
16
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
17
17
|
*
|
|
18
|
-
* Open API Dev Platform Codegen version: 17.
|
|
18
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
19
19
|
*
|
|
20
20
|
* Do not edit the class manually.
|
|
21
21
|
*
|
|
@@ -26,7 +26,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
|
|
|
26
26
|
* @enum {string}
|
|
27
27
|
* @readonly
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
const PredefinedType = {
|
|
30
30
|
/**
|
|
31
31
|
* Unknown value.
|
|
32
32
|
* @const
|
|
@@ -151,9 +151,7 @@ var PredefinedType = {
|
|
|
151
151
|
*/
|
|
152
152
|
PredefinedType.constructFromObject = function (obj) {
|
|
153
153
|
if (typeof obj === 'string' || obj instanceof String) {
|
|
154
|
-
|
|
155
|
-
return PredefinedType[key] === obj;
|
|
156
|
-
});
|
|
154
|
+
let enumVal = Object.keys(PredefinedType).find(key => PredefinedType[key] === obj);
|
|
157
155
|
return enumVal === undefined || enumVal === null ? PredefinedType.$UNKNOWN : PredefinedType[enumVal];
|
|
158
156
|
} else {
|
|
159
157
|
throw new Error("Received object name is not an instance of String");
|
|
@@ -196,4 +194,4 @@ PredefinedType.validate = function (obj) {
|
|
|
196
194
|
}
|
|
197
195
|
};
|
|
198
196
|
Object.freeze(PredefinedType);
|
|
199
|
-
var _default = exports
|
|
197
|
+
var _default = exports.default = PredefinedType;
|