@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -14,38 +13,36 @@ var _GetReportApiResponse = _interopRequireDefault(require("../models/opsmgmt/v4
|
|
|
14
13
|
var _NotifyReportApiResponse = _interopRequireDefault(require("../models/opsmgmt/v4/config/NotifyReportApiResponse"));
|
|
15
14
|
var _ListReportsApiResponse = _interopRequireDefault(require("../models/opsmgmt/v4/config/ListReportsApiResponse"));
|
|
16
15
|
var _CreateReportApiResponse = _interopRequireDefault(require("../models/opsmgmt/v4/config/CreateReportApiResponse"));
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
18
|
-
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
-
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); } }
|
|
23
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
-
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); }
|
|
26
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
27
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
28
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
29
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
30
|
-
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"); } /*
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
/*
|
|
31
18
|
* Nutanix Cloud Management Platform APIs
|
|
32
19
|
*
|
|
33
|
-
* OpenAPI spec version: 4.0.
|
|
20
|
+
* OpenAPI spec version: 4.0.4
|
|
34
21
|
*
|
|
35
22
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
36
23
|
*
|
|
37
|
-
* Open API Dev Platform Codegen version: 17.
|
|
24
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
38
25
|
*
|
|
39
26
|
* Do not edit the class manually.
|
|
40
27
|
*
|
|
41
28
|
*/
|
|
29
|
+
|
|
42
30
|
/**
|
|
43
31
|
* Reports service.
|
|
44
|
-
* @version 4.0.
|
|
32
|
+
* @version 4.0.4
|
|
45
33
|
* @class ReportsApi
|
|
46
34
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
class ReportsApi {
|
|
36
|
+
#headersToSkip;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
40
|
+
* their own fetch methods into the SDK
|
|
41
|
+
*/
|
|
42
|
+
static get ApiClient() {
|
|
43
|
+
return _ApiClient.ApiClient;
|
|
44
|
+
}
|
|
45
|
+
|
|
49
46
|
/**
|
|
50
47
|
* Constructs a new ReportsApi.
|
|
51
48
|
* @alias module:api/ReportsApi
|
|
@@ -53,15 +50,13 @@ var ReportsApi = exports.ReportsApi = /*#__PURE__*/function () {
|
|
|
53
50
|
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
54
51
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
55
52
|
*/
|
|
56
|
-
|
|
57
|
-
_classCallCheck(this, ReportsApi);
|
|
58
|
-
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
53
|
+
constructor(apiClient) {
|
|
59
54
|
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
this.#headersToSkip = new Set();
|
|
56
|
+
this.#headersToSkip.add('authorization');
|
|
57
|
+
this.#headersToSkip.add('cookie');
|
|
58
|
+
this.#headersToSkip.add('host');
|
|
59
|
+
this.#headersToSkip.add('user-agent');
|
|
65
60
|
}
|
|
66
61
|
|
|
67
62
|
/**
|
|
@@ -71,249 +66,239 @@ var ReportsApi = exports.ReportsApi = /*#__PURE__*/function () {
|
|
|
71
66
|
* @param {Object} args Additional Arguments
|
|
72
67
|
* @return {Promise<CreateReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateReportApiResponse } and HTTP response
|
|
73
68
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
postBody = body.toJson();
|
|
82
|
-
} else {
|
|
83
|
-
postBody = body;
|
|
84
|
-
}
|
|
85
|
-
// verify the required parameter 'body' is set
|
|
86
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
87
|
-
throw new Error("Invalid body when calling createReport");
|
|
88
|
-
}
|
|
89
|
-
var pathParams = {};
|
|
90
|
-
var queryParams = {};
|
|
91
|
-
var headersToInclude = {};
|
|
92
|
-
Object.keys(argMap).forEach(function (header) {
|
|
93
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
94
|
-
headersToInclude[header] = argMap[header];
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
98
|
-
var formParams = {};
|
|
99
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
100
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
101
|
-
var contentTypes = ['application/json'];
|
|
102
|
-
var accepts = ['application/json'];
|
|
103
|
-
var returnType = _CreateReportApiResponse["default"];
|
|
104
|
-
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
69
|
+
createReport(body, ...args) {
|
|
70
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
71
|
+
let postBody = null;
|
|
72
|
+
if (body instanceof _Report.default && typeof body.toJson === 'function') {
|
|
73
|
+
postBody = body.toJson();
|
|
74
|
+
} else {
|
|
75
|
+
postBody = body;
|
|
105
76
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
* Deletes the report associated with the given UUID.
|
|
110
|
-
* @param { String } extId UUID of the report.
|
|
111
|
-
* @param {Object} args Additional Arguments
|
|
112
|
-
* @return {Promise<DeleteReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteReportApiResponse } and HTTP response
|
|
113
|
-
*/
|
|
114
|
-
}, {
|
|
115
|
-
key: "deleteReportById",
|
|
116
|
-
value: function deleteReportById(extId) {
|
|
117
|
-
var _this2 = this;
|
|
118
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
119
|
-
var postBody = null;
|
|
120
|
-
// verify the required parameter 'extId' is set
|
|
121
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
122
|
-
throw new Error("Missing the required parameter 'extId' when calling deleteReportById");
|
|
123
|
-
}
|
|
124
|
-
var pathParams = {
|
|
125
|
-
'extId': extId
|
|
126
|
-
};
|
|
127
|
-
var queryParams = {};
|
|
128
|
-
var headersToInclude = {};
|
|
129
|
-
Object.keys(argMap).forEach(function (header) {
|
|
130
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
131
|
-
headersToInclude[header] = argMap[header];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
135
|
-
var formParams = {};
|
|
136
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
137
|
-
var contentTypes = [];
|
|
138
|
-
var accepts = ['application/json'];
|
|
139
|
-
var returnType = _DeleteReportApiResponse["default"];
|
|
140
|
-
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
77
|
+
// verify the required parameter 'body' is set
|
|
78
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
79
|
+
throw new Error("Invalid body when calling createReport");
|
|
141
80
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
* @return {Promise<DownloadReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DownloadReportApiResponse } and HTTP response
|
|
149
|
-
*/
|
|
150
|
-
}, {
|
|
151
|
-
key: "downloadReport",
|
|
152
|
-
value: function downloadReport(reportExtId) {
|
|
153
|
-
var _this3 = this;
|
|
154
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
155
|
-
var postBody = null;
|
|
156
|
-
// verify the required parameter 'reportExtId' is set
|
|
157
|
-
if (typeof reportExtId === 'undefined' || reportExtId === null) {
|
|
158
|
-
throw new Error("Missing the required parameter 'reportExtId' when calling downloadReport");
|
|
81
|
+
const pathParams = {};
|
|
82
|
+
const queryParams = {};
|
|
83
|
+
let headersToInclude = {};
|
|
84
|
+
Object.keys(argMap).forEach(header => {
|
|
85
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
86
|
+
headersToInclude[header] = argMap[header];
|
|
159
87
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
88
|
+
});
|
|
89
|
+
const headerParams = {
|
|
90
|
+
...headersToInclude
|
|
91
|
+
};
|
|
92
|
+
const formParams = {};
|
|
93
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
94
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
95
|
+
const contentTypes = ['application/json'];
|
|
96
|
+
const accepts = ['application/json'];
|
|
97
|
+
const returnType = _CreateReportApiResponse.default;
|
|
98
|
+
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Delete a report
|
|
103
|
+
* Deletes the report associated with the given UUID.
|
|
104
|
+
* @param { String } extId UUID of the report.
|
|
105
|
+
* @param {Object} args Additional Arguments
|
|
106
|
+
* @return {Promise<DeleteReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteReportApiResponse } and HTTP response
|
|
107
|
+
*/
|
|
108
|
+
deleteReportById(extId, ...args) {
|
|
109
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
110
|
+
const postBody = null;
|
|
111
|
+
// verify the required parameter 'extId' is set
|
|
112
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
113
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteReportById");
|
|
177
114
|
}
|
|
115
|
+
const pathParams = {
|
|
116
|
+
'extId': extId
|
|
117
|
+
};
|
|
118
|
+
const queryParams = {};
|
|
119
|
+
let headersToInclude = {};
|
|
120
|
+
Object.keys(argMap).forEach(header => {
|
|
121
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
122
|
+
headersToInclude[header] = argMap[header];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
const headerParams = {
|
|
126
|
+
...headersToInclude
|
|
127
|
+
};
|
|
128
|
+
const formParams = {};
|
|
129
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
130
|
+
const contentTypes = [];
|
|
131
|
+
const accepts = ['application/json'];
|
|
132
|
+
const returnType = _DeleteReportApiResponse.default;
|
|
133
|
+
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
134
|
+
}
|
|
178
135
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
136
|
+
/**
|
|
137
|
+
* Download a report
|
|
138
|
+
* Downloads a generated report by utilizing the given report type and UUID.
|
|
139
|
+
* @param { String } reportExtId UUID of the report.
|
|
140
|
+
* @param {Object} args Additional Arguments
|
|
141
|
+
* @return {Promise<DownloadReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DownloadReportApiResponse } and HTTP response
|
|
142
|
+
*/
|
|
143
|
+
downloadReport(reportExtId, ...args) {
|
|
144
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
145
|
+
const postBody = null;
|
|
146
|
+
// verify the required parameter 'reportExtId' is set
|
|
147
|
+
if (typeof reportExtId === 'undefined' || reportExtId === null) {
|
|
148
|
+
throw new Error("Missing the required parameter 'reportExtId' when calling downloadReport");
|
|
149
|
+
}
|
|
150
|
+
const pathParams = {
|
|
151
|
+
'reportExtId': reportExtId
|
|
152
|
+
};
|
|
153
|
+
const queryParams = {};
|
|
154
|
+
let headersToInclude = {};
|
|
155
|
+
Object.keys(argMap).forEach(header => {
|
|
156
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
157
|
+
headersToInclude[header] = argMap[header];
|
|
195
158
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
159
|
+
});
|
|
160
|
+
const headerParams = {
|
|
161
|
+
...headersToInclude
|
|
162
|
+
};
|
|
163
|
+
const formParams = {};
|
|
164
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
165
|
+
const contentTypes = [];
|
|
166
|
+
const accepts = ['application/pdf', 'application/zip', 'application/json'];
|
|
167
|
+
const returnType = _DownloadReportApiResponse.default;
|
|
168
|
+
return this.apiClient.callApi('/api/opsmgmt/v4.0/content/reports/{reportExtId}/file', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Get a report
|
|
173
|
+
* Fetches the report associated with the given UUID.
|
|
174
|
+
* @param { String } extId UUID of the report.
|
|
175
|
+
* @param {Object} args Additional Arguments
|
|
176
|
+
* @return {Promise<GetReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetReportApiResponse } and HTTP response
|
|
177
|
+
*/
|
|
178
|
+
getReportById(extId, ...args) {
|
|
179
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
180
|
+
const postBody = null;
|
|
181
|
+
// verify the required parameter 'extId' is set
|
|
182
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
183
|
+
throw new Error("Missing the required parameter 'extId' when calling getReportById");
|
|
213
184
|
}
|
|
185
|
+
const pathParams = {
|
|
186
|
+
'extId': extId
|
|
187
|
+
};
|
|
188
|
+
const queryParams = {};
|
|
189
|
+
let headersToInclude = {};
|
|
190
|
+
Object.keys(argMap).forEach(header => {
|
|
191
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
192
|
+
headersToInclude[header] = argMap[header];
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
const headerParams = {
|
|
196
|
+
...headersToInclude
|
|
197
|
+
};
|
|
198
|
+
const formParams = {};
|
|
199
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
200
|
+
const contentTypes = [];
|
|
201
|
+
const accepts = ['application/json'];
|
|
202
|
+
const returnType = _GetReportApiResponse.default;
|
|
203
|
+
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
204
|
+
}
|
|
214
205
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
var pathParams = {};
|
|
236
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
206
|
+
/**
|
|
207
|
+
* Get the list of reports
|
|
208
|
+
* Fetches a list of all the generated reports
|
|
209
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
210
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
211
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
212
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
213
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
214
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
215
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
216
|
+
* @param {Object} args Additional Arguments
|
|
217
|
+
* @return {Promise<ListReportsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListReportsApiResponse } and HTTP response
|
|
218
|
+
*/
|
|
219
|
+
listReports(opts, ...args) {
|
|
220
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
221
|
+
opts = opts || {};
|
|
222
|
+
const postBody = null;
|
|
223
|
+
const pathParams = {};
|
|
224
|
+
const queryParams = {
|
|
225
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
237
226
|
'$page': opts['$page']
|
|
238
|
-
} : {}),
|
|
227
|
+
} : {}),
|
|
228
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
239
229
|
'$limit': opts['$limit']
|
|
240
|
-
} : {}),
|
|
230
|
+
} : {}),
|
|
231
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
241
232
|
'$filter': opts['$filter']
|
|
242
|
-
} : {}),
|
|
233
|
+
} : {}),
|
|
234
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
243
235
|
'$orderby': opts['$orderby']
|
|
244
|
-
} : {}),
|
|
236
|
+
} : {}),
|
|
237
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
245
238
|
'$select': opts['$select']
|
|
246
|
-
} : {})
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
});
|
|
253
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
254
|
-
var formParams = {};
|
|
255
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
256
|
-
var contentTypes = [];
|
|
257
|
-
var accepts = ['application/json'];
|
|
258
|
-
var returnType = _ListReportsApiResponse["default"];
|
|
259
|
-
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Notify user with a report
|
|
264
|
-
* Notifies the specified recipients by emailing the generated reports for the given UUID.
|
|
265
|
-
* @param { Required<Pick<ReportNotificationSpec, 'recipientFormats' | 'recipients'>> & Partial<ReportNotificationSpec> } body specification
|
|
266
|
-
* @param { String } extId UUID of the report.
|
|
267
|
-
* @param {Object} args Additional Arguments
|
|
268
|
-
* @return {Promise<NotifyReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link NotifyReportApiResponse } and HTTP response
|
|
269
|
-
*/
|
|
270
|
-
}, {
|
|
271
|
-
key: "notifyReport",
|
|
272
|
-
value: function notifyReport(extId, body) {
|
|
273
|
-
var _this6 = this;
|
|
274
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
275
|
-
var postBody = null;
|
|
276
|
-
if (body instanceof _ReportNotificationSpec["default"] && typeof body.toJson === 'function') {
|
|
277
|
-
postBody = body.toJson();
|
|
278
|
-
} else {
|
|
279
|
-
postBody = body;
|
|
239
|
+
} : {})
|
|
240
|
+
};
|
|
241
|
+
let headersToInclude = {};
|
|
242
|
+
Object.keys(argMap).forEach(header => {
|
|
243
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
244
|
+
headersToInclude[header] = argMap[header];
|
|
280
245
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
246
|
+
});
|
|
247
|
+
const headerParams = {
|
|
248
|
+
...headersToInclude
|
|
249
|
+
};
|
|
250
|
+
const formParams = {};
|
|
251
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
252
|
+
const contentTypes = [];
|
|
253
|
+
const accepts = ['application/json'];
|
|
254
|
+
const returnType = _ListReportsApiResponse.default;
|
|
255
|
+
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Notify user with a report
|
|
260
|
+
* Notifies the specified recipients by emailing the generated reports for the given UUID.
|
|
261
|
+
* @param { Required<Pick<ReportNotificationSpec, 'recipientFormats' | 'recipients'>> & Partial<ReportNotificationSpec> } body specification
|
|
262
|
+
* @param { String } extId UUID of the report.
|
|
263
|
+
* @param {Object} args Additional Arguments
|
|
264
|
+
* @return {Promise<NotifyReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link NotifyReportApiResponse } and HTTP response
|
|
265
|
+
*/
|
|
266
|
+
notifyReport(extId, body, ...args) {
|
|
267
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
268
|
+
let postBody = null;
|
|
269
|
+
if (body instanceof _ReportNotificationSpec.default && typeof body.toJson === 'function') {
|
|
270
|
+
postBody = body.toJson();
|
|
271
|
+
} else {
|
|
272
|
+
postBody = body;
|
|
273
|
+
}
|
|
274
|
+
// verify the required parameter 'extId' is set
|
|
275
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
276
|
+
throw new Error("Missing the required parameter 'extId' when calling notifyReport");
|
|
307
277
|
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
313
|
-
* their own fetch methods into the SDK
|
|
314
|
-
*/
|
|
315
|
-
function get() {
|
|
316
|
-
return _ApiClient.ApiClient;
|
|
278
|
+
// verify the required parameter 'body' is set
|
|
279
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
280
|
+
throw new Error("Invalid body when calling notifyReport");
|
|
317
281
|
}
|
|
318
|
-
|
|
319
|
-
|
|
282
|
+
const pathParams = {
|
|
283
|
+
'extId': extId
|
|
284
|
+
};
|
|
285
|
+
const queryParams = {};
|
|
286
|
+
let headersToInclude = {};
|
|
287
|
+
Object.keys(argMap).forEach(header => {
|
|
288
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
289
|
+
headersToInclude[header] = argMap[header];
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
const headerParams = {
|
|
293
|
+
...headersToInclude
|
|
294
|
+
};
|
|
295
|
+
const formParams = {};
|
|
296
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
297
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
298
|
+
const contentTypes = ['application/json'];
|
|
299
|
+
const accepts = ['application/json'];
|
|
300
|
+
const returnType = _NotifyReportApiResponse.default;
|
|
301
|
+
return this.apiClient.callApi('/api/opsmgmt/v4.0/config/reports/{extId}/$actions/notify-recipients', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
exports.ReportsApi = ReportsApi;
|