@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
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Opsmgmt=t())}("undefined"==typeof self?this:self,()=>(()=>{var e={19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=s,s.default=s,s.stable=f,s.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var s;void 0===r&&(r=a()),l(e,"",0,[],void 0,0,r);try{s=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function u(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);void 0!==a.get?a.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,a])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,a,s,c,f){var p;if(c+=1,"object"===t(e)&&null!==e){for(p=0;p<a.length;p++)if(a[p]===e)return void u(r,e,o,s);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,s);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(p=0;p<e.length;p++)l(e[p],p,p,a,e,c,f);else{var d=Object.keys(e);for(p=0;p<d.length;p++){var y=d[p];l(e[y],y,p,a,e,c,f)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=a());var s,u=p(e,"",0,[],void 0,0,r)||e;try{s=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,d(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function p(e,i,a,s,l,f,d){var y;if(f+=1,"object"===t(e)&&null!==e){for(y=0;y<s.length;y++)if(s[y]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&f>d.depthLimit)return void u(n,e,i,l);if(void 0!==d.edgesLimit&&a+1>d.edgesLimit)return void u(n,e,i,l);if(s.push(e),Array.isArray(e))for(y=0;y<e.length;y++)p(e[y],y,y,s,e,f,d);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];p(e[b],b,y,s,e,f,d),h[b]=e[b]}if(void 0===l)return h;o.push([l,i,e]),l[i]=h}s.pop()}}function d(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout(function(){return r._retry()},n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var a=t[o-1],s=0;s<i+1;s++)t.push(a)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},545:()=>{},548:()=>{},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),a=n(340),s=n(695),u=n(388),l=n(19),c=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=g,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var d="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&h(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(n=i[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=d(n.slice(t+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)})}function w(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=y,p.parseString=v,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":y,"application/json":a},p.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=m,i(g.prototype),s(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},g.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),c.prototype.del=c.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),r.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function p(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function d(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var s=p(o),u=s.device,l=s.isUnc,c=s.isAbsolute,f=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=d(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=p(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=d(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return p(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),l=u,f=0;f<u;f++)if(i[f]!==a[f]){l=f;break}if(0==l)return t;var p=[];for(f=l;f<i.length;f++)p.push("..");return(p=p.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var y=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function v(e){return y.exec(e).slice(1)}h.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},h.isAbsolute=function(e){return"/"===e.charAt(0)},h.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return h.normalize(e)},h.relative=function(e,t){e=h.resolve(e).substr(1),t=h.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},h._makeLong=function(e){return e},h.dirname=function(e){var t=v(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},h.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},h.extname=function(e){return v(e)[3]},h.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+h.sep:"")+(e.base||"")},h.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},h.sep="/",h.delimiter=":",e.exports=o?c:h,e.exports.posix=h,e.exports.win32=c},799:()=>{},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<i;u=r[++n])h(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,r){if(m(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&$(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):h(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),j(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if($(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",k=!1,T=["{","}"];return d(n)&&(k=!0,T=["[","]"]),$(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==a.length||k&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=k?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)E(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))}),i}(e,n,r,s,a):a.map(function(t){return p(e,n,r,s,t,k)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,T)):T[0]+w+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),E(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function h(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function m(e){return void 0===e}function g(e){return w(e)&&"[object RegExp]"===k(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===k(e)}function j(e){return w(e)&&("[object Error]"===k(e)||e instanceof Error)}function $(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=d,t.isBoolean=y,t.isNull=h,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=b,t.isSymbol=function(e){return"symbol"===r(e)},t.isUndefined=m,t.isRegExp=g,t.isObject=w,t.isDate=O,t.isError=j,t.isFunction=$,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===r(e)||void 0===e},t.isBuffer=n(98);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[T((e=new Date).getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":"),[e.getDate(),P[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965:()=>{},975:()=>{}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>Td});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],y=0;y<256;++y)d.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&p.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return h(r)};var b=n(540),m=n.n(b),g=n(545),w=n.n(g),O=n(799),j=n.n(O),$=n(784),k=n.n($),T=n(548),P={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return P[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===P.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(P);const E=P;function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}var R=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validateMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMinimum",value:function(e,t){return!(null===t||e<t)}},{key:"validateExclusiveMaximum",value:function(e,t){return!(null===t||e>t)}},{key:"validateExclusiveMinimum",value:function(e,t){return!(null===t||e>t)}},{key:"validateMultipleOf",value:function(e,t){return!(null===t||e%t===0)}},{key:"validateMaxLength",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinLength",value:function(e,t){return!(null===t||e.length<t)}},{key:"validatePattern",value:function(e,t){return!(null===t||null===e.match(t))}},{key:"validateMaxItems",value:function(e,t){return!(null===t||e.length>t)}},{key:"validateMinItems",value:function(e,t){return!(null===t||e.length<t)}},{key:"validateUniqueItems",value:function(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}],null&&F(e.prototype,null),t&&F(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function I(e){var t=function(e){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(t)?t:t+""}var _=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=n},(t=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"toJson",value:function(){return{name:this.getName(),message:this.getMessage()}}}])&&D(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,J(r.key),r)}}function J(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}var W=new WeakSet,z=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,W),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return U(U(U({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,128))return new _("name","does not satisfy required maxLength constraint: 128");if(!R.validateMinLength(this.name,3))return new _("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=U({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&L(t.prototype,n),r&&L(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function K(e,t,n){return(t=Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y(r.key),r)}}function Y(e){var t=function(e){if("object"!=V(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==V(t)?t:t+""}function X(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")}z.prototype.name=void 0,z.prototype.value=!1,z.prototype.$reserved=void 0,z.prototype.$objectType=void 0,z.prototype.$unknownFields=void 0;var Z=new WeakSet,Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Z),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return G(G({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:X(Z,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:X(Z,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("map","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("map")&&null!==t.map&&void 0!==t.map&&n.setMap(t.map),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=G({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&q(t.prototype,n),r&&q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===V(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,se(r.key),r)}}function se(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(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")}Q.prototype.map=void 0,Q.prototype.$reserved=void 0,Q.prototype.$objectType=void 0,Q.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oe(oe(oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ue(le,this,fe).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):ue(le,this,fe).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,128))return new _("name","does not satisfy required maxLength constraint: 128");if(!R.validateMinLength(this.name,3))return new _("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)s.setValue([]);else{for(i=[],a=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(a){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Q.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":s.setValue(t.value);break;case"object":s.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=oe({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}ce.prototype.name=void 0,ce.prototype.value=void 0,ce.prototype.$reserved=void 0,ce.prototype.$objectType=void 0,ce.prototype.$unknownFields=void 0;var pe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pe).find(function(t){return pe[t]===e});return null==t?pe.$UNKNOWN:pe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pe.$UNKNOWN:case pe.$REDACTED:case pe.INFO:case pe.WARNING:case pe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(pe);const de=pe;function ye(e){return ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ye(e)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach(function(t){be(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function be(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ge(r.key),r)}}function ge(e){var t=function(e){if("object"!=ye(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ye(t)?t:t+""}var we=new WeakSet,Oe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,we),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ve(ve(ve(ve(ve({},void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("severity","undefined or null"):new _("locale","undefined or null"):new _("message","undefined or null"):new _("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(de.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ve({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&me(t.prototype,n),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach(function(t){Te(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Te(e,t,n){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e){if("object"!=je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==je(t)?t:t+""}Oe.prototype.code=void 0,Oe.prototype.message=void 0,Oe.prototype.locale="en_US",Oe.prototype.severity=void 0,Oe.prototype.$reserved=void 0,Oe.prototype.$objectType=void 0,Oe.prototype.$unknownFields=void 0;var Se=new WeakSet,Fe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Se),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHref",value:function(){return this.href}},{key:"setHref",value:function(e){this.href=e}},{key:"getRel",value:function(){return this.rel}},{key:"setRel",value:function(e){this.rel=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ke(ke(ke({},void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{}),void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("rel","undefined or null"):new _("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&n.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&n.setRel(t.rel),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ke({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Pe(t.prototype,n),r&&Pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ce(e){return Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ce(e)}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach(function(t){De(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function De(e,t,n){return(t=_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_e(r.key),r)}}function _e(e){var t=function(e){if("object"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ce(t)?t:t+""}Fe.prototype.href=void 0,Fe.prototype.rel=void 0,Fe.prototype.$reserved=void 0,Fe.prototype.$objectType=void 0,Fe.prototype.$unknownFields=void 0;var Ne,Me=new WeakSet,Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Me),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ae(Ae(Ae(Ae(Ae(Ae({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new _("flags","undefined or null");if(!R.validateMaxItems(this.flags,20))return new _("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new _("links","undefined or null");if(!R.validateMaxItems(this.links,20))return new _("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new _("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new _("messages","undefined or null");if(!R.validateMaxItems(this.messages,20))return new _("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new _("extraInfo","undefined or null");if(!R.validateMaxItems(this.extraInfo,20))return new _("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=z.constructFromObject(n[o],void 0),i.push(r);a.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Fe.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&a.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);a.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Ae({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xe(){xe=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),Le(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Le(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=i[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=Ve(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)})}return e[Symbol.replace].call(this,n,o)},xe.apply(this,arguments)}function Le(e,t){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach(function(t){ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ze(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e){return Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve(e)}function Be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return He(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ke(r.key),r)}}function Ke(e){var t=function(e){if("object"!=Ve(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ve(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ve(t)?t:t+""}function qe(e,t,n){Ye(e,t),t.set(e,n)}function Ye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xe(e,t){return e.get(Qe(e,t))}function Ze(e,t,n){return e.set(Qe(e,t),n),n}function Qe(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")}Ue.prototype.flags=void 0,Ue.prototype.links=void 0,Ue.prototype.totalAvailableResults=void 0,Ue.prototype.messages=void 0,Ue.prototype.extraInfo=void 0,Ue.prototype.$reserved=void 0,Ue.prototype.$objectType=void 0,Ue.prototype.$unknownFields=void 0,m()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ye(this,n=ut),n.add(this),qe(this,et,void 0),qe(this,tt,void 0),qe(this,nt,void 0),qe(this,rt,void 0),qe(this,ot,void 0),qe(this,it,void 0),qe(this,at,void 0),qe(this,st,void 0),Ze(st,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Ze(ot,this,3e4),Ze(it,this,3e4),Ze(at,this,108e5),this.readTimeout=Xe(it,this),this.connectTimeout=Xe(ot,this),this.cache=!0,Ze(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Ze(nt,this,null),this.username=null,this.password=null,Ze(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Xe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Ze(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Ze(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Ze(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Ze(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Xe(et,this)&&""!==this.host&&""!==this.port?r=Xe(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)})}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=Be(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,a,s,u,l,c,f,p){var d=this,y=this.buildUrl(e,o),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Qe(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),h.query(Qe(ut,this,dt).call(this,i)),h.set(this.defaultHeaders).set(Qe(ut,this,dt).call(this,a)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==a["NTNX-Request-Id"]&&void 0!==a["NTNX-Request-Id"])){var b=v();h.set(Qe(ut,this,dt).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||(this.downloadDestination=".",h.set(Qe(ut,this,dt).call(this,{"User-Agent":"Nutanix-opsmgmt-js-client/4.0.2"}))),this.requestAgent&&h.agent(this.requestAgent);var g={};g.response=Qe(ut,this,mt).call(this,this.connectTimeout,Xe(ot,this)),g.deadline=Qe(ut,this,mt).call(this,this.readTimeout,Xe(it,this)),h.timeout(g);var w=a.hasOwnProperty("Content-Type")?a["Content-Type"]:Qe(ut,this,ft).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Request URL :",r,y),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,Qe(ut,this,$t),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Qe(ut,this,dt).call(this,s));else if("multipart/form-data"==w){var O=Qe(ut,this,dt).call(this,s);for(var $ in O)O.hasOwnProperty($)&&(Qe(ut,this,pt).call(this,O[$])?h.attach($,O[$]):h.field($,O[$]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var k;try{k=n(965)}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"Error fetching steam/web")}u instanceof k.ReadableStream?u.pipeTo(new k.WritableStream({write:function(e){h.write(e)},close:function(){Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise(function(t,n){h.on("error",function(e){Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",function(r){Qe(ut,d,kt).call(d,r,e,i,p,t,n)})})}u&&h.send(u)}"Blob"==typeof p?h.responseType("blob"):"String"===p&&h.responseType("string"),Qe(ut,this,wt).call(this,h),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var T=a.hasOwnProperty("Accept")&&null!=a.Accept?a.Accept:f.join(", "),P=["application/octet-stream","application/pdf","application/zip"];return T&&h.accept(T),new Promise(function(o,a){h.buffer(!1).redirects(0).retry(d.maxRetryAttempts,d.retryInterval,[]).withCredentials(d.withCredentials).on("error",function(e){Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,null,"Caught the following error :",e)}).end(function(s,u){if(s)Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,null,"Caught error during the request!"),Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,s),null!==s.response&&void 0!==s.response?s.data=Qe(ut,d,vt).call(d,s.response,p):s.data=Qe(ut,d,ht).call(d,s),a(s);else{Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Response Status :",u.status),Qe(ut,d,Ot).call(d,Xe(st,d).DEBUG,Qe(ut,d,$t),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),P.includes(l))if(m){var c;try{c=n(965)}catch(e){Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,"Error fetching steam/web")}if(d.downloadDestination instanceof c.WritableStream){var f=d.downloadDestination.getWriter();try{u.on("data",function(e){f.write(e)})}catch(e){Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,"Issue while downloading file",e)}u.on("end",function(){Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Finished streaming response"),f.close();var e=Qe(ut,d,vt).call(d,u,p);o({data:e,response:u})}).on("error",function(e){Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,"Caught the following error :",e),e.data=Qe(ut,d,ht).call(d,e),a(e)})}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Qe(ut,d,Ot).call(d,Xe(st,d).ERROR,null,y),a(y)}}else{var v=d.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Qe(ut,d,Tt).call(d,u,b,v,o,a,p)}else if(302==u.status){var g=d.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=d;Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(h.header),u.headers.hasOwnProperty("x-redirect-token")&&(Qe(ut,d,Ot).call(d,Xe(st,d).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.withCredentials(d.withCredentials),O.buffer(!1);var $=j().createWriteStream(g);O.pipe($),O.on("response",function(e){Qe(ut,w,Ot).call(w,Xe(st,w).INFO,null,"Received response after redirection :",e.status),Qe(ut,w,Tt).call(w,e,$,g,o,a,p)})}else Qe(ut,d,kt).call(d,u,e,i,p,o,a)}})})}}],i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find(function(e){return e.toLowerCase()===n});return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map(function(t){return e.convertToType(t,r)})}if("object"===Ve(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var s={};for(var a in t)if(t.hasOwnProperty(a)){var u=e.convertToType(a,o),l=e.convertToType(t[a],i);s[u]=l}return s}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],o&&Ge(r.prototype,o),i&&Ge(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ft(e){for(var t=0;t<e.length;t++)if(Qe(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function pt(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof T.Blob&&e instanceof T.Blob||"function"==typeof File&&e instanceof File}function dt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Qe(ut,this,pt).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function yt(e,t){var n=this;t.forEach(function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Qe(ut,n,Ot).call(n,Xe(st,n).DEBUG,null,"oauth2 applied to request");break;default:throw Qe(ut,n,Ot).call(n,Xe(st,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}})}function ht(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function vt(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new T.Blob([e.text],{type:e.headers["content-type"]});var n=new z;n.name="hasError",n.value=!1;var r=[n],o=new Ue;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===Ve(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Ne.convertToType(i,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function mt(e,t){return e<=0?e=t:e>Xe(at,this)&&(e=Xe(at,this)),e}function gt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=Be(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}Ze(tt,this,t),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Retained cookie :",t)}else Ze(tt,this,null)}function wt(e){null!=Xe(tt,this)&&e.set(Qe(ut,this,dt).call(this,{Cookie:Xe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===Ve(e)&&"key"in e&&"value"in e&&"symbol"===Ve(e.value)||(e=Xe(st,this).INFO),!Qe(ut,this,jt).call(this,e)){r=r.map(function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)});var i=r.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==Xe(nt,this)&&null!==Xe(nt,this)&&"function"==typeof Xe(nt,this).log?Xe(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Xe(st,this).DEBUG}function $t(e){if("object"!==Ve(e))return e;var t="\n";return e&&Object.keys(e).forEach(function(n){t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function kt(e,t,n,r,o,i){try{var a=Qe(ut,this,vt).call(this,e,r);Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Response Status :",e.status),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,Qe(ut,this,$t),"Response Headers :",e.headers),Qe(ut,this,gt).call(this,e||{}),Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Response Body :",a),204==e.status&&null==a?o({data:a,response:e}):e.ok&&null!=a?(this.addEtagToReservedMap(e,a),Qe(ut,this,bt).call(this,a,t,n),o({data:a,response:e})):(Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,a),i(We(We({},e.error),{},{data:a})))}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).DEBUG,null,"Caught error while processing response!"),Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,e),e.data=Qe(ut,this,ht).call(this,e),i(e)}}function Tt(e,t,n,r,o,i){var a=this;Qe(ut,this,Ot).call(this,Xe(st,this).INFO,null,"Streaming response to : ",n);try{e.on("data",function(e){t.write(e)})}catch(e){Qe(ut,this,Ot).call(this,Xe(st,this).ERROR,null,"Issue while downloading file",e)}var s=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(xe(/.*filename="(.*)".*/,{filename:1})),c=k().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,s.data={path:k().parse(u),$objectType:"Path"};var f=new z;f.name="hasError",f.value=!1;var p=[f],d=new Ue;d.flags=p,s.metadata=d}e.on("end",function(){Qe(ut,a,Ot).call(a,Xe(st,a).INFO,null,"Finished streaming response"),0!==u.length?(Qe(ut,a,Ot).call(a,Xe(st,a).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:s,response:e})):(Qe(ut,a,Ot).call(a,Xe(st,a).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:s,response:e}))}),e.on("error",function(e){Qe(ut,a,Ot).call(a,Xe(st,a).ERROR,null,"Caught the following error :",e),error.data=Qe(ut,a,ht).call(a,error),o(e)})}function Pt(e){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(e)}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function St(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach(function(t){Ct(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ct(e,t,n){return(t=At(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,At(r.key),r)}}function At(e){var t=function(e){if("object"!=Pt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pt(t)?t:t+""}function Dt(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")}Ne=lt,lt.instance=new lt;var It=new WeakSet,_t=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,It),this.$objectType="opsmgmt.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ft(Ft(Ft(Ft(Ft(Ft(Ft({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{}),void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{}),void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{}),!1===e?void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Dt(It,this,Nt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Dt(It,this,Nt).call(this,this.getArgumentsMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("argumentsMap","undefined or null"):new _("errorGroup","undefined or null"):new _("locale","undefined or null"):new _("code","undefined or null"):new _("severity","undefined or null"):new _("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(de.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ft({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Rt(t.prototype,n),r&&Rt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Nt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Et(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Pt(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Mt(e){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(e)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach(function(t){Lt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lt(e,t,n){return(t=Wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wt(r.key),r)}}function Wt(e){var t=function(e){if("object"!=Mt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mt(t)?t:t+""}_t.prototype.message=void 0,_t.prototype.severity=void 0,_t.prototype.code=void 0,_t.prototype.locale="en_US",_t.prototype.errorGroup=void 0,_t.prototype.argumentsMap=void 0,_t.prototype.$reserved=void 0,_t.prototype.$objectType=void 0,_t.prototype.$unknownFields=void 0;var zt=new WeakSet,Vt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,zt),this.$objectType="opsmgmt.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xt(xt(xt(xt({},void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("attributePath","undefined or null"):new _("message","undefined or null"):new _("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&n.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&n.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=xt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Jt(t.prototype,n),r&&Jt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bt(e){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(e)}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach(function(t){Kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kt(e,t,n){return(t=Yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yt(r.key),r)}}function Yt(e){var t=function(e){if("object"!=Bt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bt(t)?t:t+""}function Xt(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")}Vt.prototype.location=void 0,Vt.prototype.message=void 0,Vt.prototype.attributePath=void 0,Vt.prototype.$reserved=void 0,Vt.prototype.$objectType=void 0,Vt.prototype.$unknownFields=void 0;var Zt=new WeakSet,Qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Zt),this.$objectType="opsmgmt.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Gt(Gt(Gt(Gt(Gt(Gt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Xt(Zt,this,en).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("validationErrorMessages","undefined or null"):new _("path","undefined or null"):new _("error","undefined or null"):new _("statusCode","undefined or null"):new _("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&a.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&a.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&a.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&a.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=Vt.constructFromObject(n[o],void 0),i.push(r);a.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Gt({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&qt(t.prototype,n),r&&qt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function en(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nn(e){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(e)}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach(function(t){an(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function an(e,t,n){return(t=un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,un(r.key),r)}}function un(e){var t=function(e){if("object"!=nn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nn(t)?t:t+""}function ln(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")}Qt.prototype.timestamp=void 0,Qt.prototype.statusCode=void 0,Qt.prototype.error=void 0,Qt.prototype.path=void 0,Qt.prototype.validationErrorMessages=void 0,Qt.prototype.$reserved=void 0,Qt.prototype.$objectType=void 0,Qt.prototype.$unknownFields=void 0;var cn=new WeakSet,fn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,cn),this.$objectType="opsmgmt.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return on(on({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ln(cn,this,pn).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(function(e){return void 0!==e.toJson?e.toJson():e}):ln(cn,this,pn).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)s.setError([]);else{for(i=[],a=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:nn(n[0]),o=0;o<n.length;o++){if("opsmgmt.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=_t.constructFromObject(n[o],void 0),i.push(r)}s.setError(i)}else{if("opsmgmt.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:nn(t.error)))throw"Unknown datatype "+a+" in data";s.setError(Qt.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=on({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&sn(t.prototype,n),r&&sn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===nn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach(function(t){vn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vn(e,t,n){return(t=mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}function mn(e){var t=function(e){if("object"!=dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dn(t)?t:t+""}fn.prototype.error=void 0,fn.prototype.$reserved=void 0,fn.prototype.$objectType=void 0,fn.prototype.$unknownFields=void 0;var gn=new WeakSet,wn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,gn),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hn(hn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new _("extId","undefined or null");if(!R.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new _("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=hn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&bn(t.prototype,n),r&&bn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach(function(t){Tn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tn(e,t,n){return(t=En(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,En(r.key),r)}}function En(e){var t=function(e){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}function Sn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sn=function(){return!!e})()}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cn(e,t)}function Rn(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")}wn.prototype.extId=void 0,wn.prototype.$reserved=void 0,wn.prototype.$objectType=void 0,wn.prototype.$unknownFields=void 0;var An=new WeakSet,Dn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fn(t),function(e,t){if(t&&("object"==jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sn()?Reflect.construct(t,n||[],Fn(e).constructor):t.apply(e,n))}(this,t),An),e.$objectType="opsmgmt.v4.config.UpdateReportConfigApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kn(kn(kn({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Rn(An,this,In).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Rn(An,this,In).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jn(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=kn({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pn(n.prototype,r),o&&Pn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function In(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return On(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?On(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===jn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function _n(e){return _n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_n(e)}function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach(function(t){Un(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Un(e,t,n){return(t=Ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ln(r.key),r)}}function Ln(e){var t=function(e){if("object"!=_n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_n(t)?t:t+""}Dn.prototype.metadata=void 0,Dn.prototype.data=void 0,Dn.prototype.$reserved=void 0,Dn.prototype.$objectType=void 0,Dn.prototype.$unknownFields=void 0;var Jn=new WeakSet,Wn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Jn),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTenantId",value:function(){return this.tenantId}},{key:"setTenantId",value:function(e){this.tenantId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return!1===e?Mn(Mn({},void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new _("tenantId","undefined or null");if(!R.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&n.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Mn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&xn(t.prototype,n),r&&xn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zn(e){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zn(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(n),!0).forEach(function(t){Hn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hn(e,t,n){return(t=Kn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kn(r.key),r)}}function Kn(e){var t=function(e){if("object"!=zn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zn(t)?t:t+""}function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qn=function(){return!!e})()}function Yn(e){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yn(e)}function Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}Wn.prototype.tenantId=void 0,Wn.prototype.$reserved=void 0,Wn.prototype.$objectType=void 0,Wn.prototype.$unknownFields=void 0;var Zn=new WeakSet,Qn=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Yn(t),function(e,t){if(t&&("object"==zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qn()?Reflect.construct(t,n||[],Yn(e).constructor):t.apply(e,n))}(this,t),Zn),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xn(e,t)}(t,e),n=t,r=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"toJson",value:function(e){return!1===e?Bn(Bn(Bn(Bn({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}):{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new _("extId","undefined or null");if(null==e){if(!R.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===E.update&&!R.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new _("links","undefined or null");if(!R.validateMaxItems(this.links,20))return new _("links","does not satisfy required maxItems constraint: 20")}return new _(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Wn.constructFromObject(e,a,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&a.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Fe.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(!s)for(var u in a.$unknownFields=Bn({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Gn(n.prototype,r),o&&Gn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Wn);Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var er={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",CLUSTER:"CLUSTER",HOST:"HOST",CONTAINER:"CONTAINER",DISK:"DISK",VIRTUAL_DISK:"VIRTUAL_DISK",VCENTER_VM:"VCENTER_VM",VCENTER_CLUSTER:"VCENTER_CLUSTER",VCENTER_HOST:"VCENTER_HOST",VCENTER_DATASTORE:"VCENTER_DATASTORE",ALERT:"ALERT",EVENT:"EVENT",AUDIT:"AUDIT",PLAYBOOK:"PLAYBOOK",VOLUME_GROUPS:"VOLUME_GROUPS",CONFIG:"CONFIG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(er).find(function(t){return er[t]===e});return null==t?er.$UNKNOWN:er[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case er.$UNKNOWN:case er.$REDACTED:case er.VM:case er.CLUSTER:case er.HOST:case er.CONTAINER:case er.DISK:case er.VIRTUAL_DISK:case er.VCENTER_VM:case er.VCENTER_CLUSTER:case er.VCENTER_HOST:case er.VCENTER_DATASTORE:case er.ALERT:case er.EVENT:case er.AUDIT:case er.PLAYBOOK:case er.VOLUME_GROUPS:case er.CONFIG:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|VM|CLUSTER|HOST|CONTAINER|DISK|VIRTUAL_DISK|VCENTER_VM|VCENTER_CLUSTER|VCENTER_HOST|VCENTER_DATASTORE|ALERT|EVENT|AUDIT|PLAYBOOK|VOLUME_GROUPS|CONFIG }")}}};Object.freeze(er);const tr=er;function nr(e){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nr(e)}function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach(function(t){ir(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ir(e,t,n){return(t=sr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sr(r.key),r)}}function sr(e){var t=function(e){if("object"!=nr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nr(t)?t:t+""}var ur=new WeakSet,lr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ur),this.emailAddress=t,this.$objectType="opsmgmt.v4.config.Recipient",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEmailAddress",value:function(){return this.emailAddress}},{key:"setEmailAddress",value:function(e){this.emailAddress=e}},{key:"getRecipientName",value:function(){return this.recipientName}},{key:"setRecipientName",value:function(e){this.recipientName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return or(or(or({},void 0!==this.getEmailAddress()&&null!==this.getEmailAddress()?{emailAddress:this.getEmailAddress()}:{}),void 0!==this.getRecipientName()&&null!==this.getRecipientName()?{recipientName:this.getRecipientName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["emailAddress"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("emailAddress"===t){if(void 0===this.emailAddress||null===this.emailAddress)return new _("emailAddress","undefined or null");if(!R.validatePattern(this.emailAddress,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new _("emailAddress","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("recipientName"===t){if(void 0===this.recipientName||null===this.recipientName)return new _("recipientName","undefined or null");if(!R.validateMaxLength(this.recipientName,64))return new _("recipientName","does not satisfy required maxLength constraint: 64")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("emailAddress")&&null!==t.emailAddress&&void 0!==t.emailAddress&&n.setEmailAddress(t.emailAddress),t.hasOwnProperty("recipientName")&&null!==t.recipientName&&void 0!==t.recipientName&&n.setRecipientName(t.recipientName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=or({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ar(t.prototype,n),r&&ar(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();lr.prototype.emailAddress=void 0,lr.prototype.recipientName=void 0,lr.prototype.$reserved=void 0,lr.prototype.$objectType=void 0,lr.prototype.$unknownFields=void 0;var cr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PDF:"PDF",CSV:"CSV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(cr).find(function(t){return cr[t]===e});return null==t?cr.$UNKNOWN:cr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case cr.$UNKNOWN:case cr.$REDACTED:case cr.PDF:case cr.CSV:return;default:throw new Error("Invalid : must be ReportFormat.{ $UNKNOWN|$REDACTED|PDF|CSV }")}}};Object.freeze(cr);const fr=cr;function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dr(Object(n),!0).forEach(function(t){hr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hr(e,t,n){return(t=br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,br(r.key),r)}}function br(e){var t=function(e){if("object"!=pr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pr(t)?t:t+""}var mr=new WeakSet,gr=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,mr),this.recipients=t,this.$objectType="opsmgmt.v4.config.NotificationPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRecipientFormats",value:function(){return this.recipientFormats}},{key:"setRecipientFormats",value:function(e){this.recipientFormats=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getEmailSubject",value:function(){return this.emailSubject}},{key:"setEmailSubject",value:function(e){this.emailSubject=e}},{key:"getEmailBody",value:function(){return this.emailBody}},{key:"setEmailBody",value:function(e){this.emailBody=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yr(yr(yr(yr(yr({},void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEmailSubject()&&null!==this.getEmailSubject()?{emailSubject:this.getEmailSubject()}:{}),void 0!==this.getEmailBody()&&null!==this.getEmailBody()?{emailBody:this.getEmailBody()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["recipients"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("recipientFormats"===t){if(void 0===this.recipientFormats||null===this.recipientFormats)return new _("recipientFormats","undefined or null");if(!R.validateMaxItems(this.recipientFormats,2))return new _("recipientFormats","does not satisfy required maxItems constraint: 2")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new _("recipients","undefined or null");if(!R.validateMaxItems(this.recipients,100))return new _("recipients","does not satisfy required maxItems constraint: 100");if(!R.validateMinItems(this.recipients,1))return new _("recipients","does not satisfy required minItems constraint: 1")}if("emailSubject"===t){if(void 0===this.emailSubject||null===this.emailSubject)return new _("emailSubject","undefined or null");if(!R.validateMaxLength(this.emailSubject,100))return new _("emailSubject","does not satisfy required maxLength constraint: 100")}if("emailBody"===t){if(void 0===this.emailBody||null===this.emailBody)return new _("emailBody","undefined or null");if(!R.validateMaxLength(this.emailBody,1e3))return new _("emailBody","does not satisfy required maxLength constraint: 1000")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("recipientFormats")&&null!==t.recipientFormats&&void 0!==t.recipientFormats){for(i=[],n=t.recipientFormats,o=0;o<n.length;o++)r=fr.constructFromObject(n[o],void 0),i.push(r);a.setRecipientFormats(i)}if(t.hasOwnProperty("recipients")&&null!==t.recipients&&void 0!==t.recipients){for(i=[],n=t.recipients,o=0;o<n.length;o++)r=lr.constructFromObject(n[o],void 0),i.push(r);a.setRecipients(i)}if(t.hasOwnProperty("emailSubject")&&null!==t.emailSubject&&void 0!==t.emailSubject&&a.setEmailSubject(t.emailSubject),t.hasOwnProperty("emailBody")&&null!==t.emailBody&&void 0!==t.emailBody&&a.setEmailBody(t.emailBody),t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=yr({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&vr(t.prototype,n),r&&vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function wr(e){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wr(e)}function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach(function(t){$r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $r(e,t,n){return(t=Tr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tr(r.key),r)}}function Tr(e){var t=function(e){if("object"!=wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wr(t)?t:t+""}gr.prototype.recipientFormats=void 0,gr.prototype.recipients=void 0,gr.prototype.emailSubject=void 0,gr.prototype.emailBody=void 0,gr.prototype.$reserved=void 0,gr.prototype.$objectType=void 0,gr.prototype.$unknownFields=void 0;var Pr=new WeakSet,Er=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Pr),this.$objectType="opsmgmt.v4.config.ReportCustomization",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHeaderHtml",value:function(){return this.headerHtml}},{key:"setHeaderHtml",value:function(e){this.headerHtml=e}},{key:"getFooterHtml",value:function(){return this.footerHtml}},{key:"setFooterHtml",value:function(e){this.footerHtml=e}},{key:"getCssStyleSheet",value:function(){return this.cssStyleSheet}},{key:"setCssStyleSheet",value:function(e){this.cssStyleSheet=e}},{key:"getLogoImageExtId",value:function(){return this.logoImageExtId}},{key:"setLogoImageExtId",value:function(e){this.logoImageExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return jr(jr(jr(jr(jr({},void 0!==this.getHeaderHtml()&&null!==this.getHeaderHtml()?{headerHtml:this.getHeaderHtml()}:{}),void 0!==this.getFooterHtml()&&null!==this.getFooterHtml()?{footerHtml:this.getFooterHtml()}:{}),void 0!==this.getCssStyleSheet()&&null!==this.getCssStyleSheet()?{cssStyleSheet:this.getCssStyleSheet()}:{}),void 0!==this.getLogoImageExtId()&&null!==this.getLogoImageExtId()?{logoImageExtId:this.getLogoImageExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("headerHtml"===t&&(void 0===this.headerHtml||null===this.headerHtml))return new _("headerHtml","undefined or null");if("footerHtml"===t&&(void 0===this.footerHtml||null===this.footerHtml))return new _("footerHtml","undefined or null");if("cssStyleSheet"===t&&(void 0===this.cssStyleSheet||null===this.cssStyleSheet))return new _("cssStyleSheet","undefined or null");if("logoImageExtId"===t){if(void 0===this.logoImageExtId||null===this.logoImageExtId)return new _("logoImageExtId","undefined or null");if(!R.validatePattern(this.logoImageExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("logoImageExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("headerHtml")&&null!==t.headerHtml&&void 0!==t.headerHtml&&n.setHeaderHtml(t.headerHtml),t.hasOwnProperty("footerHtml")&&null!==t.footerHtml&&void 0!==t.footerHtml&&n.setFooterHtml(t.footerHtml),t.hasOwnProperty("cssStyleSheet")&&null!==t.cssStyleSheet&&void 0!==t.cssStyleSheet&&n.setCssStyleSheet(t.cssStyleSheet),t.hasOwnProperty("logoImageExtId")&&null!==t.logoImageExtId&&void 0!==t.logoImageExtId&&n.setLogoImageExtId(t.logoImageExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=jr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&kr(t.prototype,n),r&&kr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Er.prototype.headerHtml=void 0,Er.prototype.footerHtml=void 0,Er.prototype.cssStyleSheet=void 0,Er.prototype.logoImageExtId=void 0,Er.prototype.$reserved=void 0,Er.prototype.$objectType=void 0,Er.prototype.$unknownFields=void 0;var Sr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NONE:"NONE",DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",YEARLY:"YEARLY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Sr).find(function(t){return Sr[t]===e});return null==t?Sr.$UNKNOWN:Sr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Sr.$UNKNOWN:case Sr.$REDACTED:case Sr.NONE:case Sr.DAILY:case Sr.WEEKLY:case Sr.MONTHLY:case Sr.YEARLY:return;default:throw new Error("Invalid : must be ScheduleInterval.{ $UNKNOWN|$REDACTED|NONE|DAILY|WEEKLY|MONTHLY|YEARLY }")}}};Object.freeze(Sr);const Fr=Sr;function Cr(e){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(e)}function Rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(n),!0).forEach(function(t){Dr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dr(e,t,n){return(t=_r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_r(r.key),r)}}function _r(e){var t=function(e){if("object"!=Cr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cr(t)?t:t+""}function Nr(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")}var Mr=new WeakSet,Ur=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mr),this.scheduleInterval=t,this.frequency=n,this.startTime=r,this.$objectType="opsmgmt.v4.config.ReportSchedule",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getScheduleInterval",value:function(){return this.scheduleInterval}},{key:"setScheduleInterval",value:function(e){this.scheduleInterval=e}},{key:"getFrequency",value:function(){return this.frequency}},{key:"setFrequency",value:function(e){this.frequency=e}},{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ar(Ar(Ar(Ar(Ar({},void 0!==this.getScheduleInterval()&&null!==this.getScheduleInterval()?{scheduleInterval:this.getScheduleInterval()}:{}),void 0!==this.getFrequency()&&null!==this.getFrequency()?{frequency:this.getFrequency()}:{}),void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:Nr(Mr,this,xr).call(this,this.getStartTime(),!1)}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:Nr(Mr,this,xr).call(this,this.getEndTime(),!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["scheduleInterval","frequency","startTime"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"scheduleInterval"!==t||void 0!==this.scheduleInterval&&null!==this.scheduleInterval?"frequency"!==t||void 0!==this.frequency&&null!==this.frequency?"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("endTime","undefined or null"):new _("startTime","undefined or null"):new _("frequency","undefined or null"):new _("scheduleInterval","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("scheduleInterval")&&null!==t.scheduleInterval&&void 0!==t.scheduleInterval&&n.setScheduleInterval(Fr.constructFromObject(t.scheduleInterval)),t.hasOwnProperty("frequency")&&null!==t.frequency&&void 0!==t.frequency&&n.setFrequency(t.frequency),t.hasOwnProperty("startTime")&&null!==t.startTime&&void 0!==t.startTime&&n.setStartTime(t.startTime),t.hasOwnProperty("endTime")&&null!==t.endTime&&void 0!==t.endTime&&n.setEndTime(t.endTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Ar({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ir(t.prototype,n),r&&Ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xr(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Lr(e){return Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(e)}function Jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jr(Object(n),!0).forEach(function(t){zr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zr(e,t,n){return(t=Br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Br(r.key),r)}}function Br(e){var t=function(e){if("object"!=Lr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lr(t)?t:t+""}Ur.prototype.scheduleInterval=void 0,Ur.prototype.frequency=void 0,Ur.prototype.startTime=void 0,Ur.prototype.endTime=void 0,Ur.prototype.$reserved=void 0,Ur.prototype.$objectType=void 0,Ur.prototype.$unknownFields=void 0;var Hr=new WeakSet,Gr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Hr),this.$objectType="opsmgmt.v4.config.RetentionConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRetentionPeriodSeconds",value:function(){return this.retentionPeriodSeconds}},{key:"setRetentionPeriodSeconds",value:function(e){this.retentionPeriodSeconds=e}},{key:"getRetentionCount",value:function(){return this.retentionCount}},{key:"setRetentionCount",value:function(e){this.retentionCount=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Wr(Wr(Wr({},void 0!==this.getRetentionPeriodSeconds()&&null!==this.getRetentionPeriodSeconds()?{retentionPeriodSeconds:this.getRetentionPeriodSeconds()}:{}),void 0!==this.getRetentionCount()&&null!==this.getRetentionCount()?{retentionCount:this.getRetentionCount()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"retentionPeriodSeconds"!==t||void 0!==this.retentionPeriodSeconds&&null!==this.retentionPeriodSeconds?"retentionCount"!==t||void 0!==this.retentionCount&&null!==this.retentionCount?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("retentionCount","undefined or null"):new _("retentionPeriodSeconds","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("retentionPeriodSeconds")&&null!==t.retentionPeriodSeconds&&void 0!==t.retentionPeriodSeconds&&n.setRetentionPeriodSeconds(t.retentionPeriodSeconds),t.hasOwnProperty("retentionCount")&&null!==t.retentionCount&&void 0!==t.retentionCount&&n.setRetentionCount(t.retentionCount),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Wr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Vr(t.prototype,n),r&&Vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Kr(e){return Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(e)}function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach(function(t){Xr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xr(e,t,n){return(t=Qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qr(r.key),r)}}function Qr(e){var t=function(e){if("object"!=Kr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kr(t)?t:t+""}Gr.prototype.retentionPeriodSeconds=void 0,Gr.prototype.retentionCount=void 0,Gr.prototype.$reserved=void 0,Gr.prototype.$objectType=void 0,Gr.prototype.$unknownFields=void 0;var eo=new WeakSet,to=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,eo),this.entityType=t,this.$objectType="opsmgmt.v4.config.RepeatCriteria",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getRepetitionRule",value:function(){return this.repetitionRule}},{key:"setRepetitionRule",value:function(e){this.repetitionRule=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yr(Yr(Yr({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getRepetitionRule()&&null!==this.getRepetitionRule()?{repetitionRule:this.getRepetitionRule()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new _("entityType","undefined or null");if("repetitionRule"===t){if(void 0===this.repetitionRule||null===this.repetitionRule)return new _("repetitionRule","undefined or null");if(!R.validateMaxLength(this.repetitionRule,250))return new _("repetitionRule","does not satisfy required maxLength constraint: 250")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&n.setEntityType(tr.constructFromObject(t.entityType)),t.hasOwnProperty("repetitionRule")&&null!==t.repetitionRule&&void 0!==t.repetitionRule&&n.setRepetitionRule(t.repetitionRule),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Yr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Zr(t.prototype,n),r&&Zr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();to.prototype.entityType=void 0,to.prototype.repetitionRule=void 0,to.prototype.$reserved=void 0,to.prototype.$objectType=void 0,to.prototype.$unknownFields=void 0;var no={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MAX:"MAX",MIN:"MIN",FIRST:"FIRST",LAST:"LAST",LATEST:"LATEST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(no).find(function(t){return no[t]===e});return null==t?no.$UNKNOWN:no[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case no.$UNKNOWN:case no.$REDACTED:case no.MAX:case no.MIN:case no.FIRST:case no.LAST:case no.LATEST:return;default:throw new Error("Invalid : must be SortKey.{ $UNKNOWN|$REDACTED|MAX|MIN|FIRST|LAST|LATEST }")}}};Object.freeze(no);const ro=no;var oo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ASCENDING:"ASCENDING",DESCENDING:"DESCENDING",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(oo).find(function(t){return oo[t]===e});return null==t?oo.$UNKNOWN:oo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case oo.$UNKNOWN:case oo.$REDACTED:case oo.ASCENDING:case oo.DESCENDING:return;default:throw new Error("Invalid : must be SortOrder.{ $UNKNOWN|$REDACTED|ASCENDING|DESCENDING }")}}};Object.freeze(oo);const io=oo;function ao(e){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(e)}function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach(function(t){lo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lo(e,t,n){return(t=fo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fo(r.key),r)}}function fo(e){var t=function(e){if("object"!=ao(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ao(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ao(t)?t:t+""}var po=new WeakSet,yo=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,po),this.$objectType="opsmgmt.v4.config.DataCriteria",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFilterCriteria",value:function(){return this.filterCriteria}},{key:"setFilterCriteria",value:function(e){this.filterCriteria=e}},{key:"getSortColumn",value:function(){return this.sortColumn}},{key:"setSortColumn",value:function(e){this.sortColumn=e}},{key:"getSortOrder",value:function(){return this.sortOrder}},{key:"setSortOrder",value:function(e){this.sortOrder=e}},{key:"getLimit",value:function(){return this.limit}},{key:"setLimit",value:function(e){this.limit=e}},{key:"getSortKey",value:function(){return this.sortKey}},{key:"setSortKey",value:function(e){this.sortKey=e}},{key:"getCustomParameters",value:function(){return this.customParameters}},{key:"setCustomParameters",value:function(e){this.customParameters=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return uo(uo(uo(uo(uo(uo(uo({},void 0!==this.getFilterCriteria()&&null!==this.getFilterCriteria()?{filterCriteria:this.getFilterCriteria()}:{}),void 0!==this.getSortColumn()&&null!==this.getSortColumn()?{sortColumn:this.getSortColumn()}:{}),void 0!==this.getSortOrder()&&null!==this.getSortOrder()?{sortOrder:this.getSortOrder()}:{}),void 0!==this.getLimit()&&null!==this.getLimit()?{limit:this.getLimit()}:{}),void 0!==this.getSortKey()&&null!==this.getSortKey()?{sortKey:this.getSortKey()}:{}),void 0!==this.getCustomParameters()&&null!==this.getCustomParameters()?{customParameters:this.getCustomParameters().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("filterCriteria"===t){if(void 0===this.filterCriteria||null===this.filterCriteria)return new _("filterCriteria","undefined or null");if(!R.validateMaxLength(this.filterCriteria,2e3))return new _("filterCriteria","does not satisfy required maxLength constraint: 2000")}if("sortColumn"===t){if(void 0===this.sortColumn||null===this.sortColumn)return new _("sortColumn","undefined or null");if(!R.validateMaxLength(this.sortColumn,500))return new _("sortColumn","does not satisfy required maxLength constraint: 500")}if("sortOrder"===t&&(void 0===this.sortOrder||null===this.sortOrder))return new _("sortOrder","undefined or null");if("limit"===t){if(void 0===this.limit||null===this.limit)return new _("limit","undefined or null");if(!R.validateMinimum(this.limit,0))return new _("limit","does not satisfy required minimum constraint: 0")}if("sortKey"===t&&(void 0===this.sortKey||null===this.sortKey))return new _("sortKey","undefined or null");if("customParameters"===t){if(void 0===this.customParameters||null===this.customParameters)return new _("customParameters","undefined or null");if(!R.validateMaxItems(this.customParameters,10))return new _("customParameters","does not satisfy required maxItems constraint: 10")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("filterCriteria")&&null!==t.filterCriteria&&void 0!==t.filterCriteria&&a.setFilterCriteria(t.filterCriteria),t.hasOwnProperty("sortColumn")&&null!==t.sortColumn&&void 0!==t.sortColumn&&a.setSortColumn(t.sortColumn),t.hasOwnProperty("sortOrder")&&null!==t.sortOrder&&void 0!==t.sortOrder&&a.setSortOrder(io.constructFromObject(t.sortOrder)),t.hasOwnProperty("limit")&&null!==t.limit&&void 0!==t.limit&&a.setLimit(t.limit),t.hasOwnProperty("sortKey")&&null!==t.sortKey&&void 0!==t.sortKey&&a.setSortKey(ro.constructFromObject(t.sortKey)),t.hasOwnProperty("customParameters")&&null!==t.customParameters&&void 0!==t.customParameters){for(i=[],n=t.customParameters,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setCustomParameters(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=uo({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&co(t.prototype,n),r&&co(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();yo.prototype.filterCriteria=void 0,yo.prototype.sortColumn=void 0,yo.prototype.sortOrder=void 0,yo.prototype.limit=void 0,yo.prototype.sortKey=void 0,yo.prototype.customParameters=void 0,yo.prototype.$reserved=void 0,yo.prototype.$objectType=void 0,yo.prototype.$unknownFields=void 0;var ho={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATED_TIME:"CREATED_TIME",LAST_OCCURRED_TIME:"LAST_OCCURRED_TIME",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ho).find(function(t){return ho[t]===e});return null==t?ho.$UNKNOWN:ho[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ho.$UNKNOWN:case ho.$REDACTED:case ho.CREATED_TIME:case ho.LAST_OCCURRED_TIME:return;default:throw new Error("Invalid : must be TimeFilter.{ $UNKNOWN|$REDACTED|CREATED_TIME|LAST_OCCURRED_TIME }")}}};Object.freeze(ho);const vo=ho;var bo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MAX:"MAX",MIN:"MIN",AVG:"AVG",LAST:"LAST",COUNT:"COUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bo).find(function(t){return bo[t]===e});return null==t?bo.$UNKNOWN:bo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bo.$UNKNOWN:case bo.$REDACTED:case bo.SUM:case bo.MAX:case bo.MIN:case bo.AVG:case bo.LAST:case bo.COUNT:return;default:throw new Error("Invalid : must be AggregateFunction.{ $UNKNOWN|$REDACTED|SUM|MAX|MIN|AVG|LAST|COUNT }")}}};Object.freeze(bo);const mo=bo;function go(e){return go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(e)}function wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wo(Object(n),!0).forEach(function(t){jo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jo(e,t,n){return(t=ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ko(r.key),r)}}function ko(e){var t=function(e){if("object"!=go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==go(t)?t:t+""}var To=new WeakSet,Po=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,To),this.label=t,this.name=n,this.$objectType="opsmgmt.v4.config.WidgetField",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLabel",value:function(){return this.label}},{key:"setLabel",value:function(e){this.label=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAggregateFunction",value:function(){return this.aggregateFunction}},{key:"setAggregateFunction",value:function(e){this.aggregateFunction=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Oo(Oo(Oo(Oo({},void 0!==this.getLabel()&&null!==this.getLabel()?{label:this.getLabel()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAggregateFunction()&&null!==this.getAggregateFunction()?{aggregateFunction:this.getAggregateFunction()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["label","name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("label"===t){if(void 0===this.label||null===this.label)return new _("label","undefined or null");if(!R.validateMaxLength(this.label,100))return new _("label","does not satisfy required maxLength constraint: 100")}if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,100))return new _("name","does not satisfy required maxLength constraint: 100");if(!R.validateMinLength(this.name,1))return new _("name","does not satisfy required minLength constraint: 1")}return"aggregateFunction"!==t||void 0!==this.aggregateFunction&&null!==this.aggregateFunction?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("aggregateFunction","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("label")&&null!==t.label&&void 0!==t.label&&n.setLabel(t.label),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("aggregateFunction")&&null!==t.aggregateFunction&&void 0!==t.aggregateFunction&&n.setAggregateFunction(mo.constructFromObject(t.aggregateFunction)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Oo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&$o(t.prototype,n),r&&$o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Po.prototype.label=void 0,Po.prototype.name=void 0,Po.prototype.aggregateFunction=void 0,Po.prototype.$reserved=void 0,Po.prototype.$objectType=void 0,Po.prototype.$unknownFields=void 0;var Eo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",LARGE:"LARGE",FULLSPAN:"FULLSPAN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Eo).find(function(t){return Eo[t]===e});return null==t?Eo.$UNKNOWN:Eo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Eo.$UNKNOWN:case Eo.$REDACTED:case Eo.SMALL:case Eo.LARGE:case Eo.FULLSPAN:return;default:throw new Error("Invalid : must be WidgetSize.{ $UNKNOWN|$REDACTED|SMALL|LARGE|FULLSPAN }")}}};Object.freeze(Eo);const So=Eo;var Fo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BAR_CHART:"BAR_CHART",LINE_CHART:"LINE_CHART",HISTOGRAM:"HISTOGRAM",DATA_TABLE:"DATA_TABLE",CONFIG_SUMMARY:"CONFIG_SUMMARY",METRIC_SUMMARY_TEXT:"METRIC_SUMMARY_TEXT",METRIC_SUMMARY_CHART:"METRIC_SUMMARY_CHART",COUNT_SUMMARY:"COUNT_SUMMARY",TEXT:"TEXT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Fo).find(function(t){return Fo[t]===e});return null==t?Fo.$UNKNOWN:Fo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Fo.$UNKNOWN:case Fo.$REDACTED:case Fo.BAR_CHART:case Fo.LINE_CHART:case Fo.HISTOGRAM:case Fo.DATA_TABLE:case Fo.CONFIG_SUMMARY:case Fo.METRIC_SUMMARY_TEXT:case Fo.METRIC_SUMMARY_CHART:case Fo.COUNT_SUMMARY:case Fo.TEXT:return;default:throw new Error("Invalid : must be WidgetType.{ $UNKNOWN|$REDACTED|BAR_CHART|LINE_CHART|HISTOGRAM|DATA_TABLE|CONFIG_SUMMARY|METRIC_SUMMARY_TEXT|METRIC_SUMMARY_CHART|COUNT_SUMMARY|TEXT }")}}};Object.freeze(Fo);const Co=Fo;function Ro(e){return Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ro(e)}function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach(function(t){Io(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Io(e,t,n){return(t=No(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,No(r.key),r)}}function No(e){var t=function(e){if("object"!=Ro(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ro(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ro(t)?t:t+""}var Mo=new WeakSet,Uo=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Mo),this.type=t,this.size=n,this.$objectType="opsmgmt.v4.config.WidgetConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getHeading",value:function(){return this.heading}},{key:"setHeading",value:function(e){this.heading=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getFields",value:function(){return this.fields}},{key:"setFields",value:function(e){this.fields=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getSize",value:function(){return this.size}},{key:"setSize",value:function(e){this.size=e}},{key:"getRepeatCriteria",value:function(){return this.repeatCriteria}},{key:"setRepeatCriteria",value:function(e){this.repeatCriteria=e}},{key:"getDataCriteria",value:function(){return this.dataCriteria}},{key:"setDataCriteria",value:function(e){this.dataCriteria=e}},{key:"getTimeFilter",value:function(){return this.timeFilter}},{key:"setTimeFilter",value:function(e){this.timeFilter=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Do(Do(Do(Do(Do(Do(Do(Do(Do(Do({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getHeading()&&null!==this.getHeading()?{heading:this.getHeading()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getFields()&&null!==this.getFields()?{fields:this.getFields().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getSize()&&null!==this.getSize()?{size:this.getSize()}:{}),void 0!==this.getRepeatCriteria()&&null!==this.getRepeatCriteria()?{repeatCriteria:this.getRepeatCriteria().toJson(!1)}:{}),void 0!==this.getDataCriteria()&&null!==this.getDataCriteria()?{dataCriteria:this.getDataCriteria().toJson(!1)}:{}),void 0!==this.getTimeFilter()&&null!==this.getTimeFilter()?{timeFilter:this.getTimeFilter()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["type","size"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new _("entityType","undefined or null");if("heading"===t){if(void 0===this.heading||null===this.heading)return new _("heading","undefined or null");if(!R.validateMaxLength(this.heading,64))return new _("heading","does not satisfy required maxLength constraint: 64")}if("description"===t){if(void 0===this.description||null===this.description)return new _("description","undefined or null");if(!R.validateMaxLength(this.description,1e3))return new _("description","does not satisfy required maxLength constraint: 1000")}if("fields"===t){if(void 0===this.fields||null===this.fields)return new _("fields","undefined or null");if(!R.validateMaxItems(this.fields,10))return new _("fields","does not satisfy required maxItems constraint: 10")}return"type"!==t||void 0!==this.type&&null!==this.type?"size"!==t||void 0!==this.size&&null!==this.size?"repeatCriteria"!==t||void 0!==this.repeatCriteria&&null!==this.repeatCriteria?"dataCriteria"!==t||void 0!==this.dataCriteria&&null!==this.dataCriteria?"timeFilter"!==t||void 0!==this.timeFilter&&null!==this.timeFilter?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("timeFilter","undefined or null"):new _("dataCriteria","undefined or null"):new _("repeatCriteria","undefined or null"):new _("size","undefined or null"):new _("type","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&a.setEntityType(tr.constructFromObject(t.entityType)),t.hasOwnProperty("heading")&&null!==t.heading&&void 0!==t.heading&&a.setHeading(t.heading),t.hasOwnProperty("description")&&null!==t.description&&void 0!==t.description&&a.setDescription(t.description),t.hasOwnProperty("fields")&&null!==t.fields&&void 0!==t.fields){for(i=[],n=t.fields,o=0;o<n.length;o++)r=Po.constructFromObject(n[o],void 0),i.push(r);a.setFields(i)}if(t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&a.setType(Co.constructFromObject(t.type)),t.hasOwnProperty("size")&&null!==t.size&&void 0!==t.size&&a.setSize(So.constructFromObject(t.size)),t.hasOwnProperty("repeatCriteria")&&null!==t.repeatCriteria&&void 0!==t.repeatCriteria&&a.setRepeatCriteria(to.constructFromObject(t.repeatCriteria)),t.hasOwnProperty("dataCriteria")&&null!==t.dataCriteria&&void 0!==t.dataCriteria&&a.setDataCriteria(yo.constructFromObject(t.dataCriteria)),t.hasOwnProperty("timeFilter")&&null!==t.timeFilter&&void 0!==t.timeFilter&&a.setTimeFilter(vo.constructFromObject(t.timeFilter)),t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Do({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&_o(t.prototype,n),r&&_o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Uo.prototype.entityType=void 0,Uo.prototype.heading=void 0,Uo.prototype.description=void 0,Uo.prototype.fields=void 0,Uo.prototype.type=void 0,Uo.prototype.size=void 0,Uo.prototype.repeatCriteria=void 0,Uo.prototype.dataCriteria=void 0,Uo.prototype.timeFilter=void 0,Uo.prototype.$reserved=void 0,Uo.prototype.$objectType=void 0,Uo.prototype.$unknownFields=void 0;var xo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER_LICENSE_TABLE:"CLUSTER_LICENSE_TABLE",MULTICLUSTER_LICENSE_SUMMARY:"MULTICLUSTER_LICENSE_SUMMARY",ALERTS_HISTOGRAM:"ALERTS_HISTOGRAM",BLOCKS_SUMMARY:"BLOCKS_SUMMARY",IGNORE_TIME_WINDOW_TABLE:"IGNORE_TIME_WINDOW_TABLE",CLUSTER_CPU_RUNWAY_CHART:"CLUSTER_CPU_RUNWAY_CHART",CLUSTER_MEMORY_RUNWAY_CHART:"CLUSTER_MEMORY_RUNWAY_CHART",CLUSTER_STORAGE_RUNWAY_CHART:"CLUSTER_STORAGE_RUNWAY_CHART",CLUSTER_INACTIVE_VM_TABLE:"CLUSTER_INACTIVE_VM_TABLE",CLUSTER_CONSTRAINED_VM_TABLE:"CLUSTER_CONSTRAINED_VM_TABLE",CLUSTER_OVERPROVISIONED_VM_TABLE:"CLUSTER_OVERPROVISIONED_VM_TABLE",CLUSTER_BULLY_VM_TABLE:"CLUSTER_BULLY_VM_TABLE",CLUSTER_POTENTIAL_CPU_RECLAIM:"CLUSTER_POTENTIAL_CPU_RECLAIM",CLUSTER_POTENTIAL_MEMORY_RECLAIM:"CLUSTER_POTENTIAL_MEMORY_RECLAIM",CLUSTER_POTENTIAL_STORAGE_RECLAIM:"CLUSTER_POTENTIAL_STORAGE_RECLAIM",VCENTER_BLOCKS_SUMMARY:"VCENTER_BLOCKS_SUMMARY",VCENTER_CPU_RUNWAY_CHART:"VCENTER_CPU_RUNWAY_CHART",VCENTER_MEMORY_RUNWAY_CHART:"VCENTER_MEMORY_RUNWAY_CHART",VCENTER_INACTIVE_VM_TABLE:"VCENTER_INACTIVE_VM_TABLE",VCENTER_CONSTRAINED_VM_TABLE:"VCENTER_CONSTRAINED_VM_TABLE",VCENTER_OVERPROVISIONED_VM_TABLE:"VCENTER_OVERPROVISIONED_VM_TABLE",VCENTER_BULLY_VM_TABLE:"VCENTER_BULLY_VM_TABLE",VCENTER_POTENTIAL_CPU_RECLAIM:"VCENTER_POTENTIAL_CPU_RECLAIM",VCENTER_POTENTIAL_MEMORY_RECLAIM:"VCENTER_POTENTIAL_MEMORY_RECLAIM",VCENTER_POTENTIAL_STORAGE_RECLAIM:"VCENTER_POTENTIAL_STORAGE_RECLAIM",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(xo).find(function(t){return xo[t]===e});return null==t?xo.$UNKNOWN:xo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xo.$UNKNOWN:case xo.$REDACTED:case xo.CLUSTER_LICENSE_TABLE:case xo.MULTICLUSTER_LICENSE_SUMMARY:case xo.ALERTS_HISTOGRAM:case xo.BLOCKS_SUMMARY:case xo.IGNORE_TIME_WINDOW_TABLE:case xo.CLUSTER_CPU_RUNWAY_CHART:case xo.CLUSTER_MEMORY_RUNWAY_CHART:case xo.CLUSTER_STORAGE_RUNWAY_CHART:case xo.CLUSTER_INACTIVE_VM_TABLE:case xo.CLUSTER_CONSTRAINED_VM_TABLE:case xo.CLUSTER_OVERPROVISIONED_VM_TABLE:case xo.CLUSTER_BULLY_VM_TABLE:case xo.CLUSTER_POTENTIAL_CPU_RECLAIM:case xo.CLUSTER_POTENTIAL_MEMORY_RECLAIM:case xo.CLUSTER_POTENTIAL_STORAGE_RECLAIM:case xo.VCENTER_BLOCKS_SUMMARY:case xo.VCENTER_CPU_RUNWAY_CHART:case xo.VCENTER_MEMORY_RUNWAY_CHART:case xo.VCENTER_INACTIVE_VM_TABLE:case xo.VCENTER_CONSTRAINED_VM_TABLE:case xo.VCENTER_OVERPROVISIONED_VM_TABLE:case xo.VCENTER_BULLY_VM_TABLE:case xo.VCENTER_POTENTIAL_CPU_RECLAIM:case xo.VCENTER_POTENTIAL_MEMORY_RECLAIM:case xo.VCENTER_POTENTIAL_STORAGE_RECLAIM:return;default:throw new Error("Invalid : must be WidgetTemplateType.{ $UNKNOWN|$REDACTED|CLUSTER_LICENSE_TABLE|MULTICLUSTER_LICENSE_SUMMARY|ALERTS_HISTOGRAM|BLOCKS_SUMMARY|IGNORE_TIME_WINDOW_TABLE|CLUSTER_CPU_RUNWAY_CHART|CLUSTER_MEMORY_RUNWAY_CHART|CLUSTER_STORAGE_RUNWAY_CHART|CLUSTER_INACTIVE_VM_TABLE|CLUSTER_CONSTRAINED_VM_TABLE|CLUSTER_OVERPROVISIONED_VM_TABLE|CLUSTER_BULLY_VM_TABLE|CLUSTER_POTENTIAL_CPU_RECLAIM|CLUSTER_POTENTIAL_MEMORY_RECLAIM|CLUSTER_POTENTIAL_STORAGE_RECLAIM|VCENTER_BLOCKS_SUMMARY|VCENTER_CPU_RUNWAY_CHART|VCENTER_MEMORY_RUNWAY_CHART|VCENTER_INACTIVE_VM_TABLE|VCENTER_CONSTRAINED_VM_TABLE|VCENTER_OVERPROVISIONED_VM_TABLE|VCENTER_BULLY_VM_TABLE|VCENTER_POTENTIAL_CPU_RECLAIM|VCENTER_POTENTIAL_MEMORY_RECLAIM|VCENTER_POTENTIAL_STORAGE_RECLAIM }")}}};Object.freeze(xo);const Lo=xo;function Jo(e){return Jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(e)}function Wo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach(function(t){Vo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vo(e,t,n){return(t=Ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ho(r.key),r)}}function Ho(e){var t=function(e){if("object"!=Jo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jo(t)?t:t+""}var Go=new WeakSet,Ko=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Go),this.$objectType="opsmgmt.v4.config.WidgetTemplate",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getWidgetTemplate",value:function(){return this.widgetTemplate}},{key:"setWidgetTemplate",value:function(e){this.widgetTemplate=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zo(zo({},void 0!==this.getWidgetTemplate()&&null!==this.getWidgetTemplate()?{widgetTemplate:this.getWidgetTemplate()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"widgetTemplate"!==t||void 0!==this.widgetTemplate&&null!==this.widgetTemplate?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("widgetTemplate","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("widgetTemplate")&&null!==t.widgetTemplate&&void 0!==t.widgetTemplate&&n.setWidgetTemplate(Lo.constructFromObject(t.widgetTemplate)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Bo(t.prototype,n),r&&Bo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e){return Yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yo(e)}function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xo(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qo(e,t,n){return(t=ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ti(r.key),r)}}function ti(e){var t=function(e){if("object"!=Yo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yo(t)?t:t+""}function ni(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")}Ko.prototype.widgetTemplate=void 0,Ko.prototype.$reserved=void 0,Ko.prototype.$objectType=void 0,Ko.prototype.$unknownFields=void 0;var ri=new WeakSet,oi=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ri),this.widgetInfo=t,this.$objectType="opsmgmt.v4.config.Widget",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getWidgetInfo",value:function(){return this.widgetInfo}},{key:"setWidgetInfo",value:function(e){this.widgetInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zo(Zo({},!1===e?void 0!==this.getWidgetInfo()&&null!==this.getWidgetInfo()?{widgetInfo:void 0!==this.getWidgetInfo().toJson?this.getWidgetInfo().toJson(!1):Array.isArray(this.getWidgetInfo())?this.getWidgetInfo().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ni(ri,this,ii).call(this,this.getWidgetInfo(),!1)}:{}:void 0!==this.getWidgetInfo()&&null!==this.getWidgetInfo()?{widgetInfo:void 0!==this.getWidgetInfo().toJson?this.getWidgetInfo().toJson():Array.isArray(this.getWidgetInfo())?this.getWidgetInfo().map(function(e){return void 0!==e.toJson?e.toJson():e}):ni(ri,this,ii).call(this,this.getWidgetInfo())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["widgetInfo"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"widgetInfo"!==t||void 0!==this.widgetInfo&&null!==this.widgetInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("widgetInfo","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("widgetInfo")&&null!==t.widgetInfo&&void 0!==t.widgetInfo)switch(n=t.widgetInfo.hasOwnProperty("$objectType")?t.widgetInfo.$objectType:Yo(t.widgetInfo)){case"opsmgmt.v4.config.WidgetTemplate":r.setWidgetInfo(Ko.constructFromObject(t.widgetInfo,void 0));break;case"opsmgmt.v4.config.WidgetConfig":r.setWidgetInfo(Uo.constructFromObject(t.widgetInfo,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=Zo({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ei(t.prototype,n),r&&ei(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ii(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qo(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Yo(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function ai(e){return ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ai(e)}function si(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?si(Object(n),!0).forEach(function(t){li(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function li(e,t,n){return(t=fi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fi(r.key),r)}}function fi(e){var t=function(e){if("object"!=ai(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ai(t)?t:t+""}oi.prototype.widgetInfo=void 0,oi.prototype.$reserved=void 0,oi.prototype.$objectType=void 0,oi.prototype.$unknownFields=void 0;var pi=new WeakSet,di=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,pi),this.widgets=t,this.$objectType="opsmgmt.v4.config.Row",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getWidgets",value:function(){return this.widgets}},{key:"setWidgets",value:function(e){this.widgets=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ui(ui({},void 0!==this.getWidgets()&&null!==this.getWidgets()?{widgets:this.getWidgets().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["widgets"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("widgets"===t){if(void 0===this.widgets||null===this.widgets)return new _("widgets","undefined or null");if(!R.validateMaxItems(this.widgets,3))return new _("widgets","does not satisfy required maxItems constraint: 3")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("widgets")&&null!==t.widgets&&void 0!==t.widgets){for(i=[],n=t.widgets,o=0;o<n.length;o++)r=oi.constructFromObject(n[o],void 0),i.push(r);a.setWidgets(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=ui({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ci(t.prototype,n),r&&ci(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yi(e){return yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yi(e)}function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach(function(t){bi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bi(e,t,n){return(t=gi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gi(r.key),r)}}function gi(e){var t=function(e){if("object"!=yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yi(t)?t:t+""}di.prototype.widgets=void 0,di.prototype.$reserved=void 0,di.prototype.$objectType=void 0,di.prototype.$unknownFields=void 0;var wi=new WeakSet,Oi=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,wi),this.name=t,this.rows=n,this.$objectType="opsmgmt.v4.config.Section",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getRows",value:function(){return this.rows}},{key:"setRows",value:function(e){this.rows=e}},{key:"getRepeatCriteria",value:function(){return this.repeatCriteria}},{key:"setRepeatCriteria",value:function(e){this.repeatCriteria=e}},{key:"getTimeFilter",value:function(){return this.timeFilter}},{key:"setTimeFilter",value:function(e){this.timeFilter=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vi(vi(vi(vi(vi(vi({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getRows()&&null!==this.getRows()?{rows:this.getRows().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getRepeatCriteria()&&null!==this.getRepeatCriteria()?{repeatCriteria:this.getRepeatCriteria().toJson(!1)}:{}),void 0!==this.getTimeFilter()&&null!==this.getTimeFilter()?{timeFilter:this.getTimeFilter()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","rows"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,64))return new _("name","does not satisfy required maxLength constraint: 64")}if("description"===t){if(void 0===this.description||null===this.description)return new _("description","undefined or null");if(!R.validateMaxLength(this.description,1e3))return new _("description","does not satisfy required maxLength constraint: 1000")}if("rows"===t){if(void 0===this.rows||null===this.rows)return new _("rows","undefined or null");if(!R.validateMaxItems(this.rows,20))return new _("rows","does not satisfy required maxItems constraint: 20")}return"repeatCriteria"!==t||void 0!==this.repeatCriteria&&null!==this.repeatCriteria?"timeFilter"!==t||void 0!==this.timeFilter&&null!==this.timeFilter?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("timeFilter","undefined or null"):new _("repeatCriteria","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&a.setName(t.name),t.hasOwnProperty("description")&&null!==t.description&&void 0!==t.description&&a.setDescription(t.description),t.hasOwnProperty("rows")&&null!==t.rows&&void 0!==t.rows){for(i=[],n=t.rows,o=0;o<n.length;o++)r=di.constructFromObject(n[o],void 0),i.push(r);a.setRows(i)}if(t.hasOwnProperty("repeatCriteria")&&null!==t.repeatCriteria&&void 0!==t.repeatCriteria&&a.setRepeatCriteria(to.constructFromObject(t.repeatCriteria)),t.hasOwnProperty("timeFilter")&&null!==t.timeFilter&&void 0!==t.timeFilter&&a.setTimeFilter(vo.constructFromObject(t.timeFilter)),t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=vi({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&mi(t.prototype,n),r&&mi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ji(e){return ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(e)}function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach(function(t){Ti(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ti(e,t,n){return(t=Ei(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ei(r.key),r)}}function Ei(e){var t=function(e){if("object"!=ji(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ji(t)?t:t+""}function Si(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Si=function(){return!!e})()}function Fi(e){return Fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fi(e)}function Ci(e,t){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ci(e,t)}function Ri(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")}Oi.prototype.name=void 0,Oi.prototype.description=void 0,Oi.prototype.rows=void 0,Oi.prototype.repeatCriteria=void 0,Oi.prototype.timeFilter=void 0,Oi.prototype.$reserved=void 0,Oi.prototype.$objectType=void 0,Oi.prototype.$unknownFields=void 0;var Ai=new WeakSet,Di=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=Fi(t),function(e,t){if(t&&("object"==ji(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Si()?Reflect.construct(t,n||[],Fi(e).constructor):t.apply(e,n))}(this,t),Ai),r.name=e,r.sections=n,r.$objectType="opsmgmt.v4.config.ReportConfig",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getSchedule",value:function(){return this.schedule}},{key:"setSchedule",value:function(e){this.schedule=e}},{key:"getRetentionConfig",value:function(){return this.retentionConfig}},{key:"setRetentionConfig",value:function(e){this.retentionConfig=e}},{key:"getSections",value:function(){return this.sections}},{key:"setSections",value:function(e){this.sections=e}},{key:"getSupportedFormats",value:function(){return this.supportedFormats}},{key:"setSupportedFormats",value:function(e){this.supportedFormats=e}},{key:"getTimezone",value:function(){return this.timezone}},{key:"setTimezone",value:function(e){this.timezone=e}},{key:"getNotificationPolicy",value:function(){return this.notificationPolicy}},{key:"setNotificationPolicy",value:function(e){this.notificationPolicy=e}},{key:"getIsSystemDefined",value:function(){return this.isSystemDefined}},{key:"setIsSystemDefined",value:function(e){this.isSystemDefined=e}},{key:"getIsPrivate",value:function(){return this.isPrivate}},{key:"setIsPrivate",value:function(e){this.isPrivate=e}},{key:"getIsImported",value:function(){return this.isImported}},{key:"setIsImported",value:function(e){this.isImported=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getStartTimeOffsetSecs",value:function(){return this.startTimeOffsetSecs}},{key:"setStartTimeOffsetSecs",value:function(e){this.startTimeOffsetSecs=e}},{key:"getEndTimeOffsetSecs",value:function(){return this.endTimeOffsetSecs}},{key:"setEndTimeOffsetSecs",value:function(e){this.endTimeOffsetSecs=e}},{key:"getReportCustomization",value:function(){return this.reportCustomization}},{key:"setReportCustomization",value:function(e){this.reportCustomization=e}},{key:"getDefaultSectionEntityType",value:function(){return this.defaultSectionEntityType}},{key:"setDefaultSectionEntityType",value:function(e){this.defaultSectionEntityType=e}},{key:"toJson",value:function(e){return ki(!1===e?ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getSchedule()&&null!==this.getSchedule()?{schedule:this.getSchedule().toJson(!1)}:{}),void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{}),void 0!==this.getSections()&&null!==this.getSections()?{sections:this.getSections().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSupportedFormats()&&null!==this.getSupportedFormats()?{supportedFormats:this.getSupportedFormats()}:{}),void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{}),void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{}),void 0!==this.getIsSystemDefined()&&null!==this.getIsSystemDefined()?{isSystemDefined:this.getIsSystemDefined()}:{}),void 0!==this.getIsPrivate()&&null!==this.getIsPrivate()?{isPrivate:this.getIsPrivate()}:{}),void 0!==this.getIsImported()&&null!==this.getIsImported()?{isImported:this.getIsImported()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ri(Ai,this,Ii).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getStartTimeOffsetSecs()&&null!==this.getStartTimeOffsetSecs()?{startTimeOffsetSecs:this.getStartTimeOffsetSecs()}:{}),void 0!==this.getEndTimeOffsetSecs()&&null!==this.getEndTimeOffsetSecs()?{endTimeOffsetSecs:this.getEndTimeOffsetSecs()}:{}),void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{}),void 0!==this.getDefaultSectionEntityType()&&null!==this.getDefaultSectionEntityType()?{defaultSectionEntityType:this.getDefaultSectionEntityType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki(ki({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getSchedule()&&null!==this.getSchedule()?{schedule:this.getSchedule().toJson(!1)}:{}),void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{}),void 0!==this.getSections()&&null!==this.getSections()?{sections:this.getSections().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSupportedFormats()&&null!==this.getSupportedFormats()?{supportedFormats:this.getSupportedFormats()}:{}),void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{}),void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{}),void 0!==this.getStartTimeOffsetSecs()&&null!==this.getStartTimeOffsetSecs()?{startTimeOffsetSecs:this.getStartTimeOffsetSecs()}:{}),void 0!==this.getEndTimeOffsetSecs()&&null!==this.getEndTimeOffsetSecs()?{endTimeOffsetSecs:this.getEndTimeOffsetSecs()}:{}),void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{}),void 0!==this.getDefaultSectionEntityType()&&null!==this.getDefaultSectionEntityType()?{defaultSectionEntityType:this.getDefaultSectionEntityType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","sections"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,64))return new _("name","does not satisfy required maxLength constraint: 64")}if("description"===t){if(void 0===this.description||null===this.description)return new _("description","undefined or null");if(!R.validateMaxLength(this.description,1e3))return new _("description","does not satisfy required maxLength constraint: 1000")}if("schedule"===t&&(void 0===this.schedule||null===this.schedule))return new _("schedule","undefined or null");if("retentionConfig"===t&&(void 0===this.retentionConfig||null===this.retentionConfig))return new _("retentionConfig","undefined or null");if("sections"===t){if(void 0===this.sections||null===this.sections)return new _("sections","undefined or null");if(!R.validateMaxItems(this.sections,10))return new _("sections","does not satisfy required maxItems constraint: 10")}if("supportedFormats"===t){if(void 0===this.supportedFormats||null===this.supportedFormats)return new _("supportedFormats","undefined or null");if(!R.validateMaxItems(this.supportedFormats,2))return new _("supportedFormats","does not satisfy required maxItems constraint: 2")}if("timezone"===t){if(void 0===this.timezone||null===this.timezone)return new _("timezone","undefined or null");if(!R.validatePattern(this.timezone,/^[a-zA-Z]+(\/[a-zA-Z_]+)?$/))return new _("timezone","does not satisfy required pattern: /^[a-zA-Z]+(/[a-zA-Z_]+)?$/")}return"notificationPolicy"!==t||void 0!==this.notificationPolicy&&null!==this.notificationPolicy?"isSystemDefined"!==t||void 0!==this.isSystemDefined&&null!==this.isSystemDefined?"isPrivate"!==t||void 0!==this.isPrivate&&null!==this.isPrivate?"isImported"!==t||void 0!==this.isImported&&null!==this.isImported?"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?"startTimeOffsetSecs"!==t||void 0!==this.startTimeOffsetSecs&&null!==this.startTimeOffsetSecs?"endTimeOffsetSecs"!==t||void 0!==this.endTimeOffsetSecs&&null!==this.endTimeOffsetSecs?"reportCustomization"!==t||void 0!==this.reportCustomization&&null!==this.reportCustomization?"defaultSectionEntityType"!==t||void 0!==this.defaultSectionEntityType&&null!==this.defaultSectionEntityType?new _(t,"no such property exists"):new _("defaultSectionEntityType","undefined or null"):new _("reportCustomization","undefined or null"):new _("endTimeOffsetSecs","undefined or null"):new _("startTimeOffsetSecs","undefined or null"):new _("creationTime","undefined or null"):new _("isImported","undefined or null"):new _("isPrivate","undefined or null"):new _("isSystemDefined","undefined or null"):new _("notificationPolicy","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Qn.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&a.setDescription(e.description),e.hasOwnProperty("schedule")&&null!==e.schedule&&void 0!==e.schedule&&a.setSchedule(Ur.constructFromObject(e.schedule)),e.hasOwnProperty("retentionConfig")&&null!==e.retentionConfig&&void 0!==e.retentionConfig&&a.setRetentionConfig(Gr.constructFromObject(e.retentionConfig)),e.hasOwnProperty("sections")&&null!==e.sections&&void 0!==e.sections){for(i=[],n=e.sections,o=0;o<n.length;o++)r=Oi.constructFromObject(n[o],void 0),i.push(r);a.setSections(i)}if(e.hasOwnProperty("supportedFormats")&&null!==e.supportedFormats&&void 0!==e.supportedFormats){for(i=[],n=e.supportedFormats,o=0;o<n.length;o++)r=fr.constructFromObject(n[o],void 0),i.push(r);a.setSupportedFormats(i)}if(e.hasOwnProperty("timezone")&&null!==e.timezone&&void 0!==e.timezone&&a.setTimezone(e.timezone),e.hasOwnProperty("notificationPolicy")&&null!==e.notificationPolicy&&void 0!==e.notificationPolicy&&a.setNotificationPolicy(gr.constructFromObject(e.notificationPolicy)),e.hasOwnProperty("isSystemDefined")&&null!==e.isSystemDefined&&void 0!==e.isSystemDefined&&a.setIsSystemDefined(e.isSystemDefined),e.hasOwnProperty("isPrivate")&&null!==e.isPrivate&&void 0!==e.isPrivate&&a.setIsPrivate(e.isPrivate),e.hasOwnProperty("isImported")&&null!==e.isImported&&void 0!==e.isImported&&a.setIsImported(e.isImported),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&a.setCreationTime(e.creationTime),e.hasOwnProperty("startTimeOffsetSecs")&&null!==e.startTimeOffsetSecs&&void 0!==e.startTimeOffsetSecs&&a.setStartTimeOffsetSecs(e.startTimeOffsetSecs),e.hasOwnProperty("endTimeOffsetSecs")&&null!==e.endTimeOffsetSecs&&void 0!==e.endTimeOffsetSecs&&a.setEndTimeOffsetSecs(e.endTimeOffsetSecs),e.hasOwnProperty("reportCustomization")&&null!==e.reportCustomization&&void 0!==e.reportCustomization&&a.setReportCustomization(Er.constructFromObject(e.reportCustomization)),e.hasOwnProperty("defaultSectionEntityType")&&null!==e.defaultSectionEntityType&&void 0!==e.defaultSectionEntityType&&a.setDefaultSectionEntityType(tr.constructFromObject(e.defaultSectionEntityType)),!s)for(var u in a.$unknownFields=ki({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pi(n.prototype,r),o&&Pi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);function Ii(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function _i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ni(e){return Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ni(e)}function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach(function(t){xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xi(e,t,n){return(t=Ji(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ji(r.key),r)}}function Ji(e){var t=function(e){if("object"!=Ni(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ni(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ni(t)?t:t+""}function Wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wi=function(){return!!e})()}function zi(e){return zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zi(e)}function Vi(e,t){return Vi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vi(e,t)}function Bi(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")}Di.prototype.name=void 0,Di.prototype.description=void 0,Di.prototype.schedule=void 0,Di.prototype.retentionConfig=void 0,Di.prototype.sections=void 0,Di.prototype.supportedFormats=void 0,Di.prototype.timezone=void 0,Di.prototype.notificationPolicy=void 0,Di.prototype.isSystemDefined=void 0,Di.prototype.isPrivate=void 0,Di.prototype.isImported=void 0,Di.prototype.creationTime=void 0,Di.prototype.startTimeOffsetSecs=void 0,Di.prototype.endTimeOffsetSecs=void 0,Di.prototype.reportCustomization=void 0,Di.prototype.defaultSectionEntityType=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Hi=new WeakSet,Gi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zi(t),function(e,t){if(t&&("object"==Ni(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wi()?Reflect.construct(t,n||[],zi(e).constructor):t.apply(e,n))}(this,t),Hi),e.$objectType="opsmgmt.v4.config.CreateReportConfigApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vi(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ui(Ui(Ui({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Bi(Hi,this,Ki).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Bi(Hi,this,Ki).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ni(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ui({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Li(n.prototype,r),o&&Li(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ki(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_i(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Ni(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yi(e){return Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yi(e)}function Xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach(function(t){Qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qi(e,t,n){return(t=ta(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ta(r.key),r)}}function ta(e){var t=function(e){if("object"!=Yi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yi(t)?t:t+""}function na(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(na=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ra(e)}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oa(e,t)}function ia(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")}Gi.prototype.metadata=void 0,Gi.prototype.data=void 0,Gi.prototype.$reserved=void 0,Gi.prototype.$objectType=void 0,Gi.prototype.$unknownFields=void 0;var aa=new WeakSet,sa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ra(t),function(e,t){if(t&&("object"==Yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,na()?Reflect.construct(t,n||[],ra(e).constructor):t.apply(e,n))}(this,t),aa),e.$objectType="opsmgmt.v4.config.ListReportConfigsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oa(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zi(Zi(Zi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ia(aa,this,ua).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):ia(aa,this,ua).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Yi(n[0]),o=0;o<n.length;o++){if("opsmgmt.v4.config.ReportConfig"!==a)throw"Unknown list of type "+a+" in data";r=Di.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("opsmgmt.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yi(e.data)))throw"Unknown datatype "+a+" in data";s.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Zi({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ea(n.prototype,r),o&&ea(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ua(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Yi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function la(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ca(e){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(e)}function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(t){da(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function da(e,t,n){return(t=ha(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ha(r.key),r)}}function ha(e){var t=function(e){if("object"!=ca(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ca(t)?t:t+""}function va(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(va=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ba(e)}function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ma(e,t)}function ga(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")}sa.prototype.metadata=void 0,sa.prototype.data=void 0,sa.prototype.$reserved=void 0,sa.prototype.$objectType=void 0,sa.prototype.$unknownFields=void 0;var wa=new WeakSet,Oa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ba(t),function(e,t){if(t&&("object"==ca(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,va()?Reflect.construct(t,n||[],ba(e).constructor):t.apply(e,n))}(this,t),wa),e.$objectType="opsmgmt.v4.config.DeleteReportConfigApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ma(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pa(pa(pa({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ga(wa,this,ja).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):ga(wa,this,ja).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&r.setData(null),n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ca(e.data)){case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=pa({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ya(n.prototype,r),o&&ya(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ja(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return la(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?la(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ca(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function $a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ka(e){return ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ka(e)}function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(t){Ea(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ea(e,t,n){return(t=Fa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fa(r.key),r)}}function Fa(e){var t=function(e){if("object"!=ka(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ka(t)?t:t+""}function Ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ca=function(){return!!e})()}function Ra(e){return Ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ra(e)}function Aa(e,t){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aa(e,t)}function Da(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")}Oa.prototype.metadata=void 0,Oa.prototype.data=void 0,Oa.prototype.$reserved=void 0,Oa.prototype.$objectType=void 0,Oa.prototype.$unknownFields=void 0;var Ia=new WeakSet,_a=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ra(t),function(e,t){if(t&&("object"==ka(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ca()?Reflect.construct(t,n||[],Ra(e).constructor):t.apply(e,n))}(this,t),Ia),e.$objectType="opsmgmt.v4.config.GetReportConfigApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Aa(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Pa(Pa(Pa({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Da(Ia,this,Na).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Da(Ia,this,Na).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ka(e.data)){case"opsmgmt.v4.config.ReportConfig":r.setData(Di.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Pa({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Sa(n.prototype,r),o&&Sa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Na(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return $a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$a(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ka(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Ma(e){return Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ma(e)}function Ua(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ua(Object(n),!0).forEach(function(t){La(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ua(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function La(e,t,n){return(t=Wa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wa(r.key),r)}}function Wa(e){var t=function(e){if("object"!=Ma(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ma(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ma(t)?t:t+""}function za(e,t){return e.get(Va(e,t))}function Va(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")}_a.prototype.metadata=void 0,_a.prototype.data=void 0,_a.prototype.$reserved=void 0,_a.prototype.$objectType=void 0,_a.prototype.$unknownFields=void 0;var Ba=new WeakMap,Ha=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Ba,void 0),this.apiClient=t||lt.instance,n=Ba,r=new Set,n.set(Va(n,this),r),za(Ba,this).add("authorization"),za(Ba,this).add("cookie"),za(Ba,this).add("host"),za(Ba,this).add("user-agent")},t=[{key:"createReportConfig",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof Di&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createReportConfig");var o={};Object.keys(r).forEach(function(e){za(Ba,n).has(e.toLowerCase())||(o[e]=r[e])});var i=xa({},o);lt.addEtagReferenceToHeader(e,i);var a=Gi;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteReportConfigById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteReportConfigById");var r={extId:e},o={};Object.keys(n).forEach(function(e){za(Ba,t).has(e.toLowerCase())||(o[e]=n[e])});var i=xa({},o),a=Oa;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getReportConfigById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getReportConfigById");var r={extId:e},o={};Object.keys(n).forEach(function(e){za(Ba,t).has(e.toLowerCase())||(o[e]=n[e])});var i=xa({},o),a=_a;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listReportConfigs",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=xa(xa(xa(xa(xa({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){za(Ba,t).has(e.toLowerCase())||(o[e]=n[e])});var i=xa({},o),a=sa;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"updateReportConfigById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Di&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateReportConfigById");if(null==n)throw new Error("Invalid body when calling updateReportConfigById");var i={extId:e},a={};Object.keys(o).forEach(function(e){za(Ba,r).has(e.toLowerCase())||(a[e]=o[e])});var s=xa({},a);lt.addEtagReferenceToHeader(t,s);var u=Dn;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs/{extId}","PUT",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ja(e.prototype,t),n&&Ja(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ka(e){return Ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ka(e)}function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(t){Xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xa(e,t,n){return(t=Qa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qa(r.key),r)}}function Qa(e){var t=function(e){if("object"!=Ka(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ka(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ka(t)?t:t+""}function es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(es=function(){return!!e})()}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ts(e)}function ns(e,t){return ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ns(e,t)}function rs(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")}var os=new WeakSet,is=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ts(t),function(e,t){if(t&&("object"==Ka(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,es()?Reflect.construct(t,n||[],ts(e).constructor):t.apply(e,n))}(this,t),os),e.$objectType="opsmgmt.v4.config.UpdateGlobalReportSettingsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ya(Ya(Ya({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):rs(os,this,as).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):rs(os,this,as).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ka(n[0]),o=0;o<n.length;o++){if("opsmgmt.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=_t.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("opsmgmt.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ka(e.data)))throw"Unknown datatype "+a+" in data";s.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Ya({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Za(n.prototype,r),o&&Za(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function as(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ga(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ga(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Ka(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function ss(e){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(e)}function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(t){cs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cs(e,t,n){return(t=ps(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ps(r.key),r)}}function ps(e){var t=function(e){if("object"!=ss(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ss(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ss(t)?t:t+""}function ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ds=function(){return!!e})()}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ys(e)}function hs(e,t){return hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hs(e,t)}is.prototype.metadata=void 0,is.prototype.data=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var vs=new WeakSet,bs=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=ys(t),function(e,t){if(t&&("object"==ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ds()?Reflect.construct(t,n||[],ys(e).constructor):t.apply(e,n))}(this,t),vs),n.name=e,n.$objectType="opsmgmt.v4.config.GlobalReportSetting",n.$reserved={$fv:"v4.r0"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hs(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getRetentionConfig",value:function(){return this.retentionConfig}},{key:"setRetentionConfig",value:function(e){this.retentionConfig=e}},{key:"getNotificationPolicy",value:function(){return this.notificationPolicy}},{key:"setNotificationPolicy",value:function(e){this.notificationPolicy=e}},{key:"getReportCustomization",value:function(){return this.reportCustomization}},{key:"setReportCustomization",value:function(e){this.reportCustomization=e}},{key:"toJson",value:function(e){return ls(!1===e?ls(ls(ls(ls(ls(ls(ls({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{}),void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{}),void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):ls(ls(ls(ls({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{}),void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{}),void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,64))return new _("name","does not satisfy required maxLength constraint: 64");if(!R.validateMinLength(this.name,1))return new _("name","does not satisfy required minLength constraint: 1")}return"retentionConfig"!==t||void 0!==this.retentionConfig&&null!==this.retentionConfig?"notificationPolicy"!==t||void 0!==this.notificationPolicy&&null!==this.notificationPolicy?"reportCustomization"!==t||void 0!==this.reportCustomization&&null!==this.reportCustomization?new _(t,"no such property exists"):new _("reportCustomization","undefined or null"):new _("notificationPolicy","undefined or null"):new _("retentionConfig","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Qn.constructFromObject(e,n,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("retentionConfig")&&null!==e.retentionConfig&&void 0!==e.retentionConfig&&n.setRetentionConfig(Gr.constructFromObject(e.retentionConfig)),e.hasOwnProperty("notificationPolicy")&&null!==e.notificationPolicy&&void 0!==e.notificationPolicy&&n.setNotificationPolicy(gr.constructFromObject(e.notificationPolicy)),e.hasOwnProperty("reportCustomization")&&null!==e.reportCustomization&&void 0!==e.reportCustomization&&n.setReportCustomization(Er.constructFromObject(e.reportCustomization)),!r))for(var o in n.$unknownFields=ls({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&fs(n.prototype,r),o&&fs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);function ms(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function gs(e){return gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gs(e)}function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(n),!0).forEach(function(t){js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function js(e,t,n){return(t=ks(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ks(r.key),r)}}function ks(e){var t=function(e){if("object"!=gs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}function Ts(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ts=function(){return!!e})()}function Ps(e){return Ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ps(e)}function Es(e,t){return Es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Es(e,t)}function Ss(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")}bs.prototype.name=void 0,bs.prototype.retentionConfig=void 0,bs.prototype.notificationPolicy=void 0,bs.prototype.reportCustomization=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Fs=new WeakSet,Cs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ps(t),function(e,t){if(t&&("object"==gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ts()?Reflect.construct(t,n||[],Ps(e).constructor):t.apply(e,n))}(this,t),Fs),e.$objectType="opsmgmt.v4.config.GetGlobalReportSettingApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Es(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Os(Os(Os({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Ss(Fs,this,Rs).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Ss(Fs,this,Rs).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:gs(e.data)){case"opsmgmt.v4.config.GlobalReportSetting":r.setData(bs.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Os({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&$s(n.prototype,r),o&&$s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Rs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ms(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ms(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===gs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function As(e){return As="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(e)}function Ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach(function(t){_s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _s(e,t,n){return(t=Ms(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ns(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ms(r.key),r)}}function Ms(e){var t=function(e){if("object"!=As(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=As(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==As(t)?t:t+""}function Us(e,t){return e.get(xs(e,t))}function xs(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")}Cs.prototype.metadata=void 0,Cs.prototype.data=void 0,Cs.prototype.$reserved=void 0,Cs.prototype.$objectType=void 0,Cs.prototype.$unknownFields=void 0;var Ls=new WeakMap,Js=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Ls,void 0),this.apiClient=t||lt.instance,n=Ls,r=new Set,n.set(xs(n,this),r),Us(Ls,this).add("authorization"),Us(Ls,this).add("cookie"),Us(Ls,this).add("host"),Us(Ls,this).add("user-agent")},t=[{key:"getGlobalReportSetting",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'userExtId' when calling getGlobalReportSetting");var r={userExtId:e},o={};Object.keys(n).forEach(function(e){Us(Ls,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Is({},o),a=Cs;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/user/{userExtId}/global-report-setting","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"updateGlobalReportSetting",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof bs&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'userExtId' when calling updateGlobalReportSetting");if(null==n)throw new Error("Invalid body when calling updateGlobalReportSetting");var i={userExtId:e},a={};Object.keys(o).forEach(function(e){Us(Ls,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Is({},a);lt.addEtagReferenceToHeader(t,s);var u=is;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/user/{userExtId}/global-report-setting","PUT",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ns(e.prototype,t),n&&Ns(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Ws={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PNG:"PNG",JPEG:"JPEG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ws).find(function(t){return Ws[t]===e});return null==t?Ws.$UNKNOWN:Ws[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ws.$UNKNOWN:case Ws.$REDACTED:case Ws.PNG:case Ws.JPEG:return;default:throw new Error("Invalid : must be ArtifactFileType.{ $UNKNOWN|$REDACTED|PNG|JPEG }")}}};Object.freeze(Ws);const zs=Ws;var Vs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LOGO:"LOGO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Vs).find(function(t){return Vs[t]===e});return null==t?Vs.$UNKNOWN:Vs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vs.$UNKNOWN:case Vs.$REDACTED:case Vs.LOGO:return;default:throw new Error("Invalid : must be ArtifactType.{ $UNKNOWN|$REDACTED|LOGO }")}}};Object.freeze(Vs);const Bs=Vs;function Hs(e){return Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(e)}function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){qs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qs(e,t,n){return(t=Xs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xs(r.key),r)}}function Xs(e){var t=function(e){if("object"!=Hs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hs(t)?t:t+""}function Zs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zs=function(){return!!e})()}function Qs(e){return Qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qs(e)}function eu(e,t){return eu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eu(e,t)}var tu=new WeakSet,nu=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=Qs(t),function(e,t){if(t&&("object"==Hs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zs()?Reflect.construct(t,n||[],Qs(e).constructor):t.apply(e,n))}(this,t),tu),r.type=e,r.fileType=n,r.$objectType="opsmgmt.v4.content.ReportArtifact",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eu(e,t)}(t,e),n=t,r=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getFileType",value:function(){return this.fileType}},{key:"setFileType",value:function(e){this.fileType=e}},{key:"toJson",value:function(e){return Ks(!1===e?Ks(Ks(Ks(Ks(Ks({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getFileType()&&null!==this.getFileType()?{fileType:this.getFileType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ks(Ks({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getFileType()&&null!==this.getFileType()?{fileType:this.getFileType()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["type","fileType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"type"!==t||void 0!==this.type&&null!==this.type?"fileType"!==t||void 0!==this.fileType&&null!==this.fileType?new _(t,"no such property exists"):new _("fileType","undefined or null"):new _("type","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Qn.constructFromObject(e,n,!0),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&n.setType(Bs.constructFromObject(e.type)),e.hasOwnProperty("fileType")&&null!==e.fileType&&void 0!==e.fileType&&n.setFileType(zs.constructFromObject(e.fileType)),!r))for(var o in n.$unknownFields=Ks({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ys(n.prototype,r),o&&Ys(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ou(e){return ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(e)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach(function(t){su(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function su(e,t,n){return(t=lu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lu(r.key),r)}}function lu(e){var t=function(e){if("object"!=ou(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ou(t)?t:t+""}function cu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cu=function(){return!!e})()}function fu(e){return fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fu(e)}function pu(e,t){return pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pu(e,t)}function du(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")}nu.prototype.type=void 0,nu.prototype.fileType=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var yu=new WeakSet,hu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=fu(t),function(e,t){if(t&&("object"==ou(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cu()?Reflect.construct(t,n||[],fu(e).constructor):t.apply(e,n))}(this,t),yu),e.$objectType="opsmgmt.v4.content.ListReportArtifactsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return au(au(au({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):du(yu,this,vu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):du(yu,this,vu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ou(n[0]),o=0;o<n.length;o++){if("opsmgmt.v4.content.ReportArtifact"!==a)throw"Unknown list of type "+a+" in data";r=nu.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("opsmgmt.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ou(e.data)))throw"Unknown datatype "+a+" in data";s.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=au({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&uu(n.prototype,r),o&&uu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function vu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ru(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ru(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ou(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mu(e){return mu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mu(e)}function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach(function(t){Ou(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ou(e,t,n){return(t=$u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ju(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$u(r.key),r)}}function $u(e){var t=function(e){if("object"!=mu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mu(t)?t:t+""}function ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ku=function(){return!!e})()}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tu(e)}function Pu(e,t){return Pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pu(e,t)}function Eu(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")}hu.prototype.metadata=void 0,hu.prototype.data=void 0,hu.prototype.$reserved=void 0,hu.prototype.$objectType=void 0,hu.prototype.$unknownFields=void 0;var Su=new WeakSet,Fu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Tu(t),function(e,t){if(t&&("object"==mu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ku()?Reflect.construct(t,n||[],Tu(e).constructor):t.apply(e,n))}(this,t),Su),e.$objectType="opsmgmt.v4.content.UploadArtifactApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wu(wu(wu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Eu(Su,this,Cu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Eu(Su,this,Cu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:mu(n[0]),o=0;o<n.length;o++){if("opsmgmt.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=_t.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("opsmgmt.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:mu(e.data)))throw"Unknown datatype "+a+" in data";s.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=wu({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ju(n.prototype,r),o&&ju(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Cu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return bu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bu(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===mu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Au(e){return Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Au(e)}function Du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Du(Object(n),!0).forEach(function(t){_u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _u(e,t,n){return(t=Mu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mu(r.key),r)}}function Mu(e){var t=function(e){if("object"!=Au(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Au(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Au(t)?t:t+""}function Uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Uu=function(){return!!e})()}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xu(e)}function Lu(e,t){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lu(e,t)}function Ju(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")}Fu.prototype.metadata=void 0,Fu.prototype.data=void 0,Fu.prototype.$reserved=void 0,Fu.prototype.$objectType=void 0,Fu.prototype.$unknownFields=void 0;var Wu=new WeakSet,zu=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=xu(t),function(e,t){if(t&&("object"==Au(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Uu()?Reflect.construct(t,n||[],xu(e).constructor):t.apply(e,n))}(this,t),Wu),e.$objectType="opsmgmt.v4.content.CreateReportArtifactApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lu(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Iu(Iu(Iu({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Ju(Wu,this,Vu).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Ju(Wu,this,Vu).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Au(e.data)){case"opsmgmt.v4.content.ReportArtifact":r.setData(nu.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Iu({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Nu(n.prototype,r),o&&Nu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Vu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ru(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ru(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Au(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hu(e){return Hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu(e)}function Gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gu(Object(n),!0).forEach(function(t){qu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qu(e,t,n){return(t=Xu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xu(r.key),r)}}function Xu(e){var t=function(e){if("object"!=Hu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hu(t)?t:t+""}function Zu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zu=function(){return!!e})()}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},el(e,t)}function tl(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")}zu.prototype.metadata=void 0,zu.prototype.data=void 0,zu.prototype.$reserved=void 0,zu.prototype.$objectType=void 0,zu.prototype.$unknownFields=void 0;var nl=new WeakSet,rl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Qu(t),function(e,t){if(t&&("object"==Hu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Zu()?Reflect.construct(t,n||[],Qu(e).constructor):t.apply(e,n))}(this,t),nl),e.$objectType="opsmgmt.v4.content.DownloadArtifactileApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&el(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Ku(Ku(Ku({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):tl(nl,this,ol).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):tl(nl,this,ol).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Hu(e.data)){case"Map":r.setData(e.data);break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ku({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Yu(n.prototype,r),o&&Yu(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ol(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Bu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bu(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Hu(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function il(e){return il="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},il(e)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?al(Object(n),!0).forEach(function(t){ul(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ul(e,t,n){return(t=cl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cl(r.key),r)}}function cl(e){var t=function(e){if("object"!=il(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=il(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==il(t)?t:t+""}function fl(e,t){return e.get(pl(e,t))}function pl(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")}rl.prototype.metadata=void 0,rl.prototype.data=void 0,rl.prototype.$reserved=void 0,rl.prototype.$objectType=void 0,rl.prototype.$unknownFields=void 0;var dl=new WeakMap,yl=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,dl,void 0),this.apiClient=t||lt.instance,n=dl,r=new Set,n.set(pl(n,this),r),fl(dl,this).add("authorization"),fl(dl,this).add("cookie"),fl(dl,this).add("host"),fl(dl,this).add("user-agent")},t=[{key:"createReportArtifact",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof nu&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createReportArtifact");var o={};Object.keys(r).forEach(function(e){fl(dl,n).has(e.toLowerCase())||(o[e]=r[e])});var i=sl({},o);lt.addEtagReferenceToHeader(e,i);var a=zu;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"downloadArtifactFile",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'reportArtifactExtId' when calling downloadArtifactFile");var r={reportArtifactExtId:e},o={};Object.keys(n).forEach(function(e){fl(dl,t).has(e.toLowerCase())||(o[e]=n[e])});var i=sl({},o),a=rl;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts/{reportArtifactExtId}/file","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],a)}},{key:"listReportArtifacts",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=sl(sl(sl(sl({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){fl(dl,t).has(e.toLowerCase())||(o[e]=n[e])});var i=sl({},o),a=hu;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"uploadArtifactFile",value:function(e,t){var r,o=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{},a=null;try{r=n(975)}catch(e){}if("function"==typeof t.pipe)a=t,i["Content-Length"]=r.statSync(t.path).size,i.hasOwnProperty("Content-Disposition")||(i["Content-Disposition"]='attachment; filename="'+k().parse(t.path).base+'"');else if("string"==typeof t){var s;try{s=n(784)}catch(e){throw new Error("Cannot find module 'path'. Ensure you are using a Node.js environment. If not, use ReadableStream for body parameter.")}try{a=r.createReadStream(t),i["Content-Length"]=r.statSync(t).size,i.hasOwnProperty("Content-Disposition")||(i["Content-Disposition"]='attachment; filename="'+s.basename(t)+'"')}catch(e){throw new Error("Cannot read file: "+t+". Error: "+e.message)}}else a=t;if(null==e)throw new Error("Missing the required parameter 'reportArtifactExtId' when calling uploadArtifactFile");if(null==a)throw new Error("Invalid body when calling uploadArtifactFile");var u={reportArtifactExtId:e},l={};Object.keys(i).forEach(function(e){fl(dl,o).has(e.toLowerCase())||(l[e]=i[e])});var c=sl({},l);lt.addEtagReferenceToHeader(t,c);var f=Fu;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts/{reportArtifactExtId}/$actions/upload","POST",u,{},c,{},a,["apiKeyAuthScheme","basicAuthScheme"],["application/octet-stream"],["application/json"],f)}}],r=[{key:"ApiClient",get:function(){return lt}}],t&&ll(e.prototype,t),r&&ll(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function hl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vl(e){return vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vl(e)}function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ml(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(t){gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gl(e,t,n){return(t=Ol(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ol(r.key),r)}}function Ol(e){var t=function(e){if("object"!=vl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vl(t)?t:t+""}function jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jl=function(){return!!e})()}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$l(e)}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kl(e,t)}function Tl(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")}var Pl=new WeakSet,El=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=$l(t),function(e,t){if(t&&("object"==vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jl()?Reflect.construct(t,n||[],$l(e).constructor):t.apply(e,n))}(this,t),Pl),e.$objectType="opsmgmt.v4.content.DownloadReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kl(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ml(ml(ml({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Tl(Pl,this,Sl).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Tl(Pl,this,Sl).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:vl(e.data)){case"Map":r.setData(e.data);break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ml({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&wl(n.prototype,r),o&&wl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Sl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return hl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hl(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===vl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cl(e){return Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cl(e)}function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rl(Object(n),!0).forEach(function(t){Dl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dl(e,t,n){return(t=_l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_l(r.key),r)}}function _l(e){var t=function(e){if("object"!=Cl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cl(t)?t:t+""}function Nl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nl=function(){return!!e})()}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ml(e)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ul(e,t)}function xl(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")}El.prototype.metadata=void 0,El.prototype.data=void 0,El.prototype.$reserved=void 0,El.prototype.$objectType=void 0,El.prototype.$unknownFields=void 0;var Ll=new WeakSet,Jl=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ml(t),function(e,t){if(t&&("object"==Cl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nl()?Reflect.construct(t,n||[],Ml(e).constructor):t.apply(e,n))}(this,t),Ll),e.$objectType="opsmgmt.v4.config.DeleteReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ul(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Al(Al(Al({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):xl(Ll,this,Wl).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):xl(Ll,this,Wl).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&r.setData(null),n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Cl(e.data)){case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Al({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Il(n.prototype,r),o&&Il(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Wl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Fl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fl(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Cl(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function zl(e){return zl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zl(e)}function Vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vl(Object(n),!0).forEach(function(t){Hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hl(e,t,n){return(t=Kl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kl(r.key),r)}}function Kl(e){var t=function(e){if("object"!=zl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zl(t)?t:t+""}Jl.prototype.metadata=void 0,Jl.prototype.data=void 0,Jl.prototype.$reserved=void 0,Jl.prototype.$objectType=void 0,Jl.prototype.$unknownFields=void 0;var ql=new WeakSet,Yl=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ql),this.entityType=t,this.entityExtId=n,this.$objectType="opsmgmt.v4.config.EntitySelection",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getEntityExtId",value:function(){return this.entityExtId}},{key:"setEntityExtId",value:function(e){this.entityExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bl(Bl(Bl({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["entityType","entityExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new _("entityType","undefined or null");if("entityExtId"===t){if(void 0===this.entityExtId||null===this.entityExtId)return new _("entityExtId","undefined or null");if(!R.validateMaxItems(this.entityExtId,20))return new _("entityExtId","does not satisfy required maxItems constraint: 20");if(!R.validateMinItems(this.entityExtId,1))return new _("entityExtId","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&i.setEntityType(tr.constructFromObject(t.entityType)),t.hasOwnProperty("entityExtId")&&null!==t.entityExtId&&void 0!==t.entityExtId){for(o=[],n=t.entityExtId,r=0;r<n.length;r++)o.push(n[r]);i.setEntityExtId(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=Bl({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Gl(t.prototype,n),r&&Gl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xl(e){return Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xl(e)}function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach(function(t){ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ec(e,t,n){return(t=nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nc(r.key),r)}}function nc(e){var t=function(e){if("object"!=Xl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xl(t)?t:t+""}function rc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rc=function(){return!!e})()}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oc(e)}function ic(e,t){return ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ic(e,t)}function ac(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")}Yl.prototype.entityType=void 0,Yl.prototype.entityExtId=void 0,Yl.prototype.$reserved=void 0,Yl.prototype.$objectType=void 0,Yl.prototype.$unknownFields=void 0;var sc=new WeakSet,uc=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(i=function(e,t,n){return t=oc(t),function(e,t){if(t&&("object"==Xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rc()?Reflect.construct(t,n||[],oc(e).constructor):t.apply(e,n))}(this,t),sc),i.name=e,i.configExtId=n,i.startTime=r,i.endTime=o,i.$objectType="opsmgmt.v4.config.Report",i.$reserved={$fv:"v4.r0"},i.$unknownFields={},i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ic(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getConfigExtId",value:function(){return this.configExtId}},{key:"setConfigExtId",value:function(e){this.configExtId=e}},{key:"getIsPersistent",value:function(){return this.isPersistent}},{key:"setIsPersistent",value:function(e){this.isPersistent=e}},{key:"getOverrideSupportedFormats",value:function(){return this.overrideSupportedFormats}},{key:"setOverrideSupportedFormats",value:function(e){this.overrideSupportedFormats=e}},{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"getRecipientFormats",value:function(){return this.recipientFormats}},{key:"setRecipientFormats",value:function(e){this.recipientFormats=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getTimezone",value:function(){return this.timezone}},{key:"setTimezone",value:function(e){this.timezone=e}},{key:"getEntitySelection",value:function(){return this.entitySelection}},{key:"setEntitySelection",value:function(e){this.entitySelection=e}},{key:"getOwnerExtId",value:function(){return this.ownerExtId}},{key:"setOwnerExtId",value:function(e){this.ownerExtId=e}},{key:"getAvailableFormats",value:function(){return this.availableFormats}},{key:"setAvailableFormats",value:function(e){this.availableFormats=e}},{key:"toJson",value:function(e){return Ql(!1===e?Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getConfigExtId()&&null!==this.getConfigExtId()?{configExtId:this.getConfigExtId()}:{}),void 0!==this.getIsPersistent()&&null!==this.getIsPersistent()?{isPersistent:this.getIsPersistent()}:{}),void 0!==this.getOverrideSupportedFormats()&&null!==this.getOverrideSupportedFormats()?{overrideSupportedFormats:this.getOverrideSupportedFormats()}:{}),void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:ac(sc,this,lc).call(this,this.getStartTime(),!1)}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:ac(sc,this,lc).call(this,this.getEndTime(),!1)}:{}),void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:ac(sc,this,lc).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{}),void 0!==this.getEntitySelection()&&null!==this.getEntitySelection()?{entitySelection:this.getEntitySelection().toJson(!1)}:{}),void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{}),void 0!==this.getAvailableFormats()&&null!==this.getAvailableFormats()?{availableFormats:this.getAvailableFormats()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql(Ql({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getConfigExtId()&&null!==this.getConfigExtId()?{configExtId:this.getConfigExtId()}:{}),void 0!==this.getIsPersistent()&&null!==this.getIsPersistent()?{isPersistent:this.getIsPersistent()}:{}),void 0!==this.getOverrideSupportedFormats()&&null!==this.getOverrideSupportedFormats()?{overrideSupportedFormats:this.getOverrideSupportedFormats()}:{}),void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:ac(sc,this,lc).call(this,this.getStartTime(),!1)}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:ac(sc,this,lc).call(this,this.getEndTime(),!1)}:{}),void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{}),void 0!==this.getEntitySelection()&&null!==this.getEntitySelection()?{entitySelection:this.getEntitySelection().toJson(!1)}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","configExtId","startTime","endTime"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,256))return new _("name","does not satisfy required maxLength constraint: 256");if(!R.validateMinLength(this.name,1))return new _("name","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new _("description","undefined or null");if(!R.validateMaxLength(this.description,256))return new _("description","does not satisfy required maxLength constraint: 256")}if("configExtId"===t){if(void 0===this.configExtId||null===this.configExtId)return new _("configExtId","undefined or null");if(!R.validatePattern(this.configExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("configExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("isPersistent"===t&&(void 0===this.isPersistent||null===this.isPersistent))return new _("isPersistent","undefined or null");if("overrideSupportedFormats"===t){if(void 0===this.overrideSupportedFormats||null===this.overrideSupportedFormats)return new _("overrideSupportedFormats","undefined or null");if(!R.validateMaxItems(this.overrideSupportedFormats,2))return new _("overrideSupportedFormats","does not satisfy required maxItems constraint: 2")}if("startTime"===t&&(void 0===this.startTime||null===this.startTime))return new _("startTime","undefined or null");if("endTime"===t&&(void 0===this.endTime||null===this.endTime))return new _("endTime","undefined or null");if("recipientFormats"===t){if(void 0===this.recipientFormats||null===this.recipientFormats)return new _("recipientFormats","undefined or null");if(!R.validateMaxItems(this.recipientFormats,2))return new _("recipientFormats","does not satisfy required maxItems constraint: 2")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new _("recipients","undefined or null");if(!R.validateMaxItems(this.recipients,100))return new _("recipients","does not satisfy required maxItems constraint: 100");if(!R.validateMinItems(this.recipients,1))return new _("recipients","does not satisfy required minItems constraint: 1")}if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new _("creationTime","undefined or null");if("timezone"===t){if(void 0===this.timezone||null===this.timezone)return new _("timezone","undefined or null");if(!R.validatePattern(this.timezone,/^[a-zA-Z]+(\/[a-zA-Z_]+)?$/))return new _("timezone","does not satisfy required pattern: /^[a-zA-Z]+(/[a-zA-Z_]+)?$/")}if("entitySelection"===t&&(void 0===this.entitySelection||null===this.entitySelection))return new _("entitySelection","undefined or null");if("ownerExtId"===t){if(void 0===this.ownerExtId||null===this.ownerExtId)return new _("ownerExtId","undefined or null");if(!R.validatePattern(this.ownerExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("ownerExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("availableFormats"===t){if(void 0===this.availableFormats||null===this.availableFormats)return new _("availableFormats","undefined or null");if(!R.validateMaxItems(this.availableFormats,2))return new _("availableFormats","does not satisfy required maxItems constraint: 2")}return new _(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Qn.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&a.setDescription(e.description),e.hasOwnProperty("configExtId")&&null!==e.configExtId&&void 0!==e.configExtId&&a.setConfigExtId(e.configExtId),e.hasOwnProperty("isPersistent")&&null!==e.isPersistent&&void 0!==e.isPersistent&&a.setIsPersistent(e.isPersistent),e.hasOwnProperty("overrideSupportedFormats")&&null!==e.overrideSupportedFormats&&void 0!==e.overrideSupportedFormats){for(i=[],n=e.overrideSupportedFormats,o=0;o<n.length;o++)r=fr.constructFromObject(n[o],void 0),i.push(r);a.setOverrideSupportedFormats(i)}if(e.hasOwnProperty("startTime")&&null!==e.startTime&&void 0!==e.startTime&&a.setStartTime(e.startTime),e.hasOwnProperty("endTime")&&null!==e.endTime&&void 0!==e.endTime&&a.setEndTime(e.endTime),e.hasOwnProperty("recipientFormats")&&null!==e.recipientFormats&&void 0!==e.recipientFormats){for(i=[],n=e.recipientFormats,o=0;o<n.length;o++)r=fr.constructFromObject(n[o],void 0),i.push(r);a.setRecipientFormats(i)}if(e.hasOwnProperty("recipients")&&null!==e.recipients&&void 0!==e.recipients){for(i=[],n=e.recipients,o=0;o<n.length;o++)r=lr.constructFromObject(n[o],void 0),i.push(r);a.setRecipients(i)}if(e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&a.setCreationTime(e.creationTime),e.hasOwnProperty("timezone")&&null!==e.timezone&&void 0!==e.timezone&&a.setTimezone(e.timezone),e.hasOwnProperty("entitySelection")&&null!==e.entitySelection&&void 0!==e.entitySelection&&a.setEntitySelection(Yl.constructFromObject(e.entitySelection)),e.hasOwnProperty("ownerExtId")&&null!==e.ownerExtId&&void 0!==e.ownerExtId&&a.setOwnerExtId(e.ownerExtId),e.hasOwnProperty("availableFormats")&&null!==e.availableFormats&&void 0!==e.availableFormats){for(i=[],n=e.availableFormats,o=0;o<n.length;o++)r=fr.constructFromObject(n[o],void 0),i.push(r);a.setAvailableFormats(i)}if(!s)for(var u in a.$unknownFields=Ql({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&tc(n.prototype,r),o&&tc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);function lc(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function cc(e){return cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(e)}function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach(function(t){dc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dc(e,t,n){return(t=hc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hc(r.key),r)}}function hc(e){var t=function(e){if("object"!=cc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cc(t)?t:t+""}function vc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vc=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bc(e)}function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mc(e,t)}uc.prototype.name=void 0,uc.prototype.description=void 0,uc.prototype.configExtId=void 0,uc.prototype.isPersistent=void 0,uc.prototype.overrideSupportedFormats=void 0,uc.prototype.startTime=void 0,uc.prototype.endTime=void 0,uc.prototype.recipientFormats=void 0,uc.prototype.recipients=void 0,uc.prototype.creationTime=void 0,uc.prototype.timezone=void 0,uc.prototype.entitySelection=void 0,uc.prototype.ownerExtId=void 0,uc.prototype.availableFormats=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var gc=new WeakSet,wc=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=bc(t),function(e,t){if(t&&("object"==cc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vc()?Reflect.construct(t,n||[],bc(e).constructor):t.apply(e,n))}(this,t),gc),r.recipientFormats=e,r.recipients=n,r.$objectType="opsmgmt.v4.config.ReportNotificationSpec",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mc(e,t)}(t,e),n=t,r=[{key:"getRecipientFormats",value:function(){return this.recipientFormats}},{key:"setRecipientFormats",value:function(e){this.recipientFormats=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"toJson",value:function(e){return pc(!1===e?pc(pc(pc(pc(pc({},void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):pc(pc({},void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["recipientFormats","recipients"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("recipientFormats"===t){if(void 0===this.recipientFormats||null===this.recipientFormats)return new _("recipientFormats","undefined or null");if(!R.validateMaxItems(this.recipientFormats,2))return new _("recipientFormats","does not satisfy required maxItems constraint: 2")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new _("recipients","undefined or null");if(!R.validateMaxItems(this.recipients,100))return new _("recipients","does not satisfy required maxItems constraint: 100");if(!R.validateMinItems(this.recipients,1))return new _("recipients","does not satisfy required minItems constraint: 1")}return new _(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Qn.constructFromObject(e,a,!0),e.hasOwnProperty("recipientFormats")&&null!==e.recipientFormats&&void 0!==e.recipientFormats){for(i=[],n=e.recipientFormats,o=0;o<n.length;o++)r=fr.constructFromObject(n[o],void 0),i.push(r);a.setRecipientFormats(i)}if(e.hasOwnProperty("recipients")&&null!==e.recipients&&void 0!==e.recipients){for(i=[],n=e.recipients,o=0;o<n.length;o++)r=lr.constructFromObject(n[o],void 0),i.push(r);a.setRecipients(i)}if(!s)for(var u in a.$unknownFields=pc({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&yc(n.prototype,r),o&&yc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);function Oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jc(e){return jc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jc(e)}function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach(function(t){Tc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tc(e,t,n){return(t=Ec(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ec(r.key),r)}}function Ec(e){var t=function(e){if("object"!=jc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jc(t)?t:t+""}function Sc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sc=function(){return!!e})()}function Fc(e){return Fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fc(e)}function Cc(e,t){return Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cc(e,t)}function Rc(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")}wc.prototype.recipientFormats=void 0,wc.prototype.recipients=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var Ac=new WeakSet,Dc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Fc(t),function(e,t){if(t&&("object"==jc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sc()?Reflect.construct(t,n||[],Fc(e).constructor):t.apply(e,n))}(this,t),Ac),e.$objectType="opsmgmt.v4.config.GetReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return kc(kc(kc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Rc(Ac,this,Ic).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Rc(Ac,this,Ic).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:jc(e.data)){case"opsmgmt.v4.config.Report":r.setData(uc.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=kc({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pc(n.prototype,r),o&&Pc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ic(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Oc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===jc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nc(e){return Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nc(e)}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach(function(t){xc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xc(e,t,n){return(t=Jc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jc(r.key),r)}}function Jc(e){var t=function(e){if("object"!=Nc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nc(t)?t:t+""}function Wc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wc=function(){return!!e})()}function zc(e){return zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zc(e)}function Vc(e,t){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vc(e,t)}function Bc(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")}Dc.prototype.metadata=void 0,Dc.prototype.data=void 0,Dc.prototype.$reserved=void 0,Dc.prototype.$objectType=void 0,Dc.prototype.$unknownFields=void 0;var Hc=new WeakSet,Gc=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=zc(t),function(e,t){if(t&&("object"==Nc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Wc()?Reflect.construct(t,n||[],zc(e).constructor):t.apply(e,n))}(this,t),Hc),e.$objectType="opsmgmt.v4.config.NotifyReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vc(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uc(Uc(Uc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Bc(Hc,this,Kc).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Bc(Hc,this,Kc).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Nc(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Uc({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Lc(n.prototype,r),o&&Lc(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Kc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_c(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Nc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yc(e){return Yc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yc(e)}function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xc(Object(n),!0).forEach(function(t){Qc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qc(e,t,n){return(t=tf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ef(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tf(r.key),r)}}function tf(e){var t=function(e){if("object"!=Yc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yc(t)?t:t+""}function nf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nf=function(){return!!e})()}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rf(e)}function of(e,t){return of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},of(e,t)}function af(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")}Gc.prototype.metadata=void 0,Gc.prototype.data=void 0,Gc.prototype.$reserved=void 0,Gc.prototype.$objectType=void 0,Gc.prototype.$unknownFields=void 0;var sf=new WeakSet,uf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=rf(t),function(e,t){if(t&&("object"==Yc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nf()?Reflect.construct(t,n||[],rf(e).constructor):t.apply(e,n))}(this,t),sf),e.$objectType="opsmgmt.v4.config.ListReportsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&of(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Zc(Zc(Zc({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):af(sf,this,lf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):af(sf,this,lf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Yc(n[0]),o=0;o<n.length;o++){if("opsmgmt.v4.config.Report"!==a)throw"Unknown list of type "+a+" in data";r=uc.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("opsmgmt.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yc(e.data)))throw"Unknown datatype "+a+" in data";s.setData(fn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Zc({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ef(n.prototype,r),o&&ef(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function lf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qc(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Yc(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function cf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ff(e){return ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ff(e)}function pf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pf(Object(n),!0).forEach(function(t){yf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yf(e,t,n){return(t=vf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vf(r.key),r)}}function vf(e){var t=function(e){if("object"!=ff(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ff(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ff(t)?t:t+""}function bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bf=function(){return!!e})()}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mf(e)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gf(e,t)}function wf(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")}uf.prototype.metadata=void 0,uf.prototype.data=void 0,uf.prototype.$reserved=void 0,uf.prototype.$objectType=void 0,uf.prototype.$unknownFields=void 0;var Of=new WeakSet,jf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=mf(t),function(e,t){if(t&&("object"==ff(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bf()?Reflect.construct(t,n||[],mf(e).constructor):t.apply(e,n))}(this,t),Of),e.$objectType="opsmgmt.v4.config.CreateReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gf(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return df(df(df({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):wf(Of,this,$f).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):wf(Of,this,$f).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("data","undefined or null"):new _("metadata","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ue.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ff(e.data)){case"prism.v4.config.TaskReference":r.setData(wn.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":r.setData(fn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=df({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&hf(n.prototype,r),o&&hf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function $f(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return cf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===ff(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function kf(e){return kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kf(e)}function Tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tf(Object(n),!0).forEach(function(t){Ef(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ef(e,t,n){return(t=Ff(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ff(r.key),r)}}function Ff(e){var t=function(e){if("object"!=kf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kf(t)?t:t+""}function Cf(e,t){return e.get(Rf(e,t))}function Rf(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")}jf.prototype.metadata=void 0,jf.prototype.data=void 0,jf.prototype.$reserved=void 0,jf.prototype.$objectType=void 0,jf.prototype.$unknownFields=void 0;var Af=new WeakMap,Df=function(){return e=function e(t){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}(this,Af,void 0),this.apiClient=t||lt.instance,n=Af,r=new Set,n.set(Rf(n,this),r),Cf(Af,this).add("authorization"),Cf(Af,this).add("cookie"),Cf(Af,this).add("host"),Cf(Af,this).add("user-agent")},t=[{key:"createReport",value:function(e){var t,n=this,r=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==(t=e instanceof uc&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createReport");var o={};Object.keys(r).forEach(function(e){Cf(Af,n).has(e.toLowerCase())||(o[e]=r[e])});var i=Pf({},o);lt.addEtagReferenceToHeader(e,i);var a=jf;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteReportById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteReportById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Cf(Af,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Pf({},o),a=Jl;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"downloadReport",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'reportExtId' when calling downloadReport");var r={reportExtId:e},o={};Object.keys(n).forEach(function(e){Cf(Af,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Pf({},o),a=El;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/reports/{reportExtId}/file","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/pdf","application/zip","application/json"],a)}},{key:"getReportById",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getReportById");var r={extId:e},o={};Object.keys(n).forEach(function(e){Cf(Af,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Pf({},o),a=Dc;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listReports",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Pf(Pf(Pf(Pf(Pf({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach(function(e){Cf(Af,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Pf({},o),a=uf;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"notifyReport",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof wc&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling notifyReport");if(null==n)throw new Error("Invalid body when calling notifyReport");var i={extId:e},a={};Object.keys(o).forEach(function(e){Cf(Af,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Pf({},a);lt.addEtagReferenceToHeader(t,s);var u=Gc;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports/{extId}/$actions/notify-recipients","POST",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Sf(e.prototype,t),n&&Sf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),If={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MAX:"MAX",MIN:"MIN",AVG:"AVG",LAST:"LAST",COUNT:"COUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(If).find(function(t){return If[t]===e});return null==t?If.$UNKNOWN:If[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case If.$UNKNOWN:case If.$REDACTED:case If.SUM:case If.MAX:case If.MIN:case If.AVG:case If.LAST:case If.COUNT:return;default:throw new Error("Invalid : must be Operator.{ $UNKNOWN|$REDACTED|SUM|MAX|MIN|AVG|LAST|COUNT }")}}};Object.freeze(If);const _f=If;function Nf(e){return Nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nf(e)}function Mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach(function(t){xf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xf(e,t,n){return(t=Jf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jf(r.key),r)}}function Jf(e){var t=function(e){if("object"!=Nf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nf(t)?t:t+""}var Wf=new WeakSet,zf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Wf),this.name=t,this.$objectType="opsmgmt.v4.reporting.Field",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLabel",value:function(){return this.label}},{key:"setLabel",value:function(e){this.label=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAggregationOperator",value:function(){return this.aggregationOperator}},{key:"setAggregationOperator",value:function(e){this.aggregationOperator=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Uf(Uf(Uf(Uf({},void 0!==this.getLabel()&&null!==this.getLabel()?{label:this.getLabel()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAggregationOperator()&&null!==this.getAggregationOperator()?{aggregationOperator:this.getAggregationOperator()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("label"===t){if(void 0===this.label||null===this.label)return new _("label","undefined or null");if(!R.validateMaxLength(this.label,100))return new _("label","does not satisfy required maxLength constraint: 100")}if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,100))return new _("name","does not satisfy required maxLength constraint: 100");if(!R.validateMinLength(this.name,1))return new _("name","does not satisfy required minLength constraint: 1")}return"aggregationOperator"!==t||void 0!==this.aggregationOperator&&null!==this.aggregationOperator?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("aggregationOperator","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("label")&&null!==t.label&&void 0!==t.label&&n.setLabel(t.label),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("aggregationOperator")&&null!==t.aggregationOperator&&void 0!==t.aggregationOperator&&n.setAggregationOperator(_f.constructFromObject(t.aggregationOperator)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Uf({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Lf(t.prototype,n),r&&Lf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();zf.prototype.label=void 0,zf.prototype.name=void 0,zf.prototype.aggregationOperator=void 0,zf.prototype.$reserved=void 0,zf.prototype.$objectType=void 0,zf.prototype.$unknownFields=void 0;var Vf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ASCENDING:"ASCENDING",DESCENDING:"DESCENDING",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Vf).find(function(t){return Vf[t]===e});return null==t?Vf.$UNKNOWN:Vf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vf.$UNKNOWN:case Vf.$REDACTED:case Vf.ASCENDING:case Vf.DESCENDING:return;default:throw new Error("Invalid : must be SortOrder.{ $UNKNOWN|$REDACTED|ASCENDING|DESCENDING }")}}};Object.freeze(Vf);const Bf=Vf;var Hf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LINE_CHART:"LINE_CHART",DATA_TABLE:"DATA_TABLE",HISTOGRAM:"HISTOGRAM",METRIC_SUMMARY_TEXT:"METRIC_SUMMARY_TEXT",COUNT_SUMMARY:"COUNT_SUMMARY",TEXT:"TEXT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Hf).find(function(t){return Hf[t]===e});return null==t?Hf.$UNKNOWN:Hf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hf.$UNKNOWN:case Hf.$REDACTED:case Hf.LINE_CHART:case Hf.DATA_TABLE:case Hf.HISTOGRAM:case Hf.METRIC_SUMMARY_TEXT:case Hf.COUNT_SUMMARY:case Hf.TEXT:return;default:throw new Error("Invalid : must be ViewFormat.{ $UNKNOWN|$REDACTED|LINE_CHART|DATA_TABLE|HISTOGRAM|METRIC_SUMMARY_TEXT|COUNT_SUMMARY|TEXT }")}}};Object.freeze(Hf);const Gf=Hf;function Kf(e){return Kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kf(e)}function qf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qf(Object(n),!0).forEach(function(t){Xf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xf(e,t,n){return(t=Qf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qf(r.key),r)}}function Qf(e){var t=function(e){if("object"!=Kf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kf(t)?t:t+""}var ep=new WeakSet,tp=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,ep),this.entityType=t,this.format=n,this.$objectType="opsmgmt.v4.reporting.CustomView",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getFilterCriteria",value:function(){return this.filterCriteria}},{key:"setFilterCriteria",value:function(e){this.filterCriteria=e}},{key:"getFormat",value:function(){return this.format}},{key:"setFormat",value:function(e){this.format=e}},{key:"getFields",value:function(){return this.fields}},{key:"setFields",value:function(e){this.fields=e}},{key:"getEntityIds",value:function(){return this.entityIds}},{key:"setEntityIds",value:function(e){this.entityIds=e}},{key:"getSortColumn",value:function(){return this.sortColumn}},{key:"setSortColumn",value:function(e){this.sortColumn=e}},{key:"getSortOrder",value:function(){return this.sortOrder}},{key:"setSortOrder",value:function(e){this.sortOrder=e}},{key:"getLimit",value:function(){return this.limit}},{key:"setLimit",value:function(e){this.limit=e}},{key:"getOffset",value:function(){return this.offset}},{key:"setOffset",value:function(e){this.offset=e}},{key:"getGroupByColumn",value:function(){return this.groupByColumn}},{key:"setGroupByColumn",value:function(e){this.groupByColumn=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Yf(Yf(Yf(Yf(Yf(Yf(Yf(Yf(Yf(Yf(Yf({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getFilterCriteria()&&null!==this.getFilterCriteria()?{filterCriteria:this.getFilterCriteria()}:{}),void 0!==this.getFormat()&&null!==this.getFormat()?{format:this.getFormat()}:{}),void 0!==this.getFields()&&null!==this.getFields()?{fields:this.getFields().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEntityIds()&&null!==this.getEntityIds()?{entityIds:this.getEntityIds()}:{}),void 0!==this.getSortColumn()&&null!==this.getSortColumn()?{sortColumn:this.getSortColumn()}:{}),void 0!==this.getSortOrder()&&null!==this.getSortOrder()?{sortOrder:this.getSortOrder()}:{}),void 0!==this.getLimit()&&null!==this.getLimit()?{limit:this.getLimit()}:{}),void 0!==this.getOffset()&&null!==this.getOffset()?{offset:this.getOffset()}:{}),void 0!==this.getGroupByColumn()&&null!==this.getGroupByColumn()?{groupByColumn:this.getGroupByColumn()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["entityType","format"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("entityType"===t){if(void 0===this.entityType||null===this.entityType)return new _("entityType","undefined or null");if(!R.validateMaxLength(this.entityType,100))return new _("entityType","does not satisfy required maxLength constraint: 100")}if("filterCriteria"===t){if(void 0===this.filterCriteria||null===this.filterCriteria)return new _("filterCriteria","undefined or null");if(!R.validateMaxLength(this.filterCriteria,2e3))return new _("filterCriteria","does not satisfy required maxLength constraint: 2000")}if("format"===t&&(void 0===this.format||null===this.format))return new _("format","undefined or null");if("fields"===t&&(void 0===this.fields||null===this.fields))return new _("fields","undefined or null");if("entityIds"===t&&(void 0===this.entityIds||null===this.entityIds))return new _("entityIds","undefined or null");if("sortColumn"===t){if(void 0===this.sortColumn||null===this.sortColumn)return new _("sortColumn","undefined or null");if(!R.validateMaxLength(this.sortColumn,500))return new _("sortColumn","does not satisfy required maxLength constraint: 500")}if("sortOrder"===t&&(void 0===this.sortOrder||null===this.sortOrder))return new _("sortOrder","undefined or null");if("limit"===t){if(void 0===this.limit||null===this.limit)return new _("limit","undefined or null");if(!R.validateMaximum(this.limit,25e3))return new _("limit","does not satisfy required maximum constraint: 25000");if(!R.validateMinimum(this.limit,0))return new _("limit","does not satisfy required minimum constraint: 0")}if("offset"===t){if(void 0===this.offset||null===this.offset)return new _("offset","undefined or null");if(!R.validateMinimum(this.offset,0))return new _("offset","does not satisfy required minimum constraint: 0")}return"groupByColumn"!==t||void 0!==this.groupByColumn&&null!==this.groupByColumn?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("groupByColumn","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("entityType")&&null!==t.entityType&&void 0!==t.entityType&&a.setEntityType(t.entityType),t.hasOwnProperty("filterCriteria")&&null!==t.filterCriteria&&void 0!==t.filterCriteria&&a.setFilterCriteria(t.filterCriteria),t.hasOwnProperty("format")&&null!==t.format&&void 0!==t.format&&a.setFormat(Gf.constructFromObject(t.format)),t.hasOwnProperty("fields")&&null!==t.fields&&void 0!==t.fields){for(i=[],n=t.fields,o=0;o<n.length;o++)r=zf.constructFromObject(n[o],void 0),i.push(r);a.setFields(i)}if(t.hasOwnProperty("entityIds")&&null!==t.entityIds&&void 0!==t.entityIds){for(i=[],n=t.entityIds,o=0;o<n.length;o++)i.push(n[o]);a.setEntityIds(i)}if(t.hasOwnProperty("sortColumn")&&null!==t.sortColumn&&void 0!==t.sortColumn&&a.setSortColumn(t.sortColumn),t.hasOwnProperty("sortOrder")&&null!==t.sortOrder&&void 0!==t.sortOrder&&a.setSortOrder(Bf.constructFromObject(t.sortOrder)),t.hasOwnProperty("limit")&&null!==t.limit&&void 0!==t.limit&&a.setLimit(t.limit),t.hasOwnProperty("offset")&&null!==t.offset&&void 0!==t.offset&&a.setOffset(t.offset),t.hasOwnProperty("groupByColumn")&&null!==t.groupByColumn&&void 0!==t.groupByColumn&&a.setGroupByColumn(t.groupByColumn),t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Yf({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Zf(t.prototype,n),r&&Zf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function np(e){return np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},np(e)}function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(n),!0).forEach(function(t){ip(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ip(e,t,n){return(t=sp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ap(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sp(r.key),r)}}function sp(e){var t=function(e){if("object"!=np(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=np(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==np(t)?t:t+""}tp.prototype.entityType=void 0,tp.prototype.filterCriteria=void 0,tp.prototype.format=void 0,tp.prototype.fields=void 0,tp.prototype.entityIds=void 0,tp.prototype.sortColumn=void 0,tp.prototype.sortOrder=void 0,tp.prototype.limit=void 0,tp.prototype.offset=void 0,tp.prototype.groupByColumn=void 0,tp.prototype.$reserved=void 0,tp.prototype.$objectType=void 0,tp.prototype.$unknownFields=void 0;var up=new WeakSet,lp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,up),this.file=t,this.$objectType="opsmgmt.v4.reporting.FileWrapper",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFile",value:function(){return this.file}},{key:"setFile",value:function(e){this.file=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return op(op({},void 0!==this.getFile()&&null!==this.getFile()?{file:this.getFile()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["file"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"file"!==t||void 0!==this.file&&null!==this.file?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("file","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("file")&&null!==t.file&&void 0!==t.file&&n.setFile(t.file),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=op({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ap(t.prototype,n),r&&ap(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function cp(e){return cp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cp(e)}function fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fp(Object(n),!0).forEach(function(t){dp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dp(e,t,n){return(t=hp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hp(r.key),r)}}function hp(e){var t=function(e){if("object"!=cp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cp(t)?t:t+""}lp.prototype.file=void 0,lp.prototype.$reserved=void 0,lp.prototype.$objectType=void 0,lp.prototype.$unknownFields=void 0;var vp=new WeakSet,bp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,vp),this.reportConfigIds=t,this.$objectType="opsmgmt.v4.reporting.ImportExportParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getReportConfigIds",value:function(){return this.reportConfigIds}},{key:"setReportConfigIds",value:function(e){this.reportConfigIds=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return pp(pp({},void 0!==this.getReportConfigIds()&&null!==this.getReportConfigIds()?{reportConfigIds:this.getReportConfigIds()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["reportConfigIds"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"reportConfigIds"!==t||void 0!==this.reportConfigIds&&null!==this.reportConfigIds?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("reportConfigIds","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("reportConfigIds")&&null!==t.reportConfigIds&&void 0!==t.reportConfigIds){for(o=[],n=t.reportConfigIds,r=0;r<n.length;r++)o.push(n[r]);i.setReportConfigIds(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=pp({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&yp(t.prototype,n),r&&yp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function mp(e){return mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mp(e)}function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach(function(t){Op(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Op(e,t,n){return(t=$p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$p(r.key),r)}}function $p(e){var t=function(e){if("object"!=mp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mp(t)?t:t+""}bp.prototype.reportConfigIds=void 0,bp.prototype.$reserved=void 0,bp.prototype.$objectType=void 0,bp.prototype.$unknownFields=void 0;var kp=new WeakSet,Tp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,kp),this.emailAddress=t,this.$objectType="opsmgmt.v4.reporting.Recipient",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getEmailAddress",value:function(){return this.emailAddress}},{key:"setEmailAddress",value:function(e){this.emailAddress=e}},{key:"getRecipientName",value:function(){return this.recipientName}},{key:"setRecipientName",value:function(e){this.recipientName=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return wp(wp(wp({},void 0!==this.getEmailAddress()&&null!==this.getEmailAddress()?{emailAddress:this.getEmailAddress()}:{}),void 0!==this.getRecipientName()&&null!==this.getRecipientName()?{recipientName:this.getRecipientName()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["emailAddress"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("emailAddress"===t){if(void 0===this.emailAddress||null===this.emailAddress)return new _("emailAddress","undefined or null");if(!R.validatePattern(this.emailAddress,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new _("emailAddress","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("recipientName"===t){if(void 0===this.recipientName||null===this.recipientName)return new _("recipientName","undefined or null");if(!R.validateMaxLength(this.recipientName,64))return new _("recipientName","does not satisfy required maxLength constraint: 64")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("emailAddress")&&null!==t.emailAddress&&void 0!==t.emailAddress&&n.setEmailAddress(t.emailAddress),t.hasOwnProperty("recipientName")&&null!==t.recipientName&&void 0!==t.recipientName&&n.setRecipientName(t.recipientName),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=wp({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&jp(t.prototype,n),r&&jp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pp(e){return Pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pp(e)}function Ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach(function(t){Fp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fp(e,t,n){return(t=Rp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rp(r.key),r)}}function Rp(e){var t=function(e){if("object"!=Pp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pp(t)?t:t+""}Tp.prototype.emailAddress=void 0,Tp.prototype.recipientName=void 0,Tp.prototype.$reserved=void 0,Tp.prototype.$objectType=void 0,Tp.prototype.$unknownFields=void 0;var Ap=new WeakSet,Dp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ap),this.recipients=t,this.$objectType="opsmgmt.v4.reporting.NotificationPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getEmailSubject",value:function(){return this.emailSubject}},{key:"setEmailSubject",value:function(e){this.emailSubject=e}},{key:"getEmailBody",value:function(){return this.emailBody}},{key:"setEmailBody",value:function(e){this.emailBody=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Sp(Sp(Sp(Sp({},void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEmailSubject()&&null!==this.getEmailSubject()?{emailSubject:this.getEmailSubject()}:{}),void 0!==this.getEmailBody()&&null!==this.getEmailBody()?{emailBody:this.getEmailBody()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["recipients"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new _("recipients","undefined or null");if(!R.validateMaxItems(this.recipients,100))return new _("recipients","does not satisfy required maxItems constraint: 100");if(!R.validateMinItems(this.recipients,1))return new _("recipients","does not satisfy required minItems constraint: 1")}if("emailSubject"===t){if(void 0===this.emailSubject||null===this.emailSubject)return new _("emailSubject","undefined or null");if(!R.validateMaxLength(this.emailSubject,100))return new _("emailSubject","does not satisfy required maxLength constraint: 100")}if("emailBody"===t){if(void 0===this.emailBody||null===this.emailBody)return new _("emailBody","undefined or null");if(!R.validateMaxLength(this.emailBody,1e3))return new _("emailBody","does not satisfy required maxLength constraint: 1000")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("recipients")&&null!==t.recipients&&void 0!==t.recipients){for(i=[],n=t.recipients,o=0;o<n.length;o++)r=Tp.constructFromObject(n[o],void 0),i.push(r);a.setRecipients(i)}if(t.hasOwnProperty("emailSubject")&&null!==t.emailSubject&&void 0!==t.emailSubject&&a.setEmailSubject(t.emailSubject),t.hasOwnProperty("emailBody")&&null!==t.emailBody&&void 0!==t.emailBody&&a.setEmailBody(t.emailBody),t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Sp({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Cp(t.prototype,n),r&&Cp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Dp.prototype.recipients=void 0,Dp.prototype.emailSubject=void 0,Dp.prototype.emailBody=void 0,Dp.prototype.$reserved=void 0,Dp.prototype.$objectType=void 0,Dp.prototype.$unknownFields=void 0;var Ip={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_EFFICIENCY:"VM_EFFICIENCY",STORAGE_OVER_PROVISIONING:"STORAGE_OVER-PROVISIONING",STORAGE_SUMMARY:"STORAGE_SUMMARY",REBUILD_CAPACITY_RESERVATION:"REBUILD_CAPACITY_RESERVATION",RECYCLE_BIN:"RECYCLE_BIN",CLUSTER_CPU_USAGE:"CLUSTER_CPU_USAGE",CLUSTER_LATENCY:"CLUSTER_LATENCY",CLUSTER_MEMORY_USAGE:"CLUSTER_MEMORY_USAGE",CLUSTER_QUICK_ACCESS:"CLUSTER_QUICK_ACCESS",CLUSTER_RUNWAY:"CLUSTER_RUNWAY",CLUSTER_STORAGE:"CLUSTER_STORAGE",CONTROLLER_IOPS:"CONTROLLER_IOPS",PERFORMANCE:"PERFORMANCE",ALERTS:"ALERTS",TASKS:"TASKS",DISCOVERED_APPS:"DISCOVERED_APPS",SECURITY:"SECURITY",PLAYS:"PLAYS",REPORTS:"REPORTS",DATA_RECOVERY_STATUS:"DATA_RECOVERY_STATUS",IMPACTED_CLUSTER:"IMPACTED_CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ip).find(function(t){return Ip[t]===e});return null==t?Ip.$UNKNOWN:Ip[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ip.$UNKNOWN:case Ip.$REDACTED:case Ip.VM_EFFICIENCY:case Ip.STORAGE_OVER_PROVISIONING:case Ip.STORAGE_SUMMARY:case Ip.REBUILD_CAPACITY_RESERVATION:case Ip.RECYCLE_BIN:case Ip.CLUSTER_CPU_USAGE:case Ip.CLUSTER_LATENCY:case Ip.CLUSTER_MEMORY_USAGE:case Ip.CLUSTER_QUICK_ACCESS:case Ip.CLUSTER_RUNWAY:case Ip.CLUSTER_STORAGE:case Ip.CONTROLLER_IOPS:case Ip.PERFORMANCE:case Ip.ALERTS:case Ip.TASKS:case Ip.DISCOVERED_APPS:case Ip.SECURITY:case Ip.PLAYS:case Ip.REPORTS:case Ip.DATA_RECOVERY_STATUS:case Ip.IMPACTED_CLUSTER:return;default:throw new Error("Invalid : must be PredefinedType.{ $UNKNOWN|$REDACTED|VM_EFFICIENCY|STORAGE_OVER_PROVISIONING|STORAGE_SUMMARY|REBUILD_CAPACITY_RESERVATION|RECYCLE_BIN|CLUSTER_CPU_USAGE|CLUSTER_LATENCY|CLUSTER_MEMORY_USAGE|CLUSTER_QUICK_ACCESS|CLUSTER_RUNWAY|CLUSTER_STORAGE|CONTROLLER_IOPS|PERFORMANCE|ALERTS|TASKS|DISCOVERED_APPS|SECURITY|PLAYS|REPORTS|DATA_RECOVERY_STATUS|IMPACTED_CLUSTER }")}}};Object.freeze(Ip);const _p=Ip;function Np(e){return Np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Np(e)}function Mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mp(Object(n),!0).forEach(function(t){xp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xp(e,t,n){return(t=Jp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jp(r.key),r)}}function Jp(e){var t=function(e){if("object"!=Np(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Np(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Np(t)?t:t+""}var Wp=new WeakSet,zp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Wp),this.$objectType="opsmgmt.v4.reporting.PredefinedView",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getPredefinedView",value:function(){return this.predefinedView}},{key:"setPredefinedView",value:function(e){this.predefinedView=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Up(Up({},void 0!==this.getPredefinedView()&&null!==this.getPredefinedView()?{predefinedView:this.getPredefinedView()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){return"predefinedView"!==t||void 0!==this.predefinedView&&null!==this.predefinedView?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null"):new _("predefinedView","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("predefinedView")&&null!==t.predefinedView&&void 0!==t.predefinedView&&n.setPredefinedView(_p.constructFromObject(t.predefinedView)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Up({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Lp(t.prototype,n),r&&Lp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Vp(e){return Vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vp(e)}function Bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bp(Object(n),!0).forEach(function(t){Gp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gp(e,t,n){return(t=qp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qp(r.key),r)}}function qp(e){var t=function(e){if("object"!=Vp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vp(t)?t:t+""}zp.prototype.predefinedView=void 0,zp.prototype.$reserved=void 0,zp.prototype.$objectType=void 0,zp.prototype.$unknownFields=void 0;var Yp=new WeakSet,Xp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Yp),this.$objectType="opsmgmt.v4.reporting.ReportCustomization",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getHeaderHtml",value:function(){return this.headerHtml}},{key:"setHeaderHtml",value:function(e){this.headerHtml=e}},{key:"getFooterHtml",value:function(){return this.footerHtml}},{key:"setFooterHtml",value:function(e){this.footerHtml=e}},{key:"getCssStyleSheet",value:function(){return this.cssStyleSheet}},{key:"setCssStyleSheet",value:function(e){this.cssStyleSheet=e}},{key:"getLogoImageExtId",value:function(){return this.logoImageExtId}},{key:"setLogoImageExtId",value:function(e){this.logoImageExtId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Hp(Hp(Hp(Hp(Hp({},void 0!==this.getHeaderHtml()&&null!==this.getHeaderHtml()?{headerHtml:this.getHeaderHtml()}:{}),void 0!==this.getFooterHtml()&&null!==this.getFooterHtml()?{footerHtml:this.getFooterHtml()}:{}),void 0!==this.getCssStyleSheet()&&null!==this.getCssStyleSheet()?{cssStyleSheet:this.getCssStyleSheet()}:{}),void 0!==this.getLogoImageExtId()&&null!==this.getLogoImageExtId()?{logoImageExtId:this.getLogoImageExtId()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("headerHtml"===t&&(void 0===this.headerHtml||null===this.headerHtml))return new _("headerHtml","undefined or null");if("footerHtml"===t&&(void 0===this.footerHtml||null===this.footerHtml))return new _("footerHtml","undefined or null");if("cssStyleSheet"===t&&(void 0===this.cssStyleSheet||null===this.cssStyleSheet))return new _("cssStyleSheet","undefined or null");if("logoImageExtId"===t){if(void 0===this.logoImageExtId||null===this.logoImageExtId)return new _("logoImageExtId","undefined or null");if(!R.validatePattern(this.logoImageExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new _("logoImageExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new _(t,"no such property exists"):new _("$unknownFields","undefined or null"):new _("$objectType","undefined or null"):new _("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("headerHtml")&&null!==t.headerHtml&&void 0!==t.headerHtml&&n.setHeaderHtml(t.headerHtml),t.hasOwnProperty("footerHtml")&&null!==t.footerHtml&&void 0!==t.footerHtml&&n.setFooterHtml(t.footerHtml),t.hasOwnProperty("cssStyleSheet")&&null!==t.cssStyleSheet&&void 0!==t.cssStyleSheet&&n.setCssStyleSheet(t.cssStyleSheet),t.hasOwnProperty("logoImageExtId")&&null!==t.logoImageExtId&&void 0!==t.logoImageExtId&&n.setLogoImageExtId(t.logoImageExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Hp({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Kp(t.prototype,n),r&&Kp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Xp.prototype.headerHtml=void 0,Xp.prototype.footerHtml=void 0,Xp.prototype.cssStyleSheet=void 0,Xp.prototype.logoImageExtId=void 0,Xp.prototype.$reserved=void 0,Xp.prototype.$objectType=void 0,Xp.prototype.$unknownFields=void 0;var Zp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PDF:"PDF",CSV:"CSV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Zp).find(function(t){return Zp[t]===e});return null==t?Zp.$UNKNOWN:Zp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Zp.$UNKNOWN:case Zp.$REDACTED:case Zp.PDF:case Zp.CSV:return;default:throw new Error("Invalid : must be ReportFormat.{ $UNKNOWN|$REDACTED|PDF|CSV }")}}};Object.freeze(Zp);const Qp=Zp;function ed(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function td(e){return td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},td(e)}function nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach(function(t){od(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function od(e,t,n){return(t=ad(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ad(r.key),r)}}function ad(e){var t=function(e){if("object"!=td(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=td(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==td(t)?t:t+""}function sd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sd=function(){return!!e})()}function ud(e){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ud(e)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ld(e,t)}function cd(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")}var fd=new WeakSet,pd=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=ud(t),function(e,t){if(t&&("object"==td(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,sd()?Reflect.construct(t,n||[],ud(e).constructor):t.apply(e,n))}(this,t),fd),r.name=e,r.type=n,r.$objectType="opsmgmt.v4.reporting.View",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getHeading",value:function(){return this.heading}},{key:"setHeading",value:function(e){this.heading=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"toJson",value:function(e){return rd(!1===e?rd(rd(rd(rd(rd(rd({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getHeading()&&null!==this.getHeading()?{heading:this.getHeading()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:void 0!==this.getType().toJson?this.getType().toJson(!1):Array.isArray(this.getType())?this.getType().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):cd(fd,this,dd).call(this,this.getType(),!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):rd(rd(rd({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getHeading()&&null!==this.getHeading()?{heading:this.getHeading()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:void 0!==this.getType().toJson?this.getType().toJson():Array.isArray(this.getType())?this.getType().map(function(e){return void 0!==e.toJson?e.toJson():e}):cd(fd,this,dd).call(this,this.getType())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","type"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,256))return new _("name","does not satisfy required maxLength constraint: 256");if(!R.validateMinLength(this.name,1))return new _("name","does not satisfy required minLength constraint: 1")}if("heading"===t){if(void 0===this.heading||null===this.heading)return new _("heading","undefined or null");if(!R.validateMaxLength(this.heading,256))return new _("heading","does not satisfy required maxLength constraint: 256")}return"type"!==t||void 0!==this.type&&null!==this.type?new _(t,"no such property exists"):new _("type","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,Qn.constructFromObject(e,r,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&r.setName(e.name),e.hasOwnProperty("heading")&&null!==e.heading&&void 0!==e.heading&&r.setHeading(e.heading),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type)switch(n=e.type.hasOwnProperty("$objectType")?e.type.$objectType:td(e.type)){case"opsmgmt.v4.reporting.CustomView":r.setType(tp.constructFromObject(e.type,void 0));break;case"opsmgmt.v4.reporting.PredefinedView":r.setType(zp.constructFromObject(e.type,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(!o)for(var i in r.$unknownFields=rd({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&id(n.prototype,r),o&&id(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);function dd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ed(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ed(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===td(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function yd(e){return yd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yd(e)}function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(Object(n),!0).forEach(function(t){bd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bd(e,t,n){return(t=gd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function md(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gd(r.key),r)}}function gd(e){var t=function(e){if("object"!=yd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yd(t)?t:t+""}function wd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wd=function(){return!!e})()}function Od(e){return Od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Od(e)}function jd(e,t){return jd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jd(e,t)}pd.prototype.name=void 0,pd.prototype.heading=void 0,pd.prototype.type=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;var $d=new WeakSet,kd=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(r=function(e,t,n){return t=Od(t),function(e,t){if(t&&("object"==yd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wd()?Reflect.construct(t,n||[],Od(e).constructor):t.apply(e,n))}(this,t),$d),r.name=e,r.views=n,r.$objectType="opsmgmt.v4.reporting.ViewReport",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jd(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getViews",value:function(){return this.views}},{key:"setViews",value:function(e){this.views=e}},{key:"getReportFormat",value:function(){return this.reportFormat}},{key:"setReportFormat",value:function(e){this.reportFormat=e}},{key:"getNotificationPolicy",value:function(){return this.notificationPolicy}},{key:"setNotificationPolicy",value:function(e){this.notificationPolicy=e}},{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"toJson",value:function(e){return vd(!1===e?vd(vd(vd(vd(vd(vd(vd(vd(vd({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getViews()&&null!==this.getViews()?{views:this.getViews().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getReportFormat()&&null!==this.getReportFormat()?{reportFormat:this.getReportFormat()}:{}),void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{}),void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:this.getStartTime()}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:this.getEndTime()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):vd(vd(vd(vd(vd(vd({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getViews()&&null!==this.getViews()?{views:this.getViews().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getReportFormat()&&null!==this.getReportFormat()?{reportFormat:this.getReportFormat()}:{}),void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{}),void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:this.getStartTime()}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:this.getEndTime()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof E?r=["name","views"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach(function(t){(i=n.validateProperty(t,e))&&o.push(i)}),new Promise(function(e,t){0!==o.length?t(i):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new _("name","undefined or null");if(!R.validateMaxLength(this.name,100))return new _("name","does not satisfy required maxLength constraint: 100");if(!R.validateMinLength(this.name,1))return new _("name","does not satisfy required minLength constraint: 1")}if("views"===t){if(void 0===this.views||null===this.views)return new _("views","undefined or null");if(!R.validateMaxItems(this.views,50))return new _("views","does not satisfy required maxItems constraint: 50");if(!R.validateMinItems(this.views,1))return new _("views","does not satisfy required minItems constraint: 1")}return"reportFormat"!==t||void 0!==this.reportFormat&&null!==this.reportFormat?"notificationPolicy"!==t||void 0!==this.notificationPolicy&&null!==this.notificationPolicy?"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?new _(t,"no such property exists"):new _("endTime","undefined or null"):new _("startTime","undefined or null"):new _("notificationPolicy","undefined or null"):new _("reportFormat","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,Qn.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("views")&&null!==e.views&&void 0!==e.views){for(i=[],n=e.views,o=0;o<n.length;o++)r=pd.constructFromObject(n[o],void 0),i.push(r);a.setViews(i)}if(e.hasOwnProperty("reportFormat")&&null!==e.reportFormat&&void 0!==e.reportFormat){for(i=[],n=e.reportFormat,o=0;o<n.length;o++)r=Qp.constructFromObject(n[o],void 0),i.push(r);a.setReportFormat(i)}if(e.hasOwnProperty("notificationPolicy")&&null!==e.notificationPolicy&&void 0!==e.notificationPolicy&&a.setNotificationPolicy(Dp.constructFromObject(e.notificationPolicy)),e.hasOwnProperty("startTime")&&null!==e.startTime&&void 0!==e.startTime&&a.setStartTime(e.startTime),e.hasOwnProperty("endTime")&&null!==e.endTime&&void 0!==e.endTime&&a.setEndTime(e.endTime),!s)for(var u in a.$unknownFields=vd({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&md(n.prototype,r),o&&md(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Qn);kd.prototype.name=void 0,kd.prototype.views=void 0,kd.prototype.reportFormat=void 0,kd.prototype.notificationPolicy=void 0,kd.prototype.startTime=void 0,kd.prototype.endTime=void 0,Qn.prototype.extId=void 0,Qn.prototype.links=void 0,Wn.prototype.tenantId=void 0;const Td={ApiClient:lt,ReportConfigApi:Ha,GlobalReportSettingApi:Js,ReportArtifactsApi:yl,ReportsApi:Df,Flag:z,KVPair:ce,MapOfStringWrapper:Q,Message:Oe,MessageSeverity:de,TenantAwareModel:Wn,ApiLink:Fe,ApiResponseMetadata:Ue,ExternalizableAbstractModel:Qn,AggregateFunction:mo,CreateReportApiResponse:jf,CreateReportConfigApiResponse:Gi,DataCriteria:yo,DeleteReportApiResponse:Jl,DeleteReportConfigApiResponse:Oa,EntitySelection:Yl,EntityType:tr,GetGlobalReportSettingApiResponse:Cs,GetReportApiResponse:Dc,GetReportConfigApiResponse:_a,GlobalReportSetting:bs,ListReportConfigsApiResponse:sa,ListReportsApiResponse:uf,ConfigNotificationPolicy:gr,NotifyReportApiResponse:Gc,ConfigRecipient:lr,RepeatCriteria:to,Report:uc,ReportConfig:Di,ConfigReportCustomization:Er,ConfigReportFormat:fr,ReportNotificationSpec:wc,ReportSchedule:Ur,RetentionConfig:Gr,Row:di,ScheduleInterval:Fr,Section:Oi,SortKey:ro,ConfigSortOrder:io,TimeFilter:vo,UpdateGlobalReportSettingsApiResponse:is,UpdateReportConfigApiResponse:Dn,Widget:oi,WidgetConfig:Uo,WidgetField:Po,WidgetSize:So,WidgetTemplate:Ko,WidgetTemplateType:Lo,WidgetType:Co,ArtifactFileType:zs,ArtifactType:Bs,CreateReportArtifactApiResponse:zu,DownloadArtifactileApiResponse:rl,DownloadReportApiResponse:El,ListReportArtifactsApiResponse:hu,ReportArtifact:nu,UploadArtifactApiResponse:Fu,AppMessage:_t,ErrorResponse:fn,SchemaValidationError:Qt,SchemaValidationErrorMessage:Vt,CustomView:tp,Field:zf,FileWrapper:lp,ImportExportParams:bp,ReportingNotificationPolicy:Dp,Operator:_f,PredefinedType:_p,PredefinedView:zp,ReportingRecipient:Tp,ReportingReportCustomization:Xp,ReportingReportFormat:Qp,ReportingSortOrder:Bf,View:pd,ViewFormat:Gf,ViewReport:kd,TaskReference:wn}})(),r.default})());
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Opsmgmt=t())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={19(e,t,n){"use strict";var i=n(897);function s(e){if(e)return function(e){for(var t in s.prototype)Object.prototype.hasOwnProperty.call(s.prototype,t)&&(e[t]=s.prototype[t]);return e}(e)}e.exports=s,s.prototype.get=function(e){return this.header[e.toLowerCase()]},s.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var n=i.params(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(this[s]=n[s]);this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},s.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340(e){e.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var t="[...]",n="[Circular]",i=[],s=[];function r(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,n,o){var a;void 0===o&&(o=r()),l(e,"",0,[],void 0,0,o);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);void 0!==o.get?o.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,o])):s.push([t,n,e]):(r[n]=e,i.push([r,n,t]))}function l(e,i,s,r,o,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<r.length;h++)if(r[h]===e)return void a(n,e,i,o);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,i,o);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(t,e,i,o);if(r.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,r,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,r,e,d,u)}}r.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,o){void 0===o&&(o=r());var a,l=h(e,"",0,[],void 0,0,o)||e;try{a=0===s.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,s,r,o,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<o.length;p++)if(o[p]===e)return void a(n,e,s,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,s,l);if(void 0!==c.edgesLimit&&r+1>c.edgesLimit)return void a(t,e,s,l);if(o.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,o,e,u,c);else{var g={},y=Object.keys(e).sort(d);for(p=0;p<y.length;p++){var v=y[p];h(e[v],v,p,o,e,u,c),g[v]=e[v]}if(void 0===l)return g;i.push([l,s,e]),l[s]=g}o.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var r=s[i];if(r[1]===t&&r[0]===n){n=r[2],s.splice(i,1);break}}return e.call(this,t,n)}}},388(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,i){if(i)return i(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,i){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const s=t.length,r=e-s;if(0!==r){if(r<0)throw new Error("Cannot have more delays than retries");{const e=t[s-1];for(let n=0;n<r+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=i,this}e.exports=function(e){const i=e.Request;return i.prototype.oldRetry=i.prototype.retry,i.prototype.retry=n,i.prototype.callback=t,e}},545(){},548(){},585(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s;"undefined"!=typeof window?s=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),s=void 0):s=self;var r=n(960),o=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=w,c.getXHR=function(){if(s.XMLHttpRequest&&(!s.location||"file:"!==s.location.protocol||!s.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function g(e){if(!l(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&y(t,n,e[n]);return t.join("&")}function y(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach(function(n){y(e,t,n)});else if(l(n))for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&y(e,"".concat(t,"[").concat(i,"]"),n[i]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function v(e){for(var t,n,i={},s=e.split("&"),r=0,o=s.length;r<o;++r)-1===(n=(t=s[r]).indexOf("="))?i[decodeURIComponent(t)]="":i[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return i}function f(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,i,s,r=e.split(/\r?\n/),o={},a=0,l=r.length;a<l;++a)-1!==(t=(n=r[a]).indexOf(":"))&&(i=n.slice(0,t).toLowerCase(),s=p(n.slice(t+1)),o[i]=s);return o}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,i=null;try{i=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=i.status,n.callback(e,i)):n.callback(null,i)})}function $(e,t,n){var i=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}c.serializeObject=g,c.parseString=v,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":g,"application/json":o},c.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},d(m.prototype),m.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&f(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,i="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),s=new Error(i);return s.status=this.status,s.method=t,s.url=n,s},c.Response=m,r(w.prototype),a(w.prototype),w.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},w.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},w.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},w.prototype.query=function(e){return"string"!=typeof e&&(e=g(e)),e&&this._query.push(e),this},w.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new s.FormData),this._formData},w.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},w.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},w.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var i=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var s=this._header["content-type"],r=this._serializer||c.serialize[s?s.split(";")[0]:""];!r&&f(s)&&(r=c.serialize["application/json"]),r&&(n=r(n))}for(var o in this.header)null!==this.header[o]&&Object.prototype.hasOwnProperty.call(this.header,o)&&t.setRequestHeader(o,this.header[o]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var i=new c.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var i=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.head=function(e,t,n){var i=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.options=function(e,t,n){var i=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.del=$,c.delete=$,c.patch=function(e,t,n){var i=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.post=function(e,t,n){var i=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.put=function(e,t,n){var i=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}},597(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var i;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(i=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},695(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=n(388);function r(e){if(e)return function(e){for(var t in r.prototype)Object.prototype.hasOwnProperty.call(r.prototype,t)&&(e[t]=r.prototype[t]);return e}(e)}e.exports=r,r.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},r.prototype.parse=function(e){return this._parser=e,this},r.prototype.responseType=function(e){return this._responseType=e,this},r.prototype.serialize=function(e){return this._serializer=e,this},r.prototype.timeout=function(e){if(!e||"object"!==i(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},r.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var o=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];r.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&o.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},r.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},r.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var i=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){i.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),i.end(function(n,i){n?t(n):e(i)})})}return this._fullfilledPromise.then(e,t)},r.prototype.catch=function(e){return this.then(void 0,e)},r.prototype.use=function(e){return e(this),this},r.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},r.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},r.prototype.get=function(e){return this._header[e.toLowerCase()]},r.prototype.getHeader=r.prototype.get,r.prototype.set=function(e,t){if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},r.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},r.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},r.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},r.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(i("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},r.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},r.prototype.redirects=function(e){return this._maxRedirects=e,this},r.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},r.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},r.prototype.send=function(e){var t=s(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&s(this._data))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(this._data[i]=e[i]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},r.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},r.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},r.prototype._appendQueryString=function(){console.warn("Unsupported")},r.prototype._timeoutError=function(e,t,n){if(!this._aborted){var i=new Error("".concat(e+t,"ms exceeded"));i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)}},r.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},784(e,t,n){"use strict";var i="win32"===process.platform,s=n(818);function r(e,t){for(var n=[],i=0;i<e.length;i++){var s=e[i];s&&"."!==s&&(".."===s?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(s))}return n}function o(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var i=t;i>=0&&!e[i];i--);return 0===n&&i===t?e:n>i?[]:e.slice(n,i+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),i=t[3]||"",s=l.exec(i);return[n,s[1],s[2],s[3]]}function h(e){var t=a.exec(e),n=t[1]||"",i=!!n&&":"!==n[1];return{device:n,isUnc:i,isAbsolute:i||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var o;if(i>=0?o=arguments[i]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!s.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var a=h(o),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=r(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,i=t.isUnc,s=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=r(o.split(/[\\\/]+/),!s).join("\\"))||s||(o="."),o&&a&&(o+="\\"),i&&(n=c(n)),n+(s?"\\":"")+o},d.isAbsolute=function(e){return h(e).isAbsolute},d.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var i=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(i=i.replace(/^[\\\/]{2,}/,"\\")),d.normalize(i)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),i=t.toLowerCase(),s=o(t.split("\\")),r=o(n.split("\\")),a=o(i.split("\\")),l=Math.min(r.length,a.length),u=l,h=0;h<l;h++)if(r[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<r.length;h++)c.push("..");return(c=c.concat(s.slice(u))).join("\\")},d._makeLong=function(e){if(!s.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,i=e.base||"";return n?n[n.length-1]===d.sep?n+i:n+d.sep+i:i},d.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,g={};function y(e){return p.exec(e).slice(1)}g.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:process.cwd();if(!s.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[0])}return(t?"/":"")+(e=r(e.split("/"),!t).join("/"))||"."},g.normalize=function(e){var t=g.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=r(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},g.isAbsolute=function(e){return"/"===e.charAt(0)},g.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return g.normalize(e)},g.relative=function(e,t){e=g.resolve(e).substr(1),t=g.resolve(t).substr(1);for(var n=o(e.split("/")),i=o(t.split("/")),s=Math.min(n.length,i.length),r=s,a=0;a<s;a++)if(n[a]!==i[a]){r=a;break}var l=[];for(a=r;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(r))).join("/")},g._makeLong=function(e){return e},g.dirname=function(e){var t=y(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},g.basename=function(e,t){var n=y(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},g.extname=function(e){return y(e)[3]},g.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+g.sep:"")+(e.base||"")},g.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=y(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},g.sep="/",g.delimiter=":",e.exports=i?d:g,e.exports.posix=g,e.exports.win32=d},799(){},818(e,t,n){var i=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(o(arguments[n]));return t.join(" ")}n=1;for(var s=arguments,r=s.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch(e){return"[Circular]"}default:return e}}),l=s[n];n<r;l=s[++n])g(l)||!w(l)?a+=" "+l:a+=" "+o(l);return a},t.deprecate=function(e,i){if(f(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===process.noDeprecation)return e;var s=!1;return function(){if(!s){if(process.throwDeprecation)throw new Error(i);process.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}};var s,r={};function o(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),f(i.showHidden)&&(i.showHidden=!1),f(i.depth)&&(i.depth=2),f(i.colors)&&(i.colors=!1),f(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),d(i,e,i.depth)}function a(e,t){var n=o.styles[t];return n?"["+o.colors[n][0]+"m"+e+"["+o.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&b(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var s=n.inspect(i,e);return v(s)||(s=d(e,s,i)),s}var r=function(e,t){if(f(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,n);if(r)return r;var o=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),T(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return u(n);if(0===o.length){if(b(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(m(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if($(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return u(n)}var w,F="",k=!1,O=["{","}"];return c(n)&&(k=!0,O=["[","]"]),b(n)&&(F=" [Function"+(n.name?": "+n.name:"")+"]"),m(n)&&(F=" "+RegExp.prototype.toString.call(n)),$(n)&&(F=" "+Date.prototype.toUTCString.call(n)),T(n)&&(F=" "+u(n)),0!==o.length||k&&0!=n.length?i<0?m(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),w=k?function(e,t,n,i,s){for(var r=[],o=0,a=t.length;o<a;++o)E(t,String(o))?r.push(h(e,t,n,i,String(o),!0)):r.push("");return s.forEach(function(s){s.match(/^\d+$/)||r.push(h(e,t,n,i,s,!0))}),r}(e,n,i,a,o):o.map(function(t){return h(e,n,i,a,t,k)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(w,F,O)):O[0]+F+O[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,s,r){var o,a,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),E(i,s)||(o="["+s+"]"),a||(e.seen.indexOf(l.value)<0?(a=g(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=r?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),f(o)){if(r&&s.match(/^\d+$/))return a;(o=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function g(e){return null===e}function y(e){return"number"==typeof e}function v(e){return"string"==typeof e}function f(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===F(e)}function w(e){return"object"==typeof e&&null!==e}function $(e){return w(e)&&"[object Date]"===F(e)}function T(e){return w(e)&&("[object Error]"===F(e)||e instanceof Error)}function b(e){return"function"==typeof e}function F(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(f(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!r[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var n=process.pid;r[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else r[e]=function(){};return r[e]},t.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=v,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=f,t.isRegExp=m,t.isObject=w,t.isDate=$,t.isError=T,t.isFunction=b,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},897(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),i=n.shift(),s=n.shift();return i&&s&&(e[i]=s),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),i=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=i,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<i.length;s++)if((n=i[s])===t||n.fn===t){i.splice(s,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var s=(n=n.slice(0)).length;i<s;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965(){},975(){}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";n.d(i,{default:()=>ss});var e,t=n(585),s=n.n(t);class r{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new r,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}r.prototype.linkFirst=null,r.prototype.linkPrev=null,r.prototype.linkNext=null,r.prototype.linkLast=null,r.prototype.apiClient=null,r.prototype.page=null,r.prototype.resultsPerPage=null,r.prototype.resultsTotal=null;var o=new Uint8Array(16);function a(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}const l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return h(i)};var p=n(540),g=n.n(p),y=n(545),v=n.n(y),f=n(799),m=n.n(f),w=n(784),$=n.n(w),T=n(548);const b={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return b[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===b.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(b);const F=b;class k{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class O{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var E=new WeakSet;class j{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=E),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new j,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!k.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function R(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")}j.prototype.name=void 0,j.prototype.value=!1,j.prototype.$reserved=void 0,j.prototype.$objectType=void 0,j.prototype.$unknownFields=void 0;var C=new WeakSet;class A{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=C),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new A,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:R(C,this,S).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:R(C,this,S).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("map","undefined or null")}}function S(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function P(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")}A.prototype.map=void 0,A.prototype.$reserved=void 0,A.prototype.$objectType=void 0,A.prototype.$unknownFields=void 0;var I=new WeakSet;class U{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=I),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o,a;if(e){if(t=t||new U,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(o=[],i=e.value,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(a){case"string":case"integer":case"number":o.push(i[r]);break;case"common.v1.config.MapOfStringWrapper":s=A.constructFromObject(i[r],void 0),o.push(s);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(o)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):P(I,this,N).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):P(I,this,N).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!k.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function N(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}U.prototype.name=void 0,U.prototype.value=void 0,U.prototype.$reserved=void 0,U.prototype.$objectType=void 0,U.prototype.$unknownFields=void 0;const D={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(D).find(t=>D[t]===e);return null==t?D.$UNKNOWN:D[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case D.$UNKNOWN:case D.$REDACTED:case D.INFO:case D.WARNING:case D.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(D);const _=D;var M=new WeakSet;class x{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=M),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new x,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(_.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("severity","undefined or null"):new O("locale","undefined or null"):new O("message","undefined or null"):new O("code","undefined or null")}}x.prototype.code=void 0,x.prototype.message=void 0,x.prototype.locale="en_US",x.prototype.severity=void 0,x.prototype.$reserved=void 0,x.prototype.$objectType=void 0,x.prototype.$unknownFields=void 0;var L=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=L),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new J,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("rel","undefined or null"):new O("href","undefined or null")}}J.prototype.href=void 0,J.prototype.rel=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0;var W,z=new WeakSet;class V{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=z),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new V,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(o=[],i=e.flags,r=0;r<i.length;r++)s=j.constructFromObject(i[r],void 0),o.push(s);t.setFlags(o)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],i=e.links,r=0;r<i.length;r++)s=J.constructFromObject(i[r],void 0),o.push(s);t.setLinks(o)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(o=[],i=e.messages,r=0;r<i.length;r++)s=x.constructFromObject(i[r],void 0),o.push(s);t.setMessages(o)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(o=[],i=e.extraInfo,r=0;r<i.length;r++)s=U.constructFromObject(i[r],void 0),o.push(s);t.setExtraInfo(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new O("flags","undefined or null");if(!k.validateMaxItems(this.flags,20))return new O("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!k.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new O("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new O("messages","undefined or null");if(!k.validateMaxItems(this.messages,20))return new O("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new O("extraInfo","undefined or null");if(!k.validateMaxItems(this.extraInfo,20))return new O("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function H(e,t,n){B(e,t),t.set(e,n)}function B(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function G(e,t){return e.get(q(e,t))}function K(e,t,n){return e.set(q(e,t),n),n}function q(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")}V.prototype.flags=void 0,V.prototype.links=void 0,V.prototype.totalAvailableResults=void 0,V.prototype.messages=void 0,V.prototype.extraInfo=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0,g()(s());var Y=new WeakMap,X=new WeakMap,Z=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,se=new WeakMap,re=new WeakMap,oe=new WeakMap,ae=new WeakSet;class le{constructor(){var e;B(this,e=ae),e.add(this),H(this,Y,void 0),H(this,X,void 0),H(this,Z,void 0),H(this,Q,void 0),H(this,ee,void 0),H(this,te,void 0),H(this,ne,void 0),H(this,ie,void 0),H(this,se,void 0),H(this,re,void 0),H(this,oe,void 0),K(oe,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",K(ie,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},K(ee,this,3e4),K(te,this,3e4),K(ne,this,108e5),this.readTimeout=G(te,this),this.connectTimeout=G(ee,this),this.cache=!0,K(X,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(s().agent)),this.requestAgent=null,K(re,this,null),this.allowVersionNegotiation=!0,K(se,this,!1),this.debug=!1,K(Z,this,null),this.username=null,this.password=null,K(Q,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(v().Agent)({rejectUnauthorized:e}),K(Q,this,e)}get verifySsl(){return G(Q,this)}set host(e){K(ie,this,e),K(se,this,!1),K(re,this,null)}get host(){return G(ie,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=m().createWriteStream(e,{flags:"a"})),K(Z,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&K(X,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==G(re,this)&&null!==G(re,this)&&null!==G(re,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.0"!==G(re,this)){q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Changing uri",e,"to negotiated version",G(re,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,G(re,this))}K(Y,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let i="";""!==G(Y,this)&&""!==this.host&&""!==this.port?i=G(Y,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(i=self.origin);var s=i+e;return s.replace(/\{([\w-]+)\}/g,(e,n)=>{var i;return i=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(i)})}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let i=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=i);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=i)}return t}static getEtag(e){let t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return i?e[i]:null}return null}getNegotiatedVersion(){return G(re,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===G(se,this)?this.callApiInternal("/api/opsmgmt/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:i})=>{if(200===i.status&&t.hasOwnProperty("data")&&null!==t.data){const i=t.data,s="v4.0";if(q(ae,this,me).call(this,q(ae,this,we).call(this,i),q(ae,this,we).call(this,s)))return q(ae,this,Fe).call(this,G(oe,this).WARN,null,"Server version",i,"is below minimum supported version",s,". Version negotiation will not be performed."),K(re,this,null),K(se,this,!1),void n(e);K(re,this,q(ae,this,fe).call(this,"v4.0",i)),K(se,this,!0),q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Negotiated Version with server :",G(re,this)),n(e)}else q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Could not fetch supported versions from server"),K(re,this,null),K(se,this,!1),n(e)}).catch(t=>{q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Could not fetch supported versions from server"),K(re,this,null),K(se,this,!1),n(e)}):n(e)})}callApi(e,t,n,i,s,r,o,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,i,s,r,o,a,l,d,u)})}callApiInternal(e,t,i,r,o,a,l,d,u,h,p){var g=this.buildUrl(e,i);const y="undefined"!=typeof window&&void 0!==window.document;let v=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>v.includes(e))&&y&&this.downloadDestination)return new Promise((e,n)=>{const i=q(ae,this,je).call(this,g,t,r,o,l,d,u,h);fetch(i.url,i.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";q(ae,this,Fe).call(this,G(oe,this).ERROR,null,e),n(e)}const i=t.body.getReader(),s=this.downloadDestination.getWriter(),r=()=>i.read().then(({done:n,value:i})=>(n&&(s.close(),q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),s.write(i).then(r)));return r()}).catch(e=>{q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Caught the following error :",e),n(e)})});var f=s()(t,g);if(f.oldCallback=f.callback,f.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},q(ae,this,pe).call(this,f,d),"GET"===t.toUpperCase()&&!1===this.cache&&(r._=(new Date).getTime()),f.query(q(ae,this,ce).call(this,r)),f.set(this.defaultHeaders).set(q(ae,this,ce).call(this,o)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==o["NTNX-Request-Id"]&&void 0!==o["NTNX-Request-Id"])){let e=c();f.set(q(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}y||(this.downloadDestination=".",f.set(q(ae,this,ce).call(this,{"User-Agent":"Nutanix-opsmgmt-js-client/4.0.3"}))),this.requestAgent&&f.agent(this.requestAgent);var w={};w.response=q(ae,this,$e).call(this,this.connectTimeout,G(ee,this)),w.deadline=q(ae,this,$e).call(this,this.readTimeout,G(te,this)),f.timeout(w);var $=o.hasOwnProperty("Content-Type")?o["Content-Type"]:q(ae,this,ue).call(this,u);if($?"multipart/form-data"!=$&&f.type($):f.header["Content-Type"]||f.type("application/json"),q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Request URL :",t,g),q(ae,this,Fe).call(this,G(oe,this).DEBUG,q(ae,this,Oe),"Request Headers :",void 0===f.header?"":f.header),"application/x-www-form-urlencoded"===$)f.send(q(ae,this,ce).call(this,a));else if("multipart/form-data"==$){var T=q(ae,this,ce).call(this,a);for(var b in T)T.hasOwnProperty(b)&&(q(ae,this,he).call(this,T[b])?f.attach(b,T[b]):f.field(b,T[b]))}else{if("application/octet-stream"===$&&null!=l&&"function"==typeof l.pipe){if(q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(f);else{let e;try{e=n(965)}catch(e){q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){f.write(e)},close(){q(ae,this,Fe).call(this,G(oe,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"READABLE STREAM ABORTED")}})):f.send(l)}return new Promise((t,n)=>{f.on("error",e=>{q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",i=>{q(ae,this,Ee).call(this,i,e,r,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&f.send(l)}"Blob"==typeof p?f.responseType("blob"):"String"===p&&f.responseType("string"),q(ae,this,be).call(this,f),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Request Body :",void 0===f._data?"":f._data);var F=o.hasOwnProperty("Accept")&&null!=o.Accept?o.Accept:h.join(", ");return F&&f.accept(F),new Promise((n,i)=>{f.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Caught the following error :",e)}).end((o,a)=>{if(o)q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Caught error during the request!"),q(ae,this,Fe).call(this,G(oe,this).ERROR,null,o),404===o.status&&(K(se,this,!1),K(re,this,null)),null!==o.response&&void 0!==o.response?o.data=q(ae,this,ye).call(this,o.response,p):o.data=q(ae,this,ge).call(this,o),i(o);else{q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Response Status :",a.status),q(ae,this,Fe).call(this,G(oe,this).DEBUG,q(ae,this,Oe),"Response Headers :",a.headers);let o="";if(a.headers.hasOwnProperty("content-type")&&(o=a.headers["content-type"]),v.includes(o)){if(!y){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=m().createWriteStream(e);q(ae,this,Re).call(this,a,t,e,n,i,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",r=this;q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Redirecting to :",a.headers.location);var l=s()(t,a.headers.location);l.set(f.header),a.headers.hasOwnProperty("x-redirect-token")&&(q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let o=m().createWriteStream(e);l.pipe(o),l.on("response",function(t){q(ae,r,Fe).call(r,G(oe,r).INFO,null,"Received response after redirection :",t.status),q(ae,r,Re).call(r,t,o,e,n,i,p)})}else q(ae,this,Ee).call(this,a,e,r,p,n,i)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,i){let s=null;if(void 0!==t&&t.hasOwnProperty(n)&&(s=t[n]),null===s&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=e.match(new RegExp(`${t}=([0-9]+)`));i&&(s=i[1])}return null===s&&(s=i),s}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var i,s;for(var r in t)if(t.hasOwnProperty(r)){i=r,s=t[r];break}var o={};for(var r in e)if(e.hasOwnProperty(r)){var a=le.convertToType(r,i),l=le.convertToType(e[r],s);o[a]=l}return o}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n));else for(var s in e)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(q(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof T.Blob&&e instanceof T.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var i=e[n];q(ae,this,he).call(this,i)||Array.isArray(i)?t[n]=i:t[n]=this.paramToString(i)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var i={};n.apiKeyPrefix?i[n.name]=n.apiKeyPrefix+" "+n.apiKey:i[n.name]=n.apiKey,"header"===n.in?e.set(i):e.query(i)}q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"oauth2 applied to request");break;default:throw q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ge(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ye(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new T.Blob([e.text],{type:e.headers["content-type"]});let i=new j;i.name="hasError",i.value=!1;let s=[i],r=new V;return r.flags=s,n.metadata=r,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),W.convertToType(n,t)}function ve(e,t,n){if(!(e instanceof r))return;const i=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),s=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,i,s)}function fe(e,t){if(!e||!t)return e;let n=q(ae,this,we).call(this,e),i=q(ae,this,we).call(this,t);return!n.family===i.family||q(ae,this,me).call(this,n,i)?e:t}function me(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),i=t.versionType.substring(0,1),s=parseInt(e.versionType.substring(1)),r="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===i?s<r:"a"===n||"released"===t.versionType}function we(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function $e(e,t){return e<=0?e=t:e>G(ne,this)&&(e=G(ne,this)),e}function Te(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}K(X,this,t),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Retained cookie :",t)}else K(X,this,null)}function be(e){null!=G(X,this)&&e.set(q(ae,this,ce).call(this,{Cookie:G(X,this)}))}function Fe(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=G(oe,this).INFO),!q(ae,this,ke).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let i=n.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==G(Z,this)&&null!==G(Z,this)&&"function"==typeof G(Z,this).log?G(Z,this).log(i):console.log(i)}}function ke(e){return!this.debug&&e===G(oe,this).DEBUG}function Oe(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Ee(e,t,n,i,s,r){try{var o=q(ae,this,ye).call(this,e,i);q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Response Status :",e.status),q(ae,this,Fe).call(this,G(oe,this).DEBUG,q(ae,this,Oe),"Response Headers :",e.headers),q(ae,this,Te).call(this,e||{}),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Response Body :",o),204==e.status&&null==o?s({data:o,response:e}):e.ok&&null!=o?(this.addEtagToReservedMap(e,o),q(ae,this,ve).call(this,o,t,n),s({data:o,response:e})):(q(ae,this,Fe).call(this,G(oe,this).ERROR,null,o),r({...e.error,data:o}))}catch(e){q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Caught error while processing response!"),q(ae,this,Fe).call(this,G(oe,this).ERROR,null,e),e.data=q(ae,this,ge).call(this,e),r(e)}}function je(e,t,n,i,s,r,o,a){let l={};r.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",i="";if(t.username||t.password?(e=t.username||"",i=t.password||""):(this.username||this.password)&&(e=this.username||"",i=this.password||""),e||i){const t=btoa(`${e}:${i}`);l.Authorization=`Basic ${t}`}q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"oauth2 applied to request");break;default:throw q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=q(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...q(ae,this,ce).call(this,i),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=G(X,this)&&(p.Cookie=q(ae,this,ce).call(this,{Cookie:G(X,this)}));var g=i.hasOwnProperty("Content-Type")?i["Content-Type"]:q(ae,this,ue).call(this,o);p["Content-Type"]=g;var y=i.hasOwnProperty("Accept")&&null!=i.Accept?i.Accept:a.join(", ");return y&&(p.Accept=y),q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Request URL :",t,e),q(ae,this,Fe).call(this,G(oe,this).DEBUG,q(ae,this,Oe),"Request Headers :",p),q(ae,this,Fe).call(this,G(oe,this).DEBUG,null,"Request Body :",s||""),{url:h,options:{method:t,headers:p,body:s,credentials:this.withCredentials?"include":"same-origin"}}}function Re(e,t,n,i,s,r){q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Issue while downloading file",e)}let o=new r,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=$().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,o.data={path:$().parse(a),$objectType:"Path"};let i=new j;i.name="hasError",i.value=!1;let s=[i],r=new V;r.flags=s,o.metadata=r}e.on("end",()=>{q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Finished streaming response"),0!==a.length?(q(ae,this,Fe).call(this,G(oe,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),m().renameSync(n,a),i({data:o,response:e})):(q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),i({data:o,response:e}))}),e.on("error",e=>{q(ae,this,Fe).call(this,G(oe,this).ERROR,null,"Caught the following error :",e),error.data=q(ae,this,ge).call(this,error),s(e)})}function Ce(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")}W=le,le.instance=new le;var Ae=new WeakSet;class Se{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ae),t.add(e),this.$objectType="opsmgmt.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Se,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(_.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Ce(Ae,this,Pe).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Ce(Ae,this,Pe).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("argumentsMap","undefined or null"):new O("errorGroup","undefined or null"):new O("locale","undefined or null"):new O("code","undefined or null"):new O("severity","undefined or null"):new O("message","undefined or null")}}function Pe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Se.prototype.message=void 0,Se.prototype.severity=void 0,Se.prototype.code=void 0,Se.prototype.locale="en_US",Se.prototype.errorGroup=void 0,Se.prototype.argumentsMap=void 0,Se.prototype.$reserved=void 0,Se.prototype.$objectType=void 0,Se.prototype.$unknownFields=void 0;var Ie=new WeakSet;class Ue{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ie),t.add(e),this.$objectType="opsmgmt.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ue,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("attributePath","undefined or null"):new O("message","undefined or null"):new O("location","undefined or null")}}function Ne(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")}Ue.prototype.location=void 0,Ue.prototype.message=void 0,Ue.prototype.attributePath=void 0,Ue.prototype.$reserved=void 0,Ue.prototype.$objectType=void 0,Ue.prototype.$unknownFields=void 0;var De=new WeakSet;class _e{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=De),t.add(e),this.$objectType="opsmgmt.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new _e,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(o=[],i=e.validationErrorMessages,r=0;r<i.length;r++)s=Ue.constructFromObject(i[r],void 0),o.push(s);t.setValidationErrorMessages(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ne(De,this,Me).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{},...void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{},...void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{},...void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("validationErrorMessages","undefined or null"):new O("path","undefined or null"):new O("error","undefined or null"):new O("statusCode","undefined or null"):new O("timestamp","undefined or null")}}function Me(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function xe(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")}_e.prototype.timestamp=void 0,_e.prototype.statusCode=void 0,_e.prototype.error=void 0,_e.prototype.path=void 0,_e.prototype.validationErrorMessages=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.prototype.$unknownFields=void 0;var Le=new WeakSet;class Je{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Le),t.add(e),this.$objectType="opsmgmt.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o,a;if(e){if(t=t||new Je,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(o=[],i=e.error,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("opsmgmt.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";s=Se.constructFromObject(i[r],void 0),o.push(s)}t.setError(o)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"opsmgmt.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(_e.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):xe(Le,this,We).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):xe(Le,this,We).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("error","undefined or null")}}function We(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Je.prototype.error=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var ze=new WeakSet;class Ve{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ze),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ve,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(!k.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new O("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function He(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")}Ve.prototype.extId=void 0,Ve.prototype.$reserved=void 0,Ve.prototype.$objectType=void 0,Ve.prototype.$unknownFields=void 0;var Be=new WeakSet;class Ge extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Be),t.add(e),this.$objectType="opsmgmt.v4.config.UpdateReportConfigApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Ge,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Ve.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):He(Be,this,Ke).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):He(Be,this,Ke).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ke(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ge.prototype.metadata=void 0,Ge.prototype.data=void 0,Ge.prototype.$reserved=void 0,Ge.prototype.$objectType=void 0,Ge.prototype.$unknownFields=void 0;var qe=new WeakSet;class Ye{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=qe),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ye,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new O("tenantId","undefined or null");if(!k.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Ye.prototype.tenantId=void 0,Ye.prototype.$reserved=void 0,Ye.prototype.$objectType=void 0,Ye.prototype.$unknownFields=void 0;var Xe=new WeakSet;class Ze extends Ye{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Xe),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new Ze,Ye.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],i=e.links,r=0;r<i.length;r++)s=J.constructFromObject(i[r],void 0),o.push(s);t.setLinks(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(null==e){if(!k.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===F.update&&!k.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!k.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}return new O(t,"no such property exists")}}Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;const Qe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM:"VM",CLUSTER:"CLUSTER",HOST:"HOST",CONTAINER:"CONTAINER",DISK:"DISK",VIRTUAL_DISK:"VIRTUAL_DISK",VCENTER_VM:"VCENTER_VM",VCENTER_CLUSTER:"VCENTER_CLUSTER",VCENTER_HOST:"VCENTER_HOST",VCENTER_DATASTORE:"VCENTER_DATASTORE",ALERT:"ALERT",EVENT:"EVENT",AUDIT:"AUDIT",PLAYBOOK:"PLAYBOOK",VOLUME_GROUPS:"VOLUME_GROUPS",CONFIG:"CONFIG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Qe).find(t=>Qe[t]===e);return null==t?Qe.$UNKNOWN:Qe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Qe.$UNKNOWN:case Qe.$REDACTED:case Qe.VM:case Qe.CLUSTER:case Qe.HOST:case Qe.CONTAINER:case Qe.DISK:case Qe.VIRTUAL_DISK:case Qe.VCENTER_VM:case Qe.VCENTER_CLUSTER:case Qe.VCENTER_HOST:case Qe.VCENTER_DATASTORE:case Qe.ALERT:case Qe.EVENT:case Qe.AUDIT:case Qe.PLAYBOOK:case Qe.VOLUME_GROUPS:case Qe.CONFIG:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|VM|CLUSTER|HOST|CONTAINER|DISK|VIRTUAL_DISK|VCENTER_VM|VCENTER_CLUSTER|VCENTER_HOST|VCENTER_DATASTORE|ALERT|EVENT|AUDIT|PLAYBOOK|VOLUME_GROUPS|CONFIG }")}}};Object.freeze(Qe);const et=Qe;var tt=new WeakSet;class nt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=tt),n.add(t),this.emailAddress=e,this.$objectType="opsmgmt.v4.config.Recipient",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new nt,e.hasOwnProperty("emailAddress")&&null!==e.emailAddress&&void 0!==e.emailAddress&&t.setEmailAddress(e.emailAddress),e.hasOwnProperty("recipientName")&&null!==e.recipientName&&void 0!==e.recipientName&&t.setRecipientName(e.recipientName),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEmailAddress(){return this.emailAddress}setEmailAddress(e){this.emailAddress=e}getRecipientName(){return this.recipientName}setRecipientName(e){this.recipientName=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getEmailAddress()&&null!==this.getEmailAddress()?{emailAddress:this.getEmailAddress()}:{},...void 0!==this.getRecipientName()&&null!==this.getRecipientName()?{recipientName:this.getRecipientName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["emailAddress"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("emailAddress"===t){if(void 0===this.emailAddress||null===this.emailAddress)return new O("emailAddress","undefined or null");if(!k.validatePattern(this.emailAddress,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new O("emailAddress","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("recipientName"===t){if(void 0===this.recipientName||null===this.recipientName)return new O("recipientName","undefined or null");if(!k.validateMaxLength(this.recipientName,64))return new O("recipientName","does not satisfy required maxLength constraint: 64")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}nt.prototype.emailAddress=void 0,nt.prototype.recipientName=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;const it={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PDF:"PDF",CSV:"CSV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(it).find(t=>it[t]===e);return null==t?it.$UNKNOWN:it[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case it.$UNKNOWN:case it.$REDACTED:case it.PDF:case it.CSV:return;default:throw new Error("Invalid : must be ReportFormat.{ $UNKNOWN|$REDACTED|PDF|CSV }")}}};Object.freeze(it);const st=it;var rt=new WeakSet;class ot{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=rt),n.add(t),this.recipients=e,this.$objectType="opsmgmt.v4.config.NotificationPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new ot,e.hasOwnProperty("recipientFormats")&&null!==e.recipientFormats&&void 0!==e.recipientFormats){for(o=[],i=e.recipientFormats,r=0;r<i.length;r++)s=st.constructFromObject(i[r],void 0),o.push(s);t.setRecipientFormats(o)}if(e.hasOwnProperty("recipients")&&null!==e.recipients&&void 0!==e.recipients){for(o=[],i=e.recipients,r=0;r<i.length;r++)s=nt.constructFromObject(i[r],void 0),o.push(s);t.setRecipients(o)}if(e.hasOwnProperty("emailSubject")&&null!==e.emailSubject&&void 0!==e.emailSubject&&t.setEmailSubject(e.emailSubject),e.hasOwnProperty("emailBody")&&null!==e.emailBody&&void 0!==e.emailBody&&t.setEmailBody(e.emailBody),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getRecipientFormats(){return this.recipientFormats}setRecipientFormats(e){this.recipientFormats=e}getRecipients(){return this.recipients}setRecipients(e){this.recipients=e}getEmailSubject(){return this.emailSubject}setEmailSubject(e){this.emailSubject=e}getEmailBody(){return this.emailBody}setEmailBody(e){this.emailBody=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{},...void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(e=>e.toJson(!1))}:{},...void 0!==this.getEmailSubject()&&null!==this.getEmailSubject()?{emailSubject:this.getEmailSubject()}:{},...void 0!==this.getEmailBody()&&null!==this.getEmailBody()?{emailBody:this.getEmailBody()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["recipients"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("recipientFormats"===t){if(void 0===this.recipientFormats||null===this.recipientFormats)return new O("recipientFormats","undefined or null");if(!k.validateMaxItems(this.recipientFormats,2))return new O("recipientFormats","does not satisfy required maxItems constraint: 2")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new O("recipients","undefined or null");if(!k.validateMaxItems(this.recipients,100))return new O("recipients","does not satisfy required maxItems constraint: 100");if(!k.validateMinItems(this.recipients,1))return new O("recipients","does not satisfy required minItems constraint: 1")}if("emailSubject"===t){if(void 0===this.emailSubject||null===this.emailSubject)return new O("emailSubject","undefined or null");if(!k.validateMaxLength(this.emailSubject,100))return new O("emailSubject","does not satisfy required maxLength constraint: 100")}if("emailBody"===t){if(void 0===this.emailBody||null===this.emailBody)return new O("emailBody","undefined or null");if(!k.validateMaxLength(this.emailBody,1e3))return new O("emailBody","does not satisfy required maxLength constraint: 1000")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ot.prototype.recipientFormats=void 0,ot.prototype.recipients=void 0,ot.prototype.emailSubject=void 0,ot.prototype.emailBody=void 0,ot.prototype.$reserved=void 0,ot.prototype.$objectType=void 0,ot.prototype.$unknownFields=void 0;var at=new WeakSet;class lt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=at),t.add(e),this.$objectType="opsmgmt.v4.config.ReportCustomization",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new lt,e.hasOwnProperty("headerHtml")&&null!==e.headerHtml&&void 0!==e.headerHtml&&t.setHeaderHtml(e.headerHtml),e.hasOwnProperty("footerHtml")&&null!==e.footerHtml&&void 0!==e.footerHtml&&t.setFooterHtml(e.footerHtml),e.hasOwnProperty("cssStyleSheet")&&null!==e.cssStyleSheet&&void 0!==e.cssStyleSheet&&t.setCssStyleSheet(e.cssStyleSheet),e.hasOwnProperty("logoImageExtId")&&null!==e.logoImageExtId&&void 0!==e.logoImageExtId&&t.setLogoImageExtId(e.logoImageExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHeaderHtml(){return this.headerHtml}setHeaderHtml(e){this.headerHtml=e}getFooterHtml(){return this.footerHtml}setFooterHtml(e){this.footerHtml=e}getCssStyleSheet(){return this.cssStyleSheet}setCssStyleSheet(e){this.cssStyleSheet=e}getLogoImageExtId(){return this.logoImageExtId}setLogoImageExtId(e){this.logoImageExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHeaderHtml()&&null!==this.getHeaderHtml()?{headerHtml:this.getHeaderHtml()}:{},...void 0!==this.getFooterHtml()&&null!==this.getFooterHtml()?{footerHtml:this.getFooterHtml()}:{},...void 0!==this.getCssStyleSheet()&&null!==this.getCssStyleSheet()?{cssStyleSheet:this.getCssStyleSheet()}:{},...void 0!==this.getLogoImageExtId()&&null!==this.getLogoImageExtId()?{logoImageExtId:this.getLogoImageExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("headerHtml"===t&&(void 0===this.headerHtml||null===this.headerHtml))return new O("headerHtml","undefined or null");if("footerHtml"===t&&(void 0===this.footerHtml||null===this.footerHtml))return new O("footerHtml","undefined or null");if("cssStyleSheet"===t&&(void 0===this.cssStyleSheet||null===this.cssStyleSheet))return new O("cssStyleSheet","undefined or null");if("logoImageExtId"===t){if(void 0===this.logoImageExtId||null===this.logoImageExtId)return new O("logoImageExtId","undefined or null");if(!k.validatePattern(this.logoImageExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("logoImageExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}lt.prototype.headerHtml=void 0,lt.prototype.footerHtml=void 0,lt.prototype.cssStyleSheet=void 0,lt.prototype.logoImageExtId=void 0,lt.prototype.$reserved=void 0,lt.prototype.$objectType=void 0,lt.prototype.$unknownFields=void 0;const dt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NONE:"NONE",DAILY:"DAILY",WEEKLY:"WEEKLY",MONTHLY:"MONTHLY",YEARLY:"YEARLY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(dt).find(t=>dt[t]===e);return null==t?dt.$UNKNOWN:dt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case dt.$UNKNOWN:case dt.$REDACTED:case dt.NONE:case dt.DAILY:case dt.WEEKLY:case dt.MONTHLY:case dt.YEARLY:return;default:throw new Error("Invalid : must be ScheduleInterval.{ $UNKNOWN|$REDACTED|NONE|DAILY|WEEKLY|MONTHLY|YEARLY }")}}};Object.freeze(dt);const ut=dt;function ht(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")}var ct=new WeakSet;class pt{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=ct),s.add(i),this.scheduleInterval=e,this.frequency=t,this.startTime=n,this.$objectType="opsmgmt.v4.config.ReportSchedule",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new pt,e.hasOwnProperty("scheduleInterval")&&null!==e.scheduleInterval&&void 0!==e.scheduleInterval&&t.setScheduleInterval(ut.constructFromObject(e.scheduleInterval)),e.hasOwnProperty("frequency")&&null!==e.frequency&&void 0!==e.frequency&&t.setFrequency(e.frequency),e.hasOwnProperty("startTime")&&null!==e.startTime&&void 0!==e.startTime&&t.setStartTime(e.startTime),e.hasOwnProperty("endTime")&&null!==e.endTime&&void 0!==e.endTime&&t.setEndTime(e.endTime),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getScheduleInterval(){return this.scheduleInterval}setScheduleInterval(e){this.scheduleInterval=e}getFrequency(){return this.frequency}setFrequency(e){this.frequency=e}getStartTime(){return this.startTime}setStartTime(e){this.startTime=e}getEndTime(){return this.endTime}setEndTime(e){this.endTime=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getScheduleInterval()&&null!==this.getScheduleInterval()?{scheduleInterval:this.getScheduleInterval()}:{},...void 0!==this.getFrequency()&&null!==this.getFrequency()?{frequency:this.getFrequency()}:{},...void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:ht(ct,this,gt).call(this,this.getStartTime(),!1)}:{},...void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:ht(ct,this,gt).call(this,this.getEndTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["scheduleInterval","frequency","startTime"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"scheduleInterval"!==t||void 0!==this.scheduleInterval&&null!==this.scheduleInterval?"frequency"!==t||void 0!==this.frequency&&null!==this.frequency?"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("endTime","undefined or null"):new O("startTime","undefined or null"):new O("frequency","undefined or null"):new O("scheduleInterval","undefined or null")}}function gt(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}pt.prototype.scheduleInterval=void 0,pt.prototype.frequency=void 0,pt.prototype.startTime=void 0,pt.prototype.endTime=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var yt=new WeakSet;class vt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=yt),t.add(e),this.$objectType="opsmgmt.v4.config.RetentionConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vt,e.hasOwnProperty("retentionPeriodSeconds")&&null!==e.retentionPeriodSeconds&&void 0!==e.retentionPeriodSeconds&&t.setRetentionPeriodSeconds(e.retentionPeriodSeconds),e.hasOwnProperty("retentionCount")&&null!==e.retentionCount&&void 0!==e.retentionCount&&t.setRetentionCount(e.retentionCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getRetentionPeriodSeconds(){return this.retentionPeriodSeconds}setRetentionPeriodSeconds(e){this.retentionPeriodSeconds=e}getRetentionCount(){return this.retentionCount}setRetentionCount(e){this.retentionCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getRetentionPeriodSeconds()&&null!==this.getRetentionPeriodSeconds()?{retentionPeriodSeconds:this.getRetentionPeriodSeconds()}:{},...void 0!==this.getRetentionCount()&&null!==this.getRetentionCount()?{retentionCount:this.getRetentionCount()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"retentionPeriodSeconds"!==t||void 0!==this.retentionPeriodSeconds&&null!==this.retentionPeriodSeconds?"retentionCount"!==t||void 0!==this.retentionCount&&null!==this.retentionCount?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("retentionCount","undefined or null"):new O("retentionPeriodSeconds","undefined or null")}}vt.prototype.retentionPeriodSeconds=void 0,vt.prototype.retentionCount=void 0,vt.prototype.$reserved=void 0,vt.prototype.$objectType=void 0,vt.prototype.$unknownFields=void 0;var ft=new WeakSet;class mt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=ft),n.add(t),this.entityType=e,this.$objectType="opsmgmt.v4.config.RepeatCriteria",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mt,e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(et.constructFromObject(e.entityType)),e.hasOwnProperty("repetitionRule")&&null!==e.repetitionRule&&void 0!==e.repetitionRule&&t.setRepetitionRule(e.repetitionRule),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getRepetitionRule(){return this.repetitionRule}setRepetitionRule(e){this.repetitionRule=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getRepetitionRule()&&null!==this.getRepetitionRule()?{repetitionRule:this.getRepetitionRule()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["entityType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("repetitionRule"===t){if(void 0===this.repetitionRule||null===this.repetitionRule)return new O("repetitionRule","undefined or null");if(!k.validateMaxLength(this.repetitionRule,250))return new O("repetitionRule","does not satisfy required maxLength constraint: 250")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}mt.prototype.entityType=void 0,mt.prototype.repetitionRule=void 0,mt.prototype.$reserved=void 0,mt.prototype.$objectType=void 0,mt.prototype.$unknownFields=void 0;const wt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MAX:"MAX",MIN:"MIN",FIRST:"FIRST",LAST:"LAST",LATEST:"LATEST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(wt).find(t=>wt[t]===e);return null==t?wt.$UNKNOWN:wt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wt.$UNKNOWN:case wt.$REDACTED:case wt.MAX:case wt.MIN:case wt.FIRST:case wt.LAST:case wt.LATEST:return;default:throw new Error("Invalid : must be SortKey.{ $UNKNOWN|$REDACTED|MAX|MIN|FIRST|LAST|LATEST }")}}};Object.freeze(wt);const $t=wt,Tt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ASCENDING:"ASCENDING",DESCENDING:"DESCENDING",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Tt).find(t=>Tt[t]===e);return null==t?Tt.$UNKNOWN:Tt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Tt.$UNKNOWN:case Tt.$REDACTED:case Tt.ASCENDING:case Tt.DESCENDING:return;default:throw new Error("Invalid : must be SortOrder.{ $UNKNOWN|$REDACTED|ASCENDING|DESCENDING }")}}};Object.freeze(Tt);const bt=Tt;var Ft=new WeakSet;class kt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ft),t.add(e),this.$objectType="opsmgmt.v4.config.DataCriteria",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new kt,e.hasOwnProperty("filterCriteria")&&null!==e.filterCriteria&&void 0!==e.filterCriteria&&t.setFilterCriteria(e.filterCriteria),e.hasOwnProperty("sortColumn")&&null!==e.sortColumn&&void 0!==e.sortColumn&&t.setSortColumn(e.sortColumn),e.hasOwnProperty("sortOrder")&&null!==e.sortOrder&&void 0!==e.sortOrder&&t.setSortOrder(bt.constructFromObject(e.sortOrder)),e.hasOwnProperty("limit")&&null!==e.limit&&void 0!==e.limit&&t.setLimit(e.limit),e.hasOwnProperty("sortKey")&&null!==e.sortKey&&void 0!==e.sortKey&&t.setSortKey($t.constructFromObject(e.sortKey)),e.hasOwnProperty("customParameters")&&null!==e.customParameters&&void 0!==e.customParameters){for(o=[],i=e.customParameters,r=0;r<i.length;r++)s=U.constructFromObject(i[r],void 0),o.push(s);t.setCustomParameters(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFilterCriteria(){return this.filterCriteria}setFilterCriteria(e){this.filterCriteria=e}getSortColumn(){return this.sortColumn}setSortColumn(e){this.sortColumn=e}getSortOrder(){return this.sortOrder}setSortOrder(e){this.sortOrder=e}getLimit(){return this.limit}setLimit(e){this.limit=e}getSortKey(){return this.sortKey}setSortKey(e){this.sortKey=e}getCustomParameters(){return this.customParameters}setCustomParameters(e){this.customParameters=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFilterCriteria()&&null!==this.getFilterCriteria()?{filterCriteria:this.getFilterCriteria()}:{},...void 0!==this.getSortColumn()&&null!==this.getSortColumn()?{sortColumn:this.getSortColumn()}:{},...void 0!==this.getSortOrder()&&null!==this.getSortOrder()?{sortOrder:this.getSortOrder()}:{},...void 0!==this.getLimit()&&null!==this.getLimit()?{limit:this.getLimit()}:{},...void 0!==this.getSortKey()&&null!==this.getSortKey()?{sortKey:this.getSortKey()}:{},...void 0!==this.getCustomParameters()&&null!==this.getCustomParameters()?{customParameters:this.getCustomParameters().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("filterCriteria"===t){if(void 0===this.filterCriteria||null===this.filterCriteria)return new O("filterCriteria","undefined or null");if(!k.validateMaxLength(this.filterCriteria,2e3))return new O("filterCriteria","does not satisfy required maxLength constraint: 2000")}if("sortColumn"===t){if(void 0===this.sortColumn||null===this.sortColumn)return new O("sortColumn","undefined or null");if(!k.validateMaxLength(this.sortColumn,500))return new O("sortColumn","does not satisfy required maxLength constraint: 500")}if("sortOrder"===t&&(void 0===this.sortOrder||null===this.sortOrder))return new O("sortOrder","undefined or null");if("limit"===t){if(void 0===this.limit||null===this.limit)return new O("limit","undefined or null");if(!k.validateMinimum(this.limit,0))return new O("limit","does not satisfy required minimum constraint: 0")}if("sortKey"===t&&(void 0===this.sortKey||null===this.sortKey))return new O("sortKey","undefined or null");if("customParameters"===t){if(void 0===this.customParameters||null===this.customParameters)return new O("customParameters","undefined or null");if(!k.validateMaxItems(this.customParameters,10))return new O("customParameters","does not satisfy required maxItems constraint: 10")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}kt.prototype.filterCriteria=void 0,kt.prototype.sortColumn=void 0,kt.prototype.sortOrder=void 0,kt.prototype.limit=void 0,kt.prototype.sortKey=void 0,kt.prototype.customParameters=void 0,kt.prototype.$reserved=void 0,kt.prototype.$objectType=void 0,kt.prototype.$unknownFields=void 0;const Ot={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATED_TIME:"CREATED_TIME",LAST_OCCURRED_TIME:"LAST_OCCURRED_TIME",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ot).find(t=>Ot[t]===e);return null==t?Ot.$UNKNOWN:Ot[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ot.$UNKNOWN:case Ot.$REDACTED:case Ot.CREATED_TIME:case Ot.LAST_OCCURRED_TIME:return;default:throw new Error("Invalid : must be TimeFilter.{ $UNKNOWN|$REDACTED|CREATED_TIME|LAST_OCCURRED_TIME }")}}};Object.freeze(Ot);const Et=Ot,jt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MAX:"MAX",MIN:"MIN",AVG:"AVG",LAST:"LAST",COUNT:"COUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(jt).find(t=>jt[t]===e);return null==t?jt.$UNKNOWN:jt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case jt.$UNKNOWN:case jt.$REDACTED:case jt.SUM:case jt.MAX:case jt.MIN:case jt.AVG:case jt.LAST:case jt.COUNT:return;default:throw new Error("Invalid : must be AggregateFunction.{ $UNKNOWN|$REDACTED|SUM|MAX|MIN|AVG|LAST|COUNT }")}}};Object.freeze(jt);const Rt=jt;var Ct=new WeakSet;class At{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Ct),i.add(n),this.label=e,this.name=t,this.$objectType="opsmgmt.v4.config.WidgetField",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new At,e.hasOwnProperty("label")&&null!==e.label&&void 0!==e.label&&t.setLabel(e.label),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("aggregateFunction")&&null!==e.aggregateFunction&&void 0!==e.aggregateFunction&&t.setAggregateFunction(Rt.constructFromObject(e.aggregateFunction)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLabel(){return this.label}setLabel(e){this.label=e}getName(){return this.name}setName(e){this.name=e}getAggregateFunction(){return this.aggregateFunction}setAggregateFunction(e){this.aggregateFunction=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLabel()&&null!==this.getLabel()?{label:this.getLabel()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getAggregateFunction()&&null!==this.getAggregateFunction()?{aggregateFunction:this.getAggregateFunction()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["label","name"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("label"===t){if(void 0===this.label||null===this.label)return new O("label","undefined or null");if(!k.validateMaxLength(this.label,100))return new O("label","does not satisfy required maxLength constraint: 100")}if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,100))return new O("name","does not satisfy required maxLength constraint: 100");if(!k.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"aggregateFunction"!==t||void 0!==this.aggregateFunction&&null!==this.aggregateFunction?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("aggregateFunction","undefined or null")}}At.prototype.label=void 0,At.prototype.name=void 0,At.prototype.aggregateFunction=void 0,At.prototype.$reserved=void 0,At.prototype.$objectType=void 0,At.prototype.$unknownFields=void 0;const St={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",LARGE:"LARGE",FULLSPAN:"FULLSPAN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(St).find(t=>St[t]===e);return null==t?St.$UNKNOWN:St[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case St.$UNKNOWN:case St.$REDACTED:case St.SMALL:case St.LARGE:case St.FULLSPAN:return;default:throw new Error("Invalid : must be WidgetSize.{ $UNKNOWN|$REDACTED|SMALL|LARGE|FULLSPAN }")}}};Object.freeze(St);const Pt=St,It={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BAR_CHART:"BAR_CHART",LINE_CHART:"LINE_CHART",HISTOGRAM:"HISTOGRAM",DATA_TABLE:"DATA_TABLE",CONFIG_SUMMARY:"CONFIG_SUMMARY",METRIC_SUMMARY_TEXT:"METRIC_SUMMARY_TEXT",METRIC_SUMMARY_CHART:"METRIC_SUMMARY_CHART",COUNT_SUMMARY:"COUNT_SUMMARY",TEXT:"TEXT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(It).find(t=>It[t]===e);return null==t?It.$UNKNOWN:It[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case It.$UNKNOWN:case It.$REDACTED:case It.BAR_CHART:case It.LINE_CHART:case It.HISTOGRAM:case It.DATA_TABLE:case It.CONFIG_SUMMARY:case It.METRIC_SUMMARY_TEXT:case It.METRIC_SUMMARY_CHART:case It.COUNT_SUMMARY:case It.TEXT:return;default:throw new Error("Invalid : must be WidgetType.{ $UNKNOWN|$REDACTED|BAR_CHART|LINE_CHART|HISTOGRAM|DATA_TABLE|CONFIG_SUMMARY|METRIC_SUMMARY_TEXT|METRIC_SUMMARY_CHART|COUNT_SUMMARY|TEXT }")}}};Object.freeze(It);const Ut=It;var Nt=new WeakSet;class Dt{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Nt),i.add(n),this.type=e,this.size=t,this.$objectType="opsmgmt.v4.config.WidgetConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new Dt,e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(et.constructFromObject(e.entityType)),e.hasOwnProperty("heading")&&null!==e.heading&&void 0!==e.heading&&t.setHeading(e.heading),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("fields")&&null!==e.fields&&void 0!==e.fields){for(o=[],i=e.fields,r=0;r<i.length;r++)s=At.constructFromObject(i[r],void 0),o.push(s);t.setFields(o)}if(e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&t.setType(Ut.constructFromObject(e.type)),e.hasOwnProperty("size")&&null!==e.size&&void 0!==e.size&&t.setSize(Pt.constructFromObject(e.size)),e.hasOwnProperty("repeatCriteria")&&null!==e.repeatCriteria&&void 0!==e.repeatCriteria&&t.setRepeatCriteria(mt.constructFromObject(e.repeatCriteria)),e.hasOwnProperty("dataCriteria")&&null!==e.dataCriteria&&void 0!==e.dataCriteria&&t.setDataCriteria(kt.constructFromObject(e.dataCriteria)),e.hasOwnProperty("timeFilter")&&null!==e.timeFilter&&void 0!==e.timeFilter&&t.setTimeFilter(Et.constructFromObject(e.timeFilter)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getHeading(){return this.heading}setHeading(e){this.heading=e}getDescription(){return this.description}setDescription(e){this.description=e}getFields(){return this.fields}setFields(e){this.fields=e}getType(){return this.type}setType(e){this.type=e}getSize(){return this.size}setSize(e){this.size=e}getRepeatCriteria(){return this.repeatCriteria}setRepeatCriteria(e){this.repeatCriteria=e}getDataCriteria(){return this.dataCriteria}setDataCriteria(e){this.dataCriteria=e}getTimeFilter(){return this.timeFilter}setTimeFilter(e){this.timeFilter=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getHeading()&&null!==this.getHeading()?{heading:this.getHeading()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getFields()&&null!==this.getFields()?{fields:this.getFields().map(e=>e.toJson(!1))}:{},...void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{},...void 0!==this.getSize()&&null!==this.getSize()?{size:this.getSize()}:{},...void 0!==this.getRepeatCriteria()&&null!==this.getRepeatCriteria()?{repeatCriteria:this.getRepeatCriteria().toJson(!1)}:{},...void 0!==this.getDataCriteria()&&null!==this.getDataCriteria()?{dataCriteria:this.getDataCriteria().toJson(!1)}:{},...void 0!==this.getTimeFilter()&&null!==this.getTimeFilter()?{timeFilter:this.getTimeFilter()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["type","size"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("heading"===t){if(void 0===this.heading||null===this.heading)return new O("heading","undefined or null");if(!k.validateMaxLength(this.heading,64))return new O("heading","does not satisfy required maxLength constraint: 64")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!k.validateMaxLength(this.description,1e3))return new O("description","does not satisfy required maxLength constraint: 1000")}if("fields"===t){if(void 0===this.fields||null===this.fields)return new O("fields","undefined or null");if(!k.validateMaxItems(this.fields,10))return new O("fields","does not satisfy required maxItems constraint: 10")}return"type"!==t||void 0!==this.type&&null!==this.type?"size"!==t||void 0!==this.size&&null!==this.size?"repeatCriteria"!==t||void 0!==this.repeatCriteria&&null!==this.repeatCriteria?"dataCriteria"!==t||void 0!==this.dataCriteria&&null!==this.dataCriteria?"timeFilter"!==t||void 0!==this.timeFilter&&null!==this.timeFilter?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timeFilter","undefined or null"):new O("dataCriteria","undefined or null"):new O("repeatCriteria","undefined or null"):new O("size","undefined or null"):new O("type","undefined or null")}}Dt.prototype.entityType=void 0,Dt.prototype.heading=void 0,Dt.prototype.description=void 0,Dt.prototype.fields=void 0,Dt.prototype.type=void 0,Dt.prototype.size=void 0,Dt.prototype.repeatCriteria=void 0,Dt.prototype.dataCriteria=void 0,Dt.prototype.timeFilter=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;const _t={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER_LICENSE_TABLE:"CLUSTER_LICENSE_TABLE",MULTICLUSTER_LICENSE_SUMMARY:"MULTICLUSTER_LICENSE_SUMMARY",ALERTS_HISTOGRAM:"ALERTS_HISTOGRAM",BLOCKS_SUMMARY:"BLOCKS_SUMMARY",IGNORE_TIME_WINDOW_TABLE:"IGNORE_TIME_WINDOW_TABLE",CLUSTER_CPU_RUNWAY_CHART:"CLUSTER_CPU_RUNWAY_CHART",CLUSTER_MEMORY_RUNWAY_CHART:"CLUSTER_MEMORY_RUNWAY_CHART",CLUSTER_STORAGE_RUNWAY_CHART:"CLUSTER_STORAGE_RUNWAY_CHART",CLUSTER_INACTIVE_VM_TABLE:"CLUSTER_INACTIVE_VM_TABLE",CLUSTER_CONSTRAINED_VM_TABLE:"CLUSTER_CONSTRAINED_VM_TABLE",CLUSTER_OVERPROVISIONED_VM_TABLE:"CLUSTER_OVERPROVISIONED_VM_TABLE",CLUSTER_BULLY_VM_TABLE:"CLUSTER_BULLY_VM_TABLE",CLUSTER_POTENTIAL_CPU_RECLAIM:"CLUSTER_POTENTIAL_CPU_RECLAIM",CLUSTER_POTENTIAL_MEMORY_RECLAIM:"CLUSTER_POTENTIAL_MEMORY_RECLAIM",CLUSTER_POTENTIAL_STORAGE_RECLAIM:"CLUSTER_POTENTIAL_STORAGE_RECLAIM",VCENTER_BLOCKS_SUMMARY:"VCENTER_BLOCKS_SUMMARY",VCENTER_CPU_RUNWAY_CHART:"VCENTER_CPU_RUNWAY_CHART",VCENTER_MEMORY_RUNWAY_CHART:"VCENTER_MEMORY_RUNWAY_CHART",VCENTER_INACTIVE_VM_TABLE:"VCENTER_INACTIVE_VM_TABLE",VCENTER_CONSTRAINED_VM_TABLE:"VCENTER_CONSTRAINED_VM_TABLE",VCENTER_OVERPROVISIONED_VM_TABLE:"VCENTER_OVERPROVISIONED_VM_TABLE",VCENTER_BULLY_VM_TABLE:"VCENTER_BULLY_VM_TABLE",VCENTER_POTENTIAL_CPU_RECLAIM:"VCENTER_POTENTIAL_CPU_RECLAIM",VCENTER_POTENTIAL_MEMORY_RECLAIM:"VCENTER_POTENTIAL_MEMORY_RECLAIM",VCENTER_POTENTIAL_STORAGE_RECLAIM:"VCENTER_POTENTIAL_STORAGE_RECLAIM",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(_t).find(t=>_t[t]===e);return null==t?_t.$UNKNOWN:_t[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case _t.$UNKNOWN:case _t.$REDACTED:case _t.CLUSTER_LICENSE_TABLE:case _t.MULTICLUSTER_LICENSE_SUMMARY:case _t.ALERTS_HISTOGRAM:case _t.BLOCKS_SUMMARY:case _t.IGNORE_TIME_WINDOW_TABLE:case _t.CLUSTER_CPU_RUNWAY_CHART:case _t.CLUSTER_MEMORY_RUNWAY_CHART:case _t.CLUSTER_STORAGE_RUNWAY_CHART:case _t.CLUSTER_INACTIVE_VM_TABLE:case _t.CLUSTER_CONSTRAINED_VM_TABLE:case _t.CLUSTER_OVERPROVISIONED_VM_TABLE:case _t.CLUSTER_BULLY_VM_TABLE:case _t.CLUSTER_POTENTIAL_CPU_RECLAIM:case _t.CLUSTER_POTENTIAL_MEMORY_RECLAIM:case _t.CLUSTER_POTENTIAL_STORAGE_RECLAIM:case _t.VCENTER_BLOCKS_SUMMARY:case _t.VCENTER_CPU_RUNWAY_CHART:case _t.VCENTER_MEMORY_RUNWAY_CHART:case _t.VCENTER_INACTIVE_VM_TABLE:case _t.VCENTER_CONSTRAINED_VM_TABLE:case _t.VCENTER_OVERPROVISIONED_VM_TABLE:case _t.VCENTER_BULLY_VM_TABLE:case _t.VCENTER_POTENTIAL_CPU_RECLAIM:case _t.VCENTER_POTENTIAL_MEMORY_RECLAIM:case _t.VCENTER_POTENTIAL_STORAGE_RECLAIM:return;default:throw new Error("Invalid : must be WidgetTemplateType.{ $UNKNOWN|$REDACTED|CLUSTER_LICENSE_TABLE|MULTICLUSTER_LICENSE_SUMMARY|ALERTS_HISTOGRAM|BLOCKS_SUMMARY|IGNORE_TIME_WINDOW_TABLE|CLUSTER_CPU_RUNWAY_CHART|CLUSTER_MEMORY_RUNWAY_CHART|CLUSTER_STORAGE_RUNWAY_CHART|CLUSTER_INACTIVE_VM_TABLE|CLUSTER_CONSTRAINED_VM_TABLE|CLUSTER_OVERPROVISIONED_VM_TABLE|CLUSTER_BULLY_VM_TABLE|CLUSTER_POTENTIAL_CPU_RECLAIM|CLUSTER_POTENTIAL_MEMORY_RECLAIM|CLUSTER_POTENTIAL_STORAGE_RECLAIM|VCENTER_BLOCKS_SUMMARY|VCENTER_CPU_RUNWAY_CHART|VCENTER_MEMORY_RUNWAY_CHART|VCENTER_INACTIVE_VM_TABLE|VCENTER_CONSTRAINED_VM_TABLE|VCENTER_OVERPROVISIONED_VM_TABLE|VCENTER_BULLY_VM_TABLE|VCENTER_POTENTIAL_CPU_RECLAIM|VCENTER_POTENTIAL_MEMORY_RECLAIM|VCENTER_POTENTIAL_STORAGE_RECLAIM }")}}};Object.freeze(_t);const Mt=_t;var xt=new WeakSet;class Lt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=xt),t.add(e),this.$objectType="opsmgmt.v4.config.WidgetTemplate",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Lt,e.hasOwnProperty("widgetTemplate")&&null!==e.widgetTemplate&&void 0!==e.widgetTemplate&&t.setWidgetTemplate(Mt.constructFromObject(e.widgetTemplate)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getWidgetTemplate(){return this.widgetTemplate}setWidgetTemplate(e){this.widgetTemplate=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getWidgetTemplate()&&null!==this.getWidgetTemplate()?{widgetTemplate:this.getWidgetTemplate()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"widgetTemplate"!==t||void 0!==this.widgetTemplate&&null!==this.widgetTemplate?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("widgetTemplate","undefined or null")}}function Jt(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")}Lt.prototype.widgetTemplate=void 0,Lt.prototype.$reserved=void 0,Lt.prototype.$objectType=void 0,Lt.prototype.$unknownFields=void 0;var Wt=new WeakSet;class zt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Wt),n.add(t),this.widgetInfo=e,this.$objectType="opsmgmt.v4.config.Widget",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new zt,e.hasOwnProperty("widgetInfo")&&null!==e.widgetInfo&&void 0!==e.widgetInfo)switch(i=e.widgetInfo.hasOwnProperty("$objectType")?e.widgetInfo.$objectType:typeof e.widgetInfo,i){case"opsmgmt.v4.config.WidgetTemplate":t.setWidgetInfo(Lt.constructFromObject(e.widgetInfo,void 0));break;case"opsmgmt.v4.config.WidgetConfig":t.setWidgetInfo(Dt.constructFromObject(e.widgetInfo,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getWidgetInfo(){return this.widgetInfo}setWidgetInfo(e){this.widgetInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getWidgetInfo()&&null!==this.getWidgetInfo()?{widgetInfo:void 0!==this.getWidgetInfo().toJson?this.getWidgetInfo().toJson(!1):Array.isArray(this.getWidgetInfo())?this.getWidgetInfo().map(e=>void 0!==e.toJson?e.toJson(!1):e):Jt(Wt,this,Vt).call(this,this.getWidgetInfo(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getWidgetInfo()&&null!==this.getWidgetInfo()?{widgetInfo:void 0!==this.getWidgetInfo().toJson?this.getWidgetInfo().toJson():Array.isArray(this.getWidgetInfo())?this.getWidgetInfo().map(e=>void 0!==e.toJson?e.toJson():e):Jt(Wt,this,Vt).call(this,this.getWidgetInfo())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["widgetInfo"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"widgetInfo"!==t||void 0!==this.widgetInfo&&null!==this.widgetInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("widgetInfo","undefined or null")}}function Vt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}zt.prototype.widgetInfo=void 0,zt.prototype.$reserved=void 0,zt.prototype.$objectType=void 0,zt.prototype.$unknownFields=void 0;var Ht=new WeakSet;class Bt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ht),n.add(t),this.widgets=e,this.$objectType="opsmgmt.v4.config.Row",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new Bt,e.hasOwnProperty("widgets")&&null!==e.widgets&&void 0!==e.widgets){for(o=[],i=e.widgets,r=0;r<i.length;r++)s=zt.constructFromObject(i[r],void 0),o.push(s);t.setWidgets(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getWidgets(){return this.widgets}setWidgets(e){this.widgets=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getWidgets()&&null!==this.getWidgets()?{widgets:this.getWidgets().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["widgets"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("widgets"===t){if(void 0===this.widgets||null===this.widgets)return new O("widgets","undefined or null");if(!k.validateMaxItems(this.widgets,3))return new O("widgets","does not satisfy required maxItems constraint: 3")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Bt.prototype.widgets=void 0,Bt.prototype.$reserved=void 0,Bt.prototype.$objectType=void 0,Bt.prototype.$unknownFields=void 0;var Gt=new WeakSet;class Kt{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Gt),i.add(n),this.name=e,this.rows=t,this.$objectType="opsmgmt.v4.config.Section",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new Kt,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("rows")&&null!==e.rows&&void 0!==e.rows){for(o=[],i=e.rows,r=0;r<i.length;r++)s=Bt.constructFromObject(i[r],void 0),o.push(s);t.setRows(o)}if(e.hasOwnProperty("repeatCriteria")&&null!==e.repeatCriteria&&void 0!==e.repeatCriteria&&t.setRepeatCriteria(mt.constructFromObject(e.repeatCriteria)),e.hasOwnProperty("timeFilter")&&null!==e.timeFilter&&void 0!==e.timeFilter&&t.setTimeFilter(Et.constructFromObject(e.timeFilter)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getRows(){return this.rows}setRows(e){this.rows=e}getRepeatCriteria(){return this.repeatCriteria}setRepeatCriteria(e){this.repeatCriteria=e}getTimeFilter(){return this.timeFilter}setTimeFilter(e){this.timeFilter=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getRows()&&null!==this.getRows()?{rows:this.getRows().map(e=>e.toJson(!1))}:{},...void 0!==this.getRepeatCriteria()&&null!==this.getRepeatCriteria()?{repeatCriteria:this.getRepeatCriteria().toJson(!1)}:{},...void 0!==this.getTimeFilter()&&null!==this.getTimeFilter()?{timeFilter:this.getTimeFilter()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name","rows"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,64))return new O("name","does not satisfy required maxLength constraint: 64")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!k.validateMaxLength(this.description,1e3))return new O("description","does not satisfy required maxLength constraint: 1000")}if("rows"===t){if(void 0===this.rows||null===this.rows)return new O("rows","undefined or null");if(!k.validateMaxItems(this.rows,20))return new O("rows","does not satisfy required maxItems constraint: 20")}return"repeatCriteria"!==t||void 0!==this.repeatCriteria&&null!==this.repeatCriteria?"timeFilter"!==t||void 0!==this.timeFilter&&null!==this.timeFilter?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timeFilter","undefined or null"):new O("repeatCriteria","undefined or null")}}function qt(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")}Kt.prototype.name=void 0,Kt.prototype.description=void 0,Kt.prototype.rows=void 0,Kt.prototype.repeatCriteria=void 0,Kt.prototype.timeFilter=void 0,Kt.prototype.$reserved=void 0,Kt.prototype.$objectType=void 0,Kt.prototype.$unknownFields=void 0;var Yt=new WeakSet;class Xt extends Ze{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=Yt),i.add(n),this.name=e,this.sections=t,this.$objectType="opsmgmt.v4.config.ReportConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new Xt,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("schedule")&&null!==e.schedule&&void 0!==e.schedule&&t.setSchedule(pt.constructFromObject(e.schedule)),e.hasOwnProperty("retentionConfig")&&null!==e.retentionConfig&&void 0!==e.retentionConfig&&t.setRetentionConfig(vt.constructFromObject(e.retentionConfig)),e.hasOwnProperty("sections")&&null!==e.sections&&void 0!==e.sections){for(o=[],i=e.sections,r=0;r<i.length;r++)s=Kt.constructFromObject(i[r],void 0),o.push(s);t.setSections(o)}if(e.hasOwnProperty("supportedFormats")&&null!==e.supportedFormats&&void 0!==e.supportedFormats){for(o=[],i=e.supportedFormats,r=0;r<i.length;r++)s=st.constructFromObject(i[r],void 0),o.push(s);t.setSupportedFormats(o)}if(e.hasOwnProperty("timezone")&&null!==e.timezone&&void 0!==e.timezone&&t.setTimezone(e.timezone),e.hasOwnProperty("notificationPolicy")&&null!==e.notificationPolicy&&void 0!==e.notificationPolicy&&t.setNotificationPolicy(ot.constructFromObject(e.notificationPolicy)),e.hasOwnProperty("isSystemDefined")&&null!==e.isSystemDefined&&void 0!==e.isSystemDefined&&t.setIsSystemDefined(e.isSystemDefined),e.hasOwnProperty("isPrivate")&&null!==e.isPrivate&&void 0!==e.isPrivate&&t.setIsPrivate(e.isPrivate),e.hasOwnProperty("isImported")&&null!==e.isImported&&void 0!==e.isImported&&t.setIsImported(e.isImported),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&t.setCreationTime(e.creationTime),e.hasOwnProperty("startTimeOffsetSecs")&&null!==e.startTimeOffsetSecs&&void 0!==e.startTimeOffsetSecs&&t.setStartTimeOffsetSecs(e.startTimeOffsetSecs),e.hasOwnProperty("endTimeOffsetSecs")&&null!==e.endTimeOffsetSecs&&void 0!==e.endTimeOffsetSecs&&t.setEndTimeOffsetSecs(e.endTimeOffsetSecs),e.hasOwnProperty("reportCustomization")&&null!==e.reportCustomization&&void 0!==e.reportCustomization&&t.setReportCustomization(lt.constructFromObject(e.reportCustomization)),e.hasOwnProperty("defaultSectionEntityType")&&null!==e.defaultSectionEntityType&&void 0!==e.defaultSectionEntityType&&t.setDefaultSectionEntityType(et.constructFromObject(e.defaultSectionEntityType)),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getSchedule(){return this.schedule}setSchedule(e){this.schedule=e}getRetentionConfig(){return this.retentionConfig}setRetentionConfig(e){this.retentionConfig=e}getSections(){return this.sections}setSections(e){this.sections=e}getSupportedFormats(){return this.supportedFormats}setSupportedFormats(e){this.supportedFormats=e}getTimezone(){return this.timezone}setTimezone(e){this.timezone=e}getNotificationPolicy(){return this.notificationPolicy}setNotificationPolicy(e){this.notificationPolicy=e}getIsSystemDefined(){return this.isSystemDefined}setIsSystemDefined(e){this.isSystemDefined=e}getIsPrivate(){return this.isPrivate}setIsPrivate(e){this.isPrivate=e}getIsImported(){return this.isImported}setIsImported(e){this.isImported=e}getCreationTime(){return this.creationTime}setCreationTime(e){this.creationTime=e}getStartTimeOffsetSecs(){return this.startTimeOffsetSecs}setStartTimeOffsetSecs(e){this.startTimeOffsetSecs=e}getEndTimeOffsetSecs(){return this.endTimeOffsetSecs}setEndTimeOffsetSecs(e){this.endTimeOffsetSecs=e}getReportCustomization(){return this.reportCustomization}setReportCustomization(e){this.reportCustomization=e}getDefaultSectionEntityType(){return this.defaultSectionEntityType}setDefaultSectionEntityType(e){this.defaultSectionEntityType=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getSchedule()&&null!==this.getSchedule()?{schedule:this.getSchedule().toJson(!1)}:{},...void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{},...void 0!==this.getSections()&&null!==this.getSections()?{sections:this.getSections().map(e=>e.toJson(!1))}:{},...void 0!==this.getSupportedFormats()&&null!==this.getSupportedFormats()?{supportedFormats:this.getSupportedFormats()}:{},...void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{},...void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{},...void 0!==this.getIsSystemDefined()&&null!==this.getIsSystemDefined()?{isSystemDefined:this.getIsSystemDefined()}:{},...void 0!==this.getIsPrivate()&&null!==this.getIsPrivate()?{isPrivate:this.getIsPrivate()}:{},...void 0!==this.getIsImported()&&null!==this.getIsImported()?{isImported:this.getIsImported()}:{},...void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:qt(Yt,this,Zt).call(this,this.getCreationTime(),!1)}:{},...void 0!==this.getStartTimeOffsetSecs()&&null!==this.getStartTimeOffsetSecs()?{startTimeOffsetSecs:this.getStartTimeOffsetSecs()}:{},...void 0!==this.getEndTimeOffsetSecs()&&null!==this.getEndTimeOffsetSecs()?{endTimeOffsetSecs:this.getEndTimeOffsetSecs()}:{},...void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{},...void 0!==this.getDefaultSectionEntityType()&&null!==this.getDefaultSectionEntityType()?{defaultSectionEntityType:this.getDefaultSectionEntityType()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getSchedule()&&null!==this.getSchedule()?{schedule:this.getSchedule().toJson(!1)}:{},...void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{},...void 0!==this.getSections()&&null!==this.getSections()?{sections:this.getSections().map(e=>e.toJson(!1))}:{},...void 0!==this.getSupportedFormats()&&null!==this.getSupportedFormats()?{supportedFormats:this.getSupportedFormats()}:{},...void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{},...void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{},...void 0!==this.getStartTimeOffsetSecs()&&null!==this.getStartTimeOffsetSecs()?{startTimeOffsetSecs:this.getStartTimeOffsetSecs()}:{},...void 0!==this.getEndTimeOffsetSecs()&&null!==this.getEndTimeOffsetSecs()?{endTimeOffsetSecs:this.getEndTimeOffsetSecs()}:{},...void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{},...void 0!==this.getDefaultSectionEntityType()&&null!==this.getDefaultSectionEntityType()?{defaultSectionEntityType:this.getDefaultSectionEntityType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name","sections"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,64))return new O("name","does not satisfy required maxLength constraint: 64")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!k.validateMaxLength(this.description,1e3))return new O("description","does not satisfy required maxLength constraint: 1000")}if("schedule"===t&&(void 0===this.schedule||null===this.schedule))return new O("schedule","undefined or null");if("retentionConfig"===t&&(void 0===this.retentionConfig||null===this.retentionConfig))return new O("retentionConfig","undefined or null");if("sections"===t){if(void 0===this.sections||null===this.sections)return new O("sections","undefined or null");if(!k.validateMaxItems(this.sections,10))return new O("sections","does not satisfy required maxItems constraint: 10")}if("supportedFormats"===t){if(void 0===this.supportedFormats||null===this.supportedFormats)return new O("supportedFormats","undefined or null");if(!k.validateMaxItems(this.supportedFormats,2))return new O("supportedFormats","does not satisfy required maxItems constraint: 2")}if("timezone"===t){if(void 0===this.timezone||null===this.timezone)return new O("timezone","undefined or null");if(!k.validatePattern(this.timezone,/^[a-zA-Z]+(\/[a-zA-Z_]+)?$/))return new O("timezone","does not satisfy required pattern: /^[a-zA-Z]+(/[a-zA-Z_]+)?$/")}return"notificationPolicy"!==t||void 0!==this.notificationPolicy&&null!==this.notificationPolicy?"isSystemDefined"!==t||void 0!==this.isSystemDefined&&null!==this.isSystemDefined?"isPrivate"!==t||void 0!==this.isPrivate&&null!==this.isPrivate?"isImported"!==t||void 0!==this.isImported&&null!==this.isImported?"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?"startTimeOffsetSecs"!==t||void 0!==this.startTimeOffsetSecs&&null!==this.startTimeOffsetSecs?"endTimeOffsetSecs"!==t||void 0!==this.endTimeOffsetSecs&&null!==this.endTimeOffsetSecs?"reportCustomization"!==t||void 0!==this.reportCustomization&&null!==this.reportCustomization?"defaultSectionEntityType"!==t||void 0!==this.defaultSectionEntityType&&null!==this.defaultSectionEntityType?new O(t,"no such property exists"):new O("defaultSectionEntityType","undefined or null"):new O("reportCustomization","undefined or null"):new O("endTimeOffsetSecs","undefined or null"):new O("startTimeOffsetSecs","undefined or null"):new O("creationTime","undefined or null"):new O("isImported","undefined or null"):new O("isPrivate","undefined or null"):new O("isSystemDefined","undefined or null"):new O("notificationPolicy","undefined or null")}}function Zt(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Qt(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")}Xt.prototype.name=void 0,Xt.prototype.description=void 0,Xt.prototype.schedule=void 0,Xt.prototype.retentionConfig=void 0,Xt.prototype.sections=void 0,Xt.prototype.supportedFormats=void 0,Xt.prototype.timezone=void 0,Xt.prototype.notificationPolicy=void 0,Xt.prototype.isSystemDefined=void 0,Xt.prototype.isPrivate=void 0,Xt.prototype.isImported=void 0,Xt.prototype.creationTime=void 0,Xt.prototype.startTimeOffsetSecs=void 0,Xt.prototype.endTimeOffsetSecs=void 0,Xt.prototype.reportCustomization=void 0,Xt.prototype.defaultSectionEntityType=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;var en=new WeakSet;class tn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=en),t.add(e),this.$objectType="opsmgmt.v4.config.CreateReportConfigApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new tn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Ve.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Qt(en,this,nn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Qt(en,this,nn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function nn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function sn(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")}tn.prototype.metadata=void 0,tn.prototype.data=void 0,tn.prototype.$reserved=void 0,tn.prototype.$objectType=void 0,tn.prototype.$unknownFields=void 0;var rn=new WeakSet;class on extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=rn),t.add(e),this.$objectType="opsmgmt.v4.config.ListReportConfigsApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,a,l;if(e){if(t=t||new on,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("opsmgmt.v4.config.ReportConfig"!==l)throw"Unknown list of type "+l+" in data";s=Xt.constructFromObject(i[o],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"opsmgmt.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Je.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):sn(rn,this,an).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):sn(rn,this,an).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function an(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ln(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")}on.prototype.metadata=void 0,on.prototype.data=void 0,on.prototype.$reserved=void 0,on.prototype.$objectType=void 0,on.prototype.$unknownFields=void 0;var dn=new WeakSet;class un extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=dn),t.add(e),this.$objectType="opsmgmt.v4.config.DeleteReportConfigApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new un,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ln(dn,this,hn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ln(dn,this,hn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function hn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function cn(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")}un.prototype.metadata=void 0,un.prototype.data=void 0,un.prototype.$reserved=void 0,un.prototype.$objectType=void 0,un.prototype.$unknownFields=void 0;var pn=new WeakSet;class gn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=pn),t.add(e),this.$objectType="opsmgmt.v4.config.GetReportConfigApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new gn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"opsmgmt.v4.config.ReportConfig":t.setData(Xt.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):cn(pn,this,yn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):cn(pn,this,yn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function yn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function vn(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")}gn.prototype.metadata=void 0,gn.prototype.data=void 0,gn.prototype.$reserved=void 0,gn.prototype.$objectType=void 0,gn.prototype.$unknownFields=void 0;var fn=new WeakSet;class mn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=fn),t.add(e),this.$objectType="opsmgmt.v4.config.UpdateGlobalReportSettingsApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,a,l;if(e){if(t=t||new mn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("opsmgmt.v4.error.AppMessage"!==l)throw"Unknown list of type "+l+" in data";s=Se.constructFromObject(i[o],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"opsmgmt.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Je.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):vn(fn,this,wn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):vn(fn,this,wn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function wn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}mn.prototype.metadata=void 0,mn.prototype.data=void 0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;var $n=new WeakSet;class Tn extends Ze{constructor(e){var t,n;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=$n),n.add(t),this.name=e,this.$objectType="opsmgmt.v4.config.GlobalReportSetting",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Tn,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("retentionConfig")&&null!==e.retentionConfig&&void 0!==e.retentionConfig&&t.setRetentionConfig(vt.constructFromObject(e.retentionConfig)),e.hasOwnProperty("notificationPolicy")&&null!==e.notificationPolicy&&void 0!==e.notificationPolicy&&t.setNotificationPolicy(ot.constructFromObject(e.notificationPolicy)),e.hasOwnProperty("reportCustomization")&&null!==e.reportCustomization&&void 0!==e.reportCustomization&&t.setReportCustomization(lt.constructFromObject(e.reportCustomization)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getRetentionConfig(){return this.retentionConfig}setRetentionConfig(e){this.retentionConfig=e}getNotificationPolicy(){return this.notificationPolicy}setNotificationPolicy(e){this.notificationPolicy=e}getReportCustomization(){return this.reportCustomization}setReportCustomization(e){this.reportCustomization=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{},...void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{},...void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getRetentionConfig()&&null!==this.getRetentionConfig()?{retentionConfig:this.getRetentionConfig().toJson(!1)}:{},...void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{},...void 0!==this.getReportCustomization()&&null!==this.getReportCustomization()?{reportCustomization:this.getReportCustomization().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,64))return new O("name","does not satisfy required maxLength constraint: 64");if(!k.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"retentionConfig"!==t||void 0!==this.retentionConfig&&null!==this.retentionConfig?"notificationPolicy"!==t||void 0!==this.notificationPolicy&&null!==this.notificationPolicy?"reportCustomization"!==t||void 0!==this.reportCustomization&&null!==this.reportCustomization?new O(t,"no such property exists"):new O("reportCustomization","undefined or null"):new O("notificationPolicy","undefined or null"):new O("retentionConfig","undefined or null")}}function bn(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")}Tn.prototype.name=void 0,Tn.prototype.retentionConfig=void 0,Tn.prototype.notificationPolicy=void 0,Tn.prototype.reportCustomization=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;var Fn=new WeakSet;class kn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fn),t.add(e),this.$objectType="opsmgmt.v4.config.GetGlobalReportSettingApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new kn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"opsmgmt.v4.config.GlobalReportSetting":t.setData(Tn.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):bn(Fn,this,On).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):bn(Fn,this,On).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function On(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}kn.prototype.metadata=void 0,kn.prototype.data=void 0,kn.prototype.$reserved=void 0,kn.prototype.$objectType=void 0,kn.prototype.$unknownFields=void 0;const En={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PNG:"PNG",JPEG:"JPEG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(En).find(t=>En[t]===e);return null==t?En.$UNKNOWN:En[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case En.$UNKNOWN:case En.$REDACTED:case En.PNG:case En.JPEG:return;default:throw new Error("Invalid : must be ArtifactFileType.{ $UNKNOWN|$REDACTED|PNG|JPEG }")}}};Object.freeze(En);const jn=En,Rn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LOGO:"LOGO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Rn).find(t=>Rn[t]===e);return null==t?Rn.$UNKNOWN:Rn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Rn.$UNKNOWN:case Rn.$REDACTED:case Rn.LOGO:return;default:throw new Error("Invalid : must be ArtifactType.{ $UNKNOWN|$REDACTED|LOGO }")}}};Object.freeze(Rn);const Cn=Rn;var An=new WeakSet;class Sn extends Ze{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=An),i.add(n),this.type=e,this.fileType=t,this.$objectType="opsmgmt.v4.content.ReportArtifact",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Sn,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&t.setType(Cn.constructFromObject(e.type)),e.hasOwnProperty("fileType")&&null!==e.fileType&&void 0!==e.fileType&&t.setFileType(jn.constructFromObject(e.fileType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getType(){return this.type}setType(e){this.type=e}getFileType(){return this.fileType}setFileType(e){this.fileType=e}toJson(e){return!1===e?{...void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{},...void 0!==this.getFileType()&&null!==this.getFileType()?{fileType:this.getFileType()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{},...void 0!==this.getFileType()&&null!==this.getFileType()?{fileType:this.getFileType()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["type","fileType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"type"!==t||void 0!==this.type&&null!==this.type?"fileType"!==t||void 0!==this.fileType&&null!==this.fileType?new O(t,"no such property exists"):new O("fileType","undefined or null"):new O("type","undefined or null")}}function Pn(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")}Sn.prototype.type=void 0,Sn.prototype.fileType=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;var In=new WeakSet;class Un extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=In),t.add(e),this.$objectType="opsmgmt.v4.content.ListReportArtifactsApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,a,l;if(e){if(t=t||new Un,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("opsmgmt.v4.content.ReportArtifact"!==l)throw"Unknown list of type "+l+" in data";s=Sn.constructFromObject(i[o],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"opsmgmt.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Je.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Pn(In,this,Nn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Pn(In,this,Nn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Nn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Dn(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")}Un.prototype.metadata=void 0,Un.prototype.data=void 0,Un.prototype.$reserved=void 0,Un.prototype.$objectType=void 0,Un.prototype.$unknownFields=void 0;var _n=new WeakSet;class Mn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=_n),t.add(e),this.$objectType="opsmgmt.v4.content.UploadArtifactApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,a,l;if(e){if(t=t||new Mn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("opsmgmt.v4.error.AppMessage"!==l)throw"Unknown list of type "+l+" in data";s=Se.constructFromObject(i[o],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"opsmgmt.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Je.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Dn(_n,this,xn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Dn(_n,this,xn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function xn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ln(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")}Mn.prototype.metadata=void 0,Mn.prototype.data=void 0,Mn.prototype.$reserved=void 0,Mn.prototype.$objectType=void 0,Mn.prototype.$unknownFields=void 0;var Jn=new WeakSet;class Wn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Jn),t.add(e),this.$objectType="opsmgmt.v4.content.CreateReportArtifactApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Wn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"opsmgmt.v4.content.ReportArtifact":t.setData(Sn.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ln(Jn,this,zn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ln(Jn,this,zn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Vn(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")}Wn.prototype.metadata=void 0,Wn.prototype.data=void 0,Wn.prototype.$reserved=void 0,Wn.prototype.$objectType=void 0,Wn.prototype.$unknownFields=void 0;var Hn=new WeakSet;class Bn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Hn),t.add(e),this.$objectType="opsmgmt.v4.content.DownloadArtifactileApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Bn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"Map":t.setData(e.data);break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Vn(Hn,this,Gn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Vn(Hn,this,Gn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Gn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Kn(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")}Bn.prototype.metadata=void 0,Bn.prototype.data=void 0,Bn.prototype.$reserved=void 0,Bn.prototype.$objectType=void 0,Bn.prototype.$unknownFields=void 0;var qn=new WeakSet;class Yn extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=qn),t.add(e),this.$objectType="opsmgmt.v4.content.DownloadReportApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Yn,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"Map":t.setData(e.data);break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Kn(qn,this,Xn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Kn(qn,this,Xn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Xn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Zn(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")}Yn.prototype.metadata=void 0,Yn.prototype.data=void 0,Yn.prototype.$reserved=void 0,Yn.prototype.$objectType=void 0,Yn.prototype.$unknownFields=void 0;var Qn=new WeakSet;class ei extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Qn),t.add(e),this.$objectType="opsmgmt.v4.config.DeleteReportApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ei,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Zn(Qn,this,ti).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Zn(Qn,this,ti).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ti(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}ei.prototype.metadata=void 0,ei.prototype.data=void 0,ei.prototype.$reserved=void 0,ei.prototype.$objectType=void 0,ei.prototype.$unknownFields=void 0;var ni=new WeakSet;class ii{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=ni),i.add(n),this.entityType=e,this.entityExtId=t,this.$objectType="opsmgmt.v4.config.EntitySelection",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r;if(e){if(t=t||new ii,e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(et.constructFromObject(e.entityType)),e.hasOwnProperty("entityExtId")&&null!==e.entityExtId&&void 0!==e.entityExtId){for(r=[],i=e.entityExtId,s=0;s<i.length;s++)r.push(i[s]);t.setEntityExtId(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getEntityExtId(){return this.entityExtId}setEntityExtId(e){this.entityExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getEntityExtId()&&null!==this.getEntityExtId()?{entityExtId:this.getEntityExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["entityType","entityExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("entityExtId"===t){if(void 0===this.entityExtId||null===this.entityExtId)return new O("entityExtId","undefined or null");if(!k.validateMaxItems(this.entityExtId,20))return new O("entityExtId","does not satisfy required maxItems constraint: 20");if(!k.validateMinItems(this.entityExtId,1))return new O("entityExtId","does not satisfy required minItems constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function si(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")}ii.prototype.entityType=void 0,ii.prototype.entityExtId=void 0,ii.prototype.$reserved=void 0,ii.prototype.$objectType=void 0,ii.prototype.$unknownFields=void 0;var ri=new WeakSet;class oi extends Ze{constructor(e,t,n,i){var s,r;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(s=this,r=ri),r.add(s),this.name=e,this.configExtId=t,this.startTime=n,this.endTime=i,this.$objectType="opsmgmt.v4.config.Report",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new oi,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("configExtId")&&null!==e.configExtId&&void 0!==e.configExtId&&t.setConfigExtId(e.configExtId),e.hasOwnProperty("isPersistent")&&null!==e.isPersistent&&void 0!==e.isPersistent&&t.setIsPersistent(e.isPersistent),e.hasOwnProperty("overrideSupportedFormats")&&null!==e.overrideSupportedFormats&&void 0!==e.overrideSupportedFormats){for(o=[],i=e.overrideSupportedFormats,r=0;r<i.length;r++)s=st.constructFromObject(i[r],void 0),o.push(s);t.setOverrideSupportedFormats(o)}if(e.hasOwnProperty("startTime")&&null!==e.startTime&&void 0!==e.startTime&&t.setStartTime(e.startTime),e.hasOwnProperty("endTime")&&null!==e.endTime&&void 0!==e.endTime&&t.setEndTime(e.endTime),e.hasOwnProperty("recipientFormats")&&null!==e.recipientFormats&&void 0!==e.recipientFormats){for(o=[],i=e.recipientFormats,r=0;r<i.length;r++)s=st.constructFromObject(i[r],void 0),o.push(s);t.setRecipientFormats(o)}if(e.hasOwnProperty("recipients")&&null!==e.recipients&&void 0!==e.recipients){for(o=[],i=e.recipients,r=0;r<i.length;r++)s=nt.constructFromObject(i[r],void 0),o.push(s);t.setRecipients(o)}if(e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&t.setCreationTime(e.creationTime),e.hasOwnProperty("timezone")&&null!==e.timezone&&void 0!==e.timezone&&t.setTimezone(e.timezone),e.hasOwnProperty("entitySelection")&&null!==e.entitySelection&&void 0!==e.entitySelection&&t.setEntitySelection(ii.constructFromObject(e.entitySelection)),e.hasOwnProperty("ownerExtId")&&null!==e.ownerExtId&&void 0!==e.ownerExtId&&t.setOwnerExtId(e.ownerExtId),e.hasOwnProperty("availableFormats")&&null!==e.availableFormats&&void 0!==e.availableFormats){for(o=[],i=e.availableFormats,r=0;r<i.length;r++)s=st.constructFromObject(i[r],void 0),o.push(s);t.setAvailableFormats(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getConfigExtId(){return this.configExtId}setConfigExtId(e){this.configExtId=e}getIsPersistent(){return this.isPersistent}setIsPersistent(e){this.isPersistent=e}getOverrideSupportedFormats(){return this.overrideSupportedFormats}setOverrideSupportedFormats(e){this.overrideSupportedFormats=e}getStartTime(){return this.startTime}setStartTime(e){this.startTime=e}getEndTime(){return this.endTime}setEndTime(e){this.endTime=e}getRecipientFormats(){return this.recipientFormats}setRecipientFormats(e){this.recipientFormats=e}getRecipients(){return this.recipients}setRecipients(e){this.recipients=e}getCreationTime(){return this.creationTime}setCreationTime(e){this.creationTime=e}getTimezone(){return this.timezone}setTimezone(e){this.timezone=e}getEntitySelection(){return this.entitySelection}setEntitySelection(e){this.entitySelection=e}getOwnerExtId(){return this.ownerExtId}setOwnerExtId(e){this.ownerExtId=e}getAvailableFormats(){return this.availableFormats}setAvailableFormats(e){this.availableFormats=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getConfigExtId()&&null!==this.getConfigExtId()?{configExtId:this.getConfigExtId()}:{},...void 0!==this.getIsPersistent()&&null!==this.getIsPersistent()?{isPersistent:this.getIsPersistent()}:{},...void 0!==this.getOverrideSupportedFormats()&&null!==this.getOverrideSupportedFormats()?{overrideSupportedFormats:this.getOverrideSupportedFormats()}:{},...void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:si(ri,this,ai).call(this,this.getStartTime(),!1)}:{},...void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:si(ri,this,ai).call(this,this.getEndTime(),!1)}:{},...void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{},...void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(e=>e.toJson(!1))}:{},...void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:si(ri,this,ai).call(this,this.getCreationTime(),!1)}:{},...void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{},...void 0!==this.getEntitySelection()&&null!==this.getEntitySelection()?{entitySelection:this.getEntitySelection().toJson(!1)}:{},...void 0!==this.getOwnerExtId()&&null!==this.getOwnerExtId()?{ownerExtId:this.getOwnerExtId()}:{},...void 0!==this.getAvailableFormats()&&null!==this.getAvailableFormats()?{availableFormats:this.getAvailableFormats()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{},...void 0!==this.getConfigExtId()&&null!==this.getConfigExtId()?{configExtId:this.getConfigExtId()}:{},...void 0!==this.getIsPersistent()&&null!==this.getIsPersistent()?{isPersistent:this.getIsPersistent()}:{},...void 0!==this.getOverrideSupportedFormats()&&null!==this.getOverrideSupportedFormats()?{overrideSupportedFormats:this.getOverrideSupportedFormats()}:{},...void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:si(ri,this,ai).call(this,this.getStartTime(),!1)}:{},...void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:si(ri,this,ai).call(this,this.getEndTime(),!1)}:{},...void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{},...void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(e=>e.toJson(!1))}:{},...void 0!==this.getTimezone()&&null!==this.getTimezone()?{timezone:this.getTimezone()}:{},...void 0!==this.getEntitySelection()&&null!==this.getEntitySelection()?{entitySelection:this.getEntitySelection().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name","configExtId","startTime","endTime"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!k.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!k.validateMaxLength(this.description,256))return new O("description","does not satisfy required maxLength constraint: 256")}if("configExtId"===t){if(void 0===this.configExtId||null===this.configExtId)return new O("configExtId","undefined or null");if(!k.validatePattern(this.configExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("configExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("isPersistent"===t&&(void 0===this.isPersistent||null===this.isPersistent))return new O("isPersistent","undefined or null");if("overrideSupportedFormats"===t){if(void 0===this.overrideSupportedFormats||null===this.overrideSupportedFormats)return new O("overrideSupportedFormats","undefined or null");if(!k.validateMaxItems(this.overrideSupportedFormats,2))return new O("overrideSupportedFormats","does not satisfy required maxItems constraint: 2")}if("startTime"===t&&(void 0===this.startTime||null===this.startTime))return new O("startTime","undefined or null");if("endTime"===t&&(void 0===this.endTime||null===this.endTime))return new O("endTime","undefined or null");if("recipientFormats"===t){if(void 0===this.recipientFormats||null===this.recipientFormats)return new O("recipientFormats","undefined or null");if(!k.validateMaxItems(this.recipientFormats,2))return new O("recipientFormats","does not satisfy required maxItems constraint: 2")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new O("recipients","undefined or null");if(!k.validateMaxItems(this.recipients,100))return new O("recipients","does not satisfy required maxItems constraint: 100");if(!k.validateMinItems(this.recipients,1))return new O("recipients","does not satisfy required minItems constraint: 1")}if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new O("creationTime","undefined or null");if("timezone"===t){if(void 0===this.timezone||null===this.timezone)return new O("timezone","undefined or null");if(!k.validatePattern(this.timezone,/^[a-zA-Z]+(\/[a-zA-Z_]+)?$/))return new O("timezone","does not satisfy required pattern: /^[a-zA-Z]+(/[a-zA-Z_]+)?$/")}if("entitySelection"===t&&(void 0===this.entitySelection||null===this.entitySelection))return new O("entitySelection","undefined or null");if("ownerExtId"===t){if(void 0===this.ownerExtId||null===this.ownerExtId)return new O("ownerExtId","undefined or null");if(!k.validatePattern(this.ownerExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("ownerExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("availableFormats"===t){if(void 0===this.availableFormats||null===this.availableFormats)return new O("availableFormats","undefined or null");if(!k.validateMaxItems(this.availableFormats,2))return new O("availableFormats","does not satisfy required maxItems constraint: 2")}return new O(t,"no such property exists")}}function ai(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}oi.prototype.name=void 0,oi.prototype.description=void 0,oi.prototype.configExtId=void 0,oi.prototype.isPersistent=void 0,oi.prototype.overrideSupportedFormats=void 0,oi.prototype.startTime=void 0,oi.prototype.endTime=void 0,oi.prototype.recipientFormats=void 0,oi.prototype.recipients=void 0,oi.prototype.creationTime=void 0,oi.prototype.timezone=void 0,oi.prototype.entitySelection=void 0,oi.prototype.ownerExtId=void 0,oi.prototype.availableFormats=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;var li=new WeakSet;class di extends Ze{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=li),i.add(n),this.recipientFormats=e,this.recipients=t,this.$objectType="opsmgmt.v4.config.ReportNotificationSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new di,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("recipientFormats")&&null!==e.recipientFormats&&void 0!==e.recipientFormats){for(o=[],i=e.recipientFormats,r=0;r<i.length;r++)s=st.constructFromObject(i[r],void 0),o.push(s);t.setRecipientFormats(o)}if(e.hasOwnProperty("recipients")&&null!==e.recipients&&void 0!==e.recipients){for(o=[],i=e.recipients,r=0;r<i.length;r++)s=nt.constructFromObject(i[r],void 0),o.push(s);t.setRecipients(o)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getRecipientFormats(){return this.recipientFormats}setRecipientFormats(e){this.recipientFormats=e}getRecipients(){return this.recipients}setRecipients(e){this.recipients=e}toJson(e){return!1===e?{...void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{},...void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getRecipientFormats()&&null!==this.getRecipientFormats()?{recipientFormats:this.getRecipientFormats()}:{},...void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["recipientFormats","recipients"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("recipientFormats"===t){if(void 0===this.recipientFormats||null===this.recipientFormats)return new O("recipientFormats","undefined or null");if(!k.validateMaxItems(this.recipientFormats,2))return new O("recipientFormats","does not satisfy required maxItems constraint: 2")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new O("recipients","undefined or null");if(!k.validateMaxItems(this.recipients,100))return new O("recipients","does not satisfy required maxItems constraint: 100");if(!k.validateMinItems(this.recipients,1))return new O("recipients","does not satisfy required minItems constraint: 1")}return new O(t,"no such property exists")}}function ui(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")}di.prototype.recipientFormats=void 0,di.prototype.recipients=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;var hi=new WeakSet;class ci extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hi),t.add(e),this.$objectType="opsmgmt.v4.config.GetReportApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ci,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"opsmgmt.v4.config.Report":t.setData(oi.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ui(hi,this,pi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ui(hi,this,pi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function pi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function gi(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")}ci.prototype.metadata=void 0,ci.prototype.data=void 0,ci.prototype.$reserved=void 0,ci.prototype.$objectType=void 0,ci.prototype.$unknownFields=void 0;var yi=new WeakSet;class vi extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=yi),t.add(e),this.$objectType="opsmgmt.v4.config.NotifyReportApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new vi,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Ve.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):gi(yi,this,fi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):gi(yi,this,fi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function fi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function mi(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")}vi.prototype.metadata=void 0,vi.prototype.data=void 0,vi.prototype.$reserved=void 0,vi.prototype.$objectType=void 0,vi.prototype.$unknownFields=void 0;var wi=new WeakSet;class $i extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=wi),t.add(e),this.$objectType="opsmgmt.v4.config.ListReportsApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,a,l;if(e){if(t=t||new $i,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("opsmgmt.v4.config.Report"!==l)throw"Unknown list of type "+l+" in data";s=oi.constructFromObject(i[o],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"opsmgmt.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Je.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):mi(wi,this,Ti).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):mi(wi,this,Ti).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ti(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function bi(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")}$i.prototype.metadata=void 0,$i.prototype.data=void 0,$i.prototype.$reserved=void 0,$i.prototype.$objectType=void 0,$i.prototype.$unknownFields=void 0;var Fi=new WeakSet;class ki extends r{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fi),t.add(e),this.$objectType="opsmgmt.v4.config.CreateReportApiResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ki,e.hasOwnProperty("metadata")&&r.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(V.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Ve.constructFromObject(e.data,void 0));break;case"opsmgmt.v4.error.ErrorResponse":t.setData(Je.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):bi(Fi,this,Oi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):bi(Fi,this,Oi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Oi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}ki.prototype.metadata=void 0,ki.prototype.data=void 0,ki.prototype.$reserved=void 0,ki.prototype.$objectType=void 0,ki.prototype.$unknownFields=void 0;const Ei={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MAX:"MAX",MIN:"MIN",AVG:"AVG",LAST:"LAST",COUNT:"COUNT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ei).find(t=>Ei[t]===e);return null==t?Ei.$UNKNOWN:Ei[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ei.$UNKNOWN:case Ei.$REDACTED:case Ei.SUM:case Ei.MAX:case Ei.MIN:case Ei.AVG:case Ei.LAST:case Ei.COUNT:return;default:throw new Error("Invalid : must be Operator.{ $UNKNOWN|$REDACTED|SUM|MAX|MIN|AVG|LAST|COUNT }")}}};Object.freeze(Ei);const ji=Ei;var Ri=new WeakSet;class Ci{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ri),n.add(t),this.name=e,this.$objectType="opsmgmt.v4.reporting.Field",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ci,e.hasOwnProperty("label")&&null!==e.label&&void 0!==e.label&&t.setLabel(e.label),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("aggregationOperator")&&null!==e.aggregationOperator&&void 0!==e.aggregationOperator&&t.setAggregationOperator(ji.constructFromObject(e.aggregationOperator)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLabel(){return this.label}setLabel(e){this.label=e}getName(){return this.name}setName(e){this.name=e}getAggregationOperator(){return this.aggregationOperator}setAggregationOperator(e){this.aggregationOperator=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLabel()&&null!==this.getLabel()?{label:this.getLabel()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getAggregationOperator()&&null!==this.getAggregationOperator()?{aggregationOperator:this.getAggregationOperator()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("label"===t){if(void 0===this.label||null===this.label)return new O("label","undefined or null");if(!k.validateMaxLength(this.label,100))return new O("label","does not satisfy required maxLength constraint: 100")}if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,100))return new O("name","does not satisfy required maxLength constraint: 100");if(!k.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"aggregationOperator"!==t||void 0!==this.aggregationOperator&&null!==this.aggregationOperator?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("aggregationOperator","undefined or null")}}Ci.prototype.label=void 0,Ci.prototype.name=void 0,Ci.prototype.aggregationOperator=void 0,Ci.prototype.$reserved=void 0,Ci.prototype.$objectType=void 0,Ci.prototype.$unknownFields=void 0;const Ai={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ASCENDING:"ASCENDING",DESCENDING:"DESCENDING",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ai).find(t=>Ai[t]===e);return null==t?Ai.$UNKNOWN:Ai[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ai.$UNKNOWN:case Ai.$REDACTED:case Ai.ASCENDING:case Ai.DESCENDING:return;default:throw new Error("Invalid : must be SortOrder.{ $UNKNOWN|$REDACTED|ASCENDING|DESCENDING }")}}};Object.freeze(Ai);const Si=Ai,Pi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",LINE_CHART:"LINE_CHART",DATA_TABLE:"DATA_TABLE",HISTOGRAM:"HISTOGRAM",METRIC_SUMMARY_TEXT:"METRIC_SUMMARY_TEXT",COUNT_SUMMARY:"COUNT_SUMMARY",TEXT:"TEXT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Pi).find(t=>Pi[t]===e);return null==t?Pi.$UNKNOWN:Pi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pi.$UNKNOWN:case Pi.$REDACTED:case Pi.LINE_CHART:case Pi.DATA_TABLE:case Pi.HISTOGRAM:case Pi.METRIC_SUMMARY_TEXT:case Pi.COUNT_SUMMARY:case Pi.TEXT:return;default:throw new Error("Invalid : must be ViewFormat.{ $UNKNOWN|$REDACTED|LINE_CHART|DATA_TABLE|HISTOGRAM|METRIC_SUMMARY_TEXT|COUNT_SUMMARY|TEXT }")}}};Object.freeze(Pi);const Ii=Pi;var Ui=new WeakSet;class Ni{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Ui),i.add(n),this.entityType=e,this.format=t,this.$objectType="opsmgmt.v4.reporting.CustomView",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new Ni,e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("filterCriteria")&&null!==e.filterCriteria&&void 0!==e.filterCriteria&&t.setFilterCriteria(e.filterCriteria),e.hasOwnProperty("format")&&null!==e.format&&void 0!==e.format&&t.setFormat(Ii.constructFromObject(e.format)),e.hasOwnProperty("fields")&&null!==e.fields&&void 0!==e.fields){for(o=[],i=e.fields,r=0;r<i.length;r++)s=Ci.constructFromObject(i[r],void 0),o.push(s);t.setFields(o)}if(e.hasOwnProperty("entityIds")&&null!==e.entityIds&&void 0!==e.entityIds){for(o=[],i=e.entityIds,r=0;r<i.length;r++)o.push(i[r]);t.setEntityIds(o)}if(e.hasOwnProperty("sortColumn")&&null!==e.sortColumn&&void 0!==e.sortColumn&&t.setSortColumn(e.sortColumn),e.hasOwnProperty("sortOrder")&&null!==e.sortOrder&&void 0!==e.sortOrder&&t.setSortOrder(Si.constructFromObject(e.sortOrder)),e.hasOwnProperty("limit")&&null!==e.limit&&void 0!==e.limit&&t.setLimit(e.limit),e.hasOwnProperty("offset")&&null!==e.offset&&void 0!==e.offset&&t.setOffset(e.offset),e.hasOwnProperty("groupByColumn")&&null!==e.groupByColumn&&void 0!==e.groupByColumn&&t.setGroupByColumn(e.groupByColumn),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getFilterCriteria(){return this.filterCriteria}setFilterCriteria(e){this.filterCriteria=e}getFormat(){return this.format}setFormat(e){this.format=e}getFields(){return this.fields}setFields(e){this.fields=e}getEntityIds(){return this.entityIds}setEntityIds(e){this.entityIds=e}getSortColumn(){return this.sortColumn}setSortColumn(e){this.sortColumn=e}getSortOrder(){return this.sortOrder}setSortOrder(e){this.sortOrder=e}getLimit(){return this.limit}setLimit(e){this.limit=e}getOffset(){return this.offset}setOffset(e){this.offset=e}getGroupByColumn(){return this.groupByColumn}setGroupByColumn(e){this.groupByColumn=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{},...void 0!==this.getFilterCriteria()&&null!==this.getFilterCriteria()?{filterCriteria:this.getFilterCriteria()}:{},...void 0!==this.getFormat()&&null!==this.getFormat()?{format:this.getFormat()}:{},...void 0!==this.getFields()&&null!==this.getFields()?{fields:this.getFields().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntityIds()&&null!==this.getEntityIds()?{entityIds:this.getEntityIds()}:{},...void 0!==this.getSortColumn()&&null!==this.getSortColumn()?{sortColumn:this.getSortColumn()}:{},...void 0!==this.getSortOrder()&&null!==this.getSortOrder()?{sortOrder:this.getSortOrder()}:{},...void 0!==this.getLimit()&&null!==this.getLimit()?{limit:this.getLimit()}:{},...void 0!==this.getOffset()&&null!==this.getOffset()?{offset:this.getOffset()}:{},...void 0!==this.getGroupByColumn()&&null!==this.getGroupByColumn()?{groupByColumn:this.getGroupByColumn()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["entityType","format"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t){if(void 0===this.entityType||null===this.entityType)return new O("entityType","undefined or null");if(!k.validateMaxLength(this.entityType,100))return new O("entityType","does not satisfy required maxLength constraint: 100")}if("filterCriteria"===t){if(void 0===this.filterCriteria||null===this.filterCriteria)return new O("filterCriteria","undefined or null");if(!k.validateMaxLength(this.filterCriteria,2e3))return new O("filterCriteria","does not satisfy required maxLength constraint: 2000")}if("format"===t&&(void 0===this.format||null===this.format))return new O("format","undefined or null");if("fields"===t&&(void 0===this.fields||null===this.fields))return new O("fields","undefined or null");if("entityIds"===t&&(void 0===this.entityIds||null===this.entityIds))return new O("entityIds","undefined or null");if("sortColumn"===t){if(void 0===this.sortColumn||null===this.sortColumn)return new O("sortColumn","undefined or null");if(!k.validateMaxLength(this.sortColumn,500))return new O("sortColumn","does not satisfy required maxLength constraint: 500")}if("sortOrder"===t&&(void 0===this.sortOrder||null===this.sortOrder))return new O("sortOrder","undefined or null");if("limit"===t){if(void 0===this.limit||null===this.limit)return new O("limit","undefined or null");if(!k.validateMaximum(this.limit,25e3))return new O("limit","does not satisfy required maximum constraint: 25000");if(!k.validateMinimum(this.limit,0))return new O("limit","does not satisfy required minimum constraint: 0")}if("offset"===t){if(void 0===this.offset||null===this.offset)return new O("offset","undefined or null");if(!k.validateMinimum(this.offset,0))return new O("offset","does not satisfy required minimum constraint: 0")}return"groupByColumn"!==t||void 0!==this.groupByColumn&&null!==this.groupByColumn?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("groupByColumn","undefined or null")}}Ni.prototype.entityType=void 0,Ni.prototype.filterCriteria=void 0,Ni.prototype.format=void 0,Ni.prototype.fields=void 0,Ni.prototype.entityIds=void 0,Ni.prototype.sortColumn=void 0,Ni.prototype.sortOrder=void 0,Ni.prototype.limit=void 0,Ni.prototype.offset=void 0,Ni.prototype.groupByColumn=void 0,Ni.prototype.$reserved=void 0,Ni.prototype.$objectType=void 0,Ni.prototype.$unknownFields=void 0;var Di=new WeakSet;class _i{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Di),n.add(t),this.file=e,this.$objectType="opsmgmt.v4.reporting.FileWrapper",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _i,e.hasOwnProperty("file")&&null!==e.file&&void 0!==e.file&&t.setFile(e.file),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFile(){return this.file}setFile(e){this.file=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFile()&&null!==this.getFile()?{file:this.getFile()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["file"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"file"!==t||void 0!==this.file&&null!==this.file?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("file","undefined or null")}}_i.prototype.file=void 0,_i.prototype.$reserved=void 0,_i.prototype.$objectType=void 0,_i.prototype.$unknownFields=void 0;var Mi=new WeakSet;class xi{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Mi),n.add(t),this.reportConfigIds=e,this.$objectType="opsmgmt.v4.reporting.ImportExportParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r;if(e){if(t=t||new xi,e.hasOwnProperty("reportConfigIds")&&null!==e.reportConfigIds&&void 0!==e.reportConfigIds){for(r=[],i=e.reportConfigIds,s=0;s<i.length;s++)r.push(i[s]);t.setReportConfigIds(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getReportConfigIds(){return this.reportConfigIds}setReportConfigIds(e){this.reportConfigIds=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getReportConfigIds()&&null!==this.getReportConfigIds()?{reportConfigIds:this.getReportConfigIds()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["reportConfigIds"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"reportConfigIds"!==t||void 0!==this.reportConfigIds&&null!==this.reportConfigIds?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("reportConfigIds","undefined or null")}}xi.prototype.reportConfigIds=void 0,xi.prototype.$reserved=void 0,xi.prototype.$objectType=void 0,xi.prototype.$unknownFields=void 0;var Li=new WeakSet;class Ji{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Li),n.add(t),this.emailAddress=e,this.$objectType="opsmgmt.v4.reporting.Recipient",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ji,e.hasOwnProperty("emailAddress")&&null!==e.emailAddress&&void 0!==e.emailAddress&&t.setEmailAddress(e.emailAddress),e.hasOwnProperty("recipientName")&&null!==e.recipientName&&void 0!==e.recipientName&&t.setRecipientName(e.recipientName),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEmailAddress(){return this.emailAddress}setEmailAddress(e){this.emailAddress=e}getRecipientName(){return this.recipientName}setRecipientName(e){this.recipientName=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getEmailAddress()&&null!==this.getEmailAddress()?{emailAddress:this.getEmailAddress()}:{},...void 0!==this.getRecipientName()&&null!==this.getRecipientName()?{recipientName:this.getRecipientName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["emailAddress"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("emailAddress"===t){if(void 0===this.emailAddress||null===this.emailAddress)return new O("emailAddress","undefined or null");if(!k.validatePattern(this.emailAddress,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new O("emailAddress","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("recipientName"===t){if(void 0===this.recipientName||null===this.recipientName)return new O("recipientName","undefined or null");if(!k.validateMaxLength(this.recipientName,64))return new O("recipientName","does not satisfy required maxLength constraint: 64")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Ji.prototype.emailAddress=void 0,Ji.prototype.recipientName=void 0,Ji.prototype.$reserved=void 0,Ji.prototype.$objectType=void 0,Ji.prototype.$unknownFields=void 0;var Wi=new WeakSet;class zi{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Wi),n.add(t),this.recipients=e,this.$objectType="opsmgmt.v4.reporting.NotificationPolicy",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new zi,e.hasOwnProperty("recipients")&&null!==e.recipients&&void 0!==e.recipients){for(o=[],i=e.recipients,r=0;r<i.length;r++)s=Ji.constructFromObject(i[r],void 0),o.push(s);t.setRecipients(o)}if(e.hasOwnProperty("emailSubject")&&null!==e.emailSubject&&void 0!==e.emailSubject&&t.setEmailSubject(e.emailSubject),e.hasOwnProperty("emailBody")&&null!==e.emailBody&&void 0!==e.emailBody&&t.setEmailBody(e.emailBody),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getRecipients(){return this.recipients}setRecipients(e){this.recipients=e}getEmailSubject(){return this.emailSubject}setEmailSubject(e){this.emailSubject=e}getEmailBody(){return this.emailBody}setEmailBody(e){this.emailBody=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients().map(e=>e.toJson(!1))}:{},...void 0!==this.getEmailSubject()&&null!==this.getEmailSubject()?{emailSubject:this.getEmailSubject()}:{},...void 0!==this.getEmailBody()&&null!==this.getEmailBody()?{emailBody:this.getEmailBody()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["recipients"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new O("recipients","undefined or null");if(!k.validateMaxItems(this.recipients,100))return new O("recipients","does not satisfy required maxItems constraint: 100");if(!k.validateMinItems(this.recipients,1))return new O("recipients","does not satisfy required minItems constraint: 1")}if("emailSubject"===t){if(void 0===this.emailSubject||null===this.emailSubject)return new O("emailSubject","undefined or null");if(!k.validateMaxLength(this.emailSubject,100))return new O("emailSubject","does not satisfy required maxLength constraint: 100")}if("emailBody"===t){if(void 0===this.emailBody||null===this.emailBody)return new O("emailBody","undefined or null");if(!k.validateMaxLength(this.emailBody,1e3))return new O("emailBody","does not satisfy required maxLength constraint: 1000")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}zi.prototype.recipients=void 0,zi.prototype.emailSubject=void 0,zi.prototype.emailBody=void 0,zi.prototype.$reserved=void 0,zi.prototype.$objectType=void 0,zi.prototype.$unknownFields=void 0;const Vi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_EFFICIENCY:"VM_EFFICIENCY",STORAGE_OVER_PROVISIONING:"STORAGE_OVER-PROVISIONING",STORAGE_SUMMARY:"STORAGE_SUMMARY",REBUILD_CAPACITY_RESERVATION:"REBUILD_CAPACITY_RESERVATION",RECYCLE_BIN:"RECYCLE_BIN",CLUSTER_CPU_USAGE:"CLUSTER_CPU_USAGE",CLUSTER_LATENCY:"CLUSTER_LATENCY",CLUSTER_MEMORY_USAGE:"CLUSTER_MEMORY_USAGE",CLUSTER_QUICK_ACCESS:"CLUSTER_QUICK_ACCESS",CLUSTER_RUNWAY:"CLUSTER_RUNWAY",CLUSTER_STORAGE:"CLUSTER_STORAGE",CONTROLLER_IOPS:"CONTROLLER_IOPS",PERFORMANCE:"PERFORMANCE",ALERTS:"ALERTS",TASKS:"TASKS",DISCOVERED_APPS:"DISCOVERED_APPS",SECURITY:"SECURITY",PLAYS:"PLAYS",REPORTS:"REPORTS",DATA_RECOVERY_STATUS:"DATA_RECOVERY_STATUS",IMPACTED_CLUSTER:"IMPACTED_CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Vi).find(t=>Vi[t]===e);return null==t?Vi.$UNKNOWN:Vi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vi.$UNKNOWN:case Vi.$REDACTED:case Vi.VM_EFFICIENCY:case Vi.STORAGE_OVER_PROVISIONING:case Vi.STORAGE_SUMMARY:case Vi.REBUILD_CAPACITY_RESERVATION:case Vi.RECYCLE_BIN:case Vi.CLUSTER_CPU_USAGE:case Vi.CLUSTER_LATENCY:case Vi.CLUSTER_MEMORY_USAGE:case Vi.CLUSTER_QUICK_ACCESS:case Vi.CLUSTER_RUNWAY:case Vi.CLUSTER_STORAGE:case Vi.CONTROLLER_IOPS:case Vi.PERFORMANCE:case Vi.ALERTS:case Vi.TASKS:case Vi.DISCOVERED_APPS:case Vi.SECURITY:case Vi.PLAYS:case Vi.REPORTS:case Vi.DATA_RECOVERY_STATUS:case Vi.IMPACTED_CLUSTER:return;default:throw new Error("Invalid : must be PredefinedType.{ $UNKNOWN|$REDACTED|VM_EFFICIENCY|STORAGE_OVER_PROVISIONING|STORAGE_SUMMARY|REBUILD_CAPACITY_RESERVATION|RECYCLE_BIN|CLUSTER_CPU_USAGE|CLUSTER_LATENCY|CLUSTER_MEMORY_USAGE|CLUSTER_QUICK_ACCESS|CLUSTER_RUNWAY|CLUSTER_STORAGE|CONTROLLER_IOPS|PERFORMANCE|ALERTS|TASKS|DISCOVERED_APPS|SECURITY|PLAYS|REPORTS|DATA_RECOVERY_STATUS|IMPACTED_CLUSTER }")}}};Object.freeze(Vi);const Hi=Vi;var Bi=new WeakSet;class Gi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Bi),t.add(e),this.$objectType="opsmgmt.v4.reporting.PredefinedView",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Gi,e.hasOwnProperty("predefinedView")&&null!==e.predefinedView&&void 0!==e.predefinedView&&t.setPredefinedView(Hi.constructFromObject(e.predefinedView)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPredefinedView(){return this.predefinedView}setPredefinedView(e){this.predefinedView=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getPredefinedView()&&null!==this.getPredefinedView()?{predefinedView:this.getPredefinedView()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"predefinedView"!==t||void 0!==this.predefinedView&&null!==this.predefinedView?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("predefinedView","undefined or null")}}Gi.prototype.predefinedView=void 0,Gi.prototype.$reserved=void 0,Gi.prototype.$objectType=void 0,Gi.prototype.$unknownFields=void 0;var Ki=new WeakSet;class qi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ki),t.add(e),this.$objectType="opsmgmt.v4.reporting.ReportCustomization",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new qi,e.hasOwnProperty("headerHtml")&&null!==e.headerHtml&&void 0!==e.headerHtml&&t.setHeaderHtml(e.headerHtml),e.hasOwnProperty("footerHtml")&&null!==e.footerHtml&&void 0!==e.footerHtml&&t.setFooterHtml(e.footerHtml),e.hasOwnProperty("cssStyleSheet")&&null!==e.cssStyleSheet&&void 0!==e.cssStyleSheet&&t.setCssStyleSheet(e.cssStyleSheet),e.hasOwnProperty("logoImageExtId")&&null!==e.logoImageExtId&&void 0!==e.logoImageExtId&&t.setLogoImageExtId(e.logoImageExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHeaderHtml(){return this.headerHtml}setHeaderHtml(e){this.headerHtml=e}getFooterHtml(){return this.footerHtml}setFooterHtml(e){this.footerHtml=e}getCssStyleSheet(){return this.cssStyleSheet}setCssStyleSheet(e){this.cssStyleSheet=e}getLogoImageExtId(){return this.logoImageExtId}setLogoImageExtId(e){this.logoImageExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHeaderHtml()&&null!==this.getHeaderHtml()?{headerHtml:this.getHeaderHtml()}:{},...void 0!==this.getFooterHtml()&&null!==this.getFooterHtml()?{footerHtml:this.getFooterHtml()}:{},...void 0!==this.getCssStyleSheet()&&null!==this.getCssStyleSheet()?{cssStyleSheet:this.getCssStyleSheet()}:{},...void 0!==this.getLogoImageExtId()&&null!==this.getLogoImageExtId()?{logoImageExtId:this.getLogoImageExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("headerHtml"===t&&(void 0===this.headerHtml||null===this.headerHtml))return new O("headerHtml","undefined or null");if("footerHtml"===t&&(void 0===this.footerHtml||null===this.footerHtml))return new O("footerHtml","undefined or null");if("cssStyleSheet"===t&&(void 0===this.cssStyleSheet||null===this.cssStyleSheet))return new O("cssStyleSheet","undefined or null");if("logoImageExtId"===t){if(void 0===this.logoImageExtId||null===this.logoImageExtId)return new O("logoImageExtId","undefined or null");if(!k.validatePattern(this.logoImageExtId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("logoImageExtId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}qi.prototype.headerHtml=void 0,qi.prototype.footerHtml=void 0,qi.prototype.cssStyleSheet=void 0,qi.prototype.logoImageExtId=void 0,qi.prototype.$reserved=void 0,qi.prototype.$objectType=void 0,qi.prototype.$unknownFields=void 0;const Yi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PDF:"PDF",CSV:"CSV",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Yi).find(t=>Yi[t]===e);return null==t?Yi.$UNKNOWN:Yi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Yi.$UNKNOWN:case Yi.$REDACTED:case Yi.PDF:case Yi.CSV:return;default:throw new Error("Invalid : must be ReportFormat.{ $UNKNOWN|$REDACTED|PDF|CSV }")}}};Object.freeze(Yi);const Xi=Yi;function Zi(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")}var Qi=new WeakSet;class es extends Ze{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=Qi),i.add(n),this.name=e,this.type=t,this.$objectType="opsmgmt.v4.reporting.View",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new es,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("heading")&&null!==e.heading&&void 0!==e.heading&&t.setHeading(e.heading),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type)switch(i=e.type.hasOwnProperty("$objectType")?e.type.$objectType:typeof e.type,i){case"opsmgmt.v4.reporting.CustomView":t.setType(Ni.constructFromObject(e.type,void 0));break;case"opsmgmt.v4.reporting.PredefinedView":t.setType(Gi.constructFromObject(e.type,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getHeading(){return this.heading}setHeading(e){this.heading=e}getType(){return this.type}setType(e){this.type=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getHeading()&&null!==this.getHeading()?{heading:this.getHeading()}:{},...void 0!==this.getType()&&null!==this.getType()?{type:void 0!==this.getType().toJson?this.getType().toJson(!1):Array.isArray(this.getType())?this.getType().map(e=>void 0!==e.toJson?e.toJson(!1):e):Zi(Qi,this,ts).call(this,this.getType(),!1)}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getHeading()&&null!==this.getHeading()?{heading:this.getHeading()}:{},...void 0!==this.getType()&&null!==this.getType()?{type:void 0!==this.getType().toJson?this.getType().toJson():Array.isArray(this.getType())?this.getType().map(e=>void 0!==e.toJson?e.toJson():e):Zi(Qi,this,ts).call(this,this.getType())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name","type"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!k.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("heading"===t){if(void 0===this.heading||null===this.heading)return new O("heading","undefined or null");if(!k.validateMaxLength(this.heading,256))return new O("heading","does not satisfy required maxLength constraint: 256")}return"type"!==t||void 0!==this.type&&null!==this.type?new O(t,"no such property exists"):new O("type","undefined or null")}}function ts(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}es.prototype.name=void 0,es.prototype.heading=void 0,es.prototype.type=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;var ns=new WeakSet;class is extends Ze{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=ns),i.add(n),this.name=e,this.views=t,this.$objectType="opsmgmt.v4.reporting.ViewReport",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,o;if(e){if(t=t||new is,Ze.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("views")&&null!==e.views&&void 0!==e.views){for(o=[],i=e.views,r=0;r<i.length;r++)s=es.constructFromObject(i[r],void 0),o.push(s);t.setViews(o)}if(e.hasOwnProperty("reportFormat")&&null!==e.reportFormat&&void 0!==e.reportFormat){for(o=[],i=e.reportFormat,r=0;r<i.length;r++)s=Xi.constructFromObject(i[r],void 0),o.push(s);t.setReportFormat(o)}if(e.hasOwnProperty("notificationPolicy")&&null!==e.notificationPolicy&&void 0!==e.notificationPolicy&&t.setNotificationPolicy(zi.constructFromObject(e.notificationPolicy)),e.hasOwnProperty("startTime")&&null!==e.startTime&&void 0!==e.startTime&&t.setStartTime(e.startTime),e.hasOwnProperty("endTime")&&null!==e.endTime&&void 0!==e.endTime&&t.setEndTime(e.endTime),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getViews(){return this.views}setViews(e){this.views=e}getReportFormat(){return this.reportFormat}setReportFormat(e){this.reportFormat=e}getNotificationPolicy(){return this.notificationPolicy}setNotificationPolicy(e){this.notificationPolicy=e}getStartTime(){return this.startTime}setStartTime(e){this.startTime=e}getEndTime(){return this.endTime}setEndTime(e){this.endTime=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getViews()&&null!==this.getViews()?{views:this.getViews().map(e=>e.toJson(!1))}:{},...void 0!==this.getReportFormat()&&null!==this.getReportFormat()?{reportFormat:this.getReportFormat()}:{},...void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{},...void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:this.getStartTime()}:{},...void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:this.getEndTime()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getViews()&&null!==this.getViews()?{views:this.getViews().map(e=>e.toJson(!1))}:{},...void 0!==this.getReportFormat()&&null!==this.getReportFormat()?{reportFormat:this.getReportFormat()}:{},...void 0!==this.getNotificationPolicy()&&null!==this.getNotificationPolicy()?{notificationPolicy:this.getNotificationPolicy().toJson(!1)}:{},...void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:this.getStartTime()}:{},...void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:this.getEndTime()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof F?n=["name","views"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!k.validateMaxLength(this.name,100))return new O("name","does not satisfy required maxLength constraint: 100");if(!k.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("views"===t){if(void 0===this.views||null===this.views)return new O("views","undefined or null");if(!k.validateMaxItems(this.views,50))return new O("views","does not satisfy required maxItems constraint: 50");if(!k.validateMinItems(this.views,1))return new O("views","does not satisfy required minItems constraint: 1")}return"reportFormat"!==t||void 0!==this.reportFormat&&null!==this.reportFormat?"notificationPolicy"!==t||void 0!==this.notificationPolicy&&null!==this.notificationPolicy?"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?new O(t,"no such property exists"):new O("endTime","undefined or null"):new O("startTime","undefined or null"):new O("notificationPolicy","undefined or null"):new O("reportFormat","undefined or null")}}is.prototype.name=void 0,is.prototype.views=void 0,is.prototype.reportFormat=void 0,is.prototype.notificationPolicy=void 0,is.prototype.startTime=void 0,is.prototype.endTime=void 0,Ze.prototype.extId=void 0,Ze.prototype.links=void 0,Ye.prototype.tenantId=void 0;const ss={ApiClient:le,ReportConfigApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createReportConfig(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Xt&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createReportConfig");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s};le.addEtagReferenceToHeader(e,r);const o=tn;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs","POST",{},{},r,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}deleteReportConfigById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteReportConfigById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=un;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs/{extId}","DELETE",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}getReportConfigById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getReportConfigById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=gn;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs/{extId}","GET",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listReportConfigs(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=on;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs","GET",{},i,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}updateReportConfigById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Xt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateReportConfigById");if(null==s)throw new Error("Invalid body when calling updateReportConfigById");const r={extId:e};let o={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=i[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=Ge;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/report-configs/{extId}","PUT",r,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},GlobalReportSettingApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getGlobalReportSetting(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'userExtId' when calling getGlobalReportSetting");const i={userExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=kn;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/user/{userExtId}/global-report-setting","GET",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}updateGlobalReportSetting(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Tn&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'userExtId' when calling updateGlobalReportSetting");if(null==s)throw new Error("Invalid body when calling updateGlobalReportSetting");const r={userExtId:e};let o={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=i[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=mn;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/user/{userExtId}/global-report-setting","PUT",r,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},ReportArtifactsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createReportArtifact(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Sn&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createReportArtifact");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s};le.addEtagReferenceToHeader(e,r);const o=Wn;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts","POST",{},{},r,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}downloadArtifactFile(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'reportArtifactExtId' when calling downloadArtifactFile");const i={reportArtifactExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=Bn;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts/{reportArtifactExtId}/file","GET",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],o)}listReportArtifacts(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=Un;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts","GET",{},i,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}uploadArtifactFile(e,t,...i){let s,r=i.length>0?i[0]:{},o=null;try{s=n(975)}catch(e){}if("function"==typeof t.pipe)o=t,r["Content-Length"]=s.statSync(t.path).size,r.hasOwnProperty("Content-Disposition")||(r["Content-Disposition"]='attachment; filename="'+$().parse(t.path).base+'"');else if("string"==typeof t){let e;try{e=n(784)}catch(e){throw new Error("Cannot find module 'path'. Ensure you are using a Node.js environment. If not, use ReadableStream for body parameter.")}try{o=s.createReadStream(t),r["Content-Length"]=s.statSync(t).size,r.hasOwnProperty("Content-Disposition")||(r["Content-Disposition"]='attachment; filename="'+e.basename(t)+'"')}catch(e){throw new Error("Cannot read file: "+t+". Error: "+e.message)}}else o=t;if(null==e)throw new Error("Missing the required parameter 'reportArtifactExtId' when calling uploadArtifactFile");if(null==o)throw new Error("Invalid body when calling uploadArtifactFile");const a={reportArtifactExtId:e};let l={};Object.keys(r).forEach(e=>{this.#e.has(e.toLowerCase())||(l[e]=r[e])});const d={...l};le.addEtagReferenceToHeader(t,d);const u=Mn;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/report-artifacts/{reportArtifactExtId}/$actions/upload","POST",a,{},d,{},o,["apiKeyAuthScheme","basicAuthScheme"],["application/octet-stream"],["application/json"],u)}},ReportsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createReport(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof oi&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createReport");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s};le.addEtagReferenceToHeader(e,r);const o=ki;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports","POST",{},{},r,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],o)}deleteReportById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteReportById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=ei;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports/{extId}","DELETE",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}downloadReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'reportExtId' when calling downloadReport");const i={reportExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=Yn;return this.apiClient.callApi("/api/opsmgmt/v4.0/content/reports/{reportExtId}/file","GET",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/pdf","application/zip","application/json"],o)}getReportById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getReportById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=ci;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports/{extId}","GET",i,{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}listReports(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const r={...s},o=$i;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports","GET",{},i,r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}notifyReport(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof di&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling notifyReport");if(null==s)throw new Error("Invalid body when calling notifyReport");const r={extId:e};let o={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(o[e]=i[e])});const a={...o};le.addEtagReferenceToHeader(t,a);const l=vi;return this.apiClient.callApi("/api/opsmgmt/v4.0/config/reports/{extId}/$actions/notify-recipients","POST",r,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},Flag:j,KVPair:U,MapOfStringWrapper:A,Message:x,MessageSeverity:_,TenantAwareModel:Ye,ApiLink:J,ApiResponseMetadata:V,ExternalizableAbstractModel:Ze,AggregateFunction:Rt,CreateReportApiResponse:ki,CreateReportConfigApiResponse:tn,DataCriteria:kt,DeleteReportApiResponse:ei,DeleteReportConfigApiResponse:un,EntitySelection:ii,EntityType:et,GetGlobalReportSettingApiResponse:kn,GetReportApiResponse:ci,GetReportConfigApiResponse:gn,GlobalReportSetting:Tn,ListReportConfigsApiResponse:on,ListReportsApiResponse:$i,ConfigNotificationPolicy:ot,NotifyReportApiResponse:vi,ConfigRecipient:nt,RepeatCriteria:mt,Report:oi,ReportConfig:Xt,ConfigReportCustomization:lt,ConfigReportFormat:st,ReportNotificationSpec:di,ReportSchedule:pt,RetentionConfig:vt,Row:Bt,ScheduleInterval:ut,Section:Kt,SortKey:$t,ConfigSortOrder:bt,TimeFilter:Et,UpdateGlobalReportSettingsApiResponse:mn,UpdateReportConfigApiResponse:Ge,Widget:zt,WidgetConfig:Dt,WidgetField:At,WidgetSize:Pt,WidgetTemplate:Lt,WidgetTemplateType:Mt,WidgetType:Ut,ArtifactFileType:jn,ArtifactType:Cn,CreateReportArtifactApiResponse:Wn,DownloadArtifactileApiResponse:Bn,DownloadReportApiResponse:Yn,ListReportArtifactsApiResponse:Un,ReportArtifact:Sn,UploadArtifactApiResponse:Mn,AppMessage:Se,ErrorResponse:Je,SchemaValidationError:_e,SchemaValidationErrorMessage:Ue,CustomView:Ni,Field:Ci,FileWrapper:_i,ImportExportParams:xi,ReportingNotificationPolicy:zi,Operator:ji,PredefinedType:Hi,PredefinedView:Gi,ReportingRecipient:Ji,ReportingReportCustomization:qi,ReportingReportFormat:Xi,ReportingSortOrder:Si,View:es,ViewFormat:Ii,ViewReport:is,TaskReference:Ve}})(),i.default})());
|